CINXE.COM
Google 泻薪懈谐懈
<!doctype html> <html manifest="//ssl.gstatic.com/gb/remove-manifest-link" lang="auto"> <head> <base href="https://books.google.com.ua/?hl=uk"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Google 泻薪懈谐懈</title> <link rel="canonical" href=""> <style>#gbar,#guser{font-size:13px;padding-top:1px !important;}#gbar{height:22px}#guser{padding-bottom:7px !important;text-align:right}.gbh,.gbd{border-top:1px solid #c9d7f1;font-size:1px}.gbh{height:0;position:absolute;top:24px;width:100%}@media all{.gb1{height:22px;margin-right:.5em;vertical-align:top}#gbar{float:left}}a.gb1,a.gb4{text-decoration:underline !important}a.gb1,a.gb4{color:#00c !important}.gbi .gb4{color:#dd8e27 !important}.gbf .gb4{color:#900 !important} </style> <script></script> <style>.jfk-textinput{-webkit-border-radius:1px;-moz-border-radius:1px;border-radius:1px;border:1px solid #d9d9d9;border-top:1px solid #c0c0c0;font-size:13px;height:25px;padding:1px 8px}.jfk-textinput:focus{-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.3);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.3);box-shadow:inset 0 1px 2px rgba(0,0,0,.3);border:1px solid #4d90fe;outline:none}.jfk-textinput::-ms-clear{display:none}a{text-decoration:none}a:link{color:#15c}a:visited{color:#61c}a:active{color:#d14836}a:hover{text-decoration:underline}body{font-family:arial,sans-serif;font-size:13px;margin:0}#oc-search-image{background:url(//www.google.com/intl/en_ALL/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png) no-repeat}#oc-search-logo{color:#4285f4;font-family:roboto-regular,arial,sans-serif;font-size:16px;position:relative;white-space:nowrap}@media (min-width:801px){#oc-search-image-box{padding:120px 0 24px 0}#oc-search-image{-webkit-background-size:272px 92px;-o-background-size:272px 92px;background-size:272px 92px;height:92px;width:272px}#oc-search-logo{font-size:16px;left:101px;top:74px}#oc-search-button-box{margin-left:12px}#oc-search-button{width:70px}#oc-search-description{margin-top:28px;font-size:14px}}@media (max-width:800px){#oc-search-input-box{width:88%}#oc-search-image-box{padding:70px 0 24px 0}#oc-search-image{-webkit-background-size:200px 68px;-o-background-size:200px 68px;background-size:200px 68px;height:68px;width:200px}#oc-search-logo{font-size:13px;left:77px;top:54px}#oc-search-button{padding:1px 0;width:40px}#oc-search-description{margin:16px;font-size:13px}}@media (orientation:landscape) and (max-width:800px){#oc-search-image-box{padding:35px 0 24px 0}}@media (max-width:500px){#oc-search-input-box{width:96%}}#oc-search-button{margin-left:12px;border:1px solid #3079ed;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;height:27px;background-color:#357ae8;background-image:-webkit-linear-gradient(top,#4d90fe,#357ae8);background-image:-moz-linear-gradient(top,#4d90fe,#357ae8);background-image:-ms-linear-gradient(top,#4d90fe,#357ae8);background-image:-o-linear-gradient(top,#4d90fe,#357ae8);background-image:linear-gradient(top,#4d90fe,#357ae8)}#oc-search-button input{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAtUlEQVQoz2P4//8/AxQbAvFBIP7yHwJA9BGoOAM2DGNkAPHv/9jBb6g8Vs0gk39BFd4G4hggloPSt6Hiv7C5AETshyq4i8N5d6Hy+7Fp/gqVDMChOQAq/xWb5r9QSUkcmiWh8n/x2eyDQ7MPPpsPEunng9g0myJFEyh0I4BYBErfRoqyXHLiGRmsxqYZ5gJQivoGVfgNyi/BZQADrqSHhtdhM4BYzVgNIEUzugHrSNUMMwCEGQDxZPLNLQuzXAAAAABJRU5ErkJggg==) no-repeat center center;height:27px;vertical-align:top;color:transparent;border:0;cursor:default;width:100%}#oc-search-input{width:100%;height:29px;font-size:17px}#oc-search-input:focus{border-color:#d9d9d9;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}#oc-search-input:hover{border-color:#a0a0a0}.footerOuter{position:absolute;bottom:0;height:75px;width:100%}.footerInner{position:absolute;bottom:0;left:0;right:0;background:#f2f2f2;border-top:1px solid #e4e4e4;line-height:49px;text-align:center}.footerLeft,.footerRight{white-space:nowrap;margin:0 30px}.footerInner a{display:inline-block;color:#666;white-space:nowrap;margin-left:27px}.footerInner a:first-child{margin-left:0}@media (min-width:501px){.footerLeft{float:right}.footerRight{float:left}}@media (max-width:500px){.footerLeft{display:none}}.ac-renderer{position:absolute;background-color:#fff;cursor:default;border:1px solid #ccc;border-top-color:#d9d9d9;font-size:13px;line-height:1.3em;overflow:hidden;white-space:nowrap;-webkit-box-shadow:0 2px 4px rgba(0,0,0,.2);-moz-box-shadow:0 2px 4px rgba(0,0,0,.2);box-shadow:0 2px 4px rgba(0,0,0,.2)}.gb-reset .ac-renderer{font-size:100%}.ac-active{background-color:#4d90fe;color:white}.ac-row{padding:2px 5px}sentinel{}</style> <meta http-equiv="X-Translated-By" content="Google"> <meta http-equiv="X-Translated-To" content="en"> <script type="text/javascript" src="https://www.gstatic.com/_/translate_http/_/js/k=translate_http.tr.uk.csSOpUKKoh4.O/am=DAY/d=1/rs=AN8SPfpzTLx9-FDyLcJ3g4UzDrRAw2imJA/m=corsproxy" data-sourceurl="https://books.google.com.ua/?hl=uk"></script> <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" rel="stylesheet"> <script type="text/javascript" src="https://www.gstatic.com/_/translate_http/_/js/k=translate_http.tr.uk.csSOpUKKoh4.O/am=DAY/d=1/exm=corsproxy/ed=1/rs=AN8SPfpzTLx9-FDyLcJ3g4UzDrRAw2imJA/m=phishing_protection" data-phishing-protection-enabled="false" data-forms-warning-enabled="true" data-source-url="https://books.google.com.ua/?hl=uk"></script> <meta name="robots" content="none"> </head> <body> <script type="text/javascript" src="https://www.gstatic.com/_/translate_http/_/js/k=translate_http.tr.uk.csSOpUKKoh4.O/am=DAY/d=1/exm=corsproxy,phishing_protection/ed=1/rs=AN8SPfpzTLx9-FDyLcJ3g4UzDrRAw2imJA/m=navigationui" data-environment="prod" data-proxy-url="https://books-google-com-ua.translate.goog" data-proxy-full-url="https://books-google-com-ua.translate.goog/?hl=uk&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB" data-source-url="https://books.google.com.ua/?hl=uk" data-source-language="auto" data-target-language="en" data-display-language="en-GB" data-detected-source-language="uk" data-is-source-untranslated="false" data-source-untranslated-url="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://books.google.com.ua/?hl%3Duk&anno=2" data-client="tr"></script> <div id="gbar"> <nobr><a target="_blank" class="gb1" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://www.google.com.ua/webhp?tab%3Dpw">袩芯褕褍泻</a> <a target="_blank" class="gb1" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://www.google.com.ua/imghp?hl%3Duk%26tab%3Dpi">袟芯斜褉邪卸械薪薪褟</a> <a target="_blank" class="gb1" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://maps.google.com.ua/maps?hl%3Duk%26tab%3Dpl">袣邪褉褌懈</a> <a target="_blank" class="gb1" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://play.google.com/?hl%3Duk%26tab%3Dp8">Play</a> <a target="_blank" class="gb1" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://www.youtube.com/?tab%3Dp1">YouTube</a> <a target="_blank" class="gb1" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://news.google.com/?tab%3Dpn">袧芯胁懈薪懈</a> <a target="_blank" class="gb1" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://mail.google.com/mail/?tab%3Dpm">Gmail</a> <a target="_blank" class="gb1" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://drive.google.com/?tab%3Dpo">袛懈褋泻</a> <a target="_blank" class="gb1" style="text-decoration:none" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://www.google.com.ua/intl/uk/about/products?tab%3Dph"><u>袘褨谢褜褕械</u> 禄</a></nobr> </div> <div id="guser" width="100%"> <nobr><span id="gbn" class="gbi"></span><span id="gbf" class="gbf"></span><span id="gbe"></span><a target="_top" id="gb_70" href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://www.google.com/accounts/Login?service%3Dprint%26continue%3Dhttps://books.google.com.ua/%253Fhl%253Duk%26hl%3Duk%26ec%3DGAZACg" class="gb4">校胁褨泄褌懈</a></nobr> </div> <div class="gbh" style="left:0"></div> <div class="gbh" style="right:0"></div> <div align="center"> <form action="//www.google.com/search" method="GET" id="oc-search-form"> <input type="hidden" name="udm" value="36"> <div id="oc-search-image-box"> <div id="oc-search-image" title="Google 泻薪懈谐懈"> <div id="oc-search-logo"> 袣薪懈谐懈 </div> </div> </div> <table id="oc-search-input-box"> <tbody> <tr> <td><input id="oc-search-input" autocomplete="off" name="q" type="text" class="jfk-textinput" title="袩芯褕褍泻 泻薪懈谐" size="66" maxlength="2048"></td> <td> <div id="oc-search-button-box"> <div id="oc-search-button"> <input type="submit" value="袩芯褕褍泻 泻薪懈谐"> </div> </div></td> </tr> </tbody> </table> <p id="oc-search-description">楔褍泻邪泄褌械 谢褨褌械褉邪褌褍褉褍 胁 薪邪泄锌芯胁薪褨褕芯屑褍 褍 褋胁褨褌褨 褨薪写械泻褋褨 锌芯胁薪芯褌械泻褋褌芯胁懈褏 泻薪懈谐.</p> <p id="oc-my-library"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=https://www.google.com/accounts/Login?service%3Dprint%26continue%3Dhttps://books.google.com.ua/books%253Fop%253Dlibrary%2526hl%253Duk%26hl%3Duk">袦芯褟 斜褨斜谢褨芯褌械泻邪</a></p> </form> </div> <div class="footerOuter"> <div class="footerInner"> <span class="footerLeft"><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=http://books.google.com/support/partner/?hl%3Duk-UA">袛谢褟 胁懈写邪胁褑褨胁</a><a href="https://books-google-com-ua.translate.goog/intl/uk/googlebooks/about.html?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB">袩褉芯 Google 袣薪懈谐懈</a></span><span class="footerRight"><a href="https://books-google-com-ua.translate.goog/intl/uk/googlebooks/privacy.html?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB">袩芯谢褨褌懈泻邪 泻芯薪褎褨写械薪褑褨泄薪芯褋褌褨</a><a href="https://books-google-com-ua.translate.goog/intl/uk/googlebooks/tos.html?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-GB">校屑芯胁懈 胁懈泻芯褉懈褋褌邪薪薪褟</a><a href="https://translate.google.com/website?sl=auto&tl=en&hl=en-GB&u=http://books.google.com/support/topic/4359341?hl%3Duk-UA">袛芯胁褨写泻邪</a></span> </div> </div> <script>var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_ES6=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1; $jscomp.INSTRUMENT_ASYNC_CONTEXT=!0;$jscomp.defineProperty=$jscomp.ASSUME_ES5||typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a}; $jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE=typeof Symbol==="function"&&typeof Symbol("x")==="symbol";$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={}; $jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";$jscomp.polyfill=function(a,b,c,d){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,c,d):$jscomp.polyfillUnisolated(a,b,c,d))};$jscomp.polyfillUnisolated=function(a,b){var c=$jscomp.global;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))return;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})}; $jscomp.polyfillIsolated=function(a,b,c){var d=a.split("."),e=d.length===1;a=d[0];a=!e&&a in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<d.length-1;f++){var g=d[f];if(!(g in a))return;a=a[g]}d=d[d.length-1];c=$jscomp.IS_SYMBOL_NATIVE&&c==="es6"?a[d]:null;b=b(c);b!=null&&(e?$jscomp.defineProperty($jscomp.polyfills,d,{configurable:!0,writable:!0,value:b}):b!==c&&($jscomp.propertyToPolyfillSymbol[d]===void 0&&(e=Math.random()*1E9>>>0,$jscomp.propertyToPolyfillSymbol[d]=$jscomp.IS_SYMBOL_NATIVE? $jscomp.global.Symbol(d):$jscomp.POLYFILL_PREFIX+e+"$"+d),e=$jscomp.propertyToPolyfillSymbol[d],$jscomp.defineProperty(a,e,{configurable:!0,writable:!0,value:b})))};$jscomp.initSymbol=function(){}; $jscomp.polyfill("Symbol",function(a){if(a)return a;var b=function(f,g){this.$jscomp$symbol$id_=f;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:g})};b.prototype.toString=function(){return this.$jscomp$symbol$id_};a=Math.random()*1E9>>>0;var c="jscomp_symbol_"+a+"_",d=0,e=function(f){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new b(c+(f||"")+"_"+d++,f)};return e},"es6","es3"); $jscomp.polyfill("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=$jscomp.global[b[c]];typeof d==="function"&&typeof d.prototype[a]!="function"&&$jscomp.defineProperty(d.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return a},"es6", "es3");$jscomp.iteratorPrototype=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a};$jscomp.objectCreate=$jscomp.ASSUME_ES5||typeof Object.create=="function"?Object.create:function(a){var b=function(){};b.prototype=a;return new b}; $jscomp.getConstructImplementation=function(){function a(){function e(){}function f(){}new e;Reflect.construct(e,[],f);return new e instanceof e}function b(e,f,g){g===void 0&&(g=e);g=g.prototype||Object.prototype;g=$jscomp.objectCreate(g);var h=Function.prototype.apply;return(e=h.call(e,g,f))||g}if($jscomp.TRUST_ES6_POLYFILLS&&typeof Reflect!="undefined"&&Reflect.construct){if(a())return Reflect.construct;var c=Reflect.construct,d=function(e,f,g){e=c(e,f);g&&Reflect.setPrototypeOf(e,g.prototype); return e};return d}return b};$jscomp.construct={valueOf:$jscomp.getConstructImplementation}.valueOf();$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},b={};try{return b.__proto__=a,b.a}catch(c){}return!1};$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null; $jscomp.inherits=function(a,b){a.prototype=$jscomp.objectCreate(b.prototype);a.prototype.constructor=a;if($jscomp.setPrototypeOf){var c=$jscomp.setPrototypeOf;c(a,b)}else for(c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.superClass_=b.prototype}; $jscomp.makeIterator=function(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return $jscomp.arrayIterator(a);throw Error(String(a)+" is not an iterable or ArrayLike");};$jscomp.arrayFromIterator=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};$jscomp.arrayFromIterable=function(a){return a instanceof Array?a:$jscomp.arrayFromIterator($jscomp.makeIterator(a))}; $jscomp.createTemplateTagFirstArg=function(a){return $jscomp.createTemplateTagFirstArgWithRaw(a,a)};$jscomp.createTemplateTagFirstArgWithRaw=function(a,b){a.raw=b;Object.freeze&&(Object.freeze(a),Object.freeze(b));return a};$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");}; $jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1}; $jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a};$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_}; $jscomp.generator.Context.prototype.yield=function(a,b){this.nextAddress=b;return{value:a}};$jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,b){this.catchAddress_=a;b!=void 0&&(this.finallyAddress_=b)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0}; $jscomp.generator.Context.prototype.leaveTryBlock=function(a,b){this.nextAddress=a;this.catchAddress_=b||0};$jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,b,c){c?this.finallyContexts_[c]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=b||0}; $jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,b){b=this.finallyContexts_.splice(b||0)[0];if(b=this.abruptCompletion_=this.abruptCompletion_||b){if(b.isException)return this.jumpToErrorHandler_();b.jumpTo!=void 0&&this.finallyAddress_<b.jumpTo?(this.nextAddress=b.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.PropertyIterator=function(a){this.properties_=[];for(var b in a)this.properties_.push(b);this.properties_.reverse()}; $jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a};$jscomp.generator.Engine_.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return this.nextStep_()}; $jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var b=this.context_.yieldAllIterator_;if(b)return b="return"in b?b["return"]:function(c){return{value:c,done:!0}},this.yieldAllStep_(b,a,this.context_.return);this.context_.return(a);return this.nextStep_()}; $jscomp.generator.Engine_.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return this.nextStep_()}; $jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,b,c){try{var d=a.call(this.context_.yieldAllIterator_,b);$jscomp.generator.ensureIteratorResultIsObject_(d);if(!d.done)return this.context_.stop_(),d;var e=d.value}catch(f){return this.context_.yieldAllIterator_=null,this.context_.throw_(f),this.nextStep_()}this.context_.yieldAllIterator_=null;c.call(this.context_,e);return this.nextStep_()}; $jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(b){this.context_.yieldResult=void 0,this.context_.throw_(b)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a.return,done:!0}}return{value:void 0,done:!0}}; $jscomp.generator.Generator_=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return a.return_(b)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,b){b=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b));$jscomp.setPrototypeOf&&a.prototype&&$jscomp.setPrototypeOf(b,a.prototype);return b}; $jscomp.asyncExecutePromiseGenerator=function(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))}; $jscomp.getRestArguments=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};$jscomp.polyfill("Reflect",function(a){return a?a:{}},"es6","es3");$jscomp.polyfill("Reflect.construct",function(){return $jscomp.construct},"es6","es3");$jscomp.polyfill("Reflect.setPrototypeOf",function(a){if(a)return a;if($jscomp.setPrototypeOf){var b=$jscomp.setPrototypeOf;return a=function(c,d){try{return b(c,d),!0}catch(e){return!1}}}return null},"es6","es5"); $jscomp.polyfill("Promise",function(a){function b(){this.batch_=null}function c(h){return h instanceof f?h:new f(function(k){k(h)})}if(a&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&typeof $jscomp.global.PromiseRejectionEvent==="undefined")||!$jscomp.global.Promise||$jscomp.global.Promise.toString().indexOf("[native code]")===-1))return a;b.prototype.asyncExecute=function(h){if(this.batch_==null){this.batch_=[];var k=this;this.asyncExecuteFunction(function(){k.executeBatch_()})}this.batch_.push(h)}; var d=$jscomp.global.setTimeout;b.prototype.asyncExecuteFunction=function(h){d(h,0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var h=this.batch_;this.batch_=[];for(var k=0;k<h.length;++k){var l=h[k];h[k]=null;try{l()}catch(m){this.asyncThrow_(m)}}}this.batch_=null};b.prototype.asyncThrow_=function(h){this.asyncExecuteFunction(function(){throw h;})};var e={PENDING:0,FULFILLED:1,REJECTED:2},f=function(h){this.state_=e.PENDING;this.result_=void 0;this.onSettledCallbacks_= [];this.isRejectionHandled_=!1;var k=this.createResolveAndReject_();try{h(k.resolve,k.reject)}catch(l){k.reject(l)}};f.prototype.createResolveAndReject_=function(){function h(m){return function(n){l||(l=!0,m.call(k,n))}}var k=this,l=!1;return{resolve:h(this.resolveTo_),reject:h(this.reject_)}};f.prototype.resolveTo_=function(h){if(h===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof f)this.settleSameAsPromise_(h);else{a:switch(typeof h){case "object":var k= h!=null;break a;case "function":k=!0;break a;default:k=!1}k?this.resolveToNonPromiseObj_(h):this.fulfill_(h)}};f.prototype.resolveToNonPromiseObj_=function(h){var k=void 0;try{k=h.then}catch(l){this.reject_(l);return}typeof k=="function"?this.settleSameAsThenable_(k,h):this.fulfill_(h)};f.prototype.reject_=function(h){this.settle_(e.REJECTED,h)};f.prototype.fulfill_=function(h){this.settle_(e.FULFILLED,h)};f.prototype.settle_=function(h,k){if(this.state_!=e.PENDING)throw Error("Cannot settle("+h+ ", "+k+"): Promise already settled in state"+this.state_);this.state_=h;this.result_=k;this.state_===e.REJECTED&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};f.prototype.scheduleUnhandledRejectionCheck_=function(){var h=this;d(function(){if(h.notifyUnhandledRejection_()){var k=$jscomp.global.console;typeof k!=="undefined"&&k.error(h.result_)}},1)};f.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var h=$jscomp.global.CustomEvent,k= $jscomp.global.Event,l=$jscomp.global.dispatchEvent;if(typeof l==="undefined")return!0;typeof h==="function"?h=new h("unhandledrejection",{cancelable:!0}):typeof k==="function"?h=new k("unhandledrejection",{cancelable:!0}):(h=$jscomp.global.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.result_;return l(h)};f.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var h=0;h<this.onSettledCallbacks_.length;++h)g.asyncExecute(this.onSettledCallbacks_[h]); this.onSettledCallbacks_=null}};var g=new b;f.prototype.settleSameAsPromise_=function(h){var k=this.createResolveAndReject_();h.callWhenSettled_(k.resolve,k.reject)};f.prototype.settleSameAsThenable_=function(h,k){var l=this.createResolveAndReject_();try{h.call(k,l.resolve,l.reject)}catch(m){l.reject(m)}};f.prototype.then=function(h,k){function l(q,r){return typeof q=="function"?function(t){try{m(q(t))}catch(u){n(u)}}:r}var m,n,p=new f(function(q,r){m=q;n=r});this.callWhenSettled_(l(h,m),l(k,n)); return p};f.prototype.catch=function(h){return this.then(void 0,h)};f.prototype.callWhenSettled_=function(h,k){function l(){switch(m.state_){case e.FULFILLED:h(m.result_);break;case e.REJECTED:k(m.result_);break;default:throw Error("Unexpected state: "+m.state_);}}var m=this;this.onSettledCallbacks_==null?g.asyncExecute(l):this.onSettledCallbacks_.push(l);this.isRejectionHandled_=!0};f.resolve=c;f.reject=function(h){return new f(function(k,l){l(h)})};f.race=function(h){return new f(function(k,l){for(var m= $jscomp.makeIterator(h),n=m.next();!n.done;n=m.next())c(n.value).callWhenSettled_(k,l)})};f.all=function(h){var k=$jscomp.makeIterator(h),l=k.next();return l.done?c([]):new f(function(m,n){function p(t){return function(u){q[t]=u;r--;r==0&&m(q)}}var q=[],r=0;do q.push(void 0),r++,c(l.value).callWhenSettled_(p(q.length-1),n),l=k.next();while(!l.done)})};return f},"es6","es3");$jscomp.polyfill("Object.setPrototypeOf",function(a){return a||$jscomp.setPrototypeOf},"es6","es5"); $jscomp.owns=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};$jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&typeof Object.assign=="function"?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)$jscomp.owns(d,e)&&(a[e]=d[e])}return a};$jscomp.polyfill("Object.assign",function(a){return a||$jscomp.assign},"es6","es3");$jscomp.polyfill("Symbol.dispose",function(a){return a?a:Symbol("Symbol.dispose")},"es_next","es3"); $jscomp.checkEs6ConformanceViaProxy=function(){try{var a={},b=Object.create(new $jscomp.global.Proxy(a,{get:function(c,d,e){return c==a&&d=="q"&&e==b}}));return b.q===!0}catch(c){return!1}};$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy(); $jscomp.polyfill("WeakMap",function(a){function b(){if(!a||!Object.seal)return!1;try{var l=Object.seal({}),m=Object.seal({}),n=new a([[l,2],[m,3]]);if(n.get(l)!=2||n.get(m)!=3)return!1;n.delete(l);n.set(m,4);return!n.has(l)&&n.get(m)==4}catch(p){return!1}}function c(){}function d(l){var m=typeof l;return m==="object"&&l!==null||m==="function"}function e(l){if(!$jscomp.owns(l,g)){var m=new c;$jscomp.defineProperty(l,g,{value:m})}}function f(l){if(!$jscomp.ISOLATE_POLYFILLS){var m=Object[l];m&&(Object[l]= function(n){if(n instanceof c)return n;Object.isExtensible(n)&&e(n);return m(n)})}}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(b())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0,k=function(l){this.id_=(h+=Math.random()+1).toString();if(l){l=$jscomp.makeIterator(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}};k.prototype.set=function(l,m){if(!d(l))throw Error("Invalid WeakMap key"); e(l);if(!$jscomp.owns(l,g))throw Error("WeakMap key fail: "+l);l[g][this.id_]=m;return this};k.prototype.get=function(l){return d(l)&&$jscomp.owns(l,g)?l[g][this.id_]:void 0};k.prototype.has=function(l){return d(l)&&$jscomp.owns(l,g)&&$jscomp.owns(l[g],this.id_)};k.prototype.delete=function(l){return d(l)&&$jscomp.owns(l,g)&&$jscomp.owns(l[g],this.id_)?delete l[g][this.id_]:!1};return k},"es6","es3");$jscomp.MapEntry=function(){}; $jscomp.polyfill("Map",function(a){function b(){if($jscomp.ASSUME_NO_NATIVE_MAP||!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var k=Object.seal({x:4}),l=new a($jscomp.makeIterator([[k,"s"]]));if(l.get(k)!="s"||l.size!=1||l.get({x:4})||l.set({x:4},"t")!=l||l.size!=2)return!1;var m=l.entries(),n=m.next();if(n.done||n.value[0]!=k||n.value[1]!="s")return!1;n=m.next();return n.done||n.value[0].x!=4||n.value[1]!="t"||!m.next().done?!1:!0}catch(p){return!1}} if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(b())return a;var c=new WeakMap,d=function(k){this[0]={};this[1]=g();this.size=0;if(k){k=$jscomp.makeIterator(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}};d.prototype.set=function(k,l){k=k===0?0:k;var m=e(this,k);m.list||(m.list=this[0][m.id]=[]);m.entry?m.entry.value=l:(m.entry={next:this[1],previous:this[1].previous,head:this[1],key:k,value:l},m.list.push(m.entry),this[1].previous.next= m.entry,this[1].previous=m.entry,this.size++);return this};d.prototype.delete=function(k){k=e(this,k);return k.entry&&k.list?(k.list.splice(k.index,1),k.list.length||delete this[0][k.id],k.entry.previous.next=k.entry.next,k.entry.next.previous=k.entry.previous,k.entry.head=null,this.size--,!0):!1};d.prototype.clear=function(){this[0]={};this[1]=this[1].previous=g();this.size=0};d.prototype.has=function(k){return!!e(this,k).entry};d.prototype.get=function(k){return(k=e(this,k).entry)&&k.value};d.prototype.entries= function(){return f(this,function(k){return[k.key,k.value]})};d.prototype.keys=function(){return f(this,function(k){return k.key})};d.prototype.values=function(){return f(this,function(k){return k.value})};d.prototype.forEach=function(k,l){for(var m=this.entries(),n;!(n=m.next()).done;)n=n.value,k.call(l,n[1],n[0],this)};d.prototype[Symbol.iterator]=d.prototype.entries;var e=function(k,l){var m;var n=(m=l)&&typeof m;n=="object"||n=="function"?c.has(m)?m=c.get(m):(n=""+ ++h,c.set(m,n),m=n):m="p_"+ m;if((n=k[0][m])&&$jscomp.owns(k[0],m))for(k=0;k<n.length;k++){var p=n[k];if(l!==l&&p.key!==p.key||l===p.key)return{id:m,list:n,index:k,entry:p}}return{id:m,list:n,index:-1,entry:void 0}},f=function(k,l){var m=k[1];return $jscomp.iteratorPrototype(function(){if(m){for(;m.head!=k[1];)m=m.previous;for(;m.next!=m.head;)return m=m.next,{done:!1,value:l(m)};m=null}return{done:!0,value:void 0}})},g=function(){var k={};return k.previous=k.next=k.head=k},h=0;return d},"es6","es3"); $jscomp.polyfill("Set",function(a){function b(){if($jscomp.ASSUME_NO_NATIVE_SET||!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var d=Object.seal({x:4}),e=new a($jscomp.makeIterator([d]));if(!e.has(d)||e.size!=1||e.add(d)!=e||e.size!=1||e.add({x:4})!=e||e.size!=2)return!1;var f=e.entries(),g=f.next();if(g.done||g.value[0]!=d||g.value[1]!=d)return!1;g=f.next();return g.done||g.value[0]==d||g.value[0].x!=4||g.value[1]!=g.value[0]?!1:f.next().done}catch(h){return!1}} if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(b())return a;var c=function(d){this.map_=new Map;if(d){d=$jscomp.makeIterator(d);for(var e;!(e=d.next()).done;)e=e.value,this.add(e)}this.size=this.map_.size};c.prototype.add=function(d){d=d===0?0:d;this.map_.set(d,d);this.size=this.map_.size;return this};c.prototype.delete=function(d){d=this.map_.delete(d);this.size=this.map_.size;return d};c.prototype.clear=function(){this.map_.clear();this.size=0};c.prototype.has= function(d){return this.map_.has(d)};c.prototype.entries=function(){return this.map_.entries()};c.prototype.values=function(){return this.map_.values()};c.prototype.keys=c.prototype.values;c.prototype[Symbol.iterator]=c.prototype.values;c.prototype.forEach=function(d,e){var f=this;this.map_.forEach(function(g){return d.call(e,g,g,f)})};return c},"es6","es3");$jscomp.polyfill("globalThis",function(a){return a||$jscomp.global},"es_2020","es3"); $jscomp.iteratorFromArray=function(a,b){if($jscomp.ASSUME_ES6)return a[Symbol.iterator]();a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e};$jscomp.polyfill("Array.prototype.entries",function(a){return a?a:a=function(){return $jscomp.iteratorFromArray(this,function(b,c){return[b,c]})}},"es6","es3"); $jscomp.polyfill("Array.prototype.keys",function(a){return a?a:a=function(){return $jscomp.iteratorFromArray(this,function(b){return b})}},"es6","es3");$jscomp.checkStringArgs=function(a,b,c){if(a==null)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}; $jscomp.polyfill("String.prototype.startsWith",function(a){return a?a:a=function(b,c){var d=$jscomp.checkStringArgs(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}},"es6","es3"); $jscomp.polyfill("String.prototype.endsWith",function(a){return a?a:a=function(b,c){var d=$jscomp.checkStringArgs(this,b,"endsWith");b+="";c===void 0&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;e>0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}},"es6","es3");$jscomp.polyfill("Number.isFinite",function(a){return a?a:a=function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}},"es6","es3"); $jscomp.polyfill("String.prototype.repeat",function(a){return a?a:a=function(b){var c=$jscomp.checkStringArgs(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}},"es6","es3");$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{i:e,v:f}}return{i:-1,v:void 0}}; $jscomp.polyfill("Array.prototype.find",function(a){return a?a:a=function(b,c){return $jscomp.findInternal(this,b,c).v}},"es6","es3");$jscomp.polyfill("String.prototype.codePointAt",function(a){return a?a:a=function(b){var c=$jscomp.checkStringArgs(this,null,"codePointAt"),d=c.length;b=Number(b)||0;if(b>=0&&b<d){b|=0;var e=c.charCodeAt(b);if(e<55296||e>56319||b+1===d)return e;b=c.charCodeAt(b+1);return b<56320||b>57343?e:(e-55296)*1024+b+9216}}},"es6","es3"); $jscomp.polyfill("String.fromCodePoint",function(a){return a?a:a=function(b){for(var c="",d=0;d<arguments.length;d++){var e=Number(arguments[d]);if(e<0||e>1114111||e!==Math.floor(e))throw new RangeError("invalid_code_point "+e);e<=65535?c+=String.fromCharCode(e):(e-=65536,c+=String.fromCharCode(e>>>10&1023|55296),c+=String.fromCharCode(e&1023|56320))}return c}},"es6","es3"); $jscomp.polyfill("Object.entries",function(a){return a?a:a=function(b){var c=[],d;for(d in b)$jscomp.owns(b,d)&&c.push([d,b[d]]);return c}},"es8","es3");$jscomp.polyfill("String.prototype.trimLeft",function(a){function b(){return this.replace(/^[\s\xa0]+/,"")}return a||b},"es_2019","es3");$jscomp.polyfill("Array.prototype.values",function(a){return a?a:a=function(){return $jscomp.iteratorFromArray(this,function(b,c){return c})}},"es8","es3"); $jscomp.polyfill("Array.from",function(a){return a?a:a=function(b,c,d){c=c!=null?c:function(h){return h};var e=[],f=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(typeof f=="function"){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}},"es6","es3"); $jscomp.polyfill("Math.hypot",function(a){return a?a:a=function(b){if(arguments.length<2)return arguments.length?Math.abs(arguments[0]):0;var c,d,e;for(c=e=0;c<arguments.length;c++)e=Math.max(e,Math.abs(arguments[c]));if(e>1E100||e<1E-100){if(!e)return e;for(c=d=0;c<arguments.length;c++){var f=Number(arguments[c])/e;d+=f*f}return Math.sqrt(d)*e}for(c=d=0;c<arguments.length;c++)f=Number(arguments[c]),d+=f*f;return Math.sqrt(d)}},"es6","es3"); $jscomp.polyfill("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991},"es6","es3");$jscomp.polyfill("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991},"es6","es3");$jscomp.polyfill("Number.isInteger",function(a){return a?a:a=function(b){return Number.isFinite(b)?b===Math.floor(b):!1}},"es6","es3");$jscomp.polyfill("Number.isSafeInteger",function(a){return a?a:a=function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}},"es6","es3"); $jscomp.polyfill("Object.is",function(a){return a?a:a=function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}},"es6","es3");$jscomp.polyfill("Array.prototype.includes",function(a){return a?a:a=function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(c<0&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}},"es7","es3"); $jscomp.polyfill("String.prototype.includes",function(a){return a?a:a=function(b,c){var d=$jscomp.checkStringArgs(this,b,"includes");return d.indexOf(b,c||0)!==-1}},"es6","es3");$jscomp.polyfill("Math.imul",function(a){return a?a:a=function(b,c){b=Number(b);c=Number(c);var d=b>>>16&65535;b&=65535;var e=c>>>16&65535;c&=65535;d=d*c+b*e<<16>>>0;return b*c+d|0}},"es6","es3"); $jscomp.polyfill("Math.trunc",function(a){return a?a:a=function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0)return b;var c=Math.floor(Math.abs(b));return b<0?-c:c}},"es6","es3");$jscomp.polyfill("Math.log2",function(a){return a?a:a=function(b){return Math.log(b)/Math.LN2}},"es6","es3");$jscomp.polyfill("Object.values",function(a){return a?a:a=function(b){var c=[],d;for(d in b)$jscomp.owns(b,d)&&c.push(b[d]);return c}},"es8","es3"); $jscomp.polyfill("Math.clz32",function(a){return a?a:a=function(b){b=Number(b)>>>0;if(b===0)return 32;var c=0;(b&4294901760)===0&&(b<<=16,c+=16);(b&4278190080)===0&&(b<<=8,c+=8);(b&4026531840)===0&&(b<<=4,c+=4);(b&3221225472)===0&&(b<<=2,c+=2);(b&2147483648)===0&&c++;return c}},"es6","es3");$jscomp.polyfill("Math.log10",function(a){return a?a:a=function(b){return Math.log(b)/Math.LN10}},"es6","es3"); $jscomp.polyfill("Number.isNaN",function(a){return a?a:a=function(b){return typeof b==="number"&&isNaN(b)}},"es6","es3"); $jscomp.polyfill("String.prototype.replaceAll",function(a){return a?a:a=function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c)}},"es_2021","es3"); $jscomp.polyfill("Array.prototype.fill",function(a){return a?a:a=function(b,c,d){var e=this.length||0;c<0&&(c=Math.max(0,e+c));if(d==null||d>e)d=e;d=Number(d);d<0&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}},"es6","es3");$jscomp.typedArrayFill=function(a){return a?a:Array.prototype.fill};$jscomp.polyfill("Int8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5"); $jscomp.polyfill("Uint8ClampedArray.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Float32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5"); $jscomp.polyfill("Float64Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.atMethod=function(a){var b=this;a=Math.trunc(a)||0;a<0&&(a+=b.length);if(!(a<0||a>=b.length))return b[a]};$jscomp.polyfill("Array.prototype.at",function(a){return a?a:$jscomp.atMethod},"es_next","es5");$jscomp.typedArrayAt=function(a){return a?a:$jscomp.atMethod};$jscomp.polyfill("Int8Array.prototype.at",$jscomp.typedArrayAt,"es_next","es5"); $jscomp.polyfill("Uint8Array.prototype.at",$jscomp.typedArrayAt,"es_next","es5");$jscomp.polyfill("Uint8ClampedArray.prototype.at",$jscomp.typedArrayAt,"es_next","es5");$jscomp.polyfill("Int16Array.prototype.at",$jscomp.typedArrayAt,"es_next","es5");$jscomp.polyfill("Uint16Array.prototype.at",$jscomp.typedArrayAt,"es_next","es5");$jscomp.polyfill("Int32Array.prototype.at",$jscomp.typedArrayAt,"es_next","es5");$jscomp.polyfill("Uint32Array.prototype.at",$jscomp.typedArrayAt,"es_next","es5"); $jscomp.polyfill("Float32Array.prototype.at",$jscomp.typedArrayAt,"es_next","es5");$jscomp.polyfill("Float64Array.prototype.at",$jscomp.typedArrayAt,"es_next","es5");$jscomp.polyfill("String.prototype.at",function(a){return a?a:$jscomp.atMethod},"es_next","es5");$jscomp.polyfill("Math.sign",function(a){return a?a:a=function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1}},"es6","es3"); $jscomp.polyfill("String.prototype.trimRight",function(a){function b(){return this.replace(/[\s\xa0]+$/,"")}return a||b},"es_2019","es3");$jscomp.stringPadding=function(a,b){a=a!==void 0?String(a):" ";if(!(b>0&&a))return"";var c=Math.ceil(b/a.length);return a.repeat(c).substring(0,b)};$jscomp.polyfill("String.prototype.padStart",function(a){return a?a:a=function(b,c){var d=$jscomp.checkStringArgs(this,null,"padStart");b-=d.length;return $jscomp.stringPadding(c,b)+d}},"es8","es3");var atlantis={};var CLOSURE_TOGGLE_ORDINALS={GoogFlags__async_throw_on_unicode_to_byte__enable:!1,GoogFlags__client_only_wiz_distinct_contexts_for_control_flow_branches__disable:!1,GoogFlags__jspb_ignore_implicit_extension_deps__disable:!1,GoogFlags__jspb_readonly_repeated_fields__disable:!1,GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__disable:!1,GoogFlags__override_disable_toggles:!1,GoogFlags__testonly_debug_flag__enable:!1,GoogFlags__testonly_disabled_flag__enable:!1,GoogFlags__testonly_stable_flag__disable:!1, GoogFlags__testonly_staging_flag__disable:!1,GoogFlags__use_toggles:!1,GoogFlags__use_user_agent_client_hints__enable:!1,GoogFlags__wiz_enable_native_promise__enable:!1};/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var goog=goog||{};goog.global=this||self;goog.exportPath_=function(a,b,c,d){a=a.split(".");d=d||goog.global;a[0]in d||typeof d.execScript=="undefined"||d.execScript("var "+a[0]);for(var e;a.length&&(e=a.shift());)if(a.length||b===void 0)d=d[e]&&d[e]!==Object.prototype[e]?d[e]:d[e]={};else if(!c&&goog.isObject(b)&&goog.isObject(d[e]))for(var f in b)b.hasOwnProperty(f)&&(d[e][f]=b[f]);else d[e]=b};goog.CLOSURE_DEFINES=typeof CLOSURE_DEFINES!=="undefined"?CLOSURE_DEFINES:goog.global.CLOSURE_DEFINES; goog.CLOSURE_UNCOMPILED_DEFINES=typeof CLOSURE_UNCOMPILED_DEFINES!=="undefined"?CLOSURE_UNCOMPILED_DEFINES:goog.global.CLOSURE_UNCOMPILED_DEFINES;goog.define=function(a,b){return a=b};goog.FEATURESET_YEAR=2012;goog.DEBUG=!0;goog.LOCALE="en";goog.TRUSTED_SITE=!0;goog.DISALLOW_TEST_ONLY_CODE=!goog.DEBUG;goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1;goog.readFlagInternalDoNotUseOrElse=function(a,b){var c=goog.getObjectByName(goog.FLAGS_OBJECT_);a=c&&c[a];return a!=null?a:b};goog.FLAGS_OBJECT_="CLOSURE_FLAGS"; goog.FLAGS_STAGING_DEFAULT=!0;goog.CLOSURE_TOGGLE_ORDINALS=typeof CLOSURE_TOGGLE_ORDINALS==="object"?CLOSURE_TOGGLE_ORDINALS:goog.global.CLOSURE_TOGGLE_ORDINALS;goog.readToggleInternalDoNotCallDirectly=function(a){var b=goog.CLOSURE_TOGGLE_ORDINALS;a=b&&b[a];return typeof a!=="number"?!!a:!!(goog.TOGGLES_[Math.floor(a/30)]&1<<a%30)};goog.TOGGLE_VAR_="_F_toggles";goog.TOGGLES_=goog.global[goog.TOGGLE_VAR_]||[];goog.LEGACY_NAMESPACE_OBJECT_=goog.global; goog.provide=function(a){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");goog.constructNamespace_(a)};goog.constructNamespace_=function(a,b,c){goog.exportPath_(a,b,c,goog.LEGACY_NAMESPACE_OBJECT_)};goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/;goog.getScriptNonce_=function(a){a=(a||goog.global).document;return(a=a.querySelector&&a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(a)?a:""};goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/; goog.module=function(a){if(typeof a!=="string"||!a||a.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+a+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide."); if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");goog.moduleLoaderState_.moduleName=a};goog.module.get=function(){return null};goog.module.getInternal_=function(){return null};goog.requireDynamic=function(){return null};goog.importHandler_=null;goog.uncompiledChunkIdHandler_=null;goog.setImportHandlerInternalDoNotCallOrElse=function(a){goog.importHandler_=a}; goog.setUncompiledChunkIdHandlerInternalDoNotCallOrElse=function(a){goog.uncompiledChunkIdHandler_=a};goog.maybeRequireFrameworkInternalOnlyDoNotCallOrElse=function(){};goog.ModuleType={ES6:"es6",GOOG:"goog"};goog.moduleLoaderState_=null;goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()};goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG}; goog.isInEs6ModuleLoader_=function(){var a=!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6;return a?!0:(a=goog.LEGACY_NAMESPACE_OBJECT_.$jscomp)?typeof a.getCurrentModulePath!="function"?!1:!!a.getCurrentModulePath():!1};goog.module.declareLegacyNamespace=function(){goog.moduleLoaderState_.declareLegacyNamespace=!0}; goog.declareModuleId=function(a){if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=a;else{var b=goog.LEGACY_NAMESPACE_OBJECT_.$jscomp;if(!b||typeof b.getCurrentModulePath!="function")throw Error('Module with namespace "'+a+'" has been loaded incorrectly.');b=b.require(b.getCurrentModulePath());goog.loadedModules_[a]={exports:b,type:goog.ModuleType.ES6,moduleId:a}}}; goog.setTestOnly=function(a){if(goog.DISALLOW_TEST_ONLY_CODE)throw a=a||"",Error("Importing test-only code into non-debug environment"+(a?": "+a:"."));};goog.forwardDeclare=function(){};goog.getObjectByName=function(a,b){a=a.split(".");b=b||goog.global;for(var c=0;c<a.length;c++)if(b=b[a[c]],b==null)return null;return b};goog.addDependency=function(){};goog.ENABLE_DEBUG_LOADER=!1;goog.logToConsole_=function(a){goog.global.console&&goog.global.console.error(a)};goog.require=function(){}; goog.requireType=function(){return{}};goog.basePath="";goog.abstractMethod=function(){throw Error("unimplemented abstract method");};goog.addSingletonGetter=function(a){a.instance_=void 0;a.getInstance=function(){if(a.instance_)return a.instance_;goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=a);return a.instance_=new a}};goog.instantiatedSingletons_=[];goog.LOAD_MODULE_USING_EVAL=!0;goog.SEAL_MODULE_EXPORTS=goog.DEBUG;goog.loadedModules_={}; goog.DEPENDENCIES_ENABLED=!1;goog.ASSUME_ES_MODULES_TRANSPILED=!1;goog.TRUSTED_TYPES_POLICY_NAME="goog";goog.hasBadLetScoping=null; goog.loadModule=function(a){var b=goog.moduleLoaderState_;try{goog.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:goog.ModuleType.GOOG};var c={},d=c;if(typeof a==="function")d=a.call(void 0,d);else if(typeof a==="string")d=goog.loadModuleFromSource_.call(void 0,d,a);else throw Error("Invalid module definition");var e=goog.moduleLoaderState_.moduleName;if(typeof e==="string"&&e){goog.moduleLoaderState_.declareLegacyNamespace?(a=c!==d,goog.constructNamespace_(e,d,a)):goog.SEAL_MODULE_EXPORTS&& Object.seal&&typeof d=="object"&&d!=null&&Object.seal(d);var f={exports:d,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName};goog.loadedModules_[e]=f}else throw Error('Invalid module name "'+e+'"');}finally{goog.moduleLoaderState_=b}};goog.loadModuleFromSource_=function(a){eval(goog.CLOSURE_EVAL_PREFILTER_.createScript(arguments[1]));return a}; goog.normalizePath_=function(a){a=a.split("/");for(var b=0;b<a.length;)a[b]=="."?a.splice(b,1):b&&a[b]==".."&&a[b-1]&&a[b-1]!=".."?a.splice(--b,2):b++;return a.join("/")};goog.loadFileSync_=function(a){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(a);try{var b=new goog.global.XMLHttpRequest;b.open("get",a,!1);b.send();return b.status==0||b.status==200?b.responseText:null}catch(c){return null}}; goog.typeOf=function(a){var b=typeof a;return b!="object"?b:a?Array.isArray(a)?"array":b:"null"};goog.isArrayLike=function(a){var b=goog.typeOf(a);return b=="array"||b=="object"&&typeof a.length=="number"};goog.isDateLike=function(a){return goog.isObject(a)&&typeof a.getFullYear=="function"};goog.isObject=function(a){var b=typeof a;return b=="object"&&a!=null||b=="function"}; goog.getUid=function(a){return Object.prototype.hasOwnProperty.call(a,goog.UID_PROPERTY_)&&a[goog.UID_PROPERTY_]||(a[goog.UID_PROPERTY_]=++goog.uidCounter_)};goog.hasUid=function(a){return!!a[goog.UID_PROPERTY_]};goog.removeUid=function(a){a!==null&&"removeAttribute"in a&&a.removeAttribute(goog.UID_PROPERTY_);try{delete a[goog.UID_PROPERTY_]}catch(b){}};goog.UID_PROPERTY_="closure_uid_"+(Math.random()*1E9>>>0);goog.uidCounter_=0; goog.cloneObject=function(a){var b=goog.typeOf(a);if(b=="object"||b=="array"){if(typeof a.clone==="function")return a.clone();if(typeof Map!=="undefined"&&a instanceof Map)return new Map(a);if(typeof Set!=="undefined"&&a instanceof Set)return new Set(a);b=b=="array"?[]:{};for(var c in a)b[c]=goog.cloneObject(a[c]);return b}return a};goog.bindNative_=function(a,b,c){return a.call.apply(a.bind,arguments)}; goog.bindJs_=function(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}; goog.bind=function(a,b,c){goog.TRUSTED_SITE&&goog.FEATURESET_YEAR>2012||Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_;return goog.bind.apply(null,arguments)};goog.partial=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}};goog.now=function(){return Date.now()};goog.globalEval=function(a){(0,eval)(a)}; goog.getCssName=function(a,b){if(String(a).charAt(0)==".")throw Error('className passed in goog.getCssName must not start with ".". You passed: '+a);var c=function(e){return goog.cssNameMapping_[e]||e},d=function(e){e=e.split("-");for(var f=[],g=0;g<e.length;g++)f.push(c(e[g]));return f.join("-")};d=goog.cssNameMapping_?goog.cssNameMappingStyle_=="BY_WHOLE"?c:d:function(e){return e};a=b?a+"-"+d(b):d(a);return goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(a):a}; goog.setCssNameMapping=function(a,b){goog.cssNameMapping_=a;goog.cssNameMappingStyle_=b};goog.GetMsgOptions=function(){};goog.getMsg=function(a,b,c){c&&c.html&&(a=a.replace(/</g,"<"));c&&c.unescapeHtmlEntities&&(a=a.replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,'"').replace(/&/g,"&"));b&&(a=a.replace(/\{\$([^}]+)}/g,function(d,e){return b!=null&&e in b?b[e]:d}));return a};goog.getMsgWithFallback=function(a){return a}; goog.exportSymbol=function(a,b,c){goog.exportPath_(a,b,!0,c)};goog.exportProperty=function(a,b,c){a[b]=c};goog.weakUsage=function(a){return a};goog.inherits=function(a,b){function c(){}c.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[e].apply(d,g)}}; goog.scope=function(a){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");a.call(goog.global)}; goog.defineClass=function(a,b){var c=b.constructor,d=b.statics;c&&c!=Object.prototype.constructor||(c=function(){throw Error("cannot instantiate an interface (no constructor defined).");});c=goog.defineClass.createSealingConstructor_(c,a);a&&goog.inherits(c,a);delete b.constructor;delete b.statics;goog.defineClass.applyProperties_(c.prototype,b);d!=null&&(d instanceof Function?d(c):goog.defineClass.applyProperties_(c,d));return c};goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG; goog.defineClass.createSealingConstructor_=function(a){if(!goog.defineClass.SEAL_CLASS_INSTANCES)return a;var b=function(){var c=a.apply(this,arguments)||this;c[goog.UID_PROPERTY_]=c[goog.UID_PROPERTY_];return c};return b};goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "); goog.defineClass.applyProperties_=function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c]);for(var d=0;d<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;d++)c=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[d],Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};goog.identity_=function(a){return a}; goog.createTrustedTypesPolicy=function(a){var b=null,c=goog.global.trustedTypes;if(!c||!c.createPolicy)return b;try{b=c.createPolicy(a,{createHTML:goog.identity_,createScript:goog.identity_,createScriptURL:goog.identity_})}catch(d){goog.logToConsole_(d.message)}return b};goog.CodeLocation={};goog.callerLocation=function(){return""};goog.callerLocationIdInternalDoNotCallOrElse=function(a){return a};var module$exports$google3$javascript$common$asserts$enable_goog_asserts={};module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS=goog.DEBUG;var module$exports$google3$javascript$common$async$context$propagate={};module$exports$google3$javascript$common$async$context$propagate.propagateAsyncContext=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(a){return a&&AsyncContext.Snapshot.wrap(a)}:function(a){return a};function module$contents$google3$javascript$typescript$contrib$check_checkExhaustiveAllowing(a,b){b=b===void 0?"unexpected value "+a+"!":b;throw Error(b);};goog.debug={};function module$contents$goog$debug$Error_DebugError(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,module$contents$goog$debug$Error_DebugError);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)}goog.inherits(module$contents$goog$debug$Error_DebugError,Error);module$contents$goog$debug$Error_DebugError.prototype.name="CustomError";goog.debug.Error=module$contents$goog$debug$Error_DebugError;goog.dom={};goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};goog.asserts={};goog.asserts.ENABLE_ASSERTS=module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS;function module$contents$goog$asserts_AssertionError(a,b){var c=module$contents$goog$debug$Error_DebugError,d=c.call;a=a.split("%s");for(var e="",f=a.length-1,g=0;g<f;g++){var h=g<b.length?b[g]:"%s";e+=a[g]+h}b=e+a[f];d.call(c,this,b)}goog.inherits(module$contents$goog$asserts_AssertionError,module$contents$goog$debug$Error_DebugError);goog.asserts.AssertionError=module$contents$goog$asserts_AssertionError; module$contents$goog$asserts_AssertionError.prototype.name="AssertionError";goog.asserts.DEFAULT_ERROR_HANDLER=function(a){throw a;};var module$contents$goog$asserts_errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER;function module$contents$goog$asserts_doAssertFailure(a,b,c,d){var e="Assertion failed";if(c){e+=": "+c;var f=d}else a&&(e+=": "+a,f=b);a=new module$contents$goog$asserts_AssertionError(""+e,f||[]);module$contents$goog$asserts_errorHandler_(a)} goog.asserts.setErrorHandler=function(a){module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&(module$contents$goog$asserts_errorHandler_=a)};goog.asserts.assert=function(a,b,c){module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&!a&&module$contents$goog$asserts_doAssertFailure("",null,b,Array.prototype.slice.call(arguments,2));return a}; goog.asserts.assertExists=function(a,b,c){module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&a==null&&module$contents$goog$asserts_doAssertFailure("Expected to exist: %s.",[a],b,Array.prototype.slice.call(arguments,2));return a}; goog.asserts.fail=function(a,b){module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&module$contents$goog$asserts_errorHandler_(new module$contents$goog$asserts_AssertionError("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))}; goog.asserts.assertNumber=function(a,b,c){module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&typeof a!=="number"&&module$contents$goog$asserts_doAssertFailure("Expected number but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a}; goog.asserts.assertString=function(a,b,c){module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&typeof a!=="string"&&module$contents$goog$asserts_doAssertFailure("Expected string but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a}; goog.asserts.assertFunction=function(a,b,c){module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&typeof a!=="function"&&module$contents$goog$asserts_doAssertFailure("Expected function but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a}; goog.asserts.assertObject=function(a,b,c){module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&!goog.isObject(a)&&module$contents$goog$asserts_doAssertFailure("Expected object but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a}; goog.asserts.assertArray=function(a,b,c){module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&!Array.isArray(a)&&module$contents$goog$asserts_doAssertFailure("Expected array but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a}; goog.asserts.assertBoolean=function(a,b,c){module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&typeof a!=="boolean"&&module$contents$goog$asserts_doAssertFailure("Expected boolean but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a}; goog.asserts.assertElement=function(a,b,c){!module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS||goog.isObject(a)&&a.nodeType==goog.dom.NodeType.ELEMENT||module$contents$goog$asserts_doAssertFailure("Expected Element but got %s: %s.",[goog.typeOf(a),a],b,Array.prototype.slice.call(arguments,2));return a}; goog.asserts.assertInstanceof=function(a,b,c,d){!module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS||a instanceof b||module$contents$goog$asserts_doAssertFailure("Expected instanceof %s but got %s.",[module$contents$goog$asserts_getType(b),module$contents$goog$asserts_getType(a)],c,Array.prototype.slice.call(arguments,3));return a}; goog.asserts.assertFinite=function(a,b,c){!module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS||typeof a=="number"&&isFinite(a)||module$contents$goog$asserts_doAssertFailure("Expected %s to be a finite number but it is not.",[a],b,Array.prototype.slice.call(arguments,2));return a}; function module$contents$goog$asserts_getType(a){return a instanceof Function?a.displayName||a.name||"unknown type name":a instanceof Object?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):a===null?"null":typeof a};goog.array={};goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE;var module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS=goog.FEATURESET_YEAR>2012;goog.array.ASSUME_NATIVE_FUNCTIONS=module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS;function module$contents$goog$array_peek(a){return a[a.length-1]}goog.array.peek=module$contents$goog$array_peek;goog.array.last=module$contents$goog$array_peek; var module$contents$goog$array_indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(a,b,c){goog.asserts.assert(a.length!=null);return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=c==null?0:c<0?Math.max(0,a.length+c):c;if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.indexOf(b,c);for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};goog.array.indexOf=module$contents$goog$array_indexOf; var module$contents$goog$array_lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(a,b,c){goog.asserts.assert(a.length!=null);c=c==null?a.length-1:c;return Array.prototype.lastIndexOf.call(a,b,c)}:function(a,b,c){c=c==null?a.length-1:c;c<0&&(c=Math.max(0,a.length+c));if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.lastIndexOf(b,c);for(;c>=0;c--)if(c in a&&a[c]===b)return c;return-1}; goog.array.lastIndexOf=module$contents$goog$array_lastIndexOf;var module$contents$goog$array_forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(a,b,c){goog.asserts.assert(a.length!=null);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};goog.array.forEach=module$contents$goog$array_forEach; function module$contents$goog$array_forEachRight(a,b,c){var d=a.length,e=typeof a==="string"?a.split(""):a;for(--d;d>=0;--d)d in e&&b.call(c,e[d],d,a)}goog.array.forEachRight=module$contents$goog$array_forEachRight; var module$contents$goog$array_filter=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(a,b,c){goog.asserts.assert(a.length!=null);return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=typeof a==="string"?a.split(""):a,h=0;h<d;h++)if(h in g){var k=g[h];b.call(c,k,h,a)&&(e[f++]=k)}return e};goog.array.filter=module$contents$goog$array_filter; var module$contents$goog$array_map=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(a,b,c){goog.asserts.assert(a.length!=null);return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=typeof a==="string"?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e};goog.array.map=module$contents$goog$array_map; var module$contents$goog$array_reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(a,b,c,d){goog.asserts.assert(a.length!=null);d&&(b=goog.TRUSTED_SITE?b.bind(d):goog.bind(b,d));return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;module$contents$goog$array_forEach(a,function(f,g){e=b.call(d,e,f,g,a)});return e};goog.array.reduce=module$contents$goog$array_reduce; var module$contents$goog$array_reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(a,b,c,d){goog.asserts.assert(a.length!=null);goog.asserts.assert(b!=null);d&&(b=goog.TRUSTED_SITE?b.bind(d):goog.bind(b,d));return Array.prototype.reduceRight.call(a,b,c)}:function(a,b,c,d){var e=c;module$contents$goog$array_forEachRight(a,function(f,g){e=b.call(d,e,f,g,a)});return e};goog.array.reduceRight=module$contents$goog$array_reduceRight; var module$contents$goog$array_some=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(a,b,c){goog.asserts.assert(a.length!=null);return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1};goog.array.some=module$contents$goog$array_some; var module$contents$goog$array_every=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(a,b,c){goog.asserts.assert(a.length!=null);return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0};goog.array.every=module$contents$goog$array_every; function module$contents$goog$array_count(a,b,c){var d=0;module$contents$goog$array_forEach(a,function(e,f,g){b.call(c,e,f,g)&&++d},c);return d}goog.array.count=module$contents$goog$array_count;function module$contents$goog$array_find(a,b,c){b=module$contents$goog$array_findIndex(a,b,c);return b<0?null:typeof a==="string"?a.charAt(b):a[b]}goog.array.find=module$contents$goog$array_find; function module$contents$goog$array_findIndex(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1}goog.array.findIndex=module$contents$goog$array_findIndex;function module$contents$goog$array_findRight(a,b,c){b=module$contents$goog$array_findIndexRight(a,b,c);return b<0?null:typeof a==="string"?a.charAt(b):a[b]}goog.array.findRight=module$contents$goog$array_findRight; function module$contents$goog$array_findIndexRight(a,b,c){var d=a.length,e=typeof a==="string"?a.split(""):a;for(--d;d>=0;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1}goog.array.findIndexRight=module$contents$goog$array_findIndexRight;function module$contents$goog$array_contains(a,b){return module$contents$goog$array_indexOf(a,b)>=0}goog.array.contains=module$contents$goog$array_contains;function module$contents$goog$array_isEmpty(a){return a.length==0}goog.array.isEmpty=module$contents$goog$array_isEmpty; function module$contents$goog$array_clear(a){if(!Array.isArray(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0}goog.array.clear=module$contents$goog$array_clear;function module$contents$goog$array_insert(a,b){module$contents$goog$array_contains(a,b)||a.push(b)}goog.array.insert=module$contents$goog$array_insert;function module$contents$goog$array_insertAt(a,b,c){module$contents$goog$array_splice(a,c,0,b)}goog.array.insertAt=module$contents$goog$array_insertAt; function module$contents$goog$array_insertArrayAt(a,b,c){goog.partial(module$contents$goog$array_splice,a,c,0).apply(null,b)}goog.array.insertArrayAt=module$contents$goog$array_insertArrayAt;function module$contents$goog$array_insertBefore(a,b,c){var d;arguments.length==2||(d=module$contents$goog$array_indexOf(a,c))<0?a.push(b):module$contents$goog$array_insertAt(a,b,d)}goog.array.insertBefore=module$contents$goog$array_insertBefore; function module$contents$goog$array_remove(a,b){b=module$contents$goog$array_indexOf(a,b);var c;(c=b>=0)&&module$contents$goog$array_removeAt(a,b);return c}goog.array.remove=module$contents$goog$array_remove;function module$contents$goog$array_removeLast(a,b){b=module$contents$goog$array_lastIndexOf(a,b);return b>=0?(module$contents$goog$array_removeAt(a,b),!0):!1}goog.array.removeLast=module$contents$goog$array_removeLast; function module$contents$goog$array_removeAt(a,b){goog.asserts.assert(a.length!=null);return Array.prototype.splice.call(a,b,1).length==1}goog.array.removeAt=module$contents$goog$array_removeAt;function module$contents$goog$array_removeIf(a,b,c){b=module$contents$goog$array_findIndex(a,b,c);return b>=0?(module$contents$goog$array_removeAt(a,b),!0):!1}goog.array.removeIf=module$contents$goog$array_removeIf; function module$contents$goog$array_removeAllIf(a,b,c){var d=0;module$contents$goog$array_forEachRight(a,function(e,f){b.call(c,e,f,a)&&module$contents$goog$array_removeAt(a,f)&&d++});return d}goog.array.removeAllIf=module$contents$goog$array_removeAllIf;function module$contents$goog$array_concat(a){return Array.prototype.concat.apply([],arguments)}goog.array.concat=module$contents$goog$array_concat;function module$contents$goog$array_join(a){return Array.prototype.concat.apply([],arguments)} goog.array.join=module$contents$goog$array_join;function module$contents$goog$array_toArray(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}goog.array.toArray=module$contents$goog$array_toArray;goog.array.clone=module$contents$goog$array_toArray; function module$contents$goog$array_extend(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(goog.isArrayLike(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}}goog.array.extend=module$contents$goog$array_extend;function module$contents$goog$array_splice(a,b,c,d){goog.asserts.assert(a.length!=null);return Array.prototype.splice.apply(a,module$contents$goog$array_slice(arguments,1))}goog.array.splice=module$contents$goog$array_splice; function module$contents$goog$array_slice(a,b,c){goog.asserts.assert(a.length!=null);return arguments.length<=2?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}goog.array.slice=module$contents$goog$array_slice; function module$contents$goog$array_removeDuplicates(a,b,c){b=b||a;if(goog.FEATURESET_YEAR>=2018){var d=function(k){return k};c=c||d;for(var e=d=0,f=new Set;e<a.length;){var g=a[e++],h=c(g);f.has(h)||(f.add(h),b[d++]=g)}b.length=d}else{d=function(k){return goog.isObject(k)?"o"+goog.getUid(k):(typeof k).charAt(0)+k};c=c||d;e=d=0;for(f={};e<a.length;)g=a[e++],h=c(g),Object.prototype.hasOwnProperty.call(f,h)||(f[h]=!0,b[d++]=g);b.length=d}}goog.array.removeDuplicates=module$contents$goog$array_removeDuplicates; function module$contents$goog$array_binarySearch(a,b,c){return module$contents$goog$array_binarySearch_(a,c||module$contents$goog$array_defaultCompare,!1,b)}goog.array.binarySearch=module$contents$goog$array_binarySearch;function module$contents$goog$array_binarySelect(a,b,c){return module$contents$goog$array_binarySearch_(a,b,!0,void 0,c)}goog.array.binarySelect=module$contents$goog$array_binarySelect; function module$contents$goog$array_binarySearch_(a,b,c,d,e){for(var f=0,g=a.length,h;f<g;){var k=f+(g-f>>>1);var l=c?b.call(e,a[k],k,a):b(d,a[k]);l>0?f=k+1:(g=k,h=!l)}return h?f:-f-1}function module$contents$goog$array_sort(a,b){a.sort(b||module$contents$goog$array_defaultCompare)}goog.array.sort=module$contents$goog$array_sort; function module$contents$goog$array_stableSort(a,b){function c(g,h){return f(g.value,h.value)||g.index-h.index}for(var d=Array(a.length),e=0;e<a.length;e++)d[e]={index:e,value:a[e]};var f=b||module$contents$goog$array_defaultCompare;module$contents$goog$array_sort(d,c);for(b=0;b<a.length;b++)a[b]=d[b].value}goog.array.stableSort=module$contents$goog$array_stableSort; function module$contents$goog$array_sortByKey(a,b,c){var d=c||module$contents$goog$array_defaultCompare;module$contents$goog$array_sort(a,function(e,f){return d(b(e),b(f))})}goog.array.sortByKey=module$contents$goog$array_sortByKey;function module$contents$goog$array_sortObjectsByKey(a,b,c){module$contents$goog$array_sortByKey(a,function(d){return d[b]},c)}goog.array.sortObjectsByKey=module$contents$goog$array_sortObjectsByKey; function module$contents$goog$array_isSorted(a,b,c){b=b||module$contents$goog$array_defaultCompare;for(var d=1;d<a.length;d++){var e=b(a[d-1],a[d]);if(e>0||e==0&&c)return!1}return!0}goog.array.isSorted=module$contents$goog$array_isSorted;function module$contents$goog$array_equals(a,b,c){if(!goog.isArrayLike(a)||!goog.isArrayLike(b)||a.length!=b.length)return!1;var d=a.length;c=c||module$contents$goog$array_defaultCompareEquality;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0} goog.array.equals=module$contents$goog$array_equals;function module$contents$goog$array_compare3(a,b,c){c=c||module$contents$goog$array_defaultCompare;for(var d=Math.min(a.length,b.length),e=0;e<d;e++){var f=c(a[e],b[e]);if(f!=0)return f}return module$contents$goog$array_defaultCompare(a.length,b.length)}goog.array.compare3=module$contents$goog$array_compare3;function module$contents$goog$array_defaultCompare(a,b){return a>b?1:a<b?-1:0}goog.array.defaultCompare=module$contents$goog$array_defaultCompare; function module$contents$goog$array_inverseDefaultCompare(a,b){return-module$contents$goog$array_defaultCompare(a,b)}goog.array.inverseDefaultCompare=module$contents$goog$array_inverseDefaultCompare;function module$contents$goog$array_defaultCompareEquality(a,b){return a===b}goog.array.defaultCompareEquality=module$contents$goog$array_defaultCompareEquality; function module$contents$goog$array_binaryInsert(a,b,c){c=module$contents$goog$array_binarySearch(a,b,c);return c<0?(module$contents$goog$array_insertAt(a,b,-(c+1)),!0):!1}goog.array.binaryInsert=module$contents$goog$array_binaryInsert;function module$contents$goog$array_binaryRemove(a,b,c){b=module$contents$goog$array_binarySearch(a,b,c);return b>=0?module$contents$goog$array_removeAt(a,b):!1}goog.array.binaryRemove=module$contents$goog$array_binaryRemove; function module$contents$goog$array_bucket(a,b,c){for(var d={},e=0;e<a.length;e++){var f=a[e],g=b.call(c,f,e,a);g!==void 0&&(g=d[g]||(d[g]=[]),g.push(f))}return d}goog.array.bucket=module$contents$goog$array_bucket;function module$contents$goog$array_bucketToMap(a,b){for(var c=new Map,d=0;d<a.length;d++){var e=a[d],f=b(e,d,a);if(f!==void 0){var g=c.get(f);g||(g=[],c.set(f,g));g.push(e)}}return c}goog.array.bucketToMap=module$contents$goog$array_bucketToMap; function module$contents$goog$array_toObject(a,b,c){var d={};module$contents$goog$array_forEach(a,function(e,f){d[b.call(c,e,f,a)]=e});return d}goog.array.toObject=module$contents$goog$array_toObject;function module$contents$goog$array_toMap(a,b){for(var c=new Map,d=0;d<a.length;d++){var e=a[d];c.set(b(e,d,a),e)}return c}goog.array.toMap=module$contents$goog$array_toMap; function module$contents$goog$array_range(a,b,c){var d=[],e=0,f=a;c=c||1;b!==void 0&&(e=a,f=b);if(c*(f-e)<0)return[];if(c>0)for(a=e;a<f;a+=c)d.push(a);else for(a=e;a>f;a+=c)d.push(a);return d}goog.array.range=module$contents$goog$array_range;function module$contents$goog$array_repeat(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c}goog.array.repeat=module$contents$goog$array_repeat; function module$contents$goog$array_flatten(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(Array.isArray(d))for(var e=0;e<d.length;e+=8192){var f=module$contents$goog$array_slice(d,e,e+8192);f=module$contents$goog$array_flatten.apply(null,f);for(var g=0;g<f.length;g++)b.push(f[g])}else b.push(d)}return b}goog.array.flatten=module$contents$goog$array_flatten; function module$contents$goog$array_rotate(a,b){goog.asserts.assert(a.length!=null);a.length&&(b%=a.length,b>0?Array.prototype.unshift.apply(a,a.splice(-b,b)):b<0&&Array.prototype.push.apply(a,a.splice(0,-b)));return a}goog.array.rotate=module$contents$goog$array_rotate;function module$contents$goog$array_moveItem(a,b,c){goog.asserts.assert(b>=0&&b<a.length);goog.asserts.assert(c>=0&&c<a.length);b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])}goog.array.moveItem=module$contents$goog$array_moveItem; function module$contents$goog$array_zip(a){if(!arguments.length)return[];for(var b=[],c=arguments[0].length,d=1;d<arguments.length;d++)arguments[d].length<c&&(c=arguments[d].length);for(d=0;d<c;d++){for(var e=[],f=0;f<arguments.length;f++)e.push(arguments[f][d]);b.push(e)}return b}goog.array.zip=module$contents$goog$array_zip;function module$contents$goog$array_shuffle(a,b){b=b||Math.random;for(var c=a.length-1;c>0;c--){var d=Math.floor(b()*(c+1)),e=a[c];a[c]=a[d];a[d]=e}}goog.array.shuffle=module$contents$goog$array_shuffle; function module$contents$goog$array_copyByIndex(a,b){var c=[];module$contents$goog$array_forEach(b,function(d){c.push(a[d])});return c}goog.array.copyByIndex=module$contents$goog$array_copyByIndex;function module$contents$goog$array_concatMap(a,b,c){return module$contents$goog$array_concat.apply([],module$contents$goog$array_map(a,b,c))}goog.array.concatMap=module$contents$goog$array_concatMap;goog.dom.HtmlElement=function(){};goog.dom.TagName=function(){};goog.dom.TagName.cast=function(a){return a};goog.dom.TagName.prototype.toString=function(){};goog.dom.TagName.A="A";goog.dom.TagName.ABBR="ABBR";goog.dom.TagName.ACRONYM="ACRONYM";goog.dom.TagName.ADDRESS="ADDRESS";goog.dom.TagName.APPLET="APPLET";goog.dom.TagName.AREA="AREA";goog.dom.TagName.ARTICLE="ARTICLE";goog.dom.TagName.ASIDE="ASIDE";goog.dom.TagName.AUDIO="AUDIO";goog.dom.TagName.B="B";goog.dom.TagName.BASE="BASE";goog.dom.TagName.BASEFONT="BASEFONT"; goog.dom.TagName.BDI="BDI";goog.dom.TagName.BDO="BDO";goog.dom.TagName.BIG="BIG";goog.dom.TagName.BLOCKQUOTE="BLOCKQUOTE";goog.dom.TagName.BODY="BODY";goog.dom.TagName.BR="BR";goog.dom.TagName.BUTTON="BUTTON";goog.dom.TagName.CANVAS="CANVAS";goog.dom.TagName.CAPTION="CAPTION";goog.dom.TagName.CENTER="CENTER";goog.dom.TagName.CITE="CITE";goog.dom.TagName.CODE="CODE";goog.dom.TagName.COL="COL";goog.dom.TagName.COLGROUP="COLGROUP";goog.dom.TagName.COMMAND="COMMAND";goog.dom.TagName.DATA="DATA"; goog.dom.TagName.DATALIST="DATALIST";goog.dom.TagName.DD="DD";goog.dom.TagName.DEL="DEL";goog.dom.TagName.DETAILS="DETAILS";goog.dom.TagName.DFN="DFN";goog.dom.TagName.DIALOG="DIALOG";goog.dom.TagName.DIR="DIR";goog.dom.TagName.DIV="DIV";goog.dom.TagName.DL="DL";goog.dom.TagName.DT="DT";goog.dom.TagName.EM="EM";goog.dom.TagName.EMBED="EMBED";goog.dom.TagName.FIELDSET="FIELDSET";goog.dom.TagName.FIGCAPTION="FIGCAPTION";goog.dom.TagName.FIGURE="FIGURE";goog.dom.TagName.FONT="FONT"; goog.dom.TagName.FOOTER="FOOTER";goog.dom.TagName.FORM="FORM";goog.dom.TagName.FRAME="FRAME";goog.dom.TagName.FRAMESET="FRAMESET";goog.dom.TagName.H1="H1";goog.dom.TagName.H2="H2";goog.dom.TagName.H3="H3";goog.dom.TagName.H4="H4";goog.dom.TagName.H5="H5";goog.dom.TagName.H6="H6";goog.dom.TagName.HEAD="HEAD";goog.dom.TagName.HEADER="HEADER";goog.dom.TagName.HGROUP="HGROUP";goog.dom.TagName.HR="HR";goog.dom.TagName.HTML="HTML";goog.dom.TagName.I="I";goog.dom.TagName.IFRAME="IFRAME"; goog.dom.TagName.IMG="IMG";goog.dom.TagName.INPUT="INPUT";goog.dom.TagName.INS="INS";goog.dom.TagName.ISINDEX="ISINDEX";goog.dom.TagName.KBD="KBD";goog.dom.TagName.KEYGEN="KEYGEN";goog.dom.TagName.LABEL="LABEL";goog.dom.TagName.LEGEND="LEGEND";goog.dom.TagName.LI="LI";goog.dom.TagName.LINK="LINK";goog.dom.TagName.MAIN="MAIN";goog.dom.TagName.MAP="MAP";goog.dom.TagName.MARK="MARK";goog.dom.TagName.MATH="MATH";goog.dom.TagName.MENU="MENU";goog.dom.TagName.MENUITEM="MENUITEM";goog.dom.TagName.META="META"; goog.dom.TagName.METER="METER";goog.dom.TagName.NAV="NAV";goog.dom.TagName.NOFRAMES="NOFRAMES";goog.dom.TagName.NOSCRIPT="NOSCRIPT";goog.dom.TagName.OBJECT="OBJECT";goog.dom.TagName.OL="OL";goog.dom.TagName.OPTGROUP="OPTGROUP";goog.dom.TagName.OPTION="OPTION";goog.dom.TagName.OUTPUT="OUTPUT";goog.dom.TagName.P="P";goog.dom.TagName.PARAM="PARAM";goog.dom.TagName.PICTURE="PICTURE";goog.dom.TagName.PRE="PRE";goog.dom.TagName.PROGRESS="PROGRESS";goog.dom.TagName.Q="Q";goog.dom.TagName.RP="RP"; goog.dom.TagName.RT="RT";goog.dom.TagName.RTC="RTC";goog.dom.TagName.RUBY="RUBY";goog.dom.TagName.S="S";goog.dom.TagName.SAMP="SAMP";goog.dom.TagName.SCRIPT="SCRIPT";goog.dom.TagName.SECTION="SECTION";goog.dom.TagName.SELECT="SELECT";goog.dom.TagName.SMALL="SMALL";goog.dom.TagName.SOURCE="SOURCE";goog.dom.TagName.SPAN="SPAN";goog.dom.TagName.STRIKE="STRIKE";goog.dom.TagName.STRONG="STRONG";goog.dom.TagName.STYLE="STYLE";goog.dom.TagName.SUB="SUB";goog.dom.TagName.SUMMARY="SUMMARY"; goog.dom.TagName.SUP="SUP";goog.dom.TagName.SVG="SVG";goog.dom.TagName.TABLE="TABLE";goog.dom.TagName.TBODY="TBODY";goog.dom.TagName.TD="TD";goog.dom.TagName.TEMPLATE="TEMPLATE";goog.dom.TagName.TEXTAREA="TEXTAREA";goog.dom.TagName.TFOOT="TFOOT";goog.dom.TagName.TH="TH";goog.dom.TagName.THEAD="THEAD";goog.dom.TagName.TIME="TIME";goog.dom.TagName.TITLE="TITLE";goog.dom.TagName.TR="TR";goog.dom.TagName.TRACK="TRACK";goog.dom.TagName.TT="TT";goog.dom.TagName.U="U";goog.dom.TagName.UL="UL"; goog.dom.TagName.VAR="VAR";goog.dom.TagName.VIDEO="VIDEO";goog.dom.TagName.WBR="WBR";goog.dom.element={}; var module$contents$goog$dom$element_isElement=function(a){return goog.isObject(a)&&a.nodeType===goog.dom.NodeType.ELEMENT},module$contents$goog$dom$element_isHtmlElement=function(a){return goog.isObject(a)&&module$contents$goog$dom$element_isElement(a)&&(!a.namespaceURI||a.namespaceURI==="http://www.w3.org/1999/xhtml")},module$contents$goog$dom$element_isHtmlElementOfType=function(a,b){return goog.isObject(a)&&module$contents$goog$dom$element_isHtmlElement(a)&&a.tagName.toUpperCase()===b.toString()}, module$contents$goog$dom$element_isHtmlAnchorElement=function(a){return module$contents$goog$dom$element_isHtmlElementOfType(a,goog.dom.TagName.A)},module$contents$goog$dom$element_isHtmlButtonElement=function(a){return module$contents$goog$dom$element_isHtmlElementOfType(a,goog.dom.TagName.BUTTON)},module$contents$goog$dom$element_isHtmlLinkElement=function(a){return module$contents$goog$dom$element_isHtmlElementOfType(a,goog.dom.TagName.LINK)},module$contents$goog$dom$element_isHtmlImageElement= function(a){return module$contents$goog$dom$element_isHtmlElementOfType(a,goog.dom.TagName.IMG)},module$contents$goog$dom$element_isHtmlAudioElement=function(a){return module$contents$goog$dom$element_isHtmlElementOfType(a,goog.dom.TagName.AUDIO)},module$contents$goog$dom$element_isHtmlVideoElement=function(a){return module$contents$goog$dom$element_isHtmlElementOfType(a,goog.dom.TagName.VIDEO)},module$contents$goog$dom$element_isHtmlInputElement=function(a){return module$contents$goog$dom$element_isHtmlElementOfType(a, goog.dom.TagName.INPUT)},module$contents$goog$dom$element_isHtmlTextAreaElement=function(a){return module$contents$goog$dom$element_isHtmlElementOfType(a,goog.dom.TagName.TEXTAREA)},module$contents$goog$dom$element_isHtmlCanvasElement=function(a){return module$contents$goog$dom$element_isHtmlElementOfType(a,goog.dom.TagName.CANVAS)},module$contents$goog$dom$element_isHtmlEmbedElement=function(a){return module$contents$goog$dom$element_isHtmlElementOfType(a,goog.dom.TagName.EMBED)},module$contents$goog$dom$element_isHtmlFormElement= function(a){return module$contents$goog$dom$element_isHtmlElementOfType(a,goog.dom.TagName.FORM)},module$contents$goog$dom$element_isHtmlFrameElement=function(a){return module$contents$goog$dom$element_isHtmlElementOfType(a,goog.dom.TagName.FRAME)},module$contents$goog$dom$element_isHtmlIFrameElement=function(a){return module$contents$goog$dom$element_isHtmlElementOfType(a,goog.dom.TagName.IFRAME)},module$contents$goog$dom$element_isHtmlObjectElement=function(a){return module$contents$goog$dom$element_isHtmlElementOfType(a, goog.dom.TagName.OBJECT)},module$contents$goog$dom$element_isHtmlScriptElement=function(a){return module$contents$goog$dom$element_isHtmlElementOfType(a,goog.dom.TagName.SCRIPT)};goog.dom.element.isElement=module$contents$goog$dom$element_isElement;goog.dom.element.isHtmlElement=module$contents$goog$dom$element_isHtmlElement;goog.dom.element.isHtmlElementOfType=module$contents$goog$dom$element_isHtmlElementOfType;goog.dom.element.isHtmlAnchorElement=module$contents$goog$dom$element_isHtmlAnchorElement; goog.dom.element.isHtmlButtonElement=module$contents$goog$dom$element_isHtmlButtonElement;goog.dom.element.isHtmlLinkElement=module$contents$goog$dom$element_isHtmlLinkElement;goog.dom.element.isHtmlImageElement=module$contents$goog$dom$element_isHtmlImageElement;goog.dom.element.isHtmlAudioElement=module$contents$goog$dom$element_isHtmlAudioElement;goog.dom.element.isHtmlVideoElement=module$contents$goog$dom$element_isHtmlVideoElement;goog.dom.element.isHtmlInputElement=module$contents$goog$dom$element_isHtmlInputElement; goog.dom.element.isHtmlTextAreaElement=module$contents$goog$dom$element_isHtmlTextAreaElement;goog.dom.element.isHtmlCanvasElement=module$contents$goog$dom$element_isHtmlCanvasElement;goog.dom.element.isHtmlEmbedElement=module$contents$goog$dom$element_isHtmlEmbedElement;goog.dom.element.isHtmlFormElement=module$contents$goog$dom$element_isHtmlFormElement;goog.dom.element.isHtmlFrameElement=module$contents$goog$dom$element_isHtmlFrameElement;goog.dom.element.isHtmlIFrameElement=module$contents$goog$dom$element_isHtmlIFrameElement; goog.dom.element.isHtmlObjectElement=module$contents$goog$dom$element_isHtmlObjectElement;goog.dom.element.isHtmlScriptElement=module$contents$goog$dom$element_isHtmlScriptElement;goog.asserts.dom={}; var module$contents$goog$asserts$dom_assertIsElement=function(a){module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&!module$contents$goog$dom$element_isElement(a)&&goog.asserts.fail("Argument is not an Element; got: "+module$contents$goog$asserts$dom_debugStringForType(a));return a},module$contents$goog$asserts$dom_assertIsHtmlElement=function(a){module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&!module$contents$goog$dom$element_isHtmlElement(a)&&goog.asserts.fail("Argument is not an HTML Element; got: "+ module$contents$goog$asserts$dom_debugStringForType(a));return a},module$contents$goog$asserts$dom_assertIsHtmlElementOfType=function(a,b){module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&!module$contents$goog$dom$element_isHtmlElementOfType(a,b)&&goog.asserts.fail("Argument is not an HTML Element with tag name "+(b.toString()+"; got: "+module$contents$goog$asserts$dom_debugStringForType(a)));return a},module$contents$goog$asserts$dom_assertIsHtmlAnchorElement= function(a){return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(a,goog.dom.TagName.A)},module$contents$goog$asserts$dom_assertIsHtmlButtonElement=function(a){return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(a,goog.dom.TagName.BUTTON)},module$contents$goog$asserts$dom_assertIsHtmlLinkElement=function(a){return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(a,goog.dom.TagName.LINK)},module$contents$goog$asserts$dom_assertIsHtmlImageElement=function(a){return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(a, goog.dom.TagName.IMG)},module$contents$goog$asserts$dom_assertIsHtmlAudioElement=function(a){return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(a,goog.dom.TagName.AUDIO)},module$contents$goog$asserts$dom_assertIsHtmlVideoElement=function(a){return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(a,goog.dom.TagName.VIDEO)},module$contents$goog$asserts$dom_assertIsHtmlInputElement=function(a){return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(a,goog.dom.TagName.INPUT)}, module$contents$goog$asserts$dom_assertIsHtmlTextAreaElement=function(a){return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(a,goog.dom.TagName.TEXTAREA)},module$contents$goog$asserts$dom_assertIsHtmlCanvasElement=function(a){return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(a,goog.dom.TagName.CANVAS)},module$contents$goog$asserts$dom_assertIsHtmlEmbedElement=function(a){return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(a,goog.dom.TagName.EMBED)},module$contents$goog$asserts$dom_assertIsHtmlFormElement= function(a){return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(a,goog.dom.TagName.FORM)},module$contents$goog$asserts$dom_assertIsHtmlFrameElement=function(a){return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(a,goog.dom.TagName.FRAME)},module$contents$goog$asserts$dom_assertIsHtmlIFrameElement=function(a){return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(a,goog.dom.TagName.IFRAME)},module$contents$goog$asserts$dom_assertIsHtmlObjectElement=function(a){return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(a, goog.dom.TagName.OBJECT)},module$contents$goog$asserts$dom_assertIsHtmlScriptElement=function(a){return module$contents$goog$asserts$dom_assertIsHtmlElementOfType(a,goog.dom.TagName.SCRIPT)},module$contents$goog$asserts$dom_debugStringForType=function(a){if(goog.isObject(a))try{return a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a)}catch(b){return"<object could not be stringified>"}else return a===void 0?"undefined":a===null?"null":typeof a}; goog.asserts.dom.assertIsElement=module$contents$goog$asserts$dom_assertIsElement;goog.asserts.dom.assertIsHtmlElement=module$contents$goog$asserts$dom_assertIsHtmlElement;goog.asserts.dom.assertIsHtmlElementOfType=module$contents$goog$asserts$dom_assertIsHtmlElementOfType;goog.asserts.dom.assertIsHtmlAnchorElement=module$contents$goog$asserts$dom_assertIsHtmlAnchorElement;goog.asserts.dom.assertIsHtmlButtonElement=module$contents$goog$asserts$dom_assertIsHtmlButtonElement; goog.asserts.dom.assertIsHtmlLinkElement=module$contents$goog$asserts$dom_assertIsHtmlLinkElement;goog.asserts.dom.assertIsHtmlImageElement=module$contents$goog$asserts$dom_assertIsHtmlImageElement;goog.asserts.dom.assertIsHtmlAudioElement=module$contents$goog$asserts$dom_assertIsHtmlAudioElement;goog.asserts.dom.assertIsHtmlVideoElement=module$contents$goog$asserts$dom_assertIsHtmlVideoElement;goog.asserts.dom.assertIsHtmlInputElement=module$contents$goog$asserts$dom_assertIsHtmlInputElement; goog.asserts.dom.assertIsHtmlTextAreaElement=module$contents$goog$asserts$dom_assertIsHtmlTextAreaElement;goog.asserts.dom.assertIsHtmlCanvasElement=module$contents$goog$asserts$dom_assertIsHtmlCanvasElement;goog.asserts.dom.assertIsHtmlEmbedElement=module$contents$goog$asserts$dom_assertIsHtmlEmbedElement;goog.asserts.dom.assertIsHtmlFormElement=module$contents$goog$asserts$dom_assertIsHtmlFormElement;goog.asserts.dom.assertIsHtmlFrameElement=module$contents$goog$asserts$dom_assertIsHtmlFrameElement; goog.asserts.dom.assertIsHtmlIFrameElement=module$contents$goog$asserts$dom_assertIsHtmlIFrameElement;goog.asserts.dom.assertIsHtmlObjectElement=module$contents$goog$asserts$dom_assertIsHtmlObjectElement;goog.asserts.dom.assertIsHtmlScriptElement=module$contents$goog$asserts$dom_assertIsHtmlScriptElement;goog.math={};goog.math.randomInt=function(a){return Math.floor(Math.random()*a)};goog.math.uniformRandom=function(a,b){return a+Math.random()*(b-a)};goog.math.clamp=function(a,b,c){return Math.min(Math.max(a,b),c)};goog.math.modulo=function(a,b){a%=b;return a*b<0?a+b:a};goog.math.lerp=function(a,b,c){return a+c*(b-a)};goog.math.nearlyEquals=function(a,b,c){return Math.abs(a-b)<=(c||1E-6)};goog.math.standardAngle=function(a){return goog.math.modulo(a,360)}; goog.math.standardAngleInRadians=function(a){return goog.math.modulo(a,2*Math.PI)};goog.math.toRadians=function(a){return a*Math.PI/180};goog.math.toDegrees=function(a){return a*180/Math.PI};goog.math.angleDx=function(a,b){return b*Math.cos(goog.math.toRadians(a))};goog.math.angleDy=function(a,b){return b*Math.sin(goog.math.toRadians(a))};goog.math.angle=function(a,b,c,d){return goog.math.standardAngle(goog.math.toDegrees(Math.atan2(d-b,c-a)))}; goog.math.angleDifference=function(a,b){a=goog.math.standardAngle(b)-goog.math.standardAngle(a);a>180?a-=360:a<=-180&&(a=360+a);return a};goog.math.sign=function(a){return a>0?1:a<0?-1:a}; goog.math.longestCommonSubsequence=function(a,b,c,d){c=c||function(m,n){return m==n};d=d||function(m){return a[m]};var e=a.length,f=b.length,g=[],h;for(h=0;h<e+1;h++)g[h]=[],g[h][0]=0;var k;for(k=0;k<f+1;k++)g[0][k]=0;for(h=1;h<=e;h++)for(k=1;k<=f;k++)c(a[h-1],b[k-1])?g[h][k]=g[h-1][k-1]+1:g[h][k]=Math.max(g[h-1][k],g[h][k-1]);var l=[];h=e;for(k=f;h>0&&k>0;)c(a[h-1],b[k-1])?(l.unshift(d(h-1,k-1)),h--,k--):g[h-1][k]>g[h][k-1]?h--:k--;return l}; goog.math.sum=function(a){return Array.prototype.reduce.call(arguments,function(b,c){return b+c},0)};goog.math.average=function(a){return goog.math.sum.apply(null,arguments)/arguments.length};goog.math.sampleVariance=function(a){var b=arguments.length;if(b<2)return 0;var c=goog.math.average.apply(null,arguments);return b=goog.math.sum.apply(null,Array.prototype.map.call(arguments,function(d){return Math.pow(d-c,2)}))/(b-1)}; goog.math.standardDeviation=function(a){return Math.sqrt(goog.math.sampleVariance.apply(null,arguments))};goog.math.isInt=function(a){return isFinite(a)&&a%1==0};goog.math.isFiniteNumber=function(a){return isFinite(a)};goog.math.isNegativeZero=function(a){return a==0&&1/a<0};goog.math.log10Floor=function(a){if(a>0){var b=Math.round(Math.log(a)*Math.LOG10E);return b-(parseFloat("1e"+b)>a?1:0)}return a==0?-Infinity:NaN}; goog.math.safeFloor=function(a,b){goog.asserts.assert(b===void 0||b>0);return Math.floor(a+(b||2E-15))};goog.math.safeCeil=function(a,b){goog.asserts.assert(b===void 0||b>0);return Math.ceil(a-(b||2E-15))};goog.math.Coordinate=function(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0};goog.math.Coordinate.prototype.clone=function(){return new goog.math.Coordinate(this.x,this.y)};goog.DEBUG&&(goog.math.Coordinate.prototype.toString=function(){return"("+this.x+", "+this.y+")"});goog.math.Coordinate.prototype.equals=function(a){return a instanceof goog.math.Coordinate&&goog.math.Coordinate.equals(this,a)};goog.math.Coordinate.equals=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}; goog.math.Coordinate.distance=function(a,b){var c=a.x-b.x;a=a.y-b.y;return Math.sqrt(c*c+a*a)};goog.math.Coordinate.magnitude=function(a){return Math.sqrt(a.x*a.x+a.y*a.y)};goog.math.Coordinate.azimuth=function(a){return goog.math.angle(0,0,a.x,a.y)};goog.math.Coordinate.squaredDistance=function(a,b){var c=a.x-b.x;a=a.y-b.y;return c*c+a*a};goog.math.Coordinate.difference=function(a,b){return new goog.math.Coordinate(a.x-b.x,a.y-b.y)}; goog.math.Coordinate.sum=function(a,b){return new goog.math.Coordinate(a.x+b.x,a.y+b.y)};goog.math.Coordinate.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};goog.math.Coordinate.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};goog.math.Coordinate.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; goog.math.Coordinate.prototype.translate=function(a,b){a instanceof goog.math.Coordinate?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),typeof b==="number"&&(this.y+=b));return this};goog.math.Coordinate.prototype.scale=function(a,b){b=typeof b==="number"?b:a;this.x*=a;this.y*=b;return this};goog.math.Size=function(a,b){this.width=a;this.height=b};goog.math.Size.equals=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};goog.math.Size.prototype.clone=function(){return new goog.math.Size(this.width,this.height)};goog.DEBUG&&(goog.math.Size.prototype.toString=function(){return"("+this.width+" x "+this.height+")"});goog.math.Size.prototype.area=function(){return this.width*this.height};goog.math.Size.prototype.aspectRatio=function(){return this.width/this.height}; goog.math.Size.prototype.isEmpty=function(){return!this.area()};goog.math.Size.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};goog.math.Size.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};goog.math.Size.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; goog.math.Size.prototype.scale=function(a,b){b=typeof b==="number"?b:a;this.width*=a;this.height*=b;return this};goog.object={};function module$contents$goog$object_forEach(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function module$contents$goog$object_filter(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d}function module$contents$goog$object_map(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d}function module$contents$goog$object_some(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1} function module$contents$goog$object_every(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return!1;return!0}function module$contents$goog$object_getCount(a){var b=0,c;for(c in a)b++;return b}function module$contents$goog$object_getAnyKey(a){for(var b in a)return b}function module$contents$goog$object_getAnyValue(a){for(var b in a)return a[b]}function module$contents$goog$object_contains(a,b){return module$contents$goog$object_containsValue(a,b)} function module$contents$goog$object_getValues(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function module$contents$goog$object_getKeys(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function module$contents$goog$object_getValueByKeys(a,b){var c=goog.isArrayLike(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(a==null)return;a=a[d[c]]}return a}function module$contents$goog$object_containsKey(a,b){return a!==null&&b in a} function module$contents$goog$object_containsValue(a,b){for(var c in a)if(a[c]==b)return!0;return!1}function module$contents$goog$object_findKey(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d}function module$contents$goog$object_findValue(a,b,c){return(b=module$contents$goog$object_findKey(a,b,c))&&a[b]}function module$contents$goog$object_isEmpty(a){for(var b in a)return!1;return!0}function module$contents$goog$object_clear(a){for(var b in a)delete a[b]} function module$contents$goog$object_remove(a,b){var c;(c=b in a)&&delete a[b];return c}function module$contents$goog$object_add(a,b,c){if(a!==null&&b in a)throw Error('The object already contains the key "'+b+'"');a[b]=c}function module$contents$goog$object_get(a,b,c){return a!==null&&b in a?a[b]:c}function module$contents$goog$object_set(a,b,c){a[b]=c}function module$contents$goog$object_setIfUndefined(a,b,c){return b in a?a[b]:a[b]=c} function module$contents$goog$object_setWithReturnValueIfNotSet(a,b,c){if(b in a)return a[b];c=c();return a[b]=c}function module$contents$goog$object_equals(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0}function module$contents$goog$object_clone(a){var b={},c;for(c in a)b[c]=a[c];return b} function module$contents$goog$object_unsafeClone(a){if(!a||typeof a!=="object")return a;if(typeof a.clone==="function")return a.clone();if(typeof Map!=="undefined"&&a instanceof Map)return new Map(a);if(typeof Set!=="undefined"&&a instanceof Set)return new Set(a);if(a instanceof Date)return new Date(a.getTime());var b=Array.isArray(a)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]= module$contents$goog$object_unsafeClone(a[c]);return b}function module$contents$goog$object_transpose(a){var b={},c;for(c in a)b[a[c]]=c;return b}var module$contents$goog$object_PROTOTYPE_FIELDS="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "); function module$contents$goog$object_extend(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<module$contents$goog$object_PROTOTYPE_FIELDS.length;f++)c=module$contents$goog$object_PROTOTYPE_FIELDS[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}} function module$contents$goog$object_create(a){var b=arguments.length;if(b==1&&Array.isArray(arguments[0]))return module$contents$goog$object_create.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c} function module$contents$goog$object_createSet(a){var b=arguments.length;if(b==1&&Array.isArray(arguments[0]))return module$contents$goog$object_createSet.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c}function module$contents$goog$object_createImmutableView(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b}function module$contents$goog$object_isImmutableView(a){return!!Object.isFrozen&&Object.isFrozen(a)} function module$contents$goog$object_getAllPropertyNames(a,b,c){if(!a)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return module$contents$goog$object_getKeys(a);for(var d={};a&&(a!==Object.prototype||b)&&(a!==Function.prototype||c);){for(var e=Object.getOwnPropertyNames(a),f=0;f<e.length;f++)d[e[f]]=!0;a=Object.getPrototypeOf(a)}return module$contents$goog$object_getKeys(d)} function module$contents$goog$object_getSuperClass(a){return(a=Object.getPrototypeOf(a.prototype))&&a.constructor}goog.object.add=module$contents$goog$object_add;goog.object.clear=module$contents$goog$object_clear;goog.object.clone=module$contents$goog$object_clone;goog.object.contains=module$contents$goog$object_contains;goog.object.containsKey=module$contents$goog$object_containsKey;goog.object.containsValue=module$contents$goog$object_containsValue;goog.object.create=module$contents$goog$object_create; goog.object.createImmutableView=module$contents$goog$object_createImmutableView;goog.object.createSet=module$contents$goog$object_createSet;goog.object.equals=module$contents$goog$object_equals;goog.object.every=module$contents$goog$object_every;goog.object.extend=module$contents$goog$object_extend;goog.object.filter=module$contents$goog$object_filter;goog.object.findKey=module$contents$goog$object_findKey;goog.object.findValue=module$contents$goog$object_findValue;goog.object.forEach=module$contents$goog$object_forEach; goog.object.get=module$contents$goog$object_get;goog.object.getAllPropertyNames=module$contents$goog$object_getAllPropertyNames;goog.object.getAnyKey=module$contents$goog$object_getAnyKey;goog.object.getAnyValue=module$contents$goog$object_getAnyValue;goog.object.getCount=module$contents$goog$object_getCount;goog.object.getKeys=module$contents$goog$object_getKeys;goog.object.getSuperClass=module$contents$goog$object_getSuperClass;goog.object.getValueByKeys=module$contents$goog$object_getValueByKeys; goog.object.getValues=module$contents$goog$object_getValues;goog.object.isEmpty=module$contents$goog$object_isEmpty;goog.object.isImmutableView=module$contents$goog$object_isImmutableView;goog.object.map=module$contents$goog$object_map;goog.object.remove=module$contents$goog$object_remove;goog.object.set=module$contents$goog$object_set;goog.object.setIfUndefined=module$contents$goog$object_setIfUndefined;goog.object.setWithReturnValueIfNotSet=module$contents$goog$object_setWithReturnValueIfNotSet; goog.object.some=module$contents$goog$object_some;goog.object.transpose=module$contents$goog$object_transpose;goog.object.unsafeClone=module$contents$goog$object_unsafeClone;goog.string={};goog.string.Const=function(a,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=goog.string.Const.TYPE_MARKER_};goog.string.Const.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_}; goog.string.Const.unwrap=function(a){if(a instanceof goog.string.Const&&a.constructor===goog.string.Const&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_)return a.stringConstValueWithSecurityContract__googStringSecurityPrivate_;goog.asserts.fail("expected object of type Const, got '"+a+"'");return"type_error:Const"};goog.string.Const.from=function(a){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,a)}; goog.string.Const.TYPE_MARKER_={};goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_={};goog.string.Const.EMPTY=goog.string.Const.from("");goog.string.internal={};goog.string.internal.startsWith=function(a,b){return a.lastIndexOf(b,0)==0};goog.string.internal.endsWith=function(a,b){var c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c};goog.string.internal.caseInsensitiveStartsWith=function(a,b){return goog.string.internal.caseInsensitiveCompare(b,a.slice(0,b.length))==0};goog.string.internal.caseInsensitiveEndsWith=function(a,b){return goog.string.internal.caseInsensitiveCompare(b,a.slice(a.length-b.length))==0}; goog.string.internal.caseInsensitiveEquals=function(a,b){return a.toLowerCase()==b.toLowerCase()};goog.string.internal.isEmptyOrWhitespace=function(a){return/^[\s\xa0]*$/.test(a)};goog.string.internal.trim=goog.TRUSTED_SITE&&(goog.FEATURESET_YEAR>=2018||String.prototype.trim)?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};goog.string.internal.caseInsensitiveCompare=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1}; goog.string.internal.newLineToBr=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")}; goog.string.internal.htmlEscape=function(a,b){if(b)a=a.replace(goog.string.internal.AMP_RE_,"&").replace(goog.string.internal.LT_RE_,"<").replace(goog.string.internal.GT_RE_,">").replace(goog.string.internal.QUOT_RE_,""").replace(goog.string.internal.SINGLE_QUOTE_RE_,"'").replace(goog.string.internal.NULL_RE_,"�");else{if(!goog.string.internal.ALL_RE_.test(a))return a;a.indexOf("&")!=-1&&(a=a.replace(goog.string.internal.AMP_RE_,"&"));a.indexOf("<")!=-1&&(a=a.replace(goog.string.internal.LT_RE_, "<"));a.indexOf(">")!=-1&&(a=a.replace(goog.string.internal.GT_RE_,">"));a.indexOf('"')!=-1&&(a=a.replace(goog.string.internal.QUOT_RE_,"""));a.indexOf("'")!=-1&&(a=a.replace(goog.string.internal.SINGLE_QUOTE_RE_,"'"));a.indexOf("\x00")!=-1&&(a=a.replace(goog.string.internal.NULL_RE_,"�"))}return a};goog.string.internal.AMP_RE_=/&/g;goog.string.internal.LT_RE_=/</g;goog.string.internal.GT_RE_=/>/g;goog.string.internal.QUOT_RE_=/"/g;goog.string.internal.SINGLE_QUOTE_RE_=/'/g; goog.string.internal.NULL_RE_=/\x00/g;goog.string.internal.ALL_RE_=/[\x00&<>"']/;goog.string.internal.whitespaceEscape=function(a,b){return goog.string.internal.newLineToBr(a.replace(/ /g,"  "),b)};goog.string.internal.contains=function(a,b){return a.indexOf(b)!=-1};goog.string.internal.caseInsensitiveContains=function(a,b){return goog.string.internal.contains(a.toLowerCase(),b.toLowerCase())}; goog.string.internal.compareVersions=function(a,b){var c=0;a=goog.string.internal.trim(String(a)).split(".");b=goog.string.internal.trim(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var f=a[e]||"",g=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];if(f[0].length==0&&g[0].length==0)break;c=f[1].length==0?0:parseInt(f[1],10);var h=g[1].length==0?0:parseInt(g[1],10);c=goog.string.internal.compareElements_(c,h)||goog.string.internal.compareElements_(f[2].length== 0,g[2].length==0)||goog.string.internal.compareElements_(f[2],g[2]);f=f[3];g=g[3]}while(c==0)}return c};goog.string.internal.compareElements_=function(a,b){return a<b?-1:a>b?1:0};/* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ function module$contents$google3$third_party$javascript$safevalues$internals$pure_pure(a){return{valueOf:a}.valueOf()};var module$exports$google3$third_party$javascript$safevalues$internals$secrets={secretToken:{}};function module$contents$google3$third_party$javascript$safevalues$internals$secrets_ensureTokenIsValid(a){if(goog.DEBUG&&a!==module$exports$google3$third_party$javascript$safevalues$internals$secrets.secretToken)throw Error("Bad secret");}module$exports$google3$third_party$javascript$safevalues$internals$secrets.ensureTokenIsValid=module$contents$google3$third_party$javascript$safevalues$internals$secrets_ensureTokenIsValid;var module$exports$google3$third_party$javascript$safevalues$internals$trusted_types={},module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_configuredPolicyName=goog.TRUSTED_TYPES_POLICY_NAME?goog.TRUSTED_TYPES_POLICY_NAME+"#html":"",module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_policyName=module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_configuredPolicyName; module$exports$google3$third_party$javascript$safevalues$internals$trusted_types.trustedTypes=globalThis.trustedTypes;var module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_trustedTypesInternal=module$exports$google3$third_party$javascript$safevalues$internals$trusted_types.trustedTypes,module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_policy; function module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_createPolicy(){var a=null;if(module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_policyName===""||!module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_trustedTypesInternal)return a;try{var b=function(c){return c};a=module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_trustedTypesInternal.createPolicy(module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_policyName, {createHTML:b,createScript:b,createScriptURL:b})}catch(c){if(goog.DEBUG)throw c;}return a} function module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_getPolicy(){module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_policy===void 0&&(module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_policy=module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_createPolicy());return module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_policy} module$exports$google3$third_party$javascript$safevalues$internals$trusted_types.getPolicy=module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_getPolicy; module$exports$google3$third_party$javascript$safevalues$internals$trusted_types.TEST_ONLY={setPolicyName:function(a){module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_policyName=a},setTrustedTypes:function(a){module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_trustedTypesInternal=a},resetDefaults:function(){module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_policy=void 0;module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_policyName= module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_configuredPolicyName;module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_trustedTypesInternal=module$exports$google3$third_party$javascript$safevalues$internals$trusted_types.trustedTypes}};var module$exports$google3$third_party$javascript$safevalues$internals$resource_url_impl={TrustedResourceUrl:function(a,b){goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$internals$secrets_ensureTokenIsValid(a);this.privateDoNotAccessOrElseWrappedResourceUrl=b}};module$exports$google3$third_party$javascript$safevalues$internals$resource_url_impl.TrustedResourceUrl.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""}; function module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_createResourceUrlInternal(a){var b=module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_getPolicy();return new module$exports$google3$third_party$javascript$safevalues$internals$resource_url_impl.TrustedResourceUrl(module$exports$google3$third_party$javascript$safevalues$internals$secrets.secretToken,b?b.createScriptURL(a):a)} module$exports$google3$third_party$javascript$safevalues$internals$resource_url_impl.createResourceUrlInternal=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_createResourceUrlInternal;function module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_isResourceUrl(a){return a instanceof module$exports$google3$third_party$javascript$safevalues$internals$resource_url_impl.TrustedResourceUrl} module$exports$google3$third_party$javascript$safevalues$internals$resource_url_impl.isResourceUrl=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_isResourceUrl; function module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(a){if(module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_isResourceUrl(a))return a.privateDoNotAccessOrElseWrappedResourceUrl;a="";goog.DEBUG&&(a="Unexpected type when unwrapping TrustedResourceUrl");throw Error(a);}module$exports$google3$third_party$javascript$safevalues$internals$resource_url_impl.unwrapResourceUrl=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl;var $jscomp$templatelit$1274514361$5=$jscomp.createTemplateTagFirstArg([""]),$jscomp$templatelit$1274514361$6=$jscomp.createTemplateTagFirstArgWithRaw(["\x00"],["\\0"]),$jscomp$templatelit$1274514361$7=$jscomp.createTemplateTagFirstArgWithRaw(["\n"],["\\n"]),$jscomp$templatelit$1274514361$8=$jscomp.createTemplateTagFirstArgWithRaw(["\x00"],["\\u0000"]),$jscomp$templatelit$1274514361$9=$jscomp.createTemplateTagFirstArg([""]),$jscomp$templatelit$1274514361$10=$jscomp.createTemplateTagFirstArgWithRaw(["\x00"], ["\\0"]),$jscomp$templatelit$1274514361$11=$jscomp.createTemplateTagFirstArgWithRaw(["\n"],["\\n"]),$jscomp$templatelit$1274514361$12=$jscomp.createTemplateTagFirstArgWithRaw(["\x00"],["\\u0000"]); function module$contents$google3$third_party$javascript$safevalues$internals$string_literal_assertIsTemplateObject(a,b){var c=a;c=Array.isArray(c)&&Array.isArray(c.raw)&&c.length===c.raw.length&&(module$contents$google3$third_party$javascript$safevalues$internals$string_literal_isTranspiled||c!==c.raw)&&(module$contents$google3$third_party$javascript$safevalues$internals$string_literal_isTranspiled&&!module$contents$google3$third_party$javascript$safevalues$internals$string_literal_frozenTSA||module$contents$google3$third_party$javascript$safevalues$internals$string_literal_checkFrozen(c))? !0:!1;if(!c||b+1!==a.length)throw new TypeError("\n ############################## ERROR ##############################\n\n It looks like you are trying to call a template tag function (fn`...`)\n using the normal function syntax (fn(...)), which is not supported.\n\n The functions in the safevalues library are not designed to be called\n like normal functions, and doing so invalidates the security guarantees\n that safevalues provides.\n\n If you are stuck and not sure how to proceed, please reach out to us\n instead through:\n - go/ise-hardening-yaqs (preferred) // LINE-INTERNAL\n - g/ise-hardening // LINE-INTERNAL\n - https://github.com/google/safevalues/issues\n\n ############################## ERROR ##############################"); }function module$contents$google3$third_party$javascript$safevalues$internals$string_literal_checkFrozen(a){return Object.isFrozen(a)&&Object.isFrozen(a.raw)}function module$contents$google3$third_party$javascript$safevalues$internals$string_literal_checkTranspiled(a){return a.toString().indexOf("`")===-1} var module$contents$google3$third_party$javascript$safevalues$internals$string_literal_isTranspiled=module$contents$google3$third_party$javascript$safevalues$internals$string_literal_checkTranspiled(function(a){return a($jscomp$templatelit$1274514361$5)})||module$contents$google3$third_party$javascript$safevalues$internals$string_literal_checkTranspiled(function(a){return a($jscomp$templatelit$1274514361$6)})||module$contents$google3$third_party$javascript$safevalues$internals$string_literal_checkTranspiled(function(a){return a($jscomp$templatelit$1274514361$7)})|| module$contents$google3$third_party$javascript$safevalues$internals$string_literal_checkTranspiled(function(a){return a($jscomp$templatelit$1274514361$8)}),module$contents$google3$third_party$javascript$safevalues$internals$string_literal_frozenTSA=module$contents$google3$third_party$javascript$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$9)&&module$contents$google3$third_party$javascript$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$10)&& module$contents$google3$third_party$javascript$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$11)&&module$contents$google3$third_party$javascript$safevalues$internals$string_literal_checkFrozen($jscomp$templatelit$1274514361$12);var module$exports$google3$third_party$javascript$safevalues$internals$url_impl={SafeUrl:function(a,b){goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$internals$secrets_ensureTokenIsValid(a);this.privateDoNotAccessOrElseWrappedUrl=b}};module$exports$google3$third_party$javascript$safevalues$internals$url_impl.SafeUrl.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl}; function module$contents$google3$third_party$javascript$safevalues$internals$url_impl_createUrlInternal(a){return new module$exports$google3$third_party$javascript$safevalues$internals$url_impl.SafeUrl(module$exports$google3$third_party$javascript$safevalues$internals$secrets.secretToken,a)}module$exports$google3$third_party$javascript$safevalues$internals$url_impl.createUrlInternal=module$contents$google3$third_party$javascript$safevalues$internals$url_impl_createUrlInternal; module$exports$google3$third_party$javascript$safevalues$internals$url_impl.ABOUT_BLANK=module$contents$google3$third_party$javascript$safevalues$internals$url_impl_createUrlInternal("about:blank");module$exports$google3$third_party$javascript$safevalues$internals$url_impl.INNOCUOUS_URL=module$contents$google3$third_party$javascript$safevalues$internals$url_impl_createUrlInternal("about:invalid#zClosurez"); function module$contents$google3$third_party$javascript$safevalues$internals$url_impl_isUrl(a){return a instanceof module$exports$google3$third_party$javascript$safevalues$internals$url_impl.SafeUrl}module$exports$google3$third_party$javascript$safevalues$internals$url_impl.isUrl=module$contents$google3$third_party$javascript$safevalues$internals$url_impl_isUrl; function module$contents$google3$third_party$javascript$safevalues$internals$url_impl_unwrapUrl(a){if(module$contents$google3$third_party$javascript$safevalues$internals$url_impl_isUrl(a))return a.privateDoNotAccessOrElseWrappedUrl;var b="";goog.DEBUG&&(b="Unexpected type when unwrapping SafeUrl, got '"+a+"' of type '"+typeof a+"'");throw Error(b);}module$exports$google3$third_party$javascript$safevalues$internals$url_impl.unwrapUrl=module$contents$google3$third_party$javascript$safevalues$internals$url_impl_unwrapUrl;var module$exports$google3$third_party$javascript$safevalues$builders$url_builders={};function module$contents$google3$third_party$javascript$safevalues$builders$url_builders_Scheme(){}module$exports$google3$third_party$javascript$safevalues$builders$url_builders.Scheme=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_Scheme;var module$contents$google3$third_party$javascript$safevalues$builders$url_builders_SchemeImpl=function(a){this.isValid=a}; function module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme(a){return new module$contents$google3$third_party$javascript$safevalues$builders$url_builders_SchemeImpl(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})} var module$contents$google3$third_party$javascript$safevalues$builders$url_builders_RELATIVE_SCHEME=new module$contents$google3$third_party$javascript$safevalues$builders$url_builders_SchemeImpl(function(a){return/^[^:]*([/?#]|$)/.test(a)}),module$contents$google3$third_party$javascript$safevalues$builders$url_builders_CALLTO_SCHEME=new module$contents$google3$third_party$javascript$safevalues$builders$url_builders_SchemeImpl(function(a){return/^callto:\+?\d*$/i.test(a)}),module$contents$google3$third_party$javascript$safevalues$builders$url_builders_SSH_SCHEME= new module$contents$google3$third_party$javascript$safevalues$builders$url_builders_SchemeImpl(function(a){return a.indexOf("ssh://")===0}),module$contents$google3$third_party$javascript$safevalues$builders$url_builders_EXTENSION_SCHEME=new module$contents$google3$third_party$javascript$safevalues$builders$url_builders_SchemeImpl(function(a){return a.indexOf("chrome-extension://")===0||a.indexOf("moz-extension://")===0||a.indexOf("ms-browser-extension://")===0}),module$contents$google3$third_party$javascript$safevalues$builders$url_builders_SIP_SCHEME= new module$contents$google3$third_party$javascript$safevalues$builders$url_builders_SchemeImpl(function(a){return a.indexOf("sip:")===0||a.indexOf("sips:")===0}); module$exports$google3$third_party$javascript$safevalues$builders$url_builders.SanitizableUrlScheme={TEL:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme("tel"),CALLTO:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_CALLTO_SCHEME,SSH:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_SSH_SCHEME,RTSP:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme("rtsp"), DATA:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme("data"),HTTP:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme("http"),HTTPS:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme("https"),EXTENSION:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_EXTENSION_SCHEME,FTP:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme("ftp"), RELATIVE:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_RELATIVE_SCHEME,MAILTO:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme("mailto"),INTENT:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme("intent"),MARKET:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme("market"),ITMS:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme("itms"), ITMS_APPSS:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme("itms-appss"),ITMS_SERVICES:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme("itms-services"),FACEBOOK_MESSENGER:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme("fb-messenger"),WHATSAPP:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme("whatsapp"),SIP:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_SIP_SCHEME, SMS:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme("sms"),VND_YOUTUBE:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme("vnd.youtube"),GOOGLEHOME:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme("googlehome"),GOOGLEHOMESDK:module$contents$google3$third_party$javascript$safevalues$builders$url_builders_simpleScheme("googlehomesdk")}; var module$contents$google3$third_party$javascript$safevalues$builders$url_builders_DEFAULT_SCHEMES=[module$exports$google3$third_party$javascript$safevalues$builders$url_builders.SanitizableUrlScheme.DATA,module$exports$google3$third_party$javascript$safevalues$builders$url_builders.SanitizableUrlScheme.HTTP,module$exports$google3$third_party$javascript$safevalues$builders$url_builders.SanitizableUrlScheme.HTTPS,module$exports$google3$third_party$javascript$safevalues$builders$url_builders.SanitizableUrlScheme.MAILTO, module$exports$google3$third_party$javascript$safevalues$builders$url_builders.SanitizableUrlScheme.FTP,module$exports$google3$third_party$javascript$safevalues$builders$url_builders.SanitizableUrlScheme.RELATIVE]; function module$contents$google3$third_party$javascript$safevalues$builders$url_builders_trySanitizeUrl(a,b){b=b===void 0?module$contents$google3$third_party$javascript$safevalues$builders$url_builders_DEFAULT_SCHEMES:b;if(module$contents$google3$third_party$javascript$safevalues$internals$url_impl_isUrl(a))return a;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof module$contents$google3$third_party$javascript$safevalues$builders$url_builders_SchemeImpl&&d.isValid(a))return module$contents$google3$third_party$javascript$safevalues$internals$url_impl_createUrlInternal(a)}} module$exports$google3$third_party$javascript$safevalues$builders$url_builders.trySanitizeUrl=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_trySanitizeUrl; function module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizeUrl(a,b){b=b===void 0?module$contents$google3$third_party$javascript$safevalues$builders$url_builders_DEFAULT_SCHEMES:b;b=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_trySanitizeUrl(a,b);b===void 0&&module$contents$google3$third_party$javascript$safevalues$builders$url_builders_triggerCallbacks(a.toString());return b||module$exports$google3$third_party$javascript$safevalues$internals$url_impl.INNOCUOUS_URL} module$exports$google3$third_party$javascript$safevalues$builders$url_builders.sanitizeUrl=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizeUrl; function module$contents$google3$third_party$javascript$safevalues$builders$url_builders_objectUrlFromSafeSource(a){if(typeof MediaSource!=="undefined"&&a instanceof MediaSource)return module$contents$google3$third_party$javascript$safevalues$internals$url_impl_createUrlInternal(URL.createObjectURL(a));var b=a.type.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),c;var d=((c=b)==null?void 0:c.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(b[1])||/^video\/(?:mpeg|mp4|ogg|webm|x-matroska|quicktime|x-ms-wmv)$/i.test(b[1])|| /^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(b[1])||/^font\/[\w-]+$/i.test(b[1]));if(!d)throw c="",goog.DEBUG&&(c="unsafe blob MIME type: "+a.type),Error(c);return module$contents$google3$third_party$javascript$safevalues$internals$url_impl_createUrlInternal(URL.createObjectURL(a))}module$exports$google3$third_party$javascript$safevalues$builders$url_builders.objectUrlFromSafeSource=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_objectUrlFromSafeSource; function module$contents$google3$third_party$javascript$safevalues$builders$url_builders_fromMediaSource(a){if(typeof MediaSource!=="undefined"&&a instanceof MediaSource)return module$contents$google3$third_party$javascript$safevalues$internals$url_impl_createUrlInternal(URL.createObjectURL(a));var b="";goog.DEBUG&&(b="fromMediaSource only accepts MediaSource instances, but was called with "+a+".");throw Error(b);} module$exports$google3$third_party$javascript$safevalues$builders$url_builders.fromMediaSource=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_fromMediaSource; function module$contents$google3$third_party$javascript$safevalues$builders$url_builders_fromTrustedResourceUrl(a){return module$contents$google3$third_party$javascript$safevalues$internals$url_impl_createUrlInternal(module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(a).toString())}module$exports$google3$third_party$javascript$safevalues$builders$url_builders.fromTrustedResourceUrl=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_fromTrustedResourceUrl; function module$contents$google3$third_party$javascript$safevalues$builders$url_builders_safeUrl(a){var b=$jscomp.getRestArguments.apply(1,arguments);goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$internals$string_literal_assertIsTemplateObject(a,b.length);var c=a[0];if(goog.DEBUG){var d=c;var e=b.length===0,f=d.search(/[:/?#]/);f<0?d=e:d.charAt(f)!==":"?d=!0:(d=d.substring(0,f).toLowerCase(),d=/^[a-z][a-z\d+.-]*$/.test(d)&&d!=="javascript");if(!d)throw Error("Trying to interpolate with unsupported prefix: "+ c);}c=[c];for(d=0;d<b.length;d++)c.push(String(b[d])),c.push(a[d+1]);return module$contents$google3$third_party$javascript$safevalues$internals$url_impl_createUrlInternal(c.join(""))}module$exports$google3$third_party$javascript$safevalues$builders$url_builders.safeUrl=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_safeUrl; var module$contents$google3$third_party$javascript$safevalues$builders$url_builders_ASSUME_IMPLEMENTS_URL_API=goog.FEATURESET_YEAR>=2020,module$contents$google3$third_party$javascript$safevalues$builders$url_builders_supportsURLAPI=module$contents$google3$third_party$javascript$safevalues$internals$pure_pure(function(){return module$contents$google3$third_party$javascript$safevalues$builders$url_builders_ASSUME_IMPLEMENTS_URL_API?!0:typeof URL==="function"}); function module$contents$google3$third_party$javascript$safevalues$builders$url_builders_extractScheme(a){if(!module$contents$google3$third_party$javascript$safevalues$builders$url_builders_supportsURLAPI){a:{var b=document.createElement("a");try{b.href=a}catch(c){a=void 0;break a}a=b.protocol;a=a===":"||a===""?"https:":a}return a}try{b=new URL(a)}catch(c){return"https:"}return b.protocol}module$exports$google3$third_party$javascript$safevalues$builders$url_builders.extractScheme=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_extractScheme; var module$contents$google3$third_party$javascript$safevalues$builders$url_builders_ALLOWED_SCHEMES=["data:","http:","https:","mailto:","ftp:"];module$exports$google3$third_party$javascript$safevalues$builders$url_builders.IS_NOT_JAVASCRIPT_URL_PATTERN=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i; function module$contents$google3$third_party$javascript$safevalues$builders$url_builders_reportJavaScriptUrl(a){var b=!module$exports$google3$third_party$javascript$safevalues$builders$url_builders.IS_NOT_JAVASCRIPT_URL_PATTERN.test(a);b&&module$contents$google3$third_party$javascript$safevalues$builders$url_builders_triggerCallbacks(a);return b}module$exports$google3$third_party$javascript$safevalues$builders$url_builders.reportJavaScriptUrl=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_reportJavaScriptUrl; function module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizeJavaScriptUrl(a){if(!module$contents$google3$third_party$javascript$safevalues$builders$url_builders_reportJavaScriptUrl(a))return a}module$exports$google3$third_party$javascript$safevalues$builders$url_builders.sanitizeJavaScriptUrl=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizeJavaScriptUrl; function module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizeUrlForMigration(a){a=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizeJavaScriptUrl(a);return a===void 0?module$exports$google3$third_party$javascript$safevalues$internals$url_impl.INNOCUOUS_URL:module$contents$google3$third_party$javascript$safevalues$internals$url_impl_createUrlInternal(a)} module$exports$google3$third_party$javascript$safevalues$builders$url_builders.sanitizeUrlForMigration=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizeUrlForMigration; function module$contents$google3$third_party$javascript$safevalues$builders$url_builders_unwrapUrlOrSanitize(a){return a instanceof module$exports$google3$third_party$javascript$safevalues$internals$url_impl.SafeUrl?module$contents$google3$third_party$javascript$safevalues$internals$url_impl_unwrapUrl(a):module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizeJavaScriptUrl(a)} module$exports$google3$third_party$javascript$safevalues$builders$url_builders.unwrapUrlOrSanitize=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_unwrapUrlOrSanitize; function module$contents$google3$third_party$javascript$safevalues$builders$url_builders_restrictivelySanitizeUrl(a){var b=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_extractScheme(a);return b!==void 0&&module$contents$google3$third_party$javascript$safevalues$builders$url_builders_ALLOWED_SCHEMES.indexOf(b.toLowerCase())!==-1?a:"about:invalid#zClosurez"}module$exports$google3$third_party$javascript$safevalues$builders$url_builders.restrictivelySanitizeUrl=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_restrictivelySanitizeUrl; var module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizationCallbacks=[],module$contents$google3$third_party$javascript$safevalues$builders$url_builders_triggerCallbacks=function(){};goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback(function(a){console.warn("A URL with content '"+a+"' was sanitized away.")}); function module$contents$google3$third_party$javascript$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback(a){module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizationCallbacks.indexOf(a)===-1&&module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizationCallbacks.push(a);module$contents$google3$third_party$javascript$safevalues$builders$url_builders_triggerCallbacks=function(b){module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizationCallbacks.forEach(function(c){c(b)})}} module$exports$google3$third_party$javascript$safevalues$builders$url_builders.addJavaScriptUrlSanitizationCallback=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback; function module$contents$google3$third_party$javascript$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback(a){a=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizationCallbacks.indexOf(a);a!==-1&&module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizationCallbacks.splice(a,1)}module$exports$google3$third_party$javascript$safevalues$builders$url_builders.removeJavaScriptUrlSanitizationCallback=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback;var module$exports$google3$third_party$javascript$safevalues$dom$elements$anchor={};function module$contents$google3$third_party$javascript$safevalues$dom$elements$anchor_setHref(a,b){b=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_unwrapUrlOrSanitize(b);b!==void 0&&(a.href=b)}module$exports$google3$third_party$javascript$safevalues$dom$elements$anchor.setHref=module$contents$google3$third_party$javascript$safevalues$dom$elements$anchor_setHref; function module$contents$google3$third_party$javascript$safevalues$dom$elements$anchor_setHrefLite(a,b){module$contents$google3$third_party$javascript$safevalues$builders$url_builders_reportJavaScriptUrl(b)||(a.href=b)}module$exports$google3$third_party$javascript$safevalues$dom$elements$anchor.setHrefLite=module$contents$google3$third_party$javascript$safevalues$dom$elements$anchor_setHrefLite;function module$contents$google3$third_party$javascript$safevalues$dom$elements$area_setHref(a,b){b=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_unwrapUrlOrSanitize(b);b!==void 0&&(a.href=b)};function module$contents$google3$third_party$javascript$safevalues$dom$elements$base_setHref(a,b){a.href=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(b)};function module$contents$google3$third_party$javascript$safevalues$dom$elements$button_setFormaction(a,b){b=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_unwrapUrlOrSanitize(b);b!==void 0&&(a.formAction=b)};var module$exports$google3$third_party$javascript$safevalues$internals$attribute_impl={SafeAttributePrefix:function(a,b){goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$internals$secrets_ensureTokenIsValid(a);this.privateDoNotAccessOrElseWrappedAttributePrefix=b}};module$exports$google3$third_party$javascript$safevalues$internals$attribute_impl.SafeAttributePrefix.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix}; function module$contents$google3$third_party$javascript$safevalues$internals$attribute_impl_createAttributePrefixInternal(a){return new module$exports$google3$third_party$javascript$safevalues$internals$attribute_impl.SafeAttributePrefix(module$exports$google3$third_party$javascript$safevalues$internals$secrets.secretToken,a)}module$exports$google3$third_party$javascript$safevalues$internals$attribute_impl.createAttributePrefixInternal=module$contents$google3$third_party$javascript$safevalues$internals$attribute_impl_createAttributePrefixInternal; function module$contents$google3$third_party$javascript$safevalues$internals$attribute_impl_isAttributePrefix(a){return a instanceof module$exports$google3$third_party$javascript$safevalues$internals$attribute_impl.SafeAttributePrefix}module$exports$google3$third_party$javascript$safevalues$internals$attribute_impl.isAttributePrefix=module$contents$google3$third_party$javascript$safevalues$internals$attribute_impl_isAttributePrefix; function module$contents$google3$third_party$javascript$safevalues$internals$attribute_impl_unwrapAttributePrefix(a){if(module$contents$google3$third_party$javascript$safevalues$internals$attribute_impl_isAttributePrefix(a))return a.privateDoNotAccessOrElseWrappedAttributePrefix;var b="";goog.DEBUG&&(b="Unexpected type when unwrapping SafeAttributePrefix, got '"+a+"' of type '"+typeof a+"'");throw Error(b);} module$exports$google3$third_party$javascript$safevalues$internals$attribute_impl.unwrapAttributePrefix=module$contents$google3$third_party$javascript$safevalues$internals$attribute_impl_unwrapAttributePrefix;var module$exports$google3$third_party$javascript$safevalues$internals$html_impl={SafeHtml:function(a,b){goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$internals$secrets_ensureTokenIsValid(a);this.privateDoNotAccessOrElseWrappedHtml=b}};module$exports$google3$third_party$javascript$safevalues$internals$html_impl.SafeHtml.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""}; function module$contents$google3$third_party$javascript$safevalues$internals$html_impl_createHtmlInternal(a){var b=module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_getPolicy();return new module$exports$google3$third_party$javascript$safevalues$internals$html_impl.SafeHtml(module$exports$google3$third_party$javascript$safevalues$internals$secrets.secretToken,b?b.createHTML(a):a)} module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal=module$contents$google3$third_party$javascript$safevalues$internals$html_impl_createHtmlInternal; module$exports$google3$third_party$javascript$safevalues$internals$html_impl.EMPTY_HTML=module$contents$google3$third_party$javascript$safevalues$internals$pure_pure(function(){return new module$exports$google3$third_party$javascript$safevalues$internals$html_impl.SafeHtml(module$exports$google3$third_party$javascript$safevalues$internals$secrets.secretToken,module$exports$google3$third_party$javascript$safevalues$internals$trusted_types.trustedTypes?module$exports$google3$third_party$javascript$safevalues$internals$trusted_types.trustedTypes.emptyHTML: "")});function module$contents$google3$third_party$javascript$safevalues$internals$html_impl_isHtml(a){return a instanceof module$exports$google3$third_party$javascript$safevalues$internals$html_impl.SafeHtml}module$exports$google3$third_party$javascript$safevalues$internals$html_impl.isHtml=module$contents$google3$third_party$javascript$safevalues$internals$html_impl_isHtml; function module$contents$google3$third_party$javascript$safevalues$internals$html_impl_unwrapHtml(a){if(module$contents$google3$third_party$javascript$safevalues$internals$html_impl_isHtml(a))return a.privateDoNotAccessOrElseWrappedHtml;a="";goog.DEBUG&&(a="Unexpected type when unwrapping SafeHtml");throw Error(a);}module$exports$google3$third_party$javascript$safevalues$internals$html_impl.unwrapHtml=module$contents$google3$third_party$javascript$safevalues$internals$html_impl_unwrapHtml;var module$exports$google3$third_party$javascript$safevalues$dom$elements$element={};function module$contents$google3$third_party$javascript$safevalues$dom$elements$element_setInnerHtml(a,b){a.nodeType===1&&module$contents$google3$third_party$javascript$safevalues$dom$elements$element_throwIfScriptOrStyle(a);a.innerHTML=(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.unwrapHtml)(b)} module$exports$google3$third_party$javascript$safevalues$dom$elements$element.setInnerHtml=module$contents$google3$third_party$javascript$safevalues$dom$elements$element_setInnerHtml; function module$contents$google3$third_party$javascript$safevalues$dom$elements$element_setOuterHtml(a,b){var c=a.parentElement;c!==null&&module$contents$google3$third_party$javascript$safevalues$dom$elements$element_throwIfScriptOrStyle(c);a.outerHTML=(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.unwrapHtml)(b)}module$exports$google3$third_party$javascript$safevalues$dom$elements$element.setOuterHtml=module$contents$google3$third_party$javascript$safevalues$dom$elements$element_setOuterHtml; function module$contents$google3$third_party$javascript$safevalues$dom$elements$element_insertAdjacentHtml(a,b,c){var d=b==="beforebegin"||b==="afterend"?a.parentElement:a;d!==null&&module$contents$google3$third_party$javascript$safevalues$dom$elements$element_throwIfScriptOrStyle(d);a.insertAdjacentHTML(b,(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.unwrapHtml)(c))} module$exports$google3$third_party$javascript$safevalues$dom$elements$element.insertAdjacentHtml=module$contents$google3$third_party$javascript$safevalues$dom$elements$element_insertAdjacentHtml; function module$contents$google3$third_party$javascript$safevalues$dom$elements$element_buildPrefixedAttributeSetter(a){var b=$jscomp.getRestArguments.apply(1,arguments),c=[a].concat((0,$jscomp.arrayFromIterable)(b));return function(d,e,f){module$contents$google3$third_party$javascript$safevalues$dom$elements$element_setPrefixedAttribute(c,d,e,f)}}module$exports$google3$third_party$javascript$safevalues$dom$elements$element.buildPrefixedAttributeSetter=module$contents$google3$third_party$javascript$safevalues$dom$elements$element_buildPrefixedAttributeSetter; function module$contents$google3$third_party$javascript$safevalues$dom$elements$element_setPrefixedAttribute(a,b,c,d){if(a.length===0)throw b="",goog.DEBUG&&(b="No prefixes are provided"),Error(b);a=a.map(function(f){return module$contents$google3$third_party$javascript$safevalues$internals$attribute_impl_unwrapAttributePrefix(f)});var e=c.toLowerCase();if(a.every(function(f){return e.indexOf(f)!==0}))throw Error('Attribute "'+c+'" does not match any of the allowed prefixes.');b.setAttribute(c,d)} module$exports$google3$third_party$javascript$safevalues$dom$elements$element.setPrefixedAttribute=module$contents$google3$third_party$javascript$safevalues$dom$elements$element_setPrefixedAttribute; function module$contents$google3$third_party$javascript$safevalues$dom$elements$element_throwIfScriptOrStyle(a){var b="";a=a.tagName;if(/^(script|style)$/i.test(a))throw goog.DEBUG&&(b=a.toLowerCase()==="script"?"Use safeScriptEl.setTextContent with a SafeScript.":"Use safeStyleEl.setTextContent with a SafeStyleSheet."),Error(b);};function module$contents$google3$third_party$javascript$safevalues$dom$elements$embed_setSrc(a,b){a.src=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(b)};var module$exports$google3$third_party$javascript$safevalues$dom$elements$form={};function module$contents$google3$third_party$javascript$safevalues$dom$elements$form_setAction(a,b){b=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_unwrapUrlOrSanitize(b);b!==void 0&&(a.action=b)}module$exports$google3$third_party$javascript$safevalues$dom$elements$form.setAction=module$contents$google3$third_party$javascript$safevalues$dom$elements$form_setAction; function module$contents$google3$third_party$javascript$safevalues$dom$elements$form_setActionLite(a,b){module$contents$google3$third_party$javascript$safevalues$builders$url_builders_reportJavaScriptUrl(b)||(a.action=b)}module$exports$google3$third_party$javascript$safevalues$dom$elements$form.setActionLite=module$contents$google3$third_party$javascript$safevalues$dom$elements$form_setActionLite;var module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe={};function module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSrc(a,b){a.src=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(b).toString()}module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.setSrc=module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSrc; function module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSrcdoc(a,b){a.srcdoc=(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.unwrapHtml)(b)}module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.setSrcdoc=module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSrcdoc; module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent={FORMATTED_HTML_CONTENT:0,EMBEDDED_INTERNAL_CONTENT:1,EMBEDDED_TRUSTED_EXTERNAL_CONTENT:2};module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent[module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT]="FORMATTED_HTML_CONTENT"; module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent[module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT]="EMBEDDED_INTERNAL_CONTENT";module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent[module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT]="EMBEDDED_TRUSTED_EXTERNAL_CONTENT"; var module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective={ALLOW_SAME_ORIGIN:"allow-same-origin",ALLOW_SCRIPTS:"allow-scripts",ALLOW_FORMS:"allow-forms",ALLOW_POPUPS:"allow-popups",ALLOW_POPUPS_TO_ESCAPE_SANDBOX:"allow-popups-to-escape-sandbox",ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION:"allow-storage-access-by-user-activation"}; function module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSandboxDirectives(a,b){a.setAttribute("sandbox","");for(var c=0;c<b.length;c++)a.sandbox.supports&&!a.sandbox.supports(b[c])||a.sandbox.add(b[c])} module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError=function(a,b){var c=Error.call(this,a+" cannot be used with intent "+module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent[b]);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.type=a;this.intent=b;this.name="TypeCannotBeUsedWithIntentError"}; $jscomp.inherits(module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError,Error); function module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSrcWithIntent(a,b,c){a.removeAttribute("srcdoc");switch(b){case module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT:if(c instanceof module$exports$google3$third_party$javascript$safevalues$internals$resource_url_impl.TrustedResourceUrl)throw new module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("TrustedResourceUrl",module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT); module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSandboxDirectives(a,[]);b=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_unwrapUrlOrSanitize(c);b!==void 0&&(a.src=b);break;case module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT:if(!(c instanceof module$exports$google3$third_party$javascript$safevalues$internals$resource_url_impl.TrustedResourceUrl))throw new module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError(typeof c, module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT);module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSandboxDirectives(a,[module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SAME_ORIGIN,module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS,module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS, module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS,module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS_TO_ESCAPE_SANDBOX,module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION]);module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSrc(a,c);break;case module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT:if(c instanceof module$exports$google3$third_party$javascript$safevalues$internals$resource_url_impl.TrustedResourceUrl)throw new module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("TrustedResourceUrl",module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT);module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSandboxDirectives(a,[module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SAME_ORIGIN, module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS,module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS,module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS,module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS_TO_ESCAPE_SANDBOX,module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION]); b=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_unwrapUrlOrSanitize(c);b!==void 0&&(a.src=b);break;default:module$contents$google3$javascript$typescript$contrib$check_checkExhaustiveAllowing(b,void 0)}}module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.setSrcWithIntent=module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSrcWithIntent; function module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSrcdocWithIntent(a,b,c){a.removeAttribute("src");switch(b){case module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT:if(c instanceof module$exports$google3$third_party$javascript$safevalues$internals$html_impl.SafeHtml)throw new module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("SafeHtml",module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent.FORMATTED_HTML_CONTENT); a.csp="default-src 'none'";module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSandboxDirectives(a,[]);module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSrcdoc(a,(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal)(c));break;case module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT:if(!(c instanceof module$exports$google3$third_party$javascript$safevalues$internals$html_impl.SafeHtml))throw new module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("string", module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT);module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSandboxDirectives(a,[module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SAME_ORIGIN,module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS,module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS, module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS,module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS_TO_ESCAPE_SANDBOX,module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION]);module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSrcdoc(a,c);break;case module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent.EMBEDDED_TRUSTED_EXTERNAL_CONTENT:if(c instanceof module$exports$google3$third_party$javascript$safevalues$internals$html_impl.SafeHtml)throw new module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError("SafeHtml",module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent.EMBEDDED_INTERNAL_CONTENT);module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSandboxDirectives(a,[module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_SCRIPTS, module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_FORMS,module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS,module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_POPUPS_TO_ESCAPE_SANDBOX,module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_SandboxDirective.ALLOW_STORAGE_ACCESS_BY_USER_ACTIVATION]);module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSrcdoc(a, (0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal)(c));break;default:module$contents$google3$javascript$typescript$contrib$check_checkExhaustiveAllowing(b,void 0)}}module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.setSrcdocWithIntent=module$contents$google3$third_party$javascript$safevalues$dom$elements$iframe_setSrcdocWithIntent;function module$contents$google3$third_party$javascript$safevalues$dom$elements$input_setFormaction(a,b){b=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_unwrapUrlOrSanitize(b);b!==void 0&&(a.formAction=b)};var module$exports$google3$third_party$javascript$safevalues$dom$elements$link={},module$contents$google3$third_party$javascript$safevalues$dom$elements$link_SAFE_URL_REL_VALUES="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "); function module$contents$google3$third_party$javascript$safevalues$dom$elements$link_setHrefAndRel(a,b,c){if(module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_isResourceUrl(b))module$contents$google3$third_party$javascript$safevalues$dom$elements$link_setHrefAndRelWithTrustedResourceUrl(a,b,c);else{if(module$contents$google3$third_party$javascript$safevalues$dom$elements$link_SAFE_URL_REL_VALUES.indexOf(c)===-1)throw Error('TrustedResourceUrl href attribute required with rel="'+ c+'"');b=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_unwrapUrlOrSanitize(b);b!==void 0&&(a.href=b,a.rel=c)}}module$exports$google3$third_party$javascript$safevalues$dom$elements$link.setHrefAndRel=module$contents$google3$third_party$javascript$safevalues$dom$elements$link_setHrefAndRel; function module$contents$google3$third_party$javascript$safevalues$dom$elements$link_setHrefAndRelWithTrustedResourceUrl(a,b,c){a.href=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(b).toString();a.rel=c}module$exports$google3$third_party$javascript$safevalues$dom$elements$link.setHrefAndRelWithTrustedResourceUrl=module$contents$google3$third_party$javascript$safevalues$dom$elements$link_setHrefAndRelWithTrustedResourceUrl;function module$contents$google3$third_party$javascript$safevalues$dom$elements$object_setData(a,b){a.data=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(b)};var module$exports$google3$third_party$javascript$safevalues$dom$globals$window={};function module$contents$google3$third_party$javascript$safevalues$dom$globals$window_open(a,b,c,d){b=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_unwrapUrlOrSanitize(b);return b!==void 0?a.open(b,c,d):null}module$exports$google3$third_party$javascript$safevalues$dom$globals$window.open=module$contents$google3$third_party$javascript$safevalues$dom$globals$window_open; function module$contents$google3$third_party$javascript$safevalues$dom$globals$window_getScriptNonce(a){return module$contents$google3$third_party$javascript$safevalues$dom$globals$window_getNonceFor("script",a)}module$exports$google3$third_party$javascript$safevalues$dom$globals$window.getScriptNonce=module$contents$google3$third_party$javascript$safevalues$dom$globals$window_getScriptNonce; function module$contents$google3$third_party$javascript$safevalues$dom$globals$window_getStyleNonce(a){return module$contents$google3$third_party$javascript$safevalues$dom$globals$window_getNonceFor("style",a)}module$exports$google3$third_party$javascript$safevalues$dom$globals$window.getStyleNonce=module$contents$google3$third_party$javascript$safevalues$dom$globals$window_getStyleNonce; function module$contents$google3$third_party$javascript$safevalues$dom$globals$window_getNonceFor(a,b){b=b===void 0?document:b;b="document"in b?b.document:b;var c,d;b=(d=(c=b).querySelector)==null?void 0:d.call(c,a+"[nonce]");return b==null?"":b.nonce||b.getAttribute("nonce")||""};var module$exports$google3$third_party$javascript$safevalues$internals$script_impl={SafeScript:function(a,b){goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$internals$secrets_ensureTokenIsValid(a);this.privateDoNotAccessOrElseWrappedScript=b}};module$exports$google3$third_party$javascript$safevalues$internals$script_impl.SafeScript.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""}; function module$contents$google3$third_party$javascript$safevalues$internals$script_impl_createScriptInternal(a){var b=module$contents$google3$third_party$javascript$safevalues$internals$trusted_types_getPolicy();return new module$exports$google3$third_party$javascript$safevalues$internals$script_impl.SafeScript(module$exports$google3$third_party$javascript$safevalues$internals$secrets.secretToken,b?b.createScript(a):a)} module$exports$google3$third_party$javascript$safevalues$internals$script_impl.createScriptInternal=module$contents$google3$third_party$javascript$safevalues$internals$script_impl_createScriptInternal; module$exports$google3$third_party$javascript$safevalues$internals$script_impl.EMPTY_SCRIPT=module$contents$google3$third_party$javascript$safevalues$internals$pure_pure(function(){return new module$exports$google3$third_party$javascript$safevalues$internals$script_impl.SafeScript(module$exports$google3$third_party$javascript$safevalues$internals$secrets.secretToken,module$exports$google3$third_party$javascript$safevalues$internals$trusted_types.trustedTypes?module$exports$google3$third_party$javascript$safevalues$internals$trusted_types.trustedTypes.emptyScript: "")});function module$contents$google3$third_party$javascript$safevalues$internals$script_impl_isScript(a){return a instanceof module$exports$google3$third_party$javascript$safevalues$internals$script_impl.SafeScript}module$exports$google3$third_party$javascript$safevalues$internals$script_impl.isScript=module$contents$google3$third_party$javascript$safevalues$internals$script_impl_isScript; function module$contents$google3$third_party$javascript$safevalues$internals$script_impl_unwrapScript(a){if(module$contents$google3$third_party$javascript$safevalues$internals$script_impl_isScript(a))return a.privateDoNotAccessOrElseWrappedScript;a="";goog.DEBUG&&(a="Unexpected type when unwrapping SafeScript");throw Error(a);}module$exports$google3$third_party$javascript$safevalues$internals$script_impl.unwrapScript=module$contents$google3$third_party$javascript$safevalues$internals$script_impl_unwrapScript;var module$exports$google3$third_party$javascript$safevalues$dom$elements$script={};function module$contents$google3$third_party$javascript$safevalues$dom$elements$script_setNonceForScriptElement(a){var b=a.ownerDocument&&a.ownerDocument.defaultView;(b=(0,module$exports$google3$third_party$javascript$safevalues$dom$globals$window.getScriptNonce)(b||window))&&a.setAttribute("nonce",b)} function module$contents$google3$third_party$javascript$safevalues$dom$elements$script_setTextContent(a,b,c){a.textContent=module$contents$google3$third_party$javascript$safevalues$internals$script_impl_unwrapScript(b);var d;((d=c)==null?0:d.omitNonce)||module$contents$google3$third_party$javascript$safevalues$dom$elements$script_setNonceForScriptElement(a)}module$exports$google3$third_party$javascript$safevalues$dom$elements$script.setTextContent=module$contents$google3$third_party$javascript$safevalues$dom$elements$script_setTextContent; function module$contents$google3$third_party$javascript$safevalues$dom$elements$script_setSrc(a,b,c){a.src=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(b);var d;((d=c)==null?0:d.omitNonce)||module$contents$google3$third_party$javascript$safevalues$dom$elements$script_setNonceForScriptElement(a)}module$exports$google3$third_party$javascript$safevalues$dom$elements$script.setSrc=module$contents$google3$third_party$javascript$safevalues$dom$elements$script_setSrc;var module$exports$google3$third_party$javascript$safevalues$internals$style_sheet_impl={SafeStyleSheet:function(a,b){goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$internals$secrets_ensureTokenIsValid(a);this.privateDoNotAccessOrElseWrappedStyleSheet=b}};module$exports$google3$third_party$javascript$safevalues$internals$style_sheet_impl.SafeStyleSheet.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet}; function module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_createStyleSheetInternal(a){return new module$exports$google3$third_party$javascript$safevalues$internals$style_sheet_impl.SafeStyleSheet(module$exports$google3$third_party$javascript$safevalues$internals$secrets.secretToken,a)}module$exports$google3$third_party$javascript$safevalues$internals$style_sheet_impl.createStyleSheetInternal=module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_createStyleSheetInternal; function module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_isStyleSheet(a){return a instanceof module$exports$google3$third_party$javascript$safevalues$internals$style_sheet_impl.SafeStyleSheet}module$exports$google3$third_party$javascript$safevalues$internals$style_sheet_impl.isStyleSheet=module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_isStyleSheet; function module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_unwrapStyleSheet(a){if(module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_isStyleSheet(a))return a.privateDoNotAccessOrElseWrappedStyleSheet;var b="";goog.DEBUG&&(b="Unexpected type when unwrapping SafeStyleSheet, got '"+a+"' of type '"+typeof a+"'");throw Error(b);}module$exports$google3$third_party$javascript$safevalues$internals$style_sheet_impl.unwrapStyleSheet=module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_unwrapStyleSheet;var module$exports$google3$third_party$javascript$safevalues$dom$elements$style={};function module$contents$google3$third_party$javascript$safevalues$dom$elements$style_setTextContent(a,b){a.textContent=module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_unwrapStyleSheet(b)}module$exports$google3$third_party$javascript$safevalues$dom$elements$style.setTextContent=module$contents$google3$third_party$javascript$safevalues$dom$elements$style_setTextContent;var module$contents$google3$third_party$javascript$safevalues$dom$elements$svg_UNSAFE_SVG_ATTRIBUTES=["href","xlink:href"];function module$contents$google3$third_party$javascript$safevalues$dom$elements$svg_setAttribute(a,b,c){var d=b.toLowerCase();if(module$contents$google3$third_party$javascript$safevalues$dom$elements$svg_UNSAFE_SVG_ATTRIBUTES.indexOf(d)!==-1||d.indexOf("on")===0)throw a="",goog.DEBUG&&(a="Setting the '"+d+"' attribute on SVG can cause XSS."),Error(a);a.setAttribute(b,c)};goog.debug.errorcontext={};goog.debug.errorcontext.addErrorContext=function(a,b,c){a[goog.debug.errorcontext.CONTEXT_KEY_]||(a[goog.debug.errorcontext.CONTEXT_KEY_]={});a[goog.debug.errorcontext.CONTEXT_KEY_][b]=c};goog.debug.errorcontext.getErrorContext=function(a){return a[goog.debug.errorcontext.CONTEXT_KEY_]||{}};goog.debug.errorcontext.CONTEXT_KEY_="__closure__error__context__984382";goog.debug.LOGGING_ENABLED=goog.DEBUG;goog.debug.FORCE_SLOPPY_STACKS=!1;goog.debug.CHECK_FOR_THROWN_EVENT=!1;goog.debug.catchErrors=function(a,b,c){c=c||goog.global;var d=c.onerror,e=!!b;c.onerror=function(f,g,h,k,l){d&&d(f,g,h,k,l);a({message:f,fileName:g,line:h,lineNumber:h,col:k,error:l});return e}}; goog.debug.expose=function(a,b){if(typeof a=="undefined")return"undefined";if(a==null)return"NULL";var c=[],d;for(d in a)if(b||typeof a[d]!=="function"){var e=d+" = ";try{e+=a[d]}catch(f){e+="*** "+f+" ***"}c.push(e)}return c.join("\n")}; goog.debug.deepExpose=function(a,b){var c=[],d=[],e={},f=function(g,h){var k=h+" ";try{if(g===void 0)c.push("undefined");else if(g===null)c.push("NULL");else if(typeof g==="string")c.push('"'+g.replace(/\n/g,"\n"+h)+'"');else if(typeof g==="function")c.push(String(g).replace(/\n/g,"\n"+h));else if(goog.isObject(g)){goog.hasUid(g)||d.push(g);var l=goog.getUid(g);if(e[l])c.push("*** reference loop detected (id="+l+") ***");else{e[l]=!0;c.push("{");for(var m in g)if(b||typeof g[m]!=="function")c.push("\n"), c.push(k),c.push(m+" = "),f(g[m],k);c.push("\n"+h+"}");delete e[l]}}else c.push(g)}catch(n){c.push("*** "+n+" ***")}};f(a,"");for(a=0;a<d.length;a++)goog.removeUid(d[a]);return c.join("")};goog.debug.exposeArray=function(a){for(var b=[],c=0;c<a.length;c++)Array.isArray(a[c])?b.push(goog.debug.exposeArray(a[c])):b.push(a[c]);return"[ "+b.join(", ")+" ]"}; goog.debug.normalizeErrorObject=function(a){var b=goog.getObjectByName("window.location.href");a==null&&(a='Unknown Error of type "null/undefined"');if(typeof a==="string")return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(g){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||goog.global.$googDebugFname||b}catch(g){e="Not available",c=!0}b=goog.debug.serializeErrorStack_(a); if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;if(c==null){if(a.constructor&&a.constructor instanceof Function){var f=a.constructor.name?a.constructor.name:goog.debug.getFunctionName(a.constructor);c='Unknown Error of type "'+f+'"';if(goog.debug.CHECK_FOR_THROWN_EVENT&&f=="Event")try{c=c+' with Event.type "'+(a.type||"")+'"'}catch(g){}}else c="Unknown Error of unknown type";typeof a.toString==="function"&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c, name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}return{message:a.message,name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:b}}; goog.debug.serializeErrorStack_=function(a,b){b||(b={});b[goog.debug.serializeErrorAsKey_(a)]=!0;var c=a.stack||"",d=a.cause;d&&!b[goog.debug.serializeErrorAsKey_(d)]&&(c+="\nCaused by: ",d.stack&&d.stack.indexOf(d.toString())==0||(c+=typeof d==="string"?d:d.message+"\n"),c+=goog.debug.serializeErrorStack_(d,b));a=a.errors;if(Array.isArray(a)){d=1;var e;for(e=0;e<a.length&&!(d>4);e++)b[goog.debug.serializeErrorAsKey_(a[e])]||(c+="\nInner error "+d++ +": ",a[e].stack&&a[e].stack.indexOf(a[e].toString())== 0||(c+=typeof a[e]==="string"?a[e]:a[e].message+"\n"),c+=goog.debug.serializeErrorStack_(a[e],b));e<a.length&&(c+="\n... "+(a.length-e)+" more inner errors")}return c};goog.debug.serializeErrorAsKey_=function(a){var b="";typeof a.toString==="function"&&(b=""+a);return b+a.stack}; goog.debug.enhanceError=function(a,b){a instanceof Error||(a=Error(a),Error.captureStackTrace&&Error.captureStackTrace(a,goog.debug.enhanceError));a.stack||(a.stack=goog.debug.getStacktrace(goog.debug.enhanceError));if(b){for(var c=0;a["message"+c];)++c;a["message"+c]=String(b)}return a};goog.debug.enhanceErrorWithContext=function(a,b){a=goog.debug.enhanceError(a);if(b)for(var c in b)goog.debug.errorcontext.addErrorContext(a,c,b[c]);return a}; goog.debug.getStacktraceSimple=function(a){if(!goog.debug.FORCE_SLOPPY_STACKS){var b=goog.debug.getNativeStackTrace_(goog.debug.getStacktraceSimple);if(b)return b}b=[];for(var c=arguments.callee.caller,d=0;c&&(!a||d<a);){b.push(goog.debug.getFunctionName(c));b.push("()\n");try{c=c.caller}catch(e){b.push("[exception trying to get caller]\n");break}d++;if(d>=goog.debug.MAX_STACK_DEPTH){b.push("[...long stack...]");break}}a&&d>=a?b.push("[...reached max depth limit...]"):b.push("[end]");return b.join("")}; goog.debug.MAX_STACK_DEPTH=50;goog.debug.getNativeStackTrace_=function(a){var b=Error();if(Error.captureStackTrace)return Error.captureStackTrace(b,a),String(b.stack);try{throw b;}catch(c){b=c}return(a=b.stack)?String(a):null};goog.debug.getStacktrace=function(a){if(!goog.debug.FORCE_SLOPPY_STACKS){var b=a||goog.debug.getStacktrace;b=goog.debug.getNativeStackTrace_(b)}b||(b=goog.debug.getStacktraceHelper_(a||arguments.callee.caller,[]));return b}; goog.debug.getStacktraceHelper_=function(a,b){var c=[];if(module$contents$goog$array_contains(b,a))c.push("[...circular reference...]");else if(a&&b.length<goog.debug.MAX_STACK_DEPTH){c.push(goog.debug.getFunctionName(a)+"(");for(var d=a.arguments,e=0;d&&e<d.length;e++){e>0&&c.push(", ");var f=d[e];switch(typeof f){case "object":f=f?"object":"null";break;case "string":break;case "number":f=String(f);break;case "boolean":f=f?"true":"false";break;case "function":f=(f=goog.debug.getFunctionName(f))? f:"[fn]";break;default:f=typeof f}f.length>40&&(f=f.slice(0,40)+"...");c.push(f)}b.push(a);c.push(")\n");try{c.push(goog.debug.getStacktraceHelper_(a.caller,b))}catch(g){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")}; goog.debug.getFunctionName=function(a){if(goog.debug.fnNameCache_[a])return goog.debug.fnNameCache_[a];a=String(a);if(!goog.debug.fnNameCache_[a]){var b=/function\s+([^\(]+)/m.exec(a);b?(b=b[1],goog.debug.fnNameCache_[a]=b):goog.debug.fnNameCache_[a]="[Anonymous]"}return goog.debug.fnNameCache_[a]};goog.debug.makeWhitespaceVisible=function(a){return a.replace(/ /g,"[_]").replace(/\f/g,"[f]").replace(/\n/g,"[n]\n").replace(/\r/g,"[r]").replace(/\t/g,"[t]")}; goog.debug.runtimeType=function(a){return a instanceof Function?a.displayName||a.name||"unknown type name":a instanceof Object?a.constructor.displayName||a.constructor.name||Object.prototype.toString.call(a):a===null?"null":typeof a};goog.debug.fnNameCache_={};goog.debug.freezeInternal_=goog.DEBUG&&Object.freeze||function(a){return a};goog.debug.freeze=function(a){return goog.debug.freezeInternal_(a)};goog.log={};goog.log.ENABLED=goog.debug.LOGGING_ENABLED;goog.log.ROOT_LOGGER_NAME="";var third_party$javascript$closure$log$log$classdecl$var0=function(a,b){this.name=a;this.value=b};third_party$javascript$closure$log$log$classdecl$var0.prototype.toString=function(){return this.name};goog.log.Level=third_party$javascript$closure$log$log$classdecl$var0;goog.log.Level.OFF=new goog.log.Level("OFF",Infinity);goog.log.Level.SHOUT=new goog.log.Level("SHOUT",1200); goog.log.Level.SEVERE=new goog.log.Level("SEVERE",1E3);goog.log.Level.WARNING=new goog.log.Level("WARNING",900);goog.log.Level.INFO=new goog.log.Level("INFO",800);goog.log.Level.CONFIG=new goog.log.Level("CONFIG",700);goog.log.Level.FINE=new goog.log.Level("FINE",500);goog.log.Level.FINER=new goog.log.Level("FINER",400);goog.log.Level.FINEST=new goog.log.Level("FINEST",300);goog.log.Level.ALL=new goog.log.Level("ALL",0); goog.log.Level.PREDEFINED_LEVELS=[goog.log.Level.OFF,goog.log.Level.SHOUT,goog.log.Level.SEVERE,goog.log.Level.WARNING,goog.log.Level.INFO,goog.log.Level.CONFIG,goog.log.Level.FINE,goog.log.Level.FINER,goog.log.Level.FINEST,goog.log.Level.ALL];goog.log.Level.predefinedLevelsCache_=null; goog.log.Level.createPredefinedLevelsCache_=function(){goog.log.Level.predefinedLevelsCache_={};for(var a=0,b;b=goog.log.Level.PREDEFINED_LEVELS[a];a++)goog.log.Level.predefinedLevelsCache_[b.value]=b,goog.log.Level.predefinedLevelsCache_[b.name]=b};goog.log.Level.getPredefinedLevel=function(a){goog.log.Level.predefinedLevelsCache_||goog.log.Level.createPredefinedLevelsCache_();return goog.log.Level.predefinedLevelsCache_[a]||null}; goog.log.Level.getPredefinedLevelByValue=function(a){goog.log.Level.predefinedLevelsCache_||goog.log.Level.createPredefinedLevelsCache_();if(a in goog.log.Level.predefinedLevelsCache_)return goog.log.Level.predefinedLevelsCache_[a];for(var b=0;b<goog.log.Level.PREDEFINED_LEVELS.length;++b){var c=goog.log.Level.PREDEFINED_LEVELS[b];if(c.value<=a)return c}return null};var third_party$javascript$closure$log$log$classdecl$var1=function(){}; third_party$javascript$closure$log$log$classdecl$var1.prototype.getName=function(){};goog.log.Logger=third_party$javascript$closure$log$log$classdecl$var1;goog.log.Logger.Level=goog.log.Level;var third_party$javascript$closure$log$log$classdecl$var2=function(a){this.capacity_=typeof a==="number"?a:goog.log.LogBuffer.CAPACITY;this.clear()}; third_party$javascript$closure$log$log$classdecl$var2.prototype.addRecord=function(a,b,c){if(!this.isBufferingEnabled())return new goog.log.LogRecord(a,b,c);var d=(this.curIndex_+1)%this.capacity_;this.curIndex_=d;if(this.isFull_)return d=this.buffer_[d],d.reset(a,b,c),d;this.isFull_=d==this.capacity_-1;return this.buffer_[d]=new goog.log.LogRecord(a,b,c)};third_party$javascript$closure$log$log$classdecl$var2.prototype.isBufferingEnabled=function(){return this.capacity_>0}; third_party$javascript$closure$log$log$classdecl$var2.prototype.clear=function(){this.buffer_=Array(this.capacity_);this.curIndex_=-1;this.isFull_=!1};goog.log.LogBuffer=third_party$javascript$closure$log$log$classdecl$var2;goog.log.LogBuffer.CAPACITY=0;goog.log.LogBuffer.getInstance=function(){goog.log.LogBuffer.instance_||(goog.log.LogBuffer.instance_=new goog.log.LogBuffer(goog.log.LogBuffer.CAPACITY));return goog.log.LogBuffer.instance_};goog.log.LogBuffer.isBufferingEnabled=function(){return goog.log.LogBuffer.getInstance().isBufferingEnabled()}; var third_party$javascript$closure$log$log$classdecl$var3=function(a,b,c,d,e){this.reset(a||goog.log.Level.OFF,b,c,d,e)};third_party$javascript$closure$log$log$classdecl$var3.prototype.reset=function(a,b,c,d){d||goog.now();this.level_=a};third_party$javascript$closure$log$log$classdecl$var3.prototype.getLevel=function(){return this.level_};third_party$javascript$closure$log$log$classdecl$var3.prototype.setLevel=function(a){this.level_=a}; third_party$javascript$closure$log$log$classdecl$var3.prototype.setMessage=function(){};goog.log.LogRecord=third_party$javascript$closure$log$log$classdecl$var3;goog.log.LogRecord.nextSequenceNumber_=0;var third_party$javascript$closure$log$log$classdecl$var4=function(a,b){b=b===void 0?null:b;this.level=null;this.handlers=[];this.parent=b||null;this.children=[];this.logger={getName:function(){return a}}}; third_party$javascript$closure$log$log$classdecl$var4.prototype.getEffectiveLevel=function(){if(this.level)return this.level;if(this.parent)return this.parent.getEffectiveLevel();goog.asserts.fail("Root logger has no level set.");return goog.log.Level.OFF};third_party$javascript$closure$log$log$classdecl$var4.prototype.publish=function(a){for(var b=this;b;)b.handlers.forEach(function(c){c(a)}),b=b.parent};goog.log.LogRegistryEntry_=third_party$javascript$closure$log$log$classdecl$var4; var third_party$javascript$closure$log$log$classdecl$var5=function(){this.entries={};var a=new goog.log.LogRegistryEntry_(goog.log.ROOT_LOGGER_NAME);a.level=goog.log.Level.CONFIG;this.entries[goog.log.ROOT_LOGGER_NAME]=a}; third_party$javascript$closure$log$log$classdecl$var5.prototype.getLogRegistryEntry=function(a,b){var c=this.entries[a];if(c)return b!==void 0&&(c.level=b),c;c=a.lastIndexOf(".");c=a.slice(0,Math.max(c,0));c=this.getLogRegistryEntry(c);var d=new goog.log.LogRegistryEntry_(a,c);this.entries[a]=d;c.children.push(d);b!==void 0&&(d.level=b);return d};third_party$javascript$closure$log$log$classdecl$var5.prototype.getAllLoggers=function(){var a=this;return Object.keys(this.entries).map(function(b){return a.entries[b].logger})}; goog.log.LogRegistry_=third_party$javascript$closure$log$log$classdecl$var5;goog.log.LogRegistry_.getInstance=function(){goog.log.LogRegistry_.instance_||(goog.log.LogRegistry_.instance_=new goog.log.LogRegistry_);return goog.log.LogRegistry_.instance_};goog.log.getLogger=function(a,b){return goog.log.ENABLED?(a=goog.log.LogRegistry_.getInstance().getLogRegistryEntry(a,b),a.logger):null}; goog.log.getRootLogger=function(){if(goog.log.ENABLED){var a=goog.log.LogRegistry_.getInstance().getLogRegistryEntry(goog.log.ROOT_LOGGER_NAME);return a.logger}return null};goog.log.addHandler=function(a,b){goog.log.ENABLED&&a&&(a=goog.log.LogRegistry_.getInstance().getLogRegistryEntry(a.getName()),a.handlers.push(b))}; goog.log.removeHandler=function(a,b){return goog.log.ENABLED&&a&&(a=goog.log.LogRegistry_.getInstance().getLogRegistryEntry(a.getName()),b=a.handlers.indexOf(b),b!==-1)?(a.handlers.splice(b,1),!0):!1};goog.log.setLevel=function(a,b){goog.log.ENABLED&&a&&(a=goog.log.LogRegistry_.getInstance().getLogRegistryEntry(a.getName()),a.level=b)};goog.log.getLevel=function(a){return goog.log.ENABLED&&a?(a=goog.log.LogRegistry_.getInstance().getLogRegistryEntry(a.getName()),a.level):null}; goog.log.getEffectiveLevel=function(a){return goog.log.ENABLED&&a?(a=goog.log.LogRegistry_.getInstance().getLogRegistryEntry(a.getName()),a.getEffectiveLevel()):goog.log.Level.OFF};goog.log.isLoggable=function(a,b){return goog.log.ENABLED&&a&&b?b.value>=goog.log.getEffectiveLevel(a).value:!1};goog.log.getAllLoggers=function(){return goog.log.ENABLED?goog.log.LogRegistry_.getInstance().getAllLoggers():[]}; goog.log.getLogRecord=function(a,b,c){return a=goog.log.LogBuffer.getInstance().addRecord(b||goog.log.Level.OFF,c,a.getName())};goog.log.publishLogRecord=function(a,b){goog.log.ENABLED&&a&&goog.log.isLoggable(a,b.getLevel())&&(a=goog.log.LogRegistry_.getInstance().getLogRegistryEntry(a.getName()),a.publish(b))}; goog.log.log=function(a,b,c){if(goog.log.ENABLED&&a&&goog.log.isLoggable(a,b)){b=b||goog.log.Level.OFF;var d=goog.log.LogRegistry_.getInstance().getLogRegistryEntry(a.getName());typeof c==="function"&&(c=c());a=goog.log.LogBuffer.getInstance().addRecord(b,c,a.getName());d.publish(a)}};goog.log.error=function(a,b,c){goog.log.ENABLED&&a&&goog.log.log(a,goog.log.Level.SEVERE,b,c)};goog.log.warning=function(a,b,c){goog.log.ENABLED&&a&&goog.log.log(a,goog.log.Level.WARNING,b,c)}; goog.log.info=function(a,b,c){goog.log.ENABLED&&a&&goog.log.log(a,goog.log.Level.INFO,b,c)};goog.log.fine=function(a,b,c){goog.log.ENABLED&&a&&goog.log.log(a,goog.log.Level.FINE,b,c)};function module$contents$google3$third_party$javascript$safevalues$dom$elements$svg_use_setHref(a,b){var c=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_extractScheme(b);c==="javascript:"||c==="data:"?goog.DEBUG&&(a="A URL with content '"+b+"' was sanitized away.",(0,goog.log.warning)((0,goog.log.getLogger)("safevalues"),a)):a.setAttribute("href",b)};function module$contents$google3$third_party$javascript$safevalues$dom$globals$document_write(a,b){a.write((0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.unwrapHtml)(b))}function module$contents$google3$third_party$javascript$safevalues$dom$globals$document_execCommand(a,b,c){b=String(b);var d=c;b.toLowerCase()==="inserthtml"&&(d=(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.unwrapHtml)(c));return a.execCommand(b,!1,d)} function module$contents$google3$third_party$javascript$safevalues$dom$globals$document_execCommandInsertHtml(a,b){return a.execCommand("insertHTML",!1,(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.unwrapHtml)(b))};var module$exports$google3$third_party$javascript$safevalues$dom$globals$dom_parser={};function module$contents$google3$third_party$javascript$safevalues$dom$globals$dom_parser_parseHtml(a,b){return module$contents$google3$third_party$javascript$safevalues$dom$globals$dom_parser_parseFromString(a,b,"text/html")}module$exports$google3$third_party$javascript$safevalues$dom$globals$dom_parser.parseHtml=module$contents$google3$third_party$javascript$safevalues$dom$globals$dom_parser_parseHtml; function module$contents$google3$third_party$javascript$safevalues$dom$globals$dom_parser_parseXml(a,b){a=module$contents$google3$third_party$javascript$safevalues$dom$globals$dom_parser_parseFromString(a,(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal)(b),"text/xml");b=document.createNodeIterator(a,NodeFilter.SHOW_ELEMENT);for(var c;c=b.nextNode();)if(c=c.namespaceURI,c==="http://www.w3.org/1999/xhtml"||c==="http://www.w3.org/2000/svg"||c==="http://www.w3.org/1998/Math/MathML")throw a= "unsafe XML",goog.DEBUG&&(a+=" - attempted to parse an XML document containing an element with namespace "+c+". Parsing HTML, SVG or MathML content is unsafe because it may lead to XSS when the content is appended to the document."),Error(a);return a}module$exports$google3$third_party$javascript$safevalues$dom$globals$dom_parser.parseXml=module$contents$google3$third_party$javascript$safevalues$dom$globals$dom_parser_parseXml; function module$contents$google3$third_party$javascript$safevalues$dom$globals$dom_parser_parseFromString(a,b,c){return a.parseFromString((0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.unwrapHtml)(b),c)}module$exports$google3$third_party$javascript$safevalues$dom$globals$dom_parser.parseFromString=module$contents$google3$third_party$javascript$safevalues$dom$globals$dom_parser_parseFromString;var module$exports$google3$third_party$javascript$safevalues$dom$globals$fetch={IncorrectContentTypeError:function(a,b,c){var d=Error.call(this,a+" was requested as a "+b+', but the response Content-Type, "'+c+" is not appropriate for this type of content.");this.message=d.message;"stack"in d&&(this.stack=d.stack);this.url=a;this.typeName=b;this.contentType=c}};$jscomp.inherits(module$exports$google3$third_party$javascript$safevalues$dom$globals$fetch.IncorrectContentTypeError,Error); function module$contents$google3$third_party$javascript$safevalues$dom$globals$fetch_SafeResponse(){}module$exports$google3$third_party$javascript$safevalues$dom$globals$fetch.SafeResponse=module$contents$google3$third_party$javascript$safevalues$dom$globals$fetch_SafeResponse; function module$contents$google3$third_party$javascript$safevalues$dom$globals$fetch_fetchResourceUrl(a,b){var c,d,e,f,g;return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(h){if(h.nextAddress==1)return h.yield(fetch(module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(a).toString(),b),2);c=h.yieldResult;g=(d=c.headers.get("Content-Type"))==null?void 0:(e=d.split(";",2))==null?void 0:(f=e[0])==null?void 0:f.toLowerCase();return h.return({html:function(){var k; return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(l){if(l.nextAddress==1){if(g!=="text/html")throw new module$exports$google3$third_party$javascript$safevalues$dom$globals$fetch.IncorrectContentTypeError(c.url,"SafeHtml","text/html");return l.yield(c.text(),2)}k=l.yieldResult;return l.return((0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal)(k))})},script:function(){var k;return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(l){if(l.nextAddress== 1){if(g!=="text/javascript"&&g!=="application/javascript")throw new module$exports$google3$third_party$javascript$safevalues$dom$globals$fetch.IncorrectContentTypeError(c.url,"SafeScript","text/javascript");return l.yield(c.text(),2)}k=l.yieldResult;return l.return(module$contents$google3$third_party$javascript$safevalues$internals$script_impl_createScriptInternal(k))})},styleSheet:function(){var k;return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(l){if(l.nextAddress==1){if(g!=="text/css")throw new module$exports$google3$third_party$javascript$safevalues$dom$globals$fetch.IncorrectContentTypeError(c.url, "SafeStyleSheet","text/css");return l.yield(c.text(),2)}k=l.yieldResult;return l.return(module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_createStyleSheetInternal(k))})}})})}module$exports$google3$third_party$javascript$safevalues$dom$globals$fetch.fetchResourceUrl=module$contents$google3$third_party$javascript$safevalues$dom$globals$fetch_fetchResourceUrl;function module$contents$google3$third_party$javascript$safevalues$dom$globals$global_globalEval(a,b){b=module$contents$google3$third_party$javascript$safevalues$internals$script_impl_unwrapScript(b);var c=a.eval(b);c===b&&(c=a.eval(b.toString()));return c};var module$exports$google3$third_party$javascript$safevalues$dom$globals$location={};function module$contents$google3$third_party$javascript$safevalues$dom$globals$location_setHref(a,b){b=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_unwrapUrlOrSanitize(b);b!==void 0&&module$exports$google3$third_party$javascript$safevalues$dom$globals$location.mockableLocation.setHref(a,b)}module$exports$google3$third_party$javascript$safevalues$dom$globals$location.setHref=module$contents$google3$third_party$javascript$safevalues$dom$globals$location_setHref; function module$contents$google3$third_party$javascript$safevalues$dom$globals$location_replace(a,b){b=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_unwrapUrlOrSanitize(b);b!==void 0&&module$exports$google3$third_party$javascript$safevalues$dom$globals$location.mockableLocation.replace(a,b)}module$exports$google3$third_party$javascript$safevalues$dom$globals$location.replace=module$contents$google3$third_party$javascript$safevalues$dom$globals$location_replace; function module$contents$google3$third_party$javascript$safevalues$dom$globals$location_assign(a,b){b=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_unwrapUrlOrSanitize(b);b!==void 0&&module$exports$google3$third_party$javascript$safevalues$dom$globals$location.mockableLocation.assign(a,b)}module$exports$google3$third_party$javascript$safevalues$dom$globals$location.assign=module$contents$google3$third_party$javascript$safevalues$dom$globals$location_assign; module$exports$google3$third_party$javascript$safevalues$dom$globals$location.mockableLocation={setHref:function(a,b){a.href=b},replace:function(a,b){a.replace(b)},assign:function(a,b){a.assign(b)}};function module$contents$google3$third_party$javascript$safevalues$dom$globals$range_createContextualFragment(a,b){return a.createContextualFragment((0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.unwrapHtml)(b))};function module$contents$google3$third_party$javascript$safevalues$dom$globals$service_worker_container_register(a,b,c){return a.register(module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(b),c)};function module$contents$google3$third_party$javascript$safevalues$dom$globals$url_objectUrlFromSafeSource(a){return module$contents$google3$third_party$javascript$safevalues$builders$url_builders_objectUrlFromSafeSource(a).toString()};var module$exports$google3$third_party$javascript$safevalues$dom$globals$worker={};function module$contents$google3$third_party$javascript$safevalues$dom$globals$worker_ScopeWithImportScripts(){}module$exports$google3$third_party$javascript$safevalues$dom$globals$worker.ScopeWithImportScripts=module$contents$google3$third_party$javascript$safevalues$dom$globals$worker_ScopeWithImportScripts; function module$contents$google3$third_party$javascript$safevalues$dom$globals$worker_create(a,b){return new Worker(module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(a),b)}module$exports$google3$third_party$javascript$safevalues$dom$globals$worker.create=module$contents$google3$third_party$javascript$safevalues$dom$globals$worker_create; function module$contents$google3$third_party$javascript$safevalues$dom$globals$worker_createShared(a,b){return new SharedWorker(module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(a),b)}module$exports$google3$third_party$javascript$safevalues$dom$globals$worker.createShared=module$contents$google3$third_party$javascript$safevalues$dom$globals$worker_createShared; function module$contents$google3$third_party$javascript$safevalues$dom$globals$worker_importScripts(a){var b=$jscomp.getRestArguments.apply(1,arguments);a.importScripts.apply(a,(0,$jscomp.arrayFromIterable)(b.map(function(c){return module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(c)})))}module$exports$google3$third_party$javascript$safevalues$dom$globals$worker.importScripts=module$contents$google3$third_party$javascript$safevalues$dom$globals$worker_importScripts;var module$exports$google3$third_party$javascript$safevalues$dom$index={safeAnchorEl:module$exports$google3$third_party$javascript$safevalues$dom$elements$anchor,safeElement:module$exports$google3$third_party$javascript$safevalues$dom$elements$element,safeFormEl:module$exports$google3$third_party$javascript$safevalues$dom$elements$form,safeLinkEl:module$exports$google3$third_party$javascript$safevalues$dom$elements$link,safeScriptEl:module$exports$google3$third_party$javascript$safevalues$dom$elements$script, safeStyleEl:module$exports$google3$third_party$javascript$safevalues$dom$elements$style,safeDomParser:module$exports$google3$third_party$javascript$safevalues$dom$globals$dom_parser,safeLocation:module$exports$google3$third_party$javascript$safevalues$dom$globals$location,safeWindow:module$exports$google3$third_party$javascript$safevalues$dom$globals$window,safeWorker:module$exports$google3$third_party$javascript$safevalues$dom$globals$worker}; module$exports$google3$third_party$javascript$safevalues$dom$index.safeIframeEl={setSrc:module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.setSrc,setSrcdoc:module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.setSrcdoc,Intent:module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent,TypeCannotBeUsedWithIntentError:module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError, setSrcWithIntent:module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.setSrcWithIntent,setSrcdocWithIntent:module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.setSrcdocWithIntent};module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref=module$exports$google3$third_party$javascript$safevalues$dom$elements$anchor.setHref;module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHrefLite=module$exports$google3$third_party$javascript$safevalues$dom$elements$anchor.setHrefLite; module$exports$google3$third_party$javascript$safevalues$dom$index.setAreaHref=module$contents$google3$third_party$javascript$safevalues$dom$elements$area_setHref;module$exports$google3$third_party$javascript$safevalues$dom$index.setBaseHref=module$contents$google3$third_party$javascript$safevalues$dom$elements$base_setHref;module$exports$google3$third_party$javascript$safevalues$dom$index.setButtonFormaction=module$contents$google3$third_party$javascript$safevalues$dom$elements$button_setFormaction; module$exports$google3$third_party$javascript$safevalues$dom$index.buildPrefixedAttributeSetter=module$exports$google3$third_party$javascript$safevalues$dom$elements$element.buildPrefixedAttributeSetter;module$exports$google3$third_party$javascript$safevalues$dom$index.elementInsertAdjacentHtml=module$exports$google3$third_party$javascript$safevalues$dom$elements$element.insertAdjacentHtml;module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml=module$exports$google3$third_party$javascript$safevalues$dom$elements$element.setInnerHtml; module$exports$google3$third_party$javascript$safevalues$dom$index.setElementOuterHtml=module$exports$google3$third_party$javascript$safevalues$dom$elements$element.setOuterHtml;module$exports$google3$third_party$javascript$safevalues$dom$index.setElementPrefixedAttribute=module$exports$google3$third_party$javascript$safevalues$dom$elements$element.setPrefixedAttribute;module$exports$google3$third_party$javascript$safevalues$dom$index.setEmbedSrc=module$contents$google3$third_party$javascript$safevalues$dom$elements$embed_setSrc; module$exports$google3$third_party$javascript$safevalues$dom$index.setFormAction=module$exports$google3$third_party$javascript$safevalues$dom$elements$form.setAction;module$exports$google3$third_party$javascript$safevalues$dom$index.setFormActionLite=module$exports$google3$third_party$javascript$safevalues$dom$elements$form.setActionLite;module$exports$google3$third_party$javascript$safevalues$dom$index.IframeIntent=module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.Intent; module$exports$google3$third_party$javascript$safevalues$dom$index.TypeCannotBeUsedWithIframeIntentError=module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.TypeCannotBeUsedWithIntentError;module$exports$google3$third_party$javascript$safevalues$dom$index.setIframeSrc=module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.setSrc;module$exports$google3$third_party$javascript$safevalues$dom$index.setIframeSrcWithIntent=module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.setSrcWithIntent; module$exports$google3$third_party$javascript$safevalues$dom$index.setIframeSrcdoc=module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.setSrcdoc;module$exports$google3$third_party$javascript$safevalues$dom$index.setIframeSrcdocWithIntent=module$exports$google3$third_party$javascript$safevalues$dom$elements$iframe.setSrcdocWithIntent;module$exports$google3$third_party$javascript$safevalues$dom$index.setInputFormaction=module$contents$google3$third_party$javascript$safevalues$dom$elements$input_setFormaction; module$exports$google3$third_party$javascript$safevalues$dom$index.setLinkHrefAndRel=module$exports$google3$third_party$javascript$safevalues$dom$elements$link.setHrefAndRel;module$exports$google3$third_party$javascript$safevalues$dom$index.setLinkWithResourceUrlHrefAndRel=module$exports$google3$third_party$javascript$safevalues$dom$elements$link.setHrefAndRelWithTrustedResourceUrl;module$exports$google3$third_party$javascript$safevalues$dom$index.setObjectData=module$contents$google3$third_party$javascript$safevalues$dom$elements$object_setData; module$exports$google3$third_party$javascript$safevalues$dom$index.setScriptSrc=module$exports$google3$third_party$javascript$safevalues$dom$elements$script.setSrc;module$exports$google3$third_party$javascript$safevalues$dom$index.setScriptTextContent=module$exports$google3$third_party$javascript$safevalues$dom$elements$script.setTextContent;module$exports$google3$third_party$javascript$safevalues$dom$index.setStyleTextContent=module$exports$google3$third_party$javascript$safevalues$dom$elements$style.setTextContent; module$exports$google3$third_party$javascript$safevalues$dom$index.setSvgAttribute=module$contents$google3$third_party$javascript$safevalues$dom$elements$svg_setAttribute;module$exports$google3$third_party$javascript$safevalues$dom$index.setSvgUseHref=module$contents$google3$third_party$javascript$safevalues$dom$elements$svg_use_setHref;module$exports$google3$third_party$javascript$safevalues$dom$index.documentExecCommand=module$contents$google3$third_party$javascript$safevalues$dom$globals$document_execCommand; module$exports$google3$third_party$javascript$safevalues$dom$index.documentExecCommandInsertHtml=module$contents$google3$third_party$javascript$safevalues$dom$globals$document_execCommandInsertHtml;module$exports$google3$third_party$javascript$safevalues$dom$index.documentWrite=module$contents$google3$third_party$javascript$safevalues$dom$globals$document_write;module$exports$google3$third_party$javascript$safevalues$dom$index.domParserParseFromString=module$exports$google3$third_party$javascript$safevalues$dom$globals$dom_parser.parseFromString; module$exports$google3$third_party$javascript$safevalues$dom$index.domParserParseHtml=module$exports$google3$third_party$javascript$safevalues$dom$globals$dom_parser.parseHtml;module$exports$google3$third_party$javascript$safevalues$dom$index.domParserParseXml=module$exports$google3$third_party$javascript$safevalues$dom$globals$dom_parser.parseXml;module$exports$google3$third_party$javascript$safevalues$dom$index.fetchResourceUrl=module$contents$google3$third_party$javascript$safevalues$dom$globals$fetch_fetchResourceUrl; module$exports$google3$third_party$javascript$safevalues$dom$index.globalEval=module$contents$google3$third_party$javascript$safevalues$dom$globals$global_globalEval;module$exports$google3$third_party$javascript$safevalues$dom$index.locationAssign=module$exports$google3$third_party$javascript$safevalues$dom$globals$location.assign;module$exports$google3$third_party$javascript$safevalues$dom$index.locationReplace=module$exports$google3$third_party$javascript$safevalues$dom$globals$location.replace; module$exports$google3$third_party$javascript$safevalues$dom$index.setLocationHref=module$exports$google3$third_party$javascript$safevalues$dom$globals$location.setHref;module$exports$google3$third_party$javascript$safevalues$dom$index.rangeCreateContextualFragment=module$contents$google3$third_party$javascript$safevalues$dom$globals$range_createContextualFragment;module$exports$google3$third_party$javascript$safevalues$dom$index.serviceWorkerContainerRegister=module$contents$google3$third_party$javascript$safevalues$dom$globals$service_worker_container_register; module$exports$google3$third_party$javascript$safevalues$dom$index.objectUrlFromSafeSource=module$contents$google3$third_party$javascript$safevalues$dom$globals$url_objectUrlFromSafeSource;module$exports$google3$third_party$javascript$safevalues$dom$index.getScriptNonce=module$exports$google3$third_party$javascript$safevalues$dom$globals$window.getScriptNonce;module$exports$google3$third_party$javascript$safevalues$dom$index.getStyleNonce=module$exports$google3$third_party$javascript$safevalues$dom$globals$window.getStyleNonce; module$exports$google3$third_party$javascript$safevalues$dom$index.windowOpen=module$exports$google3$third_party$javascript$safevalues$dom$globals$window.open;module$exports$google3$third_party$javascript$safevalues$dom$index.createWorker=module$exports$google3$third_party$javascript$safevalues$dom$globals$worker.create;module$exports$google3$third_party$javascript$safevalues$dom$index.createSharedWorker=module$exports$google3$third_party$javascript$safevalues$dom$globals$worker.createShared; module$exports$google3$third_party$javascript$safevalues$dom$index.workerGlobalScopeImportScripts=module$exports$google3$third_party$javascript$safevalues$dom$globals$worker.importScripts;var safevalues={dom:{}};safevalues.dom.safeAnchorEl=module$exports$google3$third_party$javascript$safevalues$dom$elements$anchor;safevalues.dom.safeElement=module$exports$google3$third_party$javascript$safevalues$dom$elements$element;safevalues.dom.safeFormEl=module$exports$google3$third_party$javascript$safevalues$dom$elements$form;safevalues.dom.safeLinkEl=module$exports$google3$third_party$javascript$safevalues$dom$elements$link;safevalues.dom.safeScriptEl=module$exports$google3$third_party$javascript$safevalues$dom$elements$script; safevalues.dom.safeStyleEl=module$exports$google3$third_party$javascript$safevalues$dom$elements$style;safevalues.dom.safeDomParser=module$exports$google3$third_party$javascript$safevalues$dom$globals$dom_parser;safevalues.dom.safeLocation=module$exports$google3$third_party$javascript$safevalues$dom$globals$location;safevalues.dom.safeWindow=module$exports$google3$third_party$javascript$safevalues$dom$globals$window;safevalues.dom.safeWorker=module$exports$google3$third_party$javascript$safevalues$dom$globals$worker; safevalues.dom.safeIframeEl=module$exports$google3$third_party$javascript$safevalues$dom$index.safeIframeEl;safevalues.dom.setAnchorHref=module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref;safevalues.dom.setAnchorHrefLite=module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHrefLite;safevalues.dom.setAreaHref=module$contents$google3$third_party$javascript$safevalues$dom$elements$area_setHref;safevalues.dom.setBaseHref=module$contents$google3$third_party$javascript$safevalues$dom$elements$base_setHref; safevalues.dom.setButtonFormaction=module$contents$google3$third_party$javascript$safevalues$dom$elements$button_setFormaction;safevalues.dom.buildPrefixedAttributeSetter=module$exports$google3$third_party$javascript$safevalues$dom$index.buildPrefixedAttributeSetter;safevalues.dom.elementInsertAdjacentHtml=module$exports$google3$third_party$javascript$safevalues$dom$index.elementInsertAdjacentHtml;safevalues.dom.setElementInnerHtml=module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml; safevalues.dom.setElementOuterHtml=module$exports$google3$third_party$javascript$safevalues$dom$index.setElementOuterHtml;safevalues.dom.setElementPrefixedAttribute=module$exports$google3$third_party$javascript$safevalues$dom$index.setElementPrefixedAttribute;safevalues.dom.setEmbedSrc=module$contents$google3$third_party$javascript$safevalues$dom$elements$embed_setSrc;safevalues.dom.setFormAction=module$exports$google3$third_party$javascript$safevalues$dom$index.setFormAction; safevalues.dom.setFormActionLite=module$exports$google3$third_party$javascript$safevalues$dom$index.setFormActionLite;safevalues.dom.IframeIntent=module$exports$google3$third_party$javascript$safevalues$dom$index.IframeIntent;safevalues.dom.TypeCannotBeUsedWithIframeIntentError=module$exports$google3$third_party$javascript$safevalues$dom$index.TypeCannotBeUsedWithIframeIntentError;safevalues.dom.setIframeSrc=module$exports$google3$third_party$javascript$safevalues$dom$index.setIframeSrc; safevalues.dom.setIframeSrcWithIntent=module$exports$google3$third_party$javascript$safevalues$dom$index.setIframeSrcWithIntent;safevalues.dom.setIframeSrcdoc=module$exports$google3$third_party$javascript$safevalues$dom$index.setIframeSrcdoc;safevalues.dom.setIframeSrcdocWithIntent=module$exports$google3$third_party$javascript$safevalues$dom$index.setIframeSrcdocWithIntent;safevalues.dom.setInputFormaction=module$contents$google3$third_party$javascript$safevalues$dom$elements$input_setFormaction; safevalues.dom.setLinkHrefAndRel=module$exports$google3$third_party$javascript$safevalues$dom$index.setLinkHrefAndRel;safevalues.dom.setLinkWithResourceUrlHrefAndRel=module$exports$google3$third_party$javascript$safevalues$dom$index.setLinkWithResourceUrlHrefAndRel;safevalues.dom.setObjectData=module$contents$google3$third_party$javascript$safevalues$dom$elements$object_setData;safevalues.dom.setScriptSrc=module$exports$google3$third_party$javascript$safevalues$dom$index.setScriptSrc; safevalues.dom.setScriptTextContent=module$exports$google3$third_party$javascript$safevalues$dom$index.setScriptTextContent;safevalues.dom.setStyleTextContent=module$exports$google3$third_party$javascript$safevalues$dom$index.setStyleTextContent;safevalues.dom.setSvgAttribute=module$contents$google3$third_party$javascript$safevalues$dom$elements$svg_setAttribute;safevalues.dom.setSvgUseHref=module$contents$google3$third_party$javascript$safevalues$dom$elements$svg_use_setHref; safevalues.dom.documentExecCommand=module$contents$google3$third_party$javascript$safevalues$dom$globals$document_execCommand;safevalues.dom.documentExecCommandInsertHtml=module$contents$google3$third_party$javascript$safevalues$dom$globals$document_execCommandInsertHtml;safevalues.dom.documentWrite=module$contents$google3$third_party$javascript$safevalues$dom$globals$document_write;safevalues.dom.domParserParseFromString=module$exports$google3$third_party$javascript$safevalues$dom$index.domParserParseFromString; safevalues.dom.domParserParseHtml=module$exports$google3$third_party$javascript$safevalues$dom$index.domParserParseHtml;safevalues.dom.domParserParseXml=module$exports$google3$third_party$javascript$safevalues$dom$index.domParserParseXml;safevalues.dom.fetchResourceUrl=module$contents$google3$third_party$javascript$safevalues$dom$globals$fetch_fetchResourceUrl;safevalues.dom.globalEval=module$contents$google3$third_party$javascript$safevalues$dom$globals$global_globalEval; safevalues.dom.locationAssign=module$exports$google3$third_party$javascript$safevalues$dom$index.locationAssign;safevalues.dom.locationReplace=module$exports$google3$third_party$javascript$safevalues$dom$index.locationReplace;safevalues.dom.setLocationHref=module$exports$google3$third_party$javascript$safevalues$dom$index.setLocationHref;safevalues.dom.rangeCreateContextualFragment=module$contents$google3$third_party$javascript$safevalues$dom$globals$range_createContextualFragment; safevalues.dom.serviceWorkerContainerRegister=module$contents$google3$third_party$javascript$safevalues$dom$globals$service_worker_container_register;safevalues.dom.objectUrlFromSafeSource=module$contents$google3$third_party$javascript$safevalues$dom$globals$url_objectUrlFromSafeSource;safevalues.dom.getScriptNonce=module$exports$google3$third_party$javascript$safevalues$dom$index.getScriptNonce;safevalues.dom.getStyleNonce=module$exports$google3$third_party$javascript$safevalues$dom$index.getStyleNonce; safevalues.dom.windowOpen=module$exports$google3$third_party$javascript$safevalues$dom$index.windowOpen;safevalues.dom.createWorker=module$exports$google3$third_party$javascript$safevalues$dom$index.createWorker;safevalues.dom.createSharedWorker=module$exports$google3$third_party$javascript$safevalues$dom$index.createSharedWorker;safevalues.dom.workerGlobalScopeImportScripts=module$exports$google3$third_party$javascript$safevalues$dom$index.workerGlobalScopeImportScripts; safevalues.dom.WorkerGlobalScopeWithImportScripts=module$exports$google3$third_party$javascript$safevalues$dom$index.WorkerGlobalScopeWithImportScripts;function module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_assertValidJustification(a){if(typeof a!=="string"||a.trim()==="")throw a="Calls to uncheckedconversion functions must go through security review.",a+=" A justification must be provided to capture what security assumptions are being made.",a+=" See go/unchecked-conversions",Error(a);} function module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_htmlSafeByReview(a,b){goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_assertValidJustification(b.justification);return(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal)(a)} function module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_scriptSafeByReview(a,b){goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_assertValidJustification(b.justification);return module$contents$google3$third_party$javascript$safevalues$internals$script_impl_createScriptInternal(a)} function module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_resourceUrlSafeByReview(a,b){goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_assertValidJustification(b.justification);return module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_createResourceUrlInternal(a)} function module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_styleSheetSafeByReview(a,b){goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_assertValidJustification(b.justification);return module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_createStyleSheetInternal(a)} function module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_urlSafeByReview(a,b){goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_assertValidJustification(b.justification);return module$contents$google3$third_party$javascript$safevalues$internals$url_impl_createUrlInternal(a)};safevalues.restricted={};safevalues.restricted.reviewed={};safevalues.restricted.reviewed.htmlSafeByReview=module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_htmlSafeByReview;safevalues.restricted.reviewed.scriptSafeByReview=module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_scriptSafeByReview;safevalues.restricted.reviewed.resourceUrlSafeByReview=module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_resourceUrlSafeByReview; safevalues.restricted.reviewed.styleSheetSafeByReview=module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_styleSheetSafeByReview;safevalues.restricted.reviewed.urlSafeByReview=module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_urlSafeByReview;goog.string.DETECT_DOUBLE_ESCAPING=!1;goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1;goog.string.Unicode={NBSP:"\u00a0",ZERO_WIDTH_SPACE:"\u200b"};goog.string.startsWith=goog.string.internal.startsWith;goog.string.endsWith=goog.string.internal.endsWith;goog.string.caseInsensitiveStartsWith=goog.string.internal.caseInsensitiveStartsWith;goog.string.caseInsensitiveEndsWith=goog.string.internal.caseInsensitiveEndsWith;goog.string.caseInsensitiveEquals=goog.string.internal.caseInsensitiveEquals; goog.string.subs=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&c.length>1;)d+=c.shift()+e.shift();return d+c.join("%s")};goog.string.collapseWhitespace=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};goog.string.isEmptyOrWhitespace=goog.string.internal.isEmptyOrWhitespace;goog.string.isEmptyString=function(a){return a.length==0};goog.string.isEmpty=goog.string.isEmptyOrWhitespace;goog.string.isEmptyOrWhitespaceSafe=function(a){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(a))}; goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe;goog.string.isBreakingWhitespace=function(a){return!/[^\t\n\r ]/.test(a)};goog.string.isAlpha=function(a){return!/[^a-zA-Z]/.test(a)};goog.string.isNumeric=function(a){return!/[^0-9]/.test(a)};goog.string.isAlphaNumeric=function(a){return!/[^a-zA-Z0-9]/.test(a)};goog.string.isSpace=function(a){return a==" "};goog.string.isUnicodeChar=function(a){return a.length==1&&a>=" "&&a<="~"||a>="\u0080"&&a<="\ufffd"}; goog.string.stripNewlines=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};goog.string.canonicalizeNewlines=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};goog.string.normalizeWhitespace=function(a){return a.replace(/\xa0|\s/g," ")};goog.string.normalizeSpaces=function(a){return a.replace(/\xa0|[ \t]+/g," ")};goog.string.collapseBreakingSpaces=function(a){return a.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")};goog.string.trim=goog.string.internal.trim; goog.string.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};goog.string.trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare; goog.string.numberAwareCompare_=function(a,b,c){if(a==b)return 0;if(!a)return-1;if(!b)return 1;for(var d=a.toLowerCase().match(c),e=b.toLowerCase().match(c),f=Math.min(d.length,e.length),g=0;g<f;g++){c=d[g];var h=e[g];if(c!=h)return a=parseInt(c,10),!isNaN(a)&&(b=parseInt(h,10),!isNaN(b)&&a-b)?a-b:c<h?-1:1}return d.length!=e.length?d.length-e.length:a<b?-1:1};goog.string.intAwareCompare=function(a,b){return goog.string.numberAwareCompare_(a,b,/\d+|\D+/g)}; goog.string.floatAwareCompare=function(a,b){return goog.string.numberAwareCompare_(a,b,/\d+|\.\d+|\D+/g)};goog.string.numerateCompare=goog.string.floatAwareCompare;goog.string.urlEncode=function(a){return encodeURIComponent(String(a))};goog.string.urlDecode=function(a){return decodeURIComponent(a.replace(/\+/g," "))};goog.string.newLineToBr=goog.string.internal.newLineToBr; goog.string.htmlEscape=function(a,b){a=goog.string.internal.htmlEscape(a,b);goog.string.DETECT_DOUBLE_ESCAPING&&(a=a.replace(goog.string.E_RE_,"e"));return a};goog.string.E_RE_=/e/g;goog.string.unescapeEntities=function(a){return goog.string.contains(a,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(a):goog.string.unescapePureXmlEntities_(a):a}; goog.string.unescapeEntitiesWithDocument=function(a,b){return goog.string.contains(a,"&")?goog.string.unescapeEntitiesUsingDom_(a,b):a}; goog.string.unescapeEntitiesUsingDom_=function(a,b){var c={"&":"&","<":"<",">":">",""":'"'};var d=b?b.createElement("div"):goog.global.document.createElement("div");return a.replace(goog.string.HTML_ENTITY_PATTERN_,function(e,f){var g=c[e];if(g)return g;f.charAt(0)=="#"&&(f=Number("0"+f.slice(1)),isNaN(f)||(g=String.fromCharCode(f)));g||(module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml(d,module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_htmlSafeByReview(e+ " ",{justification:"Single HTML entity."})),g=d.firstChild.nodeValue.slice(0,-1));return c[e]=g})};goog.string.unescapePureXmlEntities_=function(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return c.charAt(0)!="#"||(c=Number("0"+c.slice(1)),isNaN(c))?b:String.fromCharCode(c)}})};goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g; goog.string.whitespaceEscape=function(a,b){return goog.string.newLineToBr(a.replace(/ /g,"  "),b)};goog.string.preserveSpaces=function(a){return a.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)};goog.string.stripQuotes=function(a,b){for(var c=b.length,d=0;d<c;d++){var e=c==1?b:b.charAt(d);if(a.charAt(0)==e&&a.charAt(a.length-1)==e)return a.substring(1,a.length-1)}return a}; goog.string.truncate=function(a,b,c){c&&(a=goog.string.unescapeEntities(a));a.length>b&&(a=a.substring(0,b-3)+"...");c&&(a=goog.string.htmlEscape(a));return a};goog.string.truncateMiddle=function(a,b,c,d){c&&(a=goog.string.unescapeEntities(a));if(d&&a.length>b){d>b&&(d=b);var e=a.length-d;b-=d;a=a.substring(0,b)+"..."+a.substring(e)}else a.length>b&&(e=Math.floor(b/2),d=a.length-e,e+=b%2,a=a.substring(0,e)+"..."+a.substring(d));c&&(a=goog.string.htmlEscape(a));return a}; goog.string.specialEscapeChars_={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"};goog.string.jsEscapeCache_={"'":"\\'"};goog.string.quote=function(a){a=String(a);for(var b=['"'],c=0;c<a.length;c++){var d=a.charAt(c),e=d.charCodeAt(0);b[c+1]=goog.string.specialEscapeChars_[d]||(e>31&&e<127?d:goog.string.escapeChar(d))}b.push('"');return b.join("")}; goog.string.escapeString=function(a){for(var b=[],c=0;c<a.length;c++)b[c]=goog.string.escapeChar(a.charAt(c));return b.join("")}; goog.string.escapeChar=function(a){if(a in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[a];if(a in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[a]=goog.string.specialEscapeChars_[a];var b=a.charCodeAt(0);if(b>31&&b<127)var c=a;else{if(b<256){if(c="\\x",b<16||b>256)c+="0"}else c="\\u",b<4096&&(c+="0");c+=b.toString(16).toUpperCase()}return goog.string.jsEscapeCache_[a]=c};goog.string.contains=goog.string.internal.contains;goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains; goog.string.countOf=function(a,b){return a&&b?a.split(b).length-1:0};goog.string.removeAt=function(a,b,c){var d=a;b>=0&&b<a.length&&c>0&&(d=a.slice(0,b)+a.slice(b+c));return d};goog.string.remove=function(a,b){return a.replace(b,"")};goog.string.removeAll=function(a,b){b=new RegExp(goog.string.regExpEscape(b),"g");return a.replace(b,"")};goog.string.replaceAll=function(a,b,c){b=new RegExp(goog.string.regExpEscape(b),"g");return a.replace(b,c.replace(/\$/g,"$$$$"))}; goog.string.regExpEscape=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};goog.string.repeat=goog.FEATURESET_YEAR>=2018||String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)}; goog.string.padNumber=function(a,b,c){if(!Number.isFinite(a))return String(a);a=c!==void 0?a.toFixed(c):String(a);c=a.indexOf(".");c===-1&&(c=a.length);var d=a[0]==="-"?"-":"";d&&(a=a.substring(1));return d+goog.string.repeat("0",Math.max(0,b-c))+a};goog.string.makeSafe=function(a){return a==null?"":String(a)};goog.string.getRandomString=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^goog.now()).toString(36)}; goog.string.compareVersions=goog.string.internal.compareVersions;goog.string.hashCode=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};goog.string.uniqueStringCounter_=Math.random()*2147483648|0;goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++};goog.string.toNumber=function(a){var b=Number(a);return b==0&&goog.string.isEmptyOrWhitespace(a)?NaN:b};goog.string.isLowerCamelCase=function(a){return/^[a-z]+([A-Z][a-z]*)*$/.test(a)}; goog.string.isUpperCamelCase=function(a){return/^([A-Z][a-z]*)+$/.test(a)};goog.string.toCamelCase=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};goog.string.toSelectorCase=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};goog.string.toTitleCase=function(a,b){b=(b=typeof b==="string"?goog.string.regExpEscape(b):"\\s")?"|["+b+"]+":"";b=new RegExp("(^"+b+")([a-z])","g");return a.replace(b,function(c,d,e){return d+e.toUpperCase()})}; goog.string.capitalize=function(a){return String(a.charAt(0)).toUpperCase()+String(a.slice(1)).toLowerCase()};goog.string.parseInt=function(a){isFinite(a)&&(a=String(a));return typeof a==="string"?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN};goog.string.splitLimit=function(a,b,c){a=a.split(b);for(var d=[];c>0&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b));return d}; goog.string.lastComponent=function(a,b){if(b)typeof b=="string"&&(b=[b]);else return a;for(var c=-1,d=0;d<b.length;d++)if(b[d]!=""){var e=a.lastIndexOf(b[d]);e>c&&(c=e)}return c==-1?a:a.slice(c+1)}; goog.string.editDistance=function(a,b){var c=[],d=[];if(a==b)return 0;if(!a.length||!b.length)return Math.max(a.length,b.length);for(var e=0;e<b.length+1;e++)c[e]=e;for(e=0;e<a.length;e++){d[0]=e+1;for(var f=0;f<b.length;f++){var g=Number(a[e]!=b[f]);d[f+1]=Math.min(d[f]+1,c[f+1]+1,c[f]+g)}for(f=0;f<c.length;f++)c[f]=d[f]}return d[b.length]};goog.labs={};goog.labs.userAgent={};goog.labs.userAgent.chromiumRebrands={};var module$contents$goog$labs$userAgent$chromiumRebrands_ChromiumRebrand={GOOGLE_CHROME:"Google Chrome",BRAVE:"Brave",OPERA:"Opera",EDGE:"Microsoft Edge"};goog.labs.userAgent.chromiumRebrands.ChromiumRebrand=module$contents$goog$labs$userAgent$chromiumRebrands_ChromiumRebrand;var module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles={TOGGLE_GoogFlags__use_toggles:!1,TOGGLE_GoogFlags__override_disable_toggles:!1,TOGGLE_GoogFlags__use_user_agent_client_hints__enable:!1,TOGGLE_GoogFlags__async_throw_on_unicode_to_byte__enable:!1,TOGGLE_GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__disable:!1,TOGGLE_GoogFlags__client_only_wiz_distinct_contexts_for_control_flow_branches__disable:!1,TOGGLE_GoogFlags__wiz_enable_native_promise__enable:!1, TOGGLE_GoogFlags__jspb_readonly_repeated_fields__disable:!1,TOGGLE_GoogFlags__jspb_ignore_implicit_extension_deps__disable:!1,TOGGLE_GoogFlags__testonly_disabled_flag__enable:!1,TOGGLE_GoogFlags__testonly_debug_flag__enable:!1,TOGGLE_GoogFlags__testonly_staging_flag__disable:!1,TOGGLE_GoogFlags__testonly_stable_flag__disable:!1};goog.flags={};var module$contents$goog$flags_STAGING=goog.readFlagInternalDoNotUseOrElse(1,goog.FLAGS_STAGING_DEFAULT);goog.flags.USE_USER_AGENT_CLIENT_HINTS=module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles?module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_user_agent_client_hints__enable:goog.readFlagInternalDoNotUseOrElse(610401301,!1); goog.flags.ASYNC_THROW_ON_UNICODE_TO_BYTE=module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles?module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__async_throw_on_unicode_to_byte__enable:goog.readFlagInternalDoNotUseOrElse(899588437,!1); goog.flags.JSPB_STOP_USING_REPEATED_FIELD_SETS_FROM_GENCODE=module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles?module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles||!module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_stop_using_repeated_field_sets_from_gencode__disable:goog.readFlagInternalDoNotUseOrElse(188588736,!0); goog.flags.CLIENT_ONLY_WIZ_DISTINCT_CONTEXTS_FOR_CONTROL_FLOW_BRANCHES=module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles?module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles||!module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__client_only_wiz_distinct_contexts_for_control_flow_branches__disable:goog.readFlagInternalDoNotUseOrElse(691955189, !0);goog.flags.WIZ_ENABLE_NATIVE_PROMISE=module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles?goog.DEBUG||module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__wiz_enable_native_promise__enable:goog.readFlagInternalDoNotUseOrElse(651175828,goog.DEBUG); goog.flags.JSPB_READONLY_REPEATED_FIELDS=module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles?goog.FLAGS_STAGING_DEFAULT&&(module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles||!module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_readonly_repeated_fields__disable):goog.readFlagInternalDoNotUseOrElse(653718497,module$contents$goog$flags_STAGING); goog.flags.JSPB_IGNORE_IMPLICIT_EXTENSION_DEPS=module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles?goog.FLAGS_STAGING_DEFAULT&&(module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles||!module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__jspb_ignore_implicit_extension_deps__disable):goog.readFlagInternalDoNotUseOrElse(660014094,module$contents$goog$flags_STAGING); goog.flags.TESTONLY_DISABLED_FLAG=module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles?module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_disabled_flag__enable:goog.readFlagInternalDoNotUseOrElse(2147483644,!1); goog.flags.TESTONLY_DEBUG_FLAG=module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles?goog.DEBUG||module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_debug_flag__enable:goog.readFlagInternalDoNotUseOrElse(2147483645,goog.DEBUG); goog.flags.TESTONLY_STAGING_FLAG=module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles?goog.FLAGS_STAGING_DEFAULT&&(module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles||!module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_staging_flag__disable):goog.readFlagInternalDoNotUseOrElse(2147483646,module$contents$goog$flags_STAGING); goog.flags.TESTONLY_STABLE_FLAG=module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__use_toggles?module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__override_disable_toggles||!module$exports$google3$third_party$javascript$closure$flags$flags$2etoggles.TOGGLE_GoogFlags__testonly_stable_flag__disable:goog.readFlagInternalDoNotUseOrElse(2147483647,!0);var module$contents$goog$labs$userAgent_forceClientHintsInTests=!1;goog.labs.userAgent.setUseClientHintsForTesting=function(a){module$contents$goog$labs$userAgent_forceClientHintsInTests=a};goog.labs.userAgent.useClientHints=function(){return goog.flags.USE_USER_AGENT_CLIENT_HINTS||module$contents$goog$labs$userAgent_forceClientHintsInTests};goog.labs.userAgent.util={};function module$contents$goog$labs$userAgent$util_getNativeUserAgentString(){var a=goog.global.navigator;return a&&(a=a.userAgent)?a:""}function module$contents$goog$labs$userAgent$util_getNativeUserAgentData(){var a=goog.global.navigator;return a?a.userAgentData||null:null}var module$contents$goog$labs$userAgent$util_userAgentInternal=null,module$contents$goog$labs$userAgent$util_userAgentDataInternal=module$contents$goog$labs$userAgent$util_getNativeUserAgentData(); function module$contents$goog$labs$userAgent$util_setUserAgent(a){module$contents$goog$labs$userAgent$util_userAgentInternal=typeof a==="string"?a:module$contents$goog$labs$userAgent$util_getNativeUserAgentString()}function module$contents$goog$labs$userAgent$util_getUserAgent(){return module$contents$goog$labs$userAgent$util_userAgentInternal==null?module$contents$goog$labs$userAgent$util_getNativeUserAgentString():module$contents$goog$labs$userAgent$util_userAgentInternal} function module$contents$goog$labs$userAgent$util_setUserAgentData(a){module$contents$goog$labs$userAgent$util_userAgentDataInternal=a}function module$contents$goog$labs$userAgent$util_resetUserAgentData(){module$contents$goog$labs$userAgent$util_userAgentDataInternal=module$contents$goog$labs$userAgent$util_getNativeUserAgentData()}function module$contents$goog$labs$userAgent$util_getUserAgentData(){return module$contents$goog$labs$userAgent$util_userAgentDataInternal} function module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand(a){if(!(0,goog.labs.userAgent.useClientHints)())return!1;var b=module$contents$goog$labs$userAgent$util_userAgentDataInternal;return b?b.brands.some(function(c){return(c=c.brand)&&(0,goog.string.internal.contains)(c,a)}):!1}function module$contents$goog$labs$userAgent$util_matchUserAgent(a){var b=module$contents$goog$labs$userAgent$util_getUserAgent();return(0,goog.string.internal.contains)(b,a)} function module$contents$goog$labs$userAgent$util_matchUserAgentIgnoreCase(a){var b=module$contents$goog$labs$userAgent$util_getUserAgent();return(0,goog.string.internal.caseInsensitiveContains)(b,a)}function module$contents$goog$labs$userAgent$util_extractVersionTuples(a){for(var b=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g"),c=[],d;d=b.exec(a);)c.push([d[1],d[2],d[3]||void 0]);return c}goog.labs.userAgent.util.ASSUME_CLIENT_HINTS_SUPPORT=!1; goog.labs.userAgent.util.extractVersionTuples=module$contents$goog$labs$userAgent$util_extractVersionTuples;goog.labs.userAgent.util.getNativeUserAgentString=module$contents$goog$labs$userAgent$util_getNativeUserAgentString;goog.labs.userAgent.util.getUserAgent=module$contents$goog$labs$userAgent$util_getUserAgent;goog.labs.userAgent.util.getUserAgentData=module$contents$goog$labs$userAgent$util_getUserAgentData;goog.labs.userAgent.util.matchUserAgent=module$contents$goog$labs$userAgent$util_matchUserAgent; goog.labs.userAgent.util.matchUserAgentDataBrand=module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand;goog.labs.userAgent.util.matchUserAgentIgnoreCase=module$contents$goog$labs$userAgent$util_matchUserAgentIgnoreCase;goog.labs.userAgent.util.resetUserAgentData=module$contents$goog$labs$userAgent$util_resetUserAgentData;goog.labs.userAgent.util.setUserAgent=module$contents$goog$labs$userAgent$util_setUserAgent;goog.labs.userAgent.util.setUserAgentData=module$contents$goog$labs$userAgent$util_setUserAgentData;var module$exports$goog$labs$userAgent$highEntropy$highEntropyValue={AsyncValue:function(){}};module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.AsyncValue.prototype.getIfLoaded=function(){};module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.AsyncValue.prototype.load=function(){};module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue=function(a){this.key_=a;this.promise_=this.value_=void 0;this.pending_=!1}; module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue.prototype.getIfLoaded=function(){var a=module$contents$goog$labs$userAgent$util_userAgentDataInternal;if(a)return this.value_}; module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue.prototype.load=function(){var a=this,b;return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(c){if(c.nextAddress==1){b=module$contents$goog$labs$userAgent$util_userAgentDataInternal;if(!b)return c.return(void 0);a.promise_||(a.pending_=!0,a.promise_=function(){var d;return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(e){if(e.nextAddress==1)return e.setFinallyBlock(2),e.yield(b.getHighEntropyValues([a.key_]), 4);if(e.nextAddress!=2)return d=e.yieldResult,a.value_=d[a.key_],e.return(a.value_);e.enterFinallyBlock();a.pending_=!1;return e.leaveFinallyBlock(0)})}());return c.yield(a.promise_,2)}return c.return(c.yieldResult)})};module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue.prototype.resetForTesting=function(){if(this.pending_)throw Error("Unsafe call to resetForTesting");this.value_=this.promise_=void 0;this.pending_=!1}; module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version=function(a){this.versionString_=a};module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version.prototype.isAtLeast=function(a){return(0,goog.string.internal.compareVersions)(this.versionString_,a)>=0};var module$exports$goog$labs$userAgent$highEntropy$highEntropyData={};module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList=new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue("fullVersionList");module$exports$goog$labs$userAgent$highEntropy$highEntropyData.platformVersion=new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.HighEntropyValue("platformVersion");goog.labs.userAgent.browser={};var module$contents$goog$labs$userAgent$browser_Brand={ANDROID_BROWSER:"Android Browser",CHROMIUM:"Chromium",EDGE:"Microsoft Edge",FIREFOX:"Firefox",IE:"Internet Explorer",OPERA:"Opera",SAFARI:"Safari",SILK:"Silk"};goog.labs.userAgent.browser.Brand=module$contents$goog$labs$userAgent$browser_Brand; function module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand(a){a=a===void 0?!1:a;if(!a&&!(0,goog.labs.userAgent.useClientHints)())return!1;a=module$contents$goog$labs$userAgent$util_userAgentDataInternal;return!!a&&a.brands.length>0}function module$contents$goog$labs$userAgent$browser_matchOpera(){return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand()?!1:module$contents$goog$labs$userAgent$util_matchUserAgent("Opera")} function module$contents$goog$labs$userAgent$browser_matchIE(){return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand()?!1:module$contents$goog$labs$userAgent$util_matchUserAgent("Trident")||module$contents$goog$labs$userAgent$util_matchUserAgent("MSIE")}function module$contents$goog$labs$userAgent$browser_matchEdgeHtml(){return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand()?!1:module$contents$goog$labs$userAgent$util_matchUserAgent("Edge")} function module$contents$goog$labs$userAgent$browser_matchEdgeChromium(){return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand()?module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand(module$contents$goog$labs$userAgent$browser_Brand.EDGE):module$contents$goog$labs$userAgent$util_matchUserAgent("Edg/")} function module$contents$goog$labs$userAgent$browser_matchOperaChromium(){return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand()?module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand(module$contents$goog$labs$userAgent$browser_Brand.OPERA):module$contents$goog$labs$userAgent$util_matchUserAgent("OPR")} function module$contents$goog$labs$userAgent$browser_matchFirefox(){return module$contents$goog$labs$userAgent$util_matchUserAgent("Firefox")||module$contents$goog$labs$userAgent$util_matchUserAgent("FxiOS")} function module$contents$goog$labs$userAgent$browser_matchSafari(){return module$contents$goog$labs$userAgent$util_matchUserAgent("Safari")&&!(module$contents$goog$labs$userAgent$browser_matchChrome()||module$contents$goog$labs$userAgent$browser_matchCoast()||module$contents$goog$labs$userAgent$browser_matchOpera()||module$contents$goog$labs$userAgent$browser_matchEdgeHtml()||module$contents$goog$labs$userAgent$browser_matchEdgeChromium()||module$contents$goog$labs$userAgent$browser_matchOperaChromium()|| module$contents$goog$labs$userAgent$browser_matchFirefox()||module$contents$goog$labs$userAgent$browser_isSilk()||module$contents$goog$labs$userAgent$util_matchUserAgent("Android"))}function module$contents$goog$labs$userAgent$browser_matchCoast(){return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand()?!1:module$contents$goog$labs$userAgent$util_matchUserAgent("Coast")} function module$contents$goog$labs$userAgent$browser_matchIosWebview(){return(module$contents$goog$labs$userAgent$util_matchUserAgent("iPad")||module$contents$goog$labs$userAgent$util_matchUserAgent("iPhone"))&&!module$contents$goog$labs$userAgent$browser_matchSafari()&&!module$contents$goog$labs$userAgent$browser_matchChrome()&&!module$contents$goog$labs$userAgent$browser_matchCoast()&&!module$contents$goog$labs$userAgent$browser_matchFirefox()&&module$contents$goog$labs$userAgent$util_matchUserAgent("AppleWebKit")} function module$contents$goog$labs$userAgent$browser_matchChrome(){return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand()?module$contents$goog$labs$userAgent$util_matchUserAgentDataBrand(module$contents$goog$labs$userAgent$browser_Brand.CHROMIUM):(module$contents$goog$labs$userAgent$util_matchUserAgent("Chrome")||module$contents$goog$labs$userAgent$util_matchUserAgent("CriOS"))&&!module$contents$goog$labs$userAgent$browser_matchEdgeHtml()||module$contents$goog$labs$userAgent$browser_isSilk()} function module$contents$goog$labs$userAgent$browser_matchAndroidBrowser(){return module$contents$goog$labs$userAgent$util_matchUserAgent("Android")&&!(module$contents$goog$labs$userAgent$browser_matchChrome()||module$contents$goog$labs$userAgent$browser_matchFirefox()||module$contents$goog$labs$userAgent$browser_matchOpera()||module$contents$goog$labs$userAgent$browser_isSilk())}goog.labs.userAgent.browser.isOpera=module$contents$goog$labs$userAgent$browser_matchOpera; goog.labs.userAgent.browser.isIE=module$contents$goog$labs$userAgent$browser_matchIE;goog.labs.userAgent.browser.isEdge=module$contents$goog$labs$userAgent$browser_matchEdgeHtml;goog.labs.userAgent.browser.isEdgeChromium=module$contents$goog$labs$userAgent$browser_matchEdgeChromium;goog.labs.userAgent.browser.isOperaChromium=module$contents$goog$labs$userAgent$browser_matchOperaChromium;goog.labs.userAgent.browser.isFirefox=module$contents$goog$labs$userAgent$browser_matchFirefox; goog.labs.userAgent.browser.isSafari=module$contents$goog$labs$userAgent$browser_matchSafari;goog.labs.userAgent.browser.isCoast=module$contents$goog$labs$userAgent$browser_matchCoast;goog.labs.userAgent.browser.isIosWebview=module$contents$goog$labs$userAgent$browser_matchIosWebview;goog.labs.userAgent.browser.isChrome=module$contents$goog$labs$userAgent$browser_matchChrome;goog.labs.userAgent.browser.isAndroidBrowser=module$contents$goog$labs$userAgent$browser_matchAndroidBrowser; function module$contents$goog$labs$userAgent$browser_isSilk(){return module$contents$goog$labs$userAgent$util_matchUserAgent("Silk")}goog.labs.userAgent.browser.isSilk=module$contents$goog$labs$userAgent$browser_isSilk;function module$contents$goog$labs$userAgent$browser_createVersionMap(a){var b={};a.forEach(function(c){var d=c[0];c=c[1];b[d]=c});return function(c){return b[c.find(function(d){return d in b})]||""}} function module$contents$goog$labs$userAgent$browser_getVersion(){var a=module$contents$goog$labs$userAgent$util_getUserAgent();if(module$contents$goog$labs$userAgent$browser_matchIE())return module$contents$goog$labs$userAgent$browser_getIEVersion(a);a=module$contents$goog$labs$userAgent$util_extractVersionTuples(a);var b=module$contents$goog$labs$userAgent$browser_createVersionMap(a);return module$contents$goog$labs$userAgent$browser_matchOpera()?b(["Version","Opera"]):module$contents$goog$labs$userAgent$browser_matchEdgeHtml()? b(["Edge"]):module$contents$goog$labs$userAgent$browser_matchEdgeChromium()?b(["Edg"]):module$contents$goog$labs$userAgent$browser_isSilk()?b(["Silk"]):module$contents$goog$labs$userAgent$browser_matchChrome()?b(["Chrome","CriOS","HeadlessChrome"]):(a=a[2])&&a[1]||""}goog.labs.userAgent.browser.getVersion=module$contents$goog$labs$userAgent$browser_getVersion; function module$contents$goog$labs$userAgent$browser_isVersionOrHigher(a){return(0,goog.string.internal.compareVersions)(module$contents$goog$labs$userAgent$browser_getVersion(),a)>=0}goog.labs.userAgent.browser.isVersionOrHigher=module$contents$goog$labs$userAgent$browser_isVersionOrHigher; function module$contents$goog$labs$userAgent$browser_getIEVersion(a){var b=/rv: *([\d\.]*)/.exec(a);if(b&&b[1])return b[1];b="";var c=/MSIE +([\d\.]+)/.exec(a);if(c&&c[1])if(a=/Trident\/(\d.\d)/.exec(a),c[1]=="7.0")if(a&&a[1])switch(a[1]){case "4.0":b="8.0";break;case "5.0":b="9.0";break;case "6.0":b="10.0";break;case "7.0":b="11.0"}else b="7.0";else b=c[1];return b} function module$contents$goog$labs$userAgent$browser_getFullVersionFromUserAgentString(a){var b=module$contents$goog$labs$userAgent$util_getUserAgent();if(a===module$contents$goog$labs$userAgent$browser_Brand.IE)return module$contents$goog$labs$userAgent$browser_matchIE()?module$contents$goog$labs$userAgent$browser_getIEVersion(b):"";b=module$contents$goog$labs$userAgent$util_extractVersionTuples(b);var c=module$contents$goog$labs$userAgent$browser_createVersionMap(b);switch(a){case module$contents$goog$labs$userAgent$browser_Brand.OPERA:if(module$contents$goog$labs$userAgent$browser_matchOpera())return c(["Version", "Opera"]);if(module$contents$goog$labs$userAgent$browser_matchOperaChromium())return c(["OPR"]);break;case module$contents$goog$labs$userAgent$browser_Brand.EDGE:if(module$contents$goog$labs$userAgent$browser_matchEdgeHtml())return c(["Edge"]);if(module$contents$goog$labs$userAgent$browser_matchEdgeChromium())return c(["Edg"]);break;case module$contents$goog$labs$userAgent$browser_Brand.CHROMIUM:if(module$contents$goog$labs$userAgent$browser_matchChrome())return c(["Chrome","CriOS","HeadlessChrome"])}return a=== module$contents$goog$labs$userAgent$browser_Brand.FIREFOX&&module$contents$goog$labs$userAgent$browser_matchFirefox()||a===module$contents$goog$labs$userAgent$browser_Brand.SAFARI&&module$contents$goog$labs$userAgent$browser_matchSafari()||a===module$contents$goog$labs$userAgent$browser_Brand.ANDROID_BROWSER&&module$contents$goog$labs$userAgent$browser_matchAndroidBrowser()||a===module$contents$goog$labs$userAgent$browser_Brand.SILK&&module$contents$goog$labs$userAgent$browser_isSilk()?(a=b[2])&& a[1]||"":""} function module$contents$goog$labs$userAgent$browser_versionOf_(a){if(module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand()&&a!==module$contents$goog$labs$userAgent$browser_Brand.SILK){var b=module$contents$goog$labs$userAgent$util_userAgentDataInternal;b=b.brands.find(function(c){c=c.brand;return c===a});if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=module$contents$goog$labs$userAgent$browser_getFullVersionFromUserAgentString(a);if(b==="")return NaN;b=b.split(".")}if(b.length===0)return NaN; b=b[0];return Number(b)}function module$contents$goog$labs$userAgent$browser_isAtLeast(a,b){(0,goog.asserts.assert)(Math.floor(b)===b,"Major version must be an integer");return module$contents$goog$labs$userAgent$browser_versionOf_(a)>=b}goog.labs.userAgent.browser.isAtLeast=module$contents$goog$labs$userAgent$browser_isAtLeast; function module$contents$goog$labs$userAgent$browser_isAtMost(a,b){(0,goog.asserts.assert)(Math.floor(b)===b,"Major version must be an integer");return module$contents$goog$labs$userAgent$browser_versionOf_(a)<=b}goog.labs.userAgent.browser.isAtMost=module$contents$goog$labs$userAgent$browser_isAtMost; var module$contents$goog$labs$userAgent$browser_HighEntropyBrandVersion=function(a,b,c){this.brand_=a;this.version_=new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version(c);this.useUach_=b}; module$contents$goog$labs$userAgent$browser_HighEntropyBrandVersion.prototype.getIfLoaded=function(){var a=this;if(this.useUach_){var b=module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList.getIfLoaded();if(b!==void 0)return b=b.find(function(c){c=c.brand;return a.brand_===c}),(0,goog.asserts.assertExists)(b),new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version(b.version)}if(module$contents$goog$labs$userAgent$browser_preUachHasLoaded)return this.version_}; module$contents$goog$labs$userAgent$browser_HighEntropyBrandVersion.prototype.load=function(){var a=this,b,c;return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(d){if(d.nextAddress==1)return a.useUach_?d.yield(module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList.load(),5):d.yield(0,3);if(d.nextAddress!=3&&(b=d.yieldResult,b!==void 0))return c=b.find(function(e){e=e.brand;return a.brand_===e}),(0,goog.asserts.assertExists)(c),d.return(new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version(c.version)); module$contents$goog$labs$userAgent$browser_preUachHasLoaded=!0;return d.return(a.version_)})};var module$contents$goog$labs$userAgent$browser_preUachHasLoaded=!1; function module$contents$goog$labs$userAgent$browser_loadFullVersions(){return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(a){if(a.nextAddress==1)return module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand(!0)?a.yield(module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList.load(),2):a.jumpTo(2);module$contents$goog$labs$userAgent$browser_preUachHasLoaded=!0;a.jumpToEnd()})}goog.labs.userAgent.browser.loadFullVersions=module$contents$goog$labs$userAgent$browser_loadFullVersions; goog.labs.userAgent.browser.resetForTesting=function(){module$contents$goog$labs$userAgent$browser_preUachHasLoaded=!1;module$exports$goog$labs$userAgent$highEntropy$highEntropyData.fullVersionList.resetForTesting()}; function module$contents$goog$labs$userAgent$browser_fullVersionOf(a){var b="";module$contents$goog$labs$userAgent$browser_isAtLeast(module$contents$goog$labs$userAgent$browser_Brand.CHROMIUM,98)||(b=module$contents$goog$labs$userAgent$browser_getFullVersionFromUserAgentString(a));var c=a!==module$contents$goog$labs$userAgent$browser_Brand.SILK&&module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand(!0);if(c){var d=module$contents$goog$labs$userAgent$util_userAgentDataInternal;if(!d.brands.find(function(e){e= e.brand;return e===a}))return}else if(b==="")return;return new module$contents$goog$labs$userAgent$browser_HighEntropyBrandVersion(a,c,b)}goog.labs.userAgent.browser.fullVersionOf=module$contents$goog$labs$userAgent$browser_fullVersionOf; function module$contents$goog$labs$userAgent$browser_getVersionStringForLogging(a){if(module$contents$goog$labs$userAgent$browser_useUserAgentDataBrand(!0)){var b=module$contents$goog$labs$userAgent$browser_fullVersionOf(a);if(b){if(b=b.getIfLoaded())return b.versionString_;b=module$contents$goog$labs$userAgent$util_userAgentDataInternal;b=b.brands.find(function(c){c=c.brand;return c===a});(0,goog.asserts.assertExists)(b);return b.version}return""}return module$contents$goog$labs$userAgent$browser_getFullVersionFromUserAgentString(a)} goog.labs.userAgent.browser.getVersionStringForLogging=module$contents$goog$labs$userAgent$browser_getVersionStringForLogging;goog.labs.userAgent.engine={};function module$contents$goog$labs$userAgent$engine_isPresto(){return module$contents$goog$labs$userAgent$util_matchUserAgent("Presto")}function module$contents$goog$labs$userAgent$engine_isTrident(){return module$contents$goog$labs$userAgent$util_matchUserAgent("Trident")||module$contents$goog$labs$userAgent$util_matchUserAgent("MSIE")} function module$contents$goog$labs$userAgent$engine_isEdge(){return module$contents$goog$labs$userAgent$util_matchUserAgent("Edge")}function module$contents$goog$labs$userAgent$engine_isWebKit(){return module$contents$goog$labs$userAgent$util_matchUserAgentIgnoreCase("WebKit")&&!module$contents$goog$labs$userAgent$engine_isEdge()} function module$contents$goog$labs$userAgent$engine_isGecko(){return module$contents$goog$labs$userAgent$util_matchUserAgent("Gecko")&&!module$contents$goog$labs$userAgent$engine_isWebKit()&&!module$contents$goog$labs$userAgent$engine_isTrident()&&!module$contents$goog$labs$userAgent$engine_isEdge()} function module$contents$goog$labs$userAgent$engine_getVersion(){var a=module$contents$goog$labs$userAgent$util_getUserAgent();if(a){a=module$contents$goog$labs$userAgent$util_extractVersionTuples(a);var b;a:if(module$contents$goog$labs$userAgent$engine_isEdge()){for(b=0;b<a.length;b++){var c=a[b];if(c[0]=="Edge"){b=c;break a}}b=void 0}else b=a[1];if(b)return b[0]=="Gecko"?module$contents$goog$labs$userAgent$engine_getVersionForKey(a,"Firefox"):b[1];a=a[0];var d;if(a&&(d=a[2])&&(d=/Trident\/([^\s;]+)/.exec(d)))return d[1]}return""} function module$contents$goog$labs$userAgent$engine_isVersionOrHigher(a){return goog.string.internal.compareVersions(module$contents$goog$labs$userAgent$engine_getVersion(),a)>=0}function module$contents$goog$labs$userAgent$engine_getVersionForKey(a,b){return(a=module$contents$goog$array_find(a,function(c){return b==c[0]}))&&a[1]||""}goog.labs.userAgent.engine.getVersion=module$contents$goog$labs$userAgent$engine_getVersion;goog.labs.userAgent.engine.isEdge=module$contents$goog$labs$userAgent$engine_isEdge; goog.labs.userAgent.engine.isGecko=module$contents$goog$labs$userAgent$engine_isGecko;goog.labs.userAgent.engine.isPresto=module$contents$goog$labs$userAgent$engine_isPresto;goog.labs.userAgent.engine.isTrident=module$contents$goog$labs$userAgent$engine_isTrident;goog.labs.userAgent.engine.isVersionOrHigher=module$contents$goog$labs$userAgent$engine_isVersionOrHigher;goog.labs.userAgent.engine.isWebKit=module$contents$goog$labs$userAgent$engine_isWebKit;goog.labs.userAgent.platform={};function module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform(a){a=a===void 0?!1:a;if(!a&&!(0,goog.labs.userAgent.useClientHints)())return!1;a=module$contents$goog$labs$userAgent$util_userAgentDataInternal;return!!a&&!!a.platform} function module$contents$goog$labs$userAgent$platform_isAndroid(){return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform()?module$contents$goog$labs$userAgent$util_userAgentDataInternal.platform==="Android":module$contents$goog$labs$userAgent$util_matchUserAgent("Android")}function module$contents$goog$labs$userAgent$platform_isIpod(){return module$contents$goog$labs$userAgent$util_matchUserAgent("iPod")} function module$contents$goog$labs$userAgent$platform_isIphone(){return module$contents$goog$labs$userAgent$util_matchUserAgent("iPhone")&&!module$contents$goog$labs$userAgent$util_matchUserAgent("iPod")&&!module$contents$goog$labs$userAgent$util_matchUserAgent("iPad")}function module$contents$goog$labs$userAgent$platform_isIpad(){return module$contents$goog$labs$userAgent$util_matchUserAgent("iPad")} function module$contents$goog$labs$userAgent$platform_isIos(){return module$contents$goog$labs$userAgent$platform_isIphone()||module$contents$goog$labs$userAgent$platform_isIpad()||module$contents$goog$labs$userAgent$platform_isIpod()} function module$contents$goog$labs$userAgent$platform_isMacintosh(){return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform()?module$contents$goog$labs$userAgent$util_userAgentDataInternal.platform==="macOS":module$contents$goog$labs$userAgent$util_matchUserAgent("Macintosh")} function module$contents$goog$labs$userAgent$platform_isLinux(){return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform()?module$contents$goog$labs$userAgent$util_userAgentDataInternal.platform==="Linux":module$contents$goog$labs$userAgent$util_matchUserAgent("Linux")} function module$contents$goog$labs$userAgent$platform_isWindows(){return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform()?module$contents$goog$labs$userAgent$util_userAgentDataInternal.platform==="Windows":module$contents$goog$labs$userAgent$util_matchUserAgent("Windows")} function module$contents$goog$labs$userAgent$platform_isChromeOS(){return module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform()?module$contents$goog$labs$userAgent$util_userAgentDataInternal.platform==="Chrome OS":module$contents$goog$labs$userAgent$util_matchUserAgent("CrOS")}function module$contents$goog$labs$userAgent$platform_isChromecast(){return module$contents$goog$labs$userAgent$util_matchUserAgent("CrKey")} function module$contents$goog$labs$userAgent$platform_isKaiOS(){return module$contents$goog$labs$userAgent$util_matchUserAgentIgnoreCase("KaiOS")} function module$contents$goog$labs$userAgent$platform_getVersion(){var a=module$contents$goog$labs$userAgent$util_getUserAgent(),b="";module$contents$goog$labs$userAgent$platform_isWindows()?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):module$contents$goog$labs$userAgent$platform_isIos()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):module$contents$goog$labs$userAgent$platform_isMacintosh()?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g, "."):"10"):module$contents$goog$labs$userAgent$platform_isKaiOS()?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):module$contents$goog$labs$userAgent$platform_isAndroid()?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):module$contents$goog$labs$userAgent$platform_isChromeOS()&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&a[1]);return b||""} function module$contents$goog$labs$userAgent$platform_isVersionOrHigher(a){return goog.string.internal.compareVersions(module$contents$goog$labs$userAgent$platform_getVersion(),a)>=0}var module$contents$goog$labs$userAgent$platform_PlatformVersion=function(){this.preUachHasLoaded_=!1}; module$contents$goog$labs$userAgent$platform_PlatformVersion.prototype.getIfLoaded=function(){if(module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform(!0)){var a=module$exports$goog$labs$userAgent$highEntropy$highEntropyData.platformVersion.getIfLoaded();return a===void 0?void 0:new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version(a)}if(this.preUachHasLoaded_)return new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version(module$contents$goog$labs$userAgent$platform_getVersion())}; module$contents$goog$labs$userAgent$platform_PlatformVersion.prototype.load=function(){var a=this,b;return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(c){if(c.nextAddress==1){if(!module$contents$goog$labs$userAgent$platform_useUserAgentDataPlatform(!0))return a.preUachHasLoaded_=!0,c.return(new module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version(module$contents$goog$labs$userAgent$platform_getVersion()));b=module$exports$goog$labs$userAgent$highEntropy$highEntropyValue.Version; return c.yield(module$exports$goog$labs$userAgent$highEntropy$highEntropyData.platformVersion.load(),3)}return c.return(new b(c.yieldResult))})};module$contents$goog$labs$userAgent$platform_PlatformVersion.prototype.resetForTesting=function(){module$exports$goog$labs$userAgent$highEntropy$highEntropyData.platformVersion.resetForTesting();this.preUachHasLoaded_=!1};var module$contents$goog$labs$userAgent$platform_version=new module$contents$goog$labs$userAgent$platform_PlatformVersion; goog.labs.userAgent.platform.getVersion=module$contents$goog$labs$userAgent$platform_getVersion;goog.labs.userAgent.platform.isAndroid=module$contents$goog$labs$userAgent$platform_isAndroid;goog.labs.userAgent.platform.isChromeOS=module$contents$goog$labs$userAgent$platform_isChromeOS;goog.labs.userAgent.platform.isChromecast=module$contents$goog$labs$userAgent$platform_isChromecast;goog.labs.userAgent.platform.isIos=module$contents$goog$labs$userAgent$platform_isIos; goog.labs.userAgent.platform.isIpad=module$contents$goog$labs$userAgent$platform_isIpad;goog.labs.userAgent.platform.isIphone=module$contents$goog$labs$userAgent$platform_isIphone;goog.labs.userAgent.platform.isIpod=module$contents$goog$labs$userAgent$platform_isIpod;goog.labs.userAgent.platform.isKaiOS=module$contents$goog$labs$userAgent$platform_isKaiOS;goog.labs.userAgent.platform.isLinux=module$contents$goog$labs$userAgent$platform_isLinux;goog.labs.userAgent.platform.isMacintosh=module$contents$goog$labs$userAgent$platform_isMacintosh; goog.labs.userAgent.platform.isVersionOrHigher=module$contents$goog$labs$userAgent$platform_isVersionOrHigher;goog.labs.userAgent.platform.isWindows=module$contents$goog$labs$userAgent$platform_isWindows;goog.labs.userAgent.platform.version=module$contents$goog$labs$userAgent$platform_version;goog.reflect={};goog.reflect.object=function(a,b){return b};goog.reflect.objectProperty=function(a){return a};goog.reflect.sinkValue=function(a){goog.reflect.sinkValue[" "](a);return a};goog.reflect.sinkValue[" "]=function(){};goog.reflect.canAccessProperty=function(a,b){try{return goog.reflect.sinkValue(a[b]),!0}catch(c){}return!1};goog.reflect.cache=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};goog.userAgent={};goog.userAgent.ASSUME_IE=!1;goog.userAgent.ASSUME_EDGE=!1;goog.userAgent.ASSUME_GECKO=!1;goog.userAgent.ASSUME_WEBKIT=!1;goog.userAgent.ASSUME_MOBILE_WEBKIT=!1;goog.userAgent.ASSUME_OPERA=!1;goog.userAgent.ASSUME_ANY_VERSION=!1;goog.userAgent.BROWSER_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_GECKO||goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_OPERA;goog.userAgent.getUserAgentString=function(){return module$contents$goog$labs$userAgent$util_getUserAgent()}; goog.userAgent.getNavigatorTyped=function(){return goog.global.navigator||null};goog.userAgent.getNavigator=function(){return goog.userAgent.getNavigatorTyped()};goog.userAgent.OPERA=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_OPERA:module$contents$goog$labs$userAgent$browser_matchOpera();goog.userAgent.IE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_IE:module$contents$goog$labs$userAgent$browser_matchIE(); goog.userAgent.EDGE=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_EDGE:module$contents$goog$labs$userAgent$engine_isEdge();goog.userAgent.EDGE_OR_IE=goog.userAgent.EDGE||goog.userAgent.IE;goog.userAgent.GECKO=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_GECKO:module$contents$goog$labs$userAgent$engine_isGecko();goog.userAgent.WEBKIT=goog.userAgent.BROWSER_KNOWN_?goog.userAgent.ASSUME_WEBKIT||goog.userAgent.ASSUME_MOBILE_WEBKIT:module$contents$goog$labs$userAgent$engine_isWebKit(); goog.userAgent.isMobile_=function(){return goog.userAgent.WEBKIT&&module$contents$goog$labs$userAgent$util_matchUserAgent("Mobile")};goog.userAgent.MOBILE=goog.userAgent.ASSUME_MOBILE_WEBKIT||goog.userAgent.isMobile_();goog.userAgent.SAFARI=goog.userAgent.WEBKIT;goog.userAgent.determinePlatform_=function(){var a=goog.userAgent.getNavigatorTyped();return a&&a.platform||""};goog.userAgent.PLATFORM=goog.userAgent.determinePlatform_();goog.userAgent.ASSUME_MAC=!1;goog.userAgent.ASSUME_WINDOWS=!1; goog.userAgent.ASSUME_LINUX=!1;goog.userAgent.ASSUME_ANDROID=!1;goog.userAgent.ASSUME_IPHONE=!1;goog.userAgent.ASSUME_IPAD=!1;goog.userAgent.ASSUME_IPOD=!1;goog.userAgent.ASSUME_KAIOS=!1;goog.userAgent.PLATFORM_KNOWN_=goog.userAgent.ASSUME_MAC||goog.userAgent.ASSUME_WINDOWS||goog.userAgent.ASSUME_LINUX||goog.userAgent.ASSUME_ANDROID||goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD;goog.userAgent.MAC=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_MAC:module$contents$goog$labs$userAgent$platform_isMacintosh(); goog.userAgent.WINDOWS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_WINDOWS:module$contents$goog$labs$userAgent$platform_isWindows();goog.userAgent.isLegacyLinux_=function(){return module$contents$goog$labs$userAgent$platform_isLinux()||module$contents$goog$labs$userAgent$platform_isChromeOS()};goog.userAgent.LINUX=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_LINUX:goog.userAgent.isLegacyLinux_();goog.userAgent.ANDROID=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_ANDROID:module$contents$goog$labs$userAgent$platform_isAndroid(); goog.userAgent.IPHONE=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE:module$contents$goog$labs$userAgent$platform_isIphone();goog.userAgent.IPAD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPAD:module$contents$goog$labs$userAgent$platform_isIpad();goog.userAgent.IPOD=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPOD:module$contents$goog$labs$userAgent$platform_isIpod(); goog.userAgent.IOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_IPHONE||goog.userAgent.ASSUME_IPAD||goog.userAgent.ASSUME_IPOD:module$contents$goog$labs$userAgent$platform_isIos();goog.userAgent.KAIOS=goog.userAgent.PLATFORM_KNOWN_?goog.userAgent.ASSUME_KAIOS:module$contents$goog$labs$userAgent$platform_isKaiOS(); goog.userAgent.determineVersion_=function(){var a="",b=goog.userAgent.getVersionRegexResult_();b&&(a=b?b[1]:"");return goog.userAgent.IE&&(b=goog.userAgent.getDocumentMode_(),b!=null&&b>parseFloat(a))?String(b):a}; goog.userAgent.getVersionRegexResult_=function(){var a=goog.userAgent.getUserAgentString();if(goog.userAgent.GECKO)return/rv:([^\);]+)(\)|;)/.exec(a);if(goog.userAgent.EDGE)return/Edge\/([\d\.]+)/.exec(a);if(goog.userAgent.IE)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(goog.userAgent.WEBKIT)return/WebKit\/(\S+)/.exec(a);if(goog.userAgent.OPERA)return/(?:Version)[ \/]?(\S+)/.exec(a)};goog.userAgent.getDocumentMode_=function(){var a=goog.global.document;return a?a.documentMode:void 0}; goog.userAgent.VERSION=goog.userAgent.determineVersion_();goog.userAgent.compare=function(a,b){return goog.string.internal.compareVersions(a,b)};goog.userAgent.isVersionOrHigherCache_={};goog.userAgent.isVersionOrHigher=function(a){return goog.userAgent.ASSUME_ANY_VERSION||goog.reflect.cache(goog.userAgent.isVersionOrHigherCache_,a,function(){return goog.string.internal.compareVersions(goog.userAgent.VERSION,a)>=0})}; goog.userAgent.isDocumentModeOrHigher=function(a){return Number(goog.userAgent.DOCUMENT_MODE)>=a};var JSCompiler_inline_result$jscomp$655;var doc$jscomp$inline_703=goog.global.document; if(doc$jscomp$inline_703&&goog.userAgent.IE){var documentMode$jscomp$inline_704=goog.userAgent.getDocumentMode_();if(documentMode$jscomp$inline_704)JSCompiler_inline_result$jscomp$655=documentMode$jscomp$inline_704;else{var ieVersion$jscomp$inline_705=parseInt(goog.userAgent.VERSION,10);JSCompiler_inline_result$jscomp$655=ieVersion$jscomp$inline_705||void 0}}else JSCompiler_inline_result$jscomp$655=void 0;goog.userAgent.DOCUMENT_MODE=JSCompiler_inline_result$jscomp$655;var module$exports$google3$third_party$javascript$safevalues$builders$sensitive_attributes={SECURITY_SENSITIVE_ATTRIBUTES:"src srcdoc codebase data href rel action formaction sandbox cite poster icon".split(" ")};function module$contents$google3$third_party$javascript$safevalues$builders$attribute_builders_safeAttrPrefix(a){goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$internals$string_literal_assertIsTemplateObject(a,0);var b=a[0].toLowerCase();if(goog.DEBUG){if(b.indexOf("on")===0||"on".indexOf(b)===0)throw Error("Prefix '"+a[0]+"' does not guarantee the attribute to be safe as it is also a prefix for event handler attributesPlease use 'addEventListener' to set event handlers."); module$exports$google3$third_party$javascript$safevalues$builders$sensitive_attributes.SECURITY_SENSITIVE_ATTRIBUTES.forEach(function(c){if(c.indexOf(b)===0)throw Error("Prefix '"+a[0]+"' does not guarantee the attribute to be safe as it is also a prefix for the security sensitive attribute '"+(c+"'. Please use native or safe DOM APIs to set the attribute."));})}return module$contents$google3$third_party$javascript$safevalues$internals$attribute_impl_createAttributePrefixInternal(b)};function module$contents$google3$third_party$javascript$safevalues$builders$document_fragment_builders_htmlFragment(a){goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$internals$string_literal_assertIsTemplateObject(a,0);var b=document.createRange();return b.createContextualFragment((0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.unwrapHtml)((0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal)(a[0])))} function module$contents$google3$third_party$javascript$safevalues$builders$document_fragment_builders_svgFragment(a){goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$internals$string_literal_assertIsTemplateObject(a,0);var b=document.createElementNS("http://www.w3.org/2000/svg","svg"),c=document.createRange();c.selectNodeContents(b);return c.createContextualFragment((0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.unwrapHtml)((0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal)(a[0])))} function module$contents$google3$third_party$javascript$safevalues$builders$document_fragment_builders_htmlToNode(a){var b=document.createRange();a=b.createContextualFragment((0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.unwrapHtml)(a));return a.childNodes.length===1?a.childNodes[0]:a};function module$contents$google3$third_party$javascript$safevalues$builders$style_sheet_builders_safeStyleRule(a){var b=$jscomp.getRestArguments.apply(1,arguments);goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$internals$string_literal_assertIsTemplateObject(a,b.length);for(var c=a[0],d=0;d<a.length-1;d++)c+=String(b[d]),c+=a[d+1];b=document.implementation.createHTMLDocument("");d=b.createElement("style");b.head.appendChild(d);b=d.sheet;b.insertRule(c,0);if(b.cssRules.length!== 1){if(goog.DEBUG)throw Error("safeStyleRule can be used to construct only 1 CSSStyleRule at a time. Use the concatStyle function to create sheet with several rules. Tried to parse: "+c+("which has "+b.cssRules.length+" rules: "+b.cssRules[0].cssText+" #$% "+b.cssRules[1].cssText+"."));}else{b=b.cssRules[0];if(b instanceof CSSStyleRule)return c=b.cssText,module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_createStyleSheetInternal(c.replace(/</g,"\\3C "));if(goog.DEBUG)throw Error("safeStyleRule can be used to construct a CSSStyleRule. @-rules should be constructed with the safeStyleSheet builder. Tried to parse: "+ c);}}function module$contents$google3$third_party$javascript$safevalues$builders$style_sheet_builders_safeStyleSheet(a){goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$internals$string_literal_assertIsTemplateObject(a,0);a=a[0];if(goog.DEBUG&&/</.test(a))throw Error("'<' character is forbidden in styleSheet string: "+a);return module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_createStyleSheetInternal(a)} function module$contents$google3$third_party$javascript$safevalues$builders$style_sheet_builders_concatStyleSheets(a){return module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_createStyleSheetInternal(a.map(module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_unwrapStyleSheet).join(""))};var module$exports$google3$third_party$javascript$safevalues$builders$html_builders={}; function module$contents$google3$third_party$javascript$safevalues$builders$html_builders_htmlEscape(a,b){if((0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.isHtml)(a))return a;a=module$contents$google3$third_party$javascript$safevalues$builders$html_builders_htmlEscapeToString(String(a));var c;if((c=b)==null?0:c.preserveSpaces)a=a.replace(/(^|[\r\n\t ]) /g,"$1 ");var d;if((d=b)==null?0:d.preserveNewlines)a=a.replace(/(\r\n|\n|\r)/g,"<br>");var e;if((e=b)==null? 0:e.preserveTabs)a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>');return(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal)(a)}module$exports$google3$third_party$javascript$safevalues$builders$html_builders.htmlEscape=module$contents$google3$third_party$javascript$safevalues$builders$html_builders_htmlEscape; function module$contents$google3$third_party$javascript$safevalues$builders$html_builders_scriptToHtml(a,b){a=module$contents$google3$third_party$javascript$safevalues$internals$script_impl_unwrapScript(a).toString();var c="<script",d;if((d=b)==null?0:d.id)c+=' id="'+module$contents$google3$third_party$javascript$safevalues$builders$html_builders_htmlEscapeToString(b.id)+'"';var e;if((e=b)==null?0:e.nonce)c+=' nonce="'+module$contents$google3$third_party$javascript$safevalues$builders$html_builders_htmlEscapeToString(b.nonce)+ '"';var f;if((f=b)==null?0:f.type)c+=' type="'+module$contents$google3$third_party$javascript$safevalues$builders$html_builders_htmlEscapeToString(b.type)+'"';var g;if((g=b)==null?0:g.defer)c+=" defer";c+=">"+a+"\x3c/script>";return(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal)(c)}module$exports$google3$third_party$javascript$safevalues$builders$html_builders.scriptToHtml=module$contents$google3$third_party$javascript$safevalues$builders$html_builders_scriptToHtml; function module$contents$google3$third_party$javascript$safevalues$builders$html_builders_scriptUrlToHtml(a,b){a=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(a).toString();a='<script src="'+module$contents$google3$third_party$javascript$safevalues$builders$html_builders_htmlEscapeToString(a)+'"';var c;if((c=b)==null?0:c.async)a+=" async";var d;((d=b)==null?void 0:d.attributionSrc)!==void 0&&(a+=' attributionsrc="'+module$contents$google3$third_party$javascript$safevalues$builders$html_builders_htmlEscapeToString(b.attributionSrc)+ '"');var e;if((e=b)==null?0:e.customElement)a+=' custom-element="'+module$contents$google3$third_party$javascript$safevalues$builders$html_builders_htmlEscapeToString(b.customElement)+'"';var f;if((f=b)==null?0:f.defer)a+=" defer";var g;if((g=b)==null?0:g.id)a+=' id="'+module$contents$google3$third_party$javascript$safevalues$builders$html_builders_htmlEscapeToString(b.id)+'"';var h;if((h=b)==null?0:h.nonce)a+=' nonce="'+module$contents$google3$third_party$javascript$safevalues$builders$html_builders_htmlEscapeToString(b.nonce)+ '"';var k;if((k=b)==null?0:k.type)a+=' type="'+module$contents$google3$third_party$javascript$safevalues$builders$html_builders_htmlEscapeToString(b.type)+'"';var l;if((l=b)==null?0:l.crossorigin)a+=' crossorigin="'+module$contents$google3$third_party$javascript$safevalues$builders$html_builders_htmlEscapeToString(b.crossorigin)+'"';a+=">\x3c/script>";return(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal)(a)} module$exports$google3$third_party$javascript$safevalues$builders$html_builders.scriptUrlToHtml=module$contents$google3$third_party$javascript$safevalues$builders$html_builders_scriptUrlToHtml;function module$contents$google3$third_party$javascript$safevalues$builders$html_builders_htmlEscapeToString(a){return a=a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")} function module$contents$google3$third_party$javascript$safevalues$builders$html_builders_concatHtmls(a){return module$contents$google3$third_party$javascript$safevalues$builders$html_builders_joinHtmls("",a)}module$exports$google3$third_party$javascript$safevalues$builders$html_builders.concatHtmls=module$contents$google3$third_party$javascript$safevalues$builders$html_builders_concatHtmls; function module$contents$google3$third_party$javascript$safevalues$builders$html_builders_joinHtmls(a,b){a=module$contents$google3$third_party$javascript$safevalues$builders$html_builders_htmlEscape(a);return(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal)(b.map(function(c){return(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.unwrapHtml)(module$contents$google3$third_party$javascript$safevalues$builders$html_builders_htmlEscape(c))}).join((0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.unwrapHtml)(a).toString()))} module$exports$google3$third_party$javascript$safevalues$builders$html_builders.joinHtmls=module$contents$google3$third_party$javascript$safevalues$builders$html_builders_joinHtmls;function module$contents$google3$third_party$javascript$safevalues$builders$html_builders_doctypeHtml(){return(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal)("<!DOCTYPE html>")} module$exports$google3$third_party$javascript$safevalues$builders$html_builders.doctypeHtml=module$contents$google3$third_party$javascript$safevalues$builders$html_builders_doctypeHtml; function module$contents$google3$third_party$javascript$safevalues$builders$html_builders_nodeToHtmlInternal(a,b){b.appendChild(a);a=(new XMLSerializer).serializeToString(b);a=a.slice(a.indexOf(">")+1,a.lastIndexOf("</"));return(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal)(a)}module$exports$google3$third_party$javascript$safevalues$builders$html_builders.nodeToHtmlInternal=module$contents$google3$third_party$javascript$safevalues$builders$html_builders_nodeToHtmlInternal; function module$contents$google3$third_party$javascript$safevalues$builders$html_builders_nodeToHtml(a){var b=document.createElement("span");return module$contents$google3$third_party$javascript$safevalues$builders$html_builders_nodeToHtmlInternal(a,b)}module$exports$google3$third_party$javascript$safevalues$builders$html_builders.nodeToHtml=module$contents$google3$third_party$javascript$safevalues$builders$html_builders_nodeToHtml; var module$contents$google3$third_party$javascript$safevalues$builders$html_builders_VALID_TAG_OR_ATTRIBUTE_NAMES=/^[a-z][a-z\d-]*$/i,module$contents$google3$third_party$javascript$safevalues$builders$html_builders_DISALLOWED_TAG_NAMES="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" ");module$exports$google3$third_party$javascript$safevalues$builders$html_builders.VOID_TAG_NAMES="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "); var module$contents$google3$third_party$javascript$safevalues$builders$html_builders_URL_ATTRIBUTES=["action","formaction","href"]; function module$contents$google3$third_party$javascript$safevalues$builders$html_builders_verifyTagName(a){if(!module$contents$google3$third_party$javascript$safevalues$builders$html_builders_VALID_TAG_OR_ATTRIBUTE_NAMES.test(a))throw Error(goog.DEBUG?"Invalid tag name <"+a+">.":"");if(module$contents$google3$third_party$javascript$safevalues$builders$html_builders_DISALLOWED_TAG_NAMES.indexOf(a.toUpperCase())!==-1)throw Error(goog.DEBUG?"Tag name <"+a+"> is not allowed for createHtml.":"");} module$exports$google3$third_party$javascript$safevalues$builders$html_builders.verifyTagName=module$contents$google3$third_party$javascript$safevalues$builders$html_builders_verifyTagName;function module$contents$google3$third_party$javascript$safevalues$builders$html_builders_isVoidTag(a){return module$exports$google3$third_party$javascript$safevalues$builders$html_builders.VOID_TAG_NAMES.indexOf(a.toUpperCase())!==-1} module$exports$google3$third_party$javascript$safevalues$builders$html_builders.isVoidTag=module$contents$google3$third_party$javascript$safevalues$builders$html_builders_isVoidTag; function module$contents$google3$third_party$javascript$safevalues$builders$html_builders_createHtml(a,b,c){module$contents$google3$third_party$javascript$safevalues$builders$html_builders_verifyTagName(a);var d="<"+a;b&&(d+=module$contents$google3$third_party$javascript$safevalues$builders$html_builders_stringifyAttributes(a,b));Array.isArray(c)||(c=c===void 0?[]:[c]);if(module$contents$google3$third_party$javascript$safevalues$builders$html_builders_isVoidTag(a)){if(goog.DEBUG&&c.length>0)throw Error("Void tag <"+ a+"> does not allow content.");d+=">"}else b=module$contents$google3$third_party$javascript$safevalues$builders$html_builders_concatHtmls(c.map(function(e){return(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.isHtml)(e)?e:module$contents$google3$third_party$javascript$safevalues$builders$html_builders_htmlEscape(String(e))})),d+=">"+b.toString()+"</"+a+">";return(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal)(d)} module$exports$google3$third_party$javascript$safevalues$builders$html_builders.createHtml=module$contents$google3$third_party$javascript$safevalues$builders$html_builders_createHtml; function module$contents$google3$third_party$javascript$safevalues$builders$html_builders_styleSheetToHtml(a,b){var c={};if(b)for(var d=Object.keys(b),e=0;e<d.length;e++){var f=d[e];if(f.toLowerCase()==="type")throw Error(goog.DEBUG?"Cannot override the 'type' attribute with value "+b[f]+".":"");c[f]=b[f]}c.type="text/css";b=module$contents$google3$third_party$javascript$safevalues$builders$html_builders_stringifyAttributes("style",c);Array.isArray(a)&&(a=module$contents$google3$third_party$javascript$safevalues$builders$style_sheet_builders_concatStyleSheets(a)); a=module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_unwrapStyleSheet(a);return(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal)("<style "+b+">"+a+"</style>")}module$exports$google3$third_party$javascript$safevalues$builders$html_builders.styleSheetToHtml=module$contents$google3$third_party$javascript$safevalues$builders$html_builders_styleSheetToHtml; function module$contents$google3$third_party$javascript$safevalues$builders$html_builders_stringifyAttributes(a,b){var c="";a=Object.keys(b);for(var d=0;d<a.length;d++){var e=a[d],f=b[e];if(!module$contents$google3$third_party$javascript$safevalues$builders$html_builders_VALID_TAG_OR_ATTRIBUTE_NAMES.test(e))throw Error(goog.DEBUG?'Invalid attribute name "'+e+'".':"");if(f!==void 0&&f!==null){if(/^on./i.test(e))throw Error(goog.DEBUG?'Attribute "'+e+" is forbidden. Inline event handlers can lead to XSS. Please use the 'addEventListener' API instead.": "");module$contents$google3$third_party$javascript$safevalues$builders$html_builders_URL_ATTRIBUTES.indexOf(e.toLowerCase())!==-1&&(f=module$contents$google3$third_party$javascript$safevalues$internals$url_impl_isUrl(f)?f.toString():module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizeJavaScriptUrl(String(f))||"about:invalid#zClosurez");if(goog.DEBUG&&!module$contents$google3$third_party$javascript$safevalues$internals$url_impl_isUrl(f)&&!(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.isHtml)(f)&& typeof f!=="string"&&typeof f!=="number")throw Error("String or number value expected, got "+typeof f+" with value '"+f+"' given.");f=e+'="'+module$contents$google3$third_party$javascript$safevalues$builders$html_builders_htmlEscape(String(f))+'"';c+=" "+f}}return c}module$exports$google3$third_party$javascript$safevalues$builders$html_builders.stringifyAttributes=module$contents$google3$third_party$javascript$safevalues$builders$html_builders_stringifyAttributes;var module$exports$google3$third_party$javascript$safevalues$builders$html_formatter={HtmlFormatter:function(){this.replacements=new Map}}; module$exports$google3$third_party$javascript$safevalues$builders$html_formatter.HtmlFormatter.prototype.format=function(a){var b=this,c=[],d=(0,module$exports$google3$third_party$javascript$safevalues$builders$html_builders.htmlEscape)("_safevalues_format_marker_:").toString();a=(0,module$exports$google3$third_party$javascript$safevalues$builders$html_builders.htmlEscape)(a).toString().replace(new RegExp("\\{"+d+"[\\w&#;]+\\}","g"),function(e){return b.replaceFormattingString(c,e)});if(c.length!== 0){if(goog.DEBUG)throw Error("Expected no unclosed tags, got <"+c.join(">, <")+">.");throw Error();}return(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal)(a)}; module$exports$google3$third_party$javascript$safevalues$builders$html_formatter.HtmlFormatter.prototype.replaceFormattingString=function(a,b){var c=this.replacements.get(b);if(!c)return b;b="";switch(c.type){case "html":b=c.html;break;case "startTag":b="<"+c.tagName+c.attributes+">";goog.DEBUG&&((0,module$exports$google3$third_party$javascript$safevalues$builders$html_builders.isVoidTag)(c.tagName.toLowerCase())||a.push(c.tagName.toLowerCase()));break;case "endTag":b="</"+c.tagName+">";if(goog.DEBUG&& (a=a.pop(),a!==c.tagName.toLowerCase()))throw Error("Expected </"+a+">, got </"+c.tagName+">.");break;default:if(goog.DEBUG)throw a="type had an unknown value",a=a===void 0?"unexpected value "+c+"!":a,Error(a);}return b}; module$exports$google3$third_party$javascript$safevalues$builders$html_formatter.HtmlFormatter.prototype.startTag=function(a,b){(0,module$exports$google3$third_party$javascript$safevalues$builders$html_builders.verifyTagName)(a);return this.storeReplacement({type:"startTag",tagName:a,attributes:b!==void 0?(0,module$exports$google3$third_party$javascript$safevalues$builders$html_builders.stringifyAttributes)(a,b):""})}; module$exports$google3$third_party$javascript$safevalues$builders$html_formatter.HtmlFormatter.prototype.endTag=function(a){(0,module$exports$google3$third_party$javascript$safevalues$builders$html_builders.verifyTagName)(a);return this.storeReplacement({type:"endTag",tagName:a})};module$exports$google3$third_party$javascript$safevalues$builders$html_formatter.HtmlFormatter.prototype.text=function(a){return this.storeReplacement({type:"html",html:(0,module$exports$google3$third_party$javascript$safevalues$builders$html_builders.htmlEscape)(a).toString()})}; module$exports$google3$third_party$javascript$safevalues$builders$html_formatter.HtmlFormatter.prototype.storeReplacement=function(a){var b="{_safevalues_format_marker_:"+this.replacements.size+"_"+Math.random().toString(36).slice(2)+"}";this.replacements.set((0,module$exports$google3$third_party$javascript$safevalues$builders$html_builders.htmlEscape)(b).toString(),a);return b};var module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$allowlists={};module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST=new Set("accent-color align-content align-items align-self alignment-baseline all appearance aspect-ratio backdrop-filter backface-visibility background background-attachment background-blend-mode background-clip background-color background-image background-origin background-position background-position-x background-position-y background-repeat background-size block-size border border-block border-block-color border-block-end border-block-end-color border-block-end-style border-block-end-width border-block-start border-block-start-color border-block-start-style border-block-start-width border-block-style border-block-width border-bottom border-bottom-color border-bottom-left-radius border-bottom-right-radius border-bottom-style border-bottom-width border-collapse border-color border-end-end-radius border-end-start-radius border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-inline border-inline-color border-inline-end border-inline-end-color border-inline-end-style border-inline-end-width border-inline-start border-inline-start-color border-inline-start-style border-inline-start-width border-inline-style border-inline-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-start-end-radius border-start-start-radius border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-shadow box-sizing caption-side caret-color clear clip clip-path clip-rule color color-interpolation color-interpolation-filters color-scheme column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns contain contain-intrinsic-block-size contain-intrinsic-height contain-intrinsic-inline-size contain-intrinsic-size contain-intrinsic-width content content-visibility counter-increment counter-reset counter-set cx cy d display dominant-baseline empty-cells field-sizing fill fill-opacity fill-rule filter flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float flood-color flood-opacity font font-family font-feature-settings font-kerning font-optical-sizing font-palette font-size font-size-adjust font-stretch font-style font-synthesis font-synthesis-small-caps font-synthesis-style font-synthesis-weight font-variant font-variant-alternates font-variant-caps font-variant-east-asian font-variant-emoji font-variant-ligatures font-variant-numeric font-variant-position font-variation-settings font-weight forced-color-adjust gap grid grid-area grid-auto-columns grid-auto-flow grid-auto-rows grid-column grid-column-end grid-column-gap grid-column-start grid-gap grid-row grid-row-end grid-row-gap grid-row-start grid-template grid-template-areas grid-template-columns grid-template-rows height hyphenate-character hyphenate-limit-chars hyphens image-orientation image-rendering inline-size inset inset-area inset-block inset-block-end inset-block-start inset-inline inset-inline-end inset-inline-start isolation justify-content justify-items justify-self left letter-spacing lighting-color line-break line-clamp line-gap-override line-height list-style list-style-image list-style-position list-style-type margin margin-block margin-block-end margin-block-start margin-bottom margin-inline margin-inline-end margin-inline-start margin-left margin-right margin-top marker marker-end marker-mid marker-start mask mask-clip mask-composite mask-image mask-mode mask-origin mask-position mask-repeat mask-size mask-type max-block-size max-height max-inline-size max-width min-block-size min-height min-inline-size min-width mix-blend-mode object-fit object-position object-view-box opacity order orphans outline outline-color outline-offset outline-style outline-width overflow overflow-anchor overflow-block overflow-clip-margin overflow-inline overflow-wrap overflow-x overflow-y padding padding-block padding-block-end padding-block-start padding-bottom padding-inline padding-inline-end padding-inline-start padding-left padding-right padding-top paint-order perspective perspective-origin place-content place-items place-self position quotes r resize right rotate row-gap ruby-align ruby-position rx ry scale shape-image-threshold shape-margin shape-outside shape-rendering stop-color stop-opacity stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width tab-size table-layout text-align text-align-last text-anchor text-autospace text-box-edge text-box-trim text-combine-upright text-decoration text-decoration-color text-decoration-line text-decoration-skip-ink text-decoration-style text-decoration-thickness text-emphasis text-emphasis-color text-emphasis-position text-emphasis-style text-indent text-orientation text-overflow text-rendering text-shadow text-size-adjust text-spacing text-spacing-trim text-transform text-underline-offset text-underline-position text-wrap top transform transform-box transform-origin transform-style translate unicode-bidi vector-effect vertical-align visibility white-space white-space-collapse widows width will-change word-break word-spacing word-wrap writing-mode x y z-index zoom animation animation-composition animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-range animation-range-end animation-range-start animation-timeline animation-timing-function offset offset-anchor offset-distance offset-path offset-position offset-rotate transition transition-behavior transition-delay transition-duration transition-property transition-timing-function".split(" ")); module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST=new Set("alpha cubic-bezier linear-gradient matrix perspective radial-gradient rect repeating-linear-gradient repeating-radial-gradient rgb rgba rotate rotate3d rotatex rotatey rotatez scale scale3d scalex scaley scalez skew skewx skewy steps translate translate3d translatex translatey translatez url".split(" "));var module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens={CssTokenKind:{AT_KEYWORD:0,CDC:1,CDO:2,CLOSE_CURLY:3,CLOSE_PAREN:4,CLOSE_SQUARE:5,COLON:6,COMMA:7,DELIM:8,DIMENSION:9,EOF:10,FUNCTION:11,HASH:12,IDENT:13,NUMBER:14,OPEN_CURLY:15,OPEN_PAREN:16,OPEN_SQUARE:17,PERCENTAGE:18,SEMICOLON:19,STRING:20,WHITESPACE:21}}; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.AT_KEYWORD]="AT_KEYWORD";module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CDC]="CDC"; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CDO]="CDO";module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_CURLY]="CLOSE_CURLY"; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_PAREN]="CLOSE_PAREN";module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_SQUARE]="CLOSE_SQUARE"; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.COLON]="COLON";module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.COMMA]="COMMA"; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM]="DELIM";module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DIMENSION]="DIMENSION"; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF]="EOF";module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.FUNCTION]="FUNCTION"; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.HASH]="HASH";module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.IDENT]="IDENT"; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.NUMBER]="NUMBER";module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.OPEN_CURLY]="OPEN_CURLY"; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.OPEN_PAREN]="OPEN_PAREN";module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.OPEN_SQUARE]="OPEN_SQUARE"; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.PERCENTAGE]="PERCENTAGE";module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.SEMICOLON]="SEMICOLON"; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING]="STRING";module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE]="WHITESPACE"; function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_AtKeywordToken(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.AtKeywordToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_AtKeywordToken;function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_CdcToken(){} module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CdcToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_CdcToken;function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_CdoToken(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CdoToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_CdoToken; function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_CloseCurlyToken(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CloseCurlyToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_CloseCurlyToken;function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_CloseParenToken(){} module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CloseParenToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_CloseParenToken;function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_CloseSquareToken(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CloseSquareToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_CloseSquareToken; function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_ColonToken(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.ColonToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_ColonToken;function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_CommaToken(){} module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CommaToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_CommaToken;function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_DelimToken(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.DelimToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_DelimToken; function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_DimensionToken(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.DimensionToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_DimensionToken;function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_EofToken(){} module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.EofToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_EofToken;function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_FunctionToken(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.FunctionToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_FunctionToken; function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_HashToken(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.HashToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_HashToken;function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_IdentToken(){} module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.IdentToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_IdentToken;function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_NumberToken(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.NumberToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_NumberToken; function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_OpenCurlyToken(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.OpenCurlyToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_OpenCurlyToken;function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_OpenParenToken(){} module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.OpenParenToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_OpenParenToken;function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_OpenSquareToken(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.OpenSquareToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_OpenSquareToken; function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_PercentageToken(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.PercentageToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_PercentageToken;function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_SemicolonToken(){} module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.SemicolonToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_SemicolonToken;function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_StringToken(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.StringToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_StringToken; function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_WhitespaceToken(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.WhitespaceToken=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens_WhitespaceToken;function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$serializer_escapeCodePoint(a){return"\\"+a.codePointAt(0).toString(16)+" "}function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$serializer_escapeString(a){return'"'+a.replace(/[^A-Za-z0-9_/. :,?=%;-]/g,function(b){return module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$serializer_escapeCodePoint(b)})+'"'} function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(a){var b=/^[^A-Za-z_]/.test(a)?module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$serializer_escapeCodePoint(a[0]):a[0];return b+a.slice(1).replace(/[^A-Za-z0-9_-]/g,function(c){return module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$serializer_escapeCodePoint(c)})} function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$serializer_serializeToken(a){switch(a.tokenKind){case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.AT_KEYWORD:return"@"+module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(a.name);case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CDC:return"--\x3e"; case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CDO:return"\x3c!--";case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_CURLY:return"}";case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_PAREN:return")";case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_SQUARE:return"]"; case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.COLON:return":";case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.COMMA:return",";case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM:return a.codePoint==="\\"?"\\\n":a.codePoint;case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DIMENSION:return a.repr+ module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(a.dimension);case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF:return"";case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.FUNCTION:return module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(a.lowercaseName)+"("; case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.HASH:return"#"+module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(a.value);case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.IDENT:return module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(a.ident);case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.NUMBER:return a.repr; case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.OPEN_CURLY:return"{";case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.OPEN_PAREN:return"(";case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.OPEN_SQUARE:return"[";case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.PERCENTAGE:return a.repr+ "%";case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.SEMICOLON:return";";case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING:return module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$serializer_escapeString(a.value);case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE:return" "; default:var b=void 0;b=b===void 0?"unexpected value "+a+"!":b;throw Error(b);}};var module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_HEX_DIGIT_REGEX=/^[0-9a-fA-F]$/,module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer=function(a){this.pos=0;this.css=this.preprocess(a)}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.tokenize=function(){for(var a=[],b=void 0;;){var c=this.consumeToken();if(Array.isArray(c))a.push.apply(a,(0,$jscomp.arrayFromIterable)(c));else{var d=void 0,e=c.tokenKind===module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE&&((d=b)==null?void 0:d.tokenKind)===module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE; if(!e){a.push(c);if(c.tokenKind===module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF)return a;b=c}}}};module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextInputCodePoint=function(){return this.css[this.pos]}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextTwoInputCodePoints=function(){return[this.css[this.pos],this.css[this.pos+1]]};module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextThreeInputCodePoints=function(){return[this.css[this.pos],this.css[this.pos+1],this.css[this.pos+2]]}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.currentInputCodePoint=function(){return this.css[this.pos-1]};module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextNInputCodePoints=function(a){return this.css.slice(this.pos,this.pos+a)}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeTheNextInputCodePoint=function(){this.pos++};module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeNInputCodePoints=function(a){this.pos+=a};module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.reconsumeTheCurrentInputCodePoint=function(){this.pos--}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.preprocess=function(a){return a.replace(/[\x0d\x0c]|\x0d\x0a/g,"\n").replace(/\x00/g,"\ufffd")}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeToken=function(){var a=this.consumeComments();if(a)return{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE};a=this.nextInputCodePoint();this.consumeTheNextInputCodePoint();return a===void 0?{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.EOF}: this.isWhitespace(a)?(this.consumeAsMuchWhitespaceAsPossible(),{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.WHITESPACE}):a==="'"||a==='"'?this.consumeString(a):a==="#"?this.isIdentCodePoint(this.nextInputCodePoint())||this.twoCodePointsAreValidEscape.apply(this,(0,$jscomp.arrayFromIterable)(this.nextTwoInputCodePoints()))?{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.HASH, value:this.consumeIdentSequence()}:{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM,codePoint:"#"}:a==="("?{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.OPEN_PAREN}:a===")"?{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_PAREN}:a==="+"?this.streamStartsWithANumber()?(this.reconsumeTheCurrentInputCodePoint(), this.consumeNumericToken()):{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM,codePoint:"+"}:a===","?{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.COMMA}:a==="-"?this.streamStartsWithANumber()?(this.reconsumeTheCurrentInputCodePoint(),this.consumeNumericToken()):this.nextNInputCodePoints(2)==="->"?(this.consumeNInputCodePoints(2),{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CDC}): this.streamStartsWithAnIdentSequence()?(this.reconsumeTheCurrentInputCodePoint(),this.consumeIdentLikeToken()):{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM,codePoint:"-"}:a==="."?this.streamStartsWithANumber()?(this.reconsumeTheCurrentInputCodePoint(),this.consumeNumericToken()):{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM,codePoint:"."}:a===":"? {tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.COLON}:a===";"?{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.SEMICOLON}:a==="<"?this.nextNInputCodePoints(3)==="!--"?(this.consumeNInputCodePoints(3),{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CDO}):{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM, codePoint:"<"}:a==="@"?this.threeCodePointsWouldStartAnIdentSequence.apply(this,(0,$jscomp.arrayFromIterable)(this.nextThreeInputCodePoints()))?(a=this.consumeIdentSequence(),{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.AT_KEYWORD,name:a}):{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM,codePoint:"@"}:a==="\\"?this.streamStartsWithValidEscape()?(this.reconsumeTheCurrentInputCodePoint(), this.consumeIdentLikeToken()):{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM,codePoint:"\\"}:a==="["?{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.OPEN_SQUARE}:a==="]"?{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_SQUARE}:a==="{"?{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.OPEN_CURLY}: a==="}"?{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_CURLY}:this.isDigit(a)?(this.reconsumeTheCurrentInputCodePoint(),this.consumeNumericToken()):this.isIdentStartCodePoint(a)?(this.reconsumeTheCurrentInputCodePoint(),this.consumeIdentLikeToken()):{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DELIM,codePoint:a}}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeComments=function(){for(var a=!1;this.nextNInputCodePoints(2)==="/*";){a=!0;this.consumeNInputCodePoints(2);var b=this.css.indexOf("*/",this.pos);if(b===-1){this.pos=this.css.length;break}this.pos=b+2}return a}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeString=function(a){for(var b={tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING,value:""};;){var c=this.nextInputCodePoint();this.consumeTheNextInputCodePoint();if(c===void 0||c===a)return b;if(this.isNewline(c))return this.reconsumeTheCurrentInputCodePoint(),b.value="",b;c==="\\"?this.nextInputCodePoint()!== void 0&&(this.isNewline(this.nextInputCodePoint())?this.consumeTheNextInputCodePoint():(c=this.consumeEscapedCodePoint(),b.value+=c)):b.value+=c}}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeEscapedCodePoint=function(){var a=this.nextInputCodePoint();this.consumeTheNextInputCodePoint();if(a===void 0)return"\ufffd";if(this.isHexDigit(a)){for(;this.isHexDigit(this.nextInputCodePoint())&&a.length<6;)a+=this.nextInputCodePoint(),this.consumeTheNextInputCodePoint();this.isWhitespace(this.nextInputCodePoint())&&this.consumeTheNextInputCodePoint();a=parseInt(a,16);return String.fromCodePoint(a)}return a}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeAsMuchWhitespaceAsPossible=function(){for(;this.isWhitespace(this.nextInputCodePoint());)this.consumeTheNextInputCodePoint()}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeIdentSequence=function(){for(var a="";;){var b=this.nextInputCodePoint();this.consumeTheNextInputCodePoint();var c=this.nextInputCodePoint();if(this.isIdentCodePoint(b))a+=b;else if(this.twoCodePointsAreValidEscape(b,c))a+=this.consumeEscapedCodePoint();else return this.reconsumeTheCurrentInputCodePoint(),a}}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeIdentLikeToken=function(){var a=this.consumeIdentSequence();if(/^url$/i.test(a)&&this.nextInputCodePoint()==="("){for(this.consumeTheNextInputCodePoint();this.nextTwoInputsPointsAreWhitespace();)this.consumeTheNextInputCodePoint();a=this.nextTwoInputCodePoints();return this.isWhitespace(a[0])&&(a[1]==='"'||a[1]==="'")||a[0]==='"'||a[0]==="'"?{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.FUNCTION, lowercaseName:"url"}:this.consumeUrlToken()}return this.nextInputCodePoint()==="("?(this.consumeTheNextInputCodePoint(),{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.FUNCTION,lowercaseName:a.toLowerCase()}):{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.IDENT,ident:a}}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeUrlToken=function(){var a="";for(this.consumeAsMuchWhitespaceAsPossible();;){var b=this.nextInputCodePoint();this.consumeTheNextInputCodePoint();if(b===")"||b===void 0)return this.createFunctionUrlToken(a);if(this.isWhitespace(b)){this.consumeAsMuchWhitespaceAsPossible();if(this.nextInputCodePoint()===")"||this.nextInputCodePoint()===void 0)return this.consumeTheNextInputCodePoint(), this.createFunctionUrlToken(a);this.consumeRemnantsOfBadUrl();return this.createFunctionUrlToken("")}if(b==='"'||b==="'"||b==="("||this.isNonPrintableCodePoint(b))return this.consumeRemnantsOfBadUrl(),this.createFunctionUrlToken("");if(b==="\\")if(this.streamStartsWithValidEscape())a+=this.consumeEscapedCodePoint();else return this.consumeRemnantsOfBadUrl(),this.createFunctionUrlToken("");else a+=b}}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.createFunctionUrlToken=function(a){return[{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.FUNCTION,lowercaseName:"url"},{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING,value:a},{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.CLOSE_PAREN}]}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeRemnantsOfBadUrl=function(){for(;;){var a=this.nextInputCodePoint();this.consumeTheNextInputCodePoint();if(a===void 0||a===")")break;else this.streamStartsWithValidEscape()&&this.consumeEscapedCodePoint()}}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeNumber=function(){var a="",b=this.nextInputCodePoint();if(b==="+"||b==="-")this.consumeTheNextInputCodePoint(),a+=b;a+=this.consumeDigits();b=this.nextInputCodePoint();var c=this.css[this.pos+1];b==="."&&this.isDigit(c)&&(this.consumeTheNextInputCodePoint(),a+="."+this.consumeDigits());b=this.nextInputCodePoint();c=this.css[this.pos+1];var d=this.css[this.pos+2];if(b==="e"||b=== "E")c!=="+"&&c!=="-"||!this.isDigit(d)?this.isDigit(c)&&(this.consumeTheNextInputCodePoint(),a+=b+this.consumeDigits()):(this.consumeNInputCodePoints(2),a+=b+c+this.consumeDigits());return a};module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeDigits=function(){for(var a="";this.isDigit(this.nextInputCodePoint());)a+=this.nextInputCodePoint(),this.consumeTheNextInputCodePoint();return a}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.consumeNumericToken=function(){var a=this.consumeNumber();return this.threeCodePointsWouldStartAnIdentSequence.apply(this,(0,$jscomp.arrayFromIterable)(this.nextThreeInputCodePoints()))?{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.DIMENSION,repr:a,dimension:this.consumeIdentSequence()}:this.nextInputCodePoint()=== "%"?(this.consumeTheNextInputCodePoint(),{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.PERCENTAGE,repr:a}):{tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.NUMBER,repr:a}};module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.nextTwoInputsPointsAreWhitespace=function(){var a=this;return this.nextTwoInputCodePoints().every(function(b){return a.isWhitespace(b)})}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.twoCodePointsAreValidEscape=function(a,b){return a==="\\"&&b!=="\n"};module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.streamStartsWithValidEscape=function(){return this.twoCodePointsAreValidEscape(this.currentInputCodePoint(),this.nextInputCodePoint())}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.threeCodePointsWouldStartANumber=function(a,b,c){return a==="+"||a==="-"?this.isDigit(b)||b==="."&&this.isDigit(c):a==="."?this.isDigit(b):this.isDigit(a)};module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.streamStartsWithANumber=function(){return this.threeCodePointsWouldStartANumber.apply(this,[this.currentInputCodePoint()].concat((0,$jscomp.arrayFromIterable)(this.nextTwoInputCodePoints())))}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.threeCodePointsWouldStartAnIdentSequence=function(a,b,c){return a==="-"?this.isIdentStartCodePoint(b)||b==="-"?!0:this.twoCodePointsAreValidEscape(b,c)?!0:!1:this.isIdentStartCodePoint(a)?!0:a==="\\"?this.twoCodePointsAreValidEscape(a,b):!1}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.streamStartsWithAnIdentSequence=function(){return this.threeCodePointsWouldStartAnIdentSequence.apply(this,[this.currentInputCodePoint()].concat((0,$jscomp.arrayFromIterable)(this.nextTwoInputCodePoints())))};module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.isDigit=function(a){return a!==void 0&&a>="0"&&a<="9"}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.isHexDigit=function(a){return a!==void 0&&module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_HEX_DIGIT_REGEX.test(a)};module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.isNewline=function(a){return a==="\n"}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.isWhitespace=function(a){return a===" "||a==="\t"||this.isNewline(a)};module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.isIdentCodePoint=function(a){return a===void 0?!1:/^([A-Za-z0-9_-]|[^\u0000-\u007f])$/.test(a)}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.isIdentStartCodePoint=function(a){return a===void 0?!1:/^([A-Za-z_]|[^\u0000-\u007f])$/.test(a)};module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer.prototype.isNonPrintableCodePoint=function(a){return a===void 0?!1:/[\x00-\x08\x0b\x0e-\x1f\x7f]/.test(a)};var module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy={ResourceUrlPolicyHintsType:{STYLE_ELEMENT:0,STYLE_ATTRIBUTE:1,HTML_ATTRIBUTE:2}};module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.STYLE_ELEMENT]="STYLE_ELEMENT"; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.STYLE_ATTRIBUTE]="STYLE_ATTRIBUTE"; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.HTML_ATTRIBUTE]="HTML_ATTRIBUTE";function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(a){try{return new URL(a,window.document.baseURI)}catch(b){return new URL("about:invalid")}} module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy.parseUrl=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl;var module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer=function(a,b,c,d,e){this.propertyAllowlist=a;this.functionAllowlist=b;this.resourceUrlPolicy=c;this.allowKeyframes=d;this.propertyDiscarders=e;this.inertDocument=document.implementation.createHTMLDocument()}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.getStyleSheet=function(a){var b=this.inertDocument.createElement("style");a=module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_createStyleSheetInternal(a);(0,module$exports$google3$third_party$javascript$safevalues$dom$elements$style.setTextContent)(b,a);this.inertDocument.head.appendChild(b);a=b.sheet;b.remove();return a}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.getStyleDeclaration=function(a){var b=this.inertDocument.createElement("div");b.style.cssText=a;this.inertDocument.body.appendChild(b);a=b.style;b.remove();return a}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.hasShadowDomEscapingTokens=function(a,b){return a.tokenKind!==module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.COLON?!1:b.tokenKind===module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.IDENT&&b.ident.toLowerCase()==="host"||b.tokenKind===module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.FUNCTION&& (b.lowercaseName==="host"||b.lowercaseName==="host-context")?!0:!1};module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeSelector=function(a){a=(new module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer(a)).tokenize();for(var b=0;b<a.length-1;b++){var c=a[b],d=a[b+1];if(this.hasShadowDomEscapingTokens(c,d))return null}return a.map(module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$serializer_serializeToken).join("")}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeValue=function(a,b,c){b=(new module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokenizer_Tokenizer(b)).tokenize();for(var d=0;d<b.length;d++){var e=b[d];if(e.tokenKind===module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.FUNCTION){if(!this.functionAllowlist.has(e.lowercaseName))return null; if(e.lowercaseName==="url"){e=b[d+1];var f=void 0;if(((f=e)==null?void 0:f.tokenKind)!==module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING)return null;e=e.value;e=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(e);this.resourceUrlPolicy&&(e=this.resourceUrlPolicy(e,{type:c?module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.STYLE_ELEMENT: module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.STYLE_ATTRIBUTE,propertyName:a}));if(!e)return null;b[d+1]={tokenKind:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$tokens.CssTokenKind.STRING,value:e.toString()};d++}}}return b.map(module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$serializer_serializeToken).join("")}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeKeyframeRule=function(a){var b=this.sanitizeStyleDeclaration(a.style,!0);return a.keyText+" { "+b+" }"}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeKeyframesRule=function(a){if(!this.allowKeyframes)return null;for(var b=[],c=(0,$jscomp.makeIterator)(a.cssRules),d=c.next();!d.done;d=c.next())d=d.value,d instanceof CSSKeyframeRule&&(d=this.sanitizeKeyframeRule(d))&&b.push(d);return"@keyframes "+module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(a.name)+" { "+b.join(" ")+ " }"};module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.isPropertyNameAllowed=function(a){if(!this.propertyAllowlist.has(a))return!1;for(var b=(0,$jscomp.makeIterator)(this.propertyDiscarders),c=b.next();!c.done;c=b.next())if(c=c.value,c(a))return!1;return!0}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeProperty=function(a,b,c,d){return this.isPropertyNameAllowed(a)?(b=this.sanitizeValue(a,b,d))?module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$serializer_escapeIdent(a)+": "+b+(c?" !important":""):null:null}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleDeclaration=function(a,b){var c=[].concat((0,$jscomp.arrayFromIterable)(a)).sort(),d="";c=(0,$jscomp.makeIterator)(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=a.getPropertyValue(e),g=a.getPropertyPriority(e)==="important";(e=this.sanitizeProperty(e,f,g,b))&&(d+=e+";")}return d}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleRule=function(a){var b=this.sanitizeSelector(a.selectorText);if(!b)return null;a=this.sanitizeStyleDeclaration(a.style,!0);return b+" { "+a+" }"}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleElement=function(a){a=this.getStyleSheet(a);var b=a.cssRules;a=[];b=(0,$jscomp.makeIterator)(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c instanceof CSSStyleRule?(c=this.sanitizeStyleRule(c))&&a.push(c):c instanceof CSSKeyframesRule&&(c=this.sanitizeKeyframesRule(c))&&a.push(c);return a.join("\n")}; module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer.prototype.sanitizeStyleAttribute=function(a){a=this.getStyleDeclaration(a);return this.sanitizeStyleDeclaration(a,!1)};var module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$css_isolation={CSS_ISOLATION_PROPERTIES:"display:inline-block;clip-path:inset(0);overflow:hidden;vertical-align:top;text-decoration:inherit"};module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$css_isolation.CSS_ISOLATION_STYLESHEET=":host{"+module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$css_isolation.CSS_ISOLATION_PROPERTIES+"}";function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(a,b){if(goog.DEBUG&&b.defaultView)throw Error("createInertFragment called with non-inert document");var c=b.createRange();c.selectNode(b.body);a=(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal)(a);return module$contents$google3$third_party$javascript$safevalues$dom$globals$range_createContextualFragment(c,a)};function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$no_clobber_getNodeName(a){a=a.nodeName;return typeof a==="string"?a:"FORM"}function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$no_clobber_isElement(a){a=a.nodeType;return a===1||typeof a!=="number"};var module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table={SanitizerTable:function(a,b,c,d,e){this.allowedElements=a;this.elementPolicies=b;this.allowedGlobalAttributes=c;this.globalAttributePolicies=d;this.globallyAllowedAttributePrefixes=e}}; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable.prototype.isAllowedElement=function(a){return a!=="FORM"&&(this.allowedElements.has(a)||this.elementPolicies.has(a))}; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable.prototype.getAttributePolicy=function(a,b){b=this.elementPolicies.get(b);var c;return((c=b)==null?0:c.has(a))?b.get(a):this.allowedGlobalAttributes.has(a)?{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}:(c=this.globalAttributePolicies.get(a))?c:this.globallyAllowedAttributePrefixes&& [].concat((0,$jscomp.arrayFromIterable)(this.globallyAllowedAttributePrefixes)).some(function(d){return a.indexOf(d)===0})?{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}:{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.DROP}}; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction={DROP:0,KEEP:1,KEEP_AND_SANITIZE_URL:2,KEEP_AND_NORMALIZE:3,KEEP_AND_SANITIZE_STYLE:4,KEEP_AND_USE_RESOURCE_URL_POLICY:5,KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET:6}; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.DROP]="DROP"; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP]="KEEP"; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL]="KEEP_AND_SANITIZE_URL"; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE]="KEEP_AND_NORMALIZE"; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_STYLE]="KEEP_AND_SANITIZE_STYLE"; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY]="KEEP_AND_USE_RESOURCE_URL_POLICY"; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction[module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET]="KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET"; function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_AttributePolicy(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicy=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_AttributePolicy; var module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_FORBIDDEN_CUSTOM_ELEMENT_NAMES=new Set("ANNOTATION-XML COLOR-PROFILE FONT-FACE FONT-FACE-SRC FONT-FACE-URI FONT-FACE-FORMAT FONT-FACE-NAME MISSING-GLYPH".split(" ")); function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_isCustomElement(a){return!module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_FORBIDDEN_CUSTOM_ELEMENT_NAMES.has(a.toUpperCase())&&/^[a-z][-_.a-z0-9]*-[-_.a-z0-9]*$/i.test(a)}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.isCustomElement=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table_isCustomElement;var module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table={},module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS="ARTICLE SECTION NAV ASIDE H1 H2 H3 H4 H5 H6 HEADER FOOTER ADDRESS P HR PRE BLOCKQUOTE OL UL LH LI DL DT DD FIGURE FIGCAPTION MAIN DIV EM STRONG SMALL S CITE Q DFN ABBR RUBY RB RT RTC RP DATA TIME CODE VAR SAMP KBD SUB SUP I B U MARK BDI BDO SPAN BR WBR NOBR INS DEL PICTURE PARAM TRACK MAP TABLE CAPTION COLGROUP COL TBODY THEAD TFOOT TR TD TH SELECT DATALIST OPTGROUP OPTION OUTPUT PROGRESS METER FIELDSET LEGEND DETAILS SUMMARY MENU DIALOG SLOT CANVAS FONT CENTER ACRONYM BASEFONT BIG DIR HGROUP STRIKE TT".split(" "), module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES=[["A",new Map([["href",{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}]])],["AREA",new Map([["href",{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}]])], ["LINK",new Map([["href",{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}], ["srcset",{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET}]])],["IMG",new Map([["src",{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}],["srcset",{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET}]])], ["VIDEO",new Map([["src",{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}]])],["AUDIO",new Map([["src",{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY}]])]],module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES= "title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked color cols colspan controls datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "), module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES=[["dir",{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE,conditions:module$contents$google3$third_party$javascript$safevalues$internals$pure_pure(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],["async",{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$google3$third_party$javascript$safevalues$internals$pure_pure(function(){return new Map([["async",new Set(["async"])]])})}],["cite",{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}],["loading",{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$google3$third_party$javascript$safevalues$internals$pure_pure(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],["poster",{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL}],["target",{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE, conditions:module$contents$google3$third_party$javascript$safevalues$internals$pure_pure(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]]; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE=new module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS),new Map(module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES), new Set(module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES),new Map(module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES)); module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.LENIENT_SANITIZER_TABLE=new module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS.concat(["BUTTON","INPUT"])),new Map(module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES), new Set(module$contents$google3$third_party$javascript$safevalues$internals$pure_pure(function(){return module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES.concat(["class","id","name"])})),new Map(module$contents$google3$third_party$javascript$safevalues$internals$pure_pure(function(){return module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES.concat([["style", {policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]])}))); module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.SUPER_LENIENT_SANITIZER_TABLE=new module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(new Set(module$contents$google3$third_party$javascript$safevalues$internals$pure_pure(function(){return module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_ELEMENTS.concat("STYLE TITLE INPUT TEXTAREA BUTTON LABEL".split(" "))})),new Map(module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ELEMENT_POLICIES), new Set(module$contents$google3$third_party$javascript$safevalues$internals$pure_pure(function(){return module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_ALLOWED_GLOBAL_ATTRIBUTES.concat(["class","id","tabindex","contenteditable","name"])})),new Map(module$contents$google3$third_party$javascript$safevalues$internals$pure_pure(function(){return module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table_GLOBAL_ATTRIBUTE_POLICIES.concat([["style", {policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP}]])})),new Set(["data-","aria-"]));var module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer={};function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_HtmlSanitizer(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizer=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_HtmlSanitizer; function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_CssSanitizer(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.CssSanitizer=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_CssSanitizer; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl=function(a,b,c,d,e){this.sanitizerTable=a;this.styleElementSanitizer=c;this.styleAttributeSanitizer=d;this.resourceUrlPolicy=e;this.changes=[];module$contents$google3$third_party$javascript$safevalues$internals$secrets_ensureTokenIsValid(b)}; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeAssertUnchanged=function(a){goog.DEBUG&&(this.changes=[]);var b=this.sanitize(a);if(goog.DEBUG&&this.changes.length!==0)throw Error('Unexpected change to HTML value as a result of sanitization. Input: "'+(a+'", sanitized output: "'+b+'"\nList of changes:')+this.changes.join("\n"));return b}; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitize=function(a){var b=document.implementation.createHTMLDocument("");return(0,module$exports$google3$third_party$javascript$safevalues$builders$html_builders.nodeToHtmlInternal)(this.sanitizeToFragmentInternal(a,b),b.body)}; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragment=function(a){var b=document.implementation.createHTMLDocument("");return this.styleElementSanitizer&&this.styleAttributeSanitizer?this.sanitizeWithCssToFragment(a,b):this.sanitizeToFragmentInternal(a,b)}; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeWithCssToFragment=function(a,b){var c=document.createElement("safevalues-with-css"),d=c.attachShadow({mode:"closed"});a=this.sanitizeToFragmentInternal(a,b);var e=document.createElement("style");e.textContent=module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$css_isolation.CSS_ISOLATION_STYLESHEET;e.id="safevalues-internal-style";d.appendChild(e); d.appendChild(a);b=b.createDocumentFragment();b.appendChild(c);return b}; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeToFragmentInternal=function(a,b){var c=this;a=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$inert_fragment_createInertFragment(a,b);a=document.createTreeWalker(a,5,function(h){return c.nodeFilter(h)});for(var d=a.nextNode(),e=b.createDocumentFragment(),f=e;d!==null;){var g=void 0;if(d.nodeType===3)this.styleElementSanitizer&&f.nodeName=== "STYLE"?(d=this.styleElementSanitizer(d.data),g=this.createTextNode(d)):g=this.sanitizeTextNode(d);else if(module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$no_clobber_isElement(d))g=this.sanitizeElementNode(d,b);else throw b="",goog.DEBUG&&(b="Node is not of type text or element"),Error(b);f.appendChild(g);if(d=a.firstChild())f=g;else for(;!(d=a.nextSibling())&&(d=a.parentNode());)f=f.parentNode}return e}; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.createTextNode=function(a){return document.createTextNode(a)};module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeTextNode=function(a){return this.createTextNode(a.data)}; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.sanitizeElementNode=function(a,b){var c=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$no_clobber_getNodeName(a);b=b.createElement(c);a=a.attributes;for(var d=(0,$jscomp.makeIterator)(a),e=d.next();!e.done;e=d.next()){var f=e=e.value;e=f.name;var g=f.value;f=this.sanitizerTable.getAttributePolicy(e,c);if(this.satisfiesAllConditions(f.conditions, a))switch(f.policyAction){case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP:module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(b,e,g);break;case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_URL:f=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_restrictivelySanitizeUrl(g); f!==g&&this.recordChange("Url in attribute "+e+' was modified during sanitization. Original url:"'+g+'" was sanitized to: "'+f+'"');module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(b,e,f);break;case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_NORMALIZE:module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(b, e,g.toLowerCase());break;case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_STYLE:this.styleAttributeSanitizer?(f=this.styleAttributeSanitizer(g),module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(b,e,f)):module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(b,e,g);break;case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY:this.resourceUrlPolicy? (f={type:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.HTML_ATTRIBUTE,attributeName:e,elementName:c},g=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(g),(f=this.resourceUrlPolicy(g,f))&&module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(b,e,f.toString())):module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(b, e,g);break;case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_USE_RESOURCE_URL_POLICY_FOR_SRCSET:if(this.resourceUrlPolicy){f={type:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType.HTML_ATTRIBUTE,attributeName:e,elementName:c};var h=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(g); g={parts:[]};h=(0,$jscomp.makeIterator)(h.parts);for(var k=h.next();!k.done;k=h.next()){k=k.value;var l=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy_parseUrl(k.url);(l=this.resourceUrlPolicy(l,f))&&g.parts.push({url:l.toString(),descriptor:k.descriptor})}module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(b,e,module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset(g))}else module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(b, e,g);break;case module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.DROP:this.recordChange("Attribute: "+e+" was dropped");break;default:if(goog.DEBUG)throw c=f.policyAction,b="Unhandled AttributePolicyAction case",b=b===void 0?"unexpected value "+c+"!":b,Error(b);}else this.recordChange("Not all conditions satisfied for attribute: "+e+".")}return b}; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.nodeFilter=function(a){if(a.nodeType===3)return 1;if(!module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$no_clobber_isElement(a))return 2;var b=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$no_clobber_getNodeName(a);if(b===null)return this.recordChange("Node name was null for node: "+a),2;if(this.sanitizerTable.isAllowedElement(b))return 1; this.recordChange("Element: "+b+" was dropped");return 2};module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.recordChange=function(a){goog.DEBUG&&this.changes.push(a)}; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl.prototype.satisfiesAllConditions=function(a,b){if(!a)return!0;a=(0,$jscomp.makeIterator)(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=(0,$jscomp.makeIterator)(c);c=d.next().value;d=d.next().value;var e=void 0;if((c=(e=b.getNamedItem(c))==null?void 0:e.value)&&!d.has(c))return!1}return!0}; function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_setAttribute(a,b,c){a.setAttribute(b,c)}function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_Srcset(){}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.Srcset=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_Srcset; function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset(a){var b=[];a=(0,$jscomp.makeIterator)(a.split(","));for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=(0,$jscomp.makeIterator)(c.trim().split(/\s+/,2));c=d.next().value;d=d.next().value;b.push({url:c,descriptor:d})}return{parts:b}}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.parseSrcset=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_parseSrcset; function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset(a){return a.parts.map(function(b){var c=b;b=c.url;c=c.descriptor;return""+b+(c?" "+c:"")}).join(" , ")}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.serializeSrcset=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_serializeSrcset; var module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_defaultHtmlSanitizer=module$contents$google3$third_party$javascript$safevalues$internals$pure_pure(function(){return new module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE,module$exports$google3$third_party$javascript$safevalues$internals$secrets.secretToken)}); function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtml(a){return module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_defaultHtmlSanitizer.sanitize(a)}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.sanitizeHtml=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtml; function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged(a){return module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_defaultHtmlSanitizer.sanitizeAssertUnchanged(a)}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.sanitizeHtmlAssertUnchanged=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlAssertUnchanged; function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlToFragment(a){return module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_defaultHtmlSanitizer.sanitizeToFragment(a)}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.sanitizeHtmlToFragment=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_sanitizeHtmlToFragment; var module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_lenientHtmlSanitizer=module$contents$google3$third_party$javascript$safevalues$internals$pure_pure(function(){return new module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.LENIENT_SANITIZER_TABLE,module$exports$google3$third_party$javascript$safevalues$internals$secrets.secretToken)}); function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtml(a){return module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_lenientHtmlSanitizer.sanitize(a)}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.lenientlySanitizeHtml=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtml; function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged(a){return module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_lenientHtmlSanitizer.sanitizeAssertUnchanged(a)}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.lenientlySanitizeHtmlAssertUnchanged=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_lenientlySanitizeHtmlAssertUnchanged; var module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_superLenientHtmlSanitizer=module$contents$google3$third_party$javascript$safevalues$internals$pure_pure(function(){return new module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.SUPER_LENIENT_SANITIZER_TABLE,module$exports$google3$third_party$javascript$safevalues$internals$secrets.secretToken)}); function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_superLenientlySanitizeHtml(a){return module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_superLenientHtmlSanitizer.sanitize(a)}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.superLenientlySanitizeHtml=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_superLenientlySanitizeHtml; function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_superLenientlySanitizeHtmlAssertUnchanged(a){return module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_superLenientHtmlSanitizer.sanitizeAssertUnchanged(a)}module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.superLenientlySanitizeHtmlAssertUnchanged=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_superLenientlySanitizeHtmlAssertUnchanged;var module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder={BaseSanitizerBuilder:function(){this.calledBuild=!1;this.sanitizerTable=module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$default_sanitizer_table.DEFAULT_SANITIZER_TABLE}}; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.prototype.allowClassAttributes=function(){var a=new Set(this.sanitizerTable.allowedGlobalAttributes);a.add("class");this.sanitizerTable=new module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(this.sanitizerTable.allowedElements,this.sanitizerTable.elementPolicies,a,this.sanitizerTable.globalAttributePolicies); return this};module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder=function(){module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.apply(this,arguments)};$jscomp.inherits(module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder,module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder); module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder.prototype.build=function(){if(this.calledBuild)throw Error("this sanitizer has already called build");this.calledBuild=!0;return new module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(this.sanitizerTable,module$exports$google3$third_party$javascript$safevalues$internals$secrets.secretToken,void 0,void 0,this.resourceUrlPolicy)}; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder=function(){module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder.apply(this,arguments);this.transitionsAllowed=this.animationsAllowed=!1};$jscomp.inherits(module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder,module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder.BaseSanitizerBuilder); module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.build=function(){var a=this;this.extendSanitizerTableForCss();var b=[];this.animationsAllowed||b.push(function(e){return/^(animation|offset)(-|$)/.test(e)});this.transitionsAllowed||b.push(function(e){return/^transition(-|$)/.test(e)});var c=function(e){return e=(new module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer(module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST, module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST,a.resourceUrlPolicy,a.animationsAllowed,b)).sanitizeStyleElement(e)},d=function(e){return e=(new module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$sanitizer_CssSanitizer(module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$allowlists.CSS_PROPERTY_ALLOWLIST,module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$css$allowlists.CSS_FUNCTION_ALLOWLIST, a.resourceUrlPolicy,!1,b)).sanitizeStyleAttribute(e)};return new module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.HtmlSanitizerImpl(this.sanitizerTable,module$exports$google3$third_party$javascript$safevalues$internals$secrets.secretToken,c,d,this.resourceUrlPolicy)}; module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder.prototype.extendSanitizerTableForCss=function(){var a=new Set(this.sanitizerTable.allowedElements),b=new Set(this.sanitizerTable.allowedGlobalAttributes),c=new Map(this.sanitizerTable.globalAttributePolicies);a.add("STYLE");c.set("style",{policyAction:module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.AttributePolicyAction.KEEP_AND_SANITIZE_STYLE}); b.add("id");b.add("name");b.add("class");this.sanitizerTable=new module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$sanitizer_table$sanitizer_table.SanitizerTable(a,this.sanitizerTable.elementPolicies,b,c)};var module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$default_css_sanitizer_defaultCssSanitizer=module$contents$google3$third_party$javascript$safevalues$internals$pure_pure(function(){return(new module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder).build()}); function module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$default_css_sanitizer_sanitizeHtmlWithCss(a){return module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$default_css_sanitizer_defaultCssSanitizer.sanitizeToFragment(a)};function module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_getUrlSegments(a){var b=a.split(/[?#]/),c=/[?]/.test(a)?"?"+b[1]:"";a=/[#]/.test(a)?"#"+(c?b[2]:b[1]):"";return{urlPath:b[0],params:c,fragment:a}} function module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_trustedResourceUrl(a){var b=$jscomp.getRestArguments.apply(1,arguments);goog.DEBUG&&module$contents$google3$third_party$javascript$safevalues$internals$string_literal_assertIsTemplateObject(a,b.length);if(b.length===0)return module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_createResourceUrlInternal(a[0]);var c=a[0].toLowerCase();if(goog.DEBUG){if(/^data:/.test(c))throw Error("Data URLs cannot have expressions in the template literal input."); if(/^https:\/\//.test(c)||/^\/\//.test(c)){var d=c.indexOf("//")+2;var e=c.indexOf("/",d);if(e<=d)throw Error("Can't interpolate data in a url's origin, Please make sure to fully specify the origin, terminated with '/'.");d=c.substring(d,e);if(!/^[0-9a-z.:-]+$/i.test(d))throw Error("The origin contains unsupported characters.");if(!/^[^:]*(:[0-9]+)?$/i.test(d))throw Error("Invalid port number.");if(!/(^|\.)[a-z][^.]*$/i.test(d))throw Error("The top-level domain must start with a letter.");d=!0}else d= !1;if(d=!d){if(/^\//.test(c))if(c==="/"||c.length>1&&c[1]!=="/"&&c[1]!=="\\")d=!0;else throw Error("The path start in the url is invalid.");else d=!1;d=!d}if(d=d&&!RegExp("^[^:\\s\\\\/]+/").test(c)){if(/^about:blank/.test(c)){if(c!=="about:blank"&&!/^about:blank#/.test(c))throw Error("The about url is invalid.");c=!0}else c=!1;d=!c}if(d)throw Error("Trying to interpolate expressions in an unsupported url format.");}c=a[0];for(d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_createResourceUrlInternal(c)} function module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_replaceParams(a,b){a=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_getUrlSegments(module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(a).toString());return module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_appendParamsInternal(a.urlPath,"",a.fragment,b)} function module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_appendParams(a,b){a=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_getUrlSegments(module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(a).toString());return module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_appendParamsInternal(a.urlPath,a.params,a.fragment,b)} function module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_appendParamsInternal(a,b,c,d){function e(g,h){g!=null&&(Array.isArray(g)?g.forEach(function(k){return e(k,h)}):(b+=f+encodeURIComponent(h)+"="+encodeURIComponent(g),f="&"))}var f=b.length?"&":"?";d.constructor===Object&&(d=Object.entries(d));Array.isArray(d)?d.forEach(function(g){return e(g[1],g[0])}):d.forEach(e);return module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_createResourceUrlInternal(a+ b+c)}var module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_BEFORE_FRAGMENT_REGEXP=/[^#]*/; function module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_replaceFragment(a,b){a=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(a).toString();return module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_createResourceUrlInternal(module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_BEFORE_FRAGMENT_REGEXP.exec(a)[0]+(b.trim()?"#"+b:""))} function module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_appendPathSegment(a,b){a=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_getUrlSegments(module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(a).toString());var c=a.urlPath.slice(-1)==="/"?"":"/";b=a.urlPath+c+encodeURIComponent(b);return module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_createResourceUrlInternal(b+ a.params+a.fragment)}function module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_objectUrlFromScript(a){a=module$contents$google3$third_party$javascript$safevalues$internals$script_impl_unwrapScript(a).toString();a=new Blob([a],{type:"text/javascript"});return module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_createResourceUrlInternal(URL.createObjectURL(a))} function module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_toAbsoluteResourceUrl(a){a=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(a).toString();a=new URL(a,window.document.baseURI);return module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_createResourceUrlInternal(a.toString())};function module$contents$google3$third_party$javascript$safevalues$builders$script_builders_safeScript(a){var b=$jscomp.getRestArguments.apply(1,arguments);if(goog.DEBUG){if(b.some(function(c){return c!==""}))throw Error("safeScript only allows empty string expressions to enable inline comments.");module$contents$google3$third_party$javascript$safevalues$internals$string_literal_assertIsTemplateObject(a,b.length)}return module$contents$google3$third_party$javascript$safevalues$internals$script_impl_createScriptInternal(a.join(""))} function module$contents$google3$third_party$javascript$safevalues$builders$script_builders_concatScripts(a){return module$contents$google3$third_party$javascript$safevalues$internals$script_impl_createScriptInternal(a.map(module$contents$google3$third_party$javascript$safevalues$internals$script_impl_unwrapScript).join(""))} function module$contents$google3$third_party$javascript$safevalues$builders$script_builders_valueAsScript(a){return module$contents$google3$third_party$javascript$safevalues$internals$script_impl_createScriptInternal(JSON.stringify(a).replace(/</g,"\\u003C"))} function module$contents$google3$third_party$javascript$safevalues$builders$script_builders_safeScriptWithArgs(a){var b=$jscomp.getRestArguments.apply(1,arguments);if(goog.DEBUG){if(b.some(function(c){return c!==""}))throw Error("safeScriptWithArgs only allows empty string expressions to enable inline comments.");module$contents$google3$third_party$javascript$safevalues$internals$string_literal_assertIsTemplateObject(a,b.length)}return function(){var c=$jscomp.getRestArguments.apply(0,arguments); c=c.map(function(d){return module$contents$google3$third_party$javascript$safevalues$builders$script_builders_valueAsScript(d).toString()});return module$contents$google3$third_party$javascript$safevalues$internals$script_impl_createScriptInternal("("+a.join("")+")("+c.join(",")+")")}};var module$exports$google3$third_party$javascript$safevalues$reporting$reporting={},module$contents$google3$third_party$javascript$safevalues$reporting$reporting_REPORTING_ID_PREFIX_TO_SAMPLING_RATE={0:1,1:1},module$contents$google3$third_party$javascript$safevalues$reporting$reporting_REPORTING_ID_PREFIX_TO_HEARTBEAT_RATE={0:.1,1:.1};function module$contents$google3$third_party$javascript$safevalues$reporting$reporting_ReportingOptions(){} module$exports$google3$third_party$javascript$safevalues$reporting$reporting.ReportingOptions=module$contents$google3$third_party$javascript$safevalues$reporting$reporting_ReportingOptions; function module$contents$google3$third_party$javascript$safevalues$reporting$reporting_reportOnlyHtmlPassthrough(a,b){var c;if(!(c=!b)){var d,e;c=Math.random()<((e=(d=b.samplingRate)!=null?d:module$contents$google3$third_party$javascript$safevalues$reporting$reporting_REPORTING_ID_PREFIX_TO_SAMPLING_RATE[b.reportingId[0]])!=null?e:0);c=!c}if(c||window.SAFEVALUES_REPORTING===!1||!("DocumentFragment"in window))return a;var f,g;Math.random()<((g=(f=b.heartbeatRate)!=null?f:module$contents$google3$third_party$javascript$safevalues$reporting$reporting_REPORTING_ID_PREFIX_TO_HEARTBEAT_RATE[b.reportingId[0]])!= null?g:0)&&module$contents$google3$third_party$javascript$safevalues$reporting$reporting_reportLegacyConversion(b,module$contents$google3$third_party$javascript$safevalues$reporting$reporting_ReportingType.HEARTBEAT);d=module$contents$google3$third_party$javascript$safevalues$reporting$reporting_isChangedBySanitizing(a,b);d||(d=a,(0,module$exports$google3$third_party$javascript$safevalues$builders$html_builders.htmlEscape)(d).toString()!==d&&module$contents$google3$third_party$javascript$safevalues$reporting$reporting_reportLegacyConversion(b, module$contents$google3$third_party$javascript$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_ESCAPING));return a}module$exports$google3$third_party$javascript$safevalues$reporting$reporting.reportOnlyHtmlPassthrough=module$contents$google3$third_party$javascript$safevalues$reporting$reporting_reportOnlyHtmlPassthrough; function module$contents$google3$third_party$javascript$safevalues$reporting$reporting_isChangedBySanitizing(a,b){try{(0,module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.superLenientlySanitizeHtmlAssertUnchanged)(a)}catch(c){return a=/([.]corp[.]google[.]com|[.]proxy[.]googleprod[.]com|[.]googlers[.]com)$/,goog.DEBUG&&a.test(window.location.hostname)&&c instanceof Error?module$contents$google3$third_party$javascript$safevalues$reporting$reporting_reportLegacyConversion(b, module$contents$google3$third_party$javascript$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SUPER_LENIENT_SANITIZING,c.message):module$contents$google3$third_party$javascript$safevalues$reporting$reporting_reportLegacyConversion(b,module$contents$google3$third_party$javascript$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SUPER_LENIENT_SANITIZING),!0}try{(0,module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.lenientlySanitizeHtmlAssertUnchanged)(a)}catch(c){return module$contents$google3$third_party$javascript$safevalues$reporting$reporting_reportLegacyConversion(b, module$contents$google3$third_party$javascript$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_RELAXED_SANITIZING),!0}try{(0,module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.sanitizeHtmlAssertUnchanged)(a)}catch(c){return module$contents$google3$third_party$javascript$safevalues$reporting$reporting_reportLegacyConversion(b,module$contents$google3$third_party$javascript$safevalues$reporting$reporting_ReportingType.HTML_CHANGED_BY_SANITIZING), !0}return!1}var module$contents$google3$third_party$javascript$safevalues$reporting$reporting_ReportingType={HEARTBEAT:"HEARTBEAT",CRASHED:"CRASHED",HTML_CHANGED_BY_ESCAPING:"H_ESCAPE",HTML_CHANGED_BY_SANITIZING:"H_SANITIZE",HTML_CHANGED_BY_RELAXED_SANITIZING:"H_RSANITIZE",HTML_CHANGED_BY_SUPER_LENIENT_SANITIZING:"H_SLSANITIZE"}; function module$contents$google3$third_party$javascript$safevalues$reporting$reporting_reportLegacyConversion(a,b,c){var d=module$exports$google3$third_party$javascript$safevalues$reporting$reporting.TEST_ONLY.sendReport?module$exports$google3$third_party$javascript$safevalues$reporting$reporting.TEST_ONLY.sendReport:typeof window!=="undefined"&&window.navigator&&window.navigator.sendBeacon!==void 0?navigator.sendBeacon.bind(navigator):module$contents$google3$third_party$javascript$safevalues$reporting$reporting_sendBeaconPolyfill; b={host:window.location.hostname,type:b,additionalData:c};d("https://csp.withgoogle.com/csp/lcreport/"+a.reportingId,JSON.stringify(b))}function module$contents$google3$third_party$javascript$safevalues$reporting$reporting_sendBeaconPolyfill(a,b){var c=new XMLHttpRequest;c.open("POST",a);c.setRequestHeader("Content-Type","application/json");c.send(b)} module$exports$google3$third_party$javascript$safevalues$reporting$reporting.TEST_ONLY={reset:function(){module$exports$google3$third_party$javascript$safevalues$reporting$reporting.TEST_ONLY.sendReport=void 0}};var module$exports$google3$third_party$javascript$safevalues$index={};module$exports$google3$third_party$javascript$safevalues$index.safeAttrPrefix=module$contents$google3$third_party$javascript$safevalues$builders$attribute_builders_safeAttrPrefix;module$exports$google3$third_party$javascript$safevalues$index.htmlFragment=module$contents$google3$third_party$javascript$safevalues$builders$document_fragment_builders_htmlFragment; module$exports$google3$third_party$javascript$safevalues$index.htmlToNode=module$contents$google3$third_party$javascript$safevalues$builders$document_fragment_builders_htmlToNode;module$exports$google3$third_party$javascript$safevalues$index.svgFragment=module$contents$google3$third_party$javascript$safevalues$builders$document_fragment_builders_svgFragment;module$exports$google3$third_party$javascript$safevalues$index.concatHtmls=module$exports$google3$third_party$javascript$safevalues$builders$html_builders.concatHtmls; module$exports$google3$third_party$javascript$safevalues$index.createHtml=module$exports$google3$third_party$javascript$safevalues$builders$html_builders.createHtml;module$exports$google3$third_party$javascript$safevalues$index.doctypeHtml=module$exports$google3$third_party$javascript$safevalues$builders$html_builders.doctypeHtml;module$exports$google3$third_party$javascript$safevalues$index.htmlEscape=module$exports$google3$third_party$javascript$safevalues$builders$html_builders.htmlEscape; module$exports$google3$third_party$javascript$safevalues$index.joinHtmls=module$exports$google3$third_party$javascript$safevalues$builders$html_builders.joinHtmls;module$exports$google3$third_party$javascript$safevalues$index.nodeToHtml=module$exports$google3$third_party$javascript$safevalues$builders$html_builders.nodeToHtml;module$exports$google3$third_party$javascript$safevalues$index.scriptToHtml=module$exports$google3$third_party$javascript$safevalues$builders$html_builders.scriptToHtml; module$exports$google3$third_party$javascript$safevalues$index.scriptUrlToHtml=module$exports$google3$third_party$javascript$safevalues$builders$html_builders.scriptUrlToHtml;module$exports$google3$third_party$javascript$safevalues$index.styleSheetToHtml=module$exports$google3$third_party$javascript$safevalues$builders$html_builders.styleSheetToHtml;module$exports$google3$third_party$javascript$safevalues$index.HtmlFormatter=module$exports$google3$third_party$javascript$safevalues$builders$html_formatter.HtmlFormatter; module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlWithCss=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$default_css_sanitizer_sanitizeHtmlWithCss;module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtml=module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.sanitizeHtml;module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged=module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.sanitizeHtmlAssertUnchanged; module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlToFragment=module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.sanitizeHtmlToFragment;module$exports$google3$third_party$javascript$safevalues$index.CssSanitizerBuilder=module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder;module$exports$google3$third_party$javascript$safevalues$index.HtmlSanitizerBuilder=module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder; module$exports$google3$third_party$javascript$safevalues$index.ResourceUrlPolicyHintsType=module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType;module$exports$google3$third_party$javascript$safevalues$index.appendParams=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_appendParams;module$exports$google3$third_party$javascript$safevalues$index.appendPathSegment=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_appendPathSegment; module$exports$google3$third_party$javascript$safevalues$index.objectUrlFromScript=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_objectUrlFromScript;module$exports$google3$third_party$javascript$safevalues$index.replaceFragment=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_replaceFragment;module$exports$google3$third_party$javascript$safevalues$index.replaceParams=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_replaceParams; module$exports$google3$third_party$javascript$safevalues$index.toAbsoluteResourceUrl=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_toAbsoluteResourceUrl;module$exports$google3$third_party$javascript$safevalues$index.trustedResourceUrl=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_trustedResourceUrl;module$exports$google3$third_party$javascript$safevalues$index.concatScripts=module$contents$google3$third_party$javascript$safevalues$builders$script_builders_concatScripts; module$exports$google3$third_party$javascript$safevalues$index.safeScript=module$contents$google3$third_party$javascript$safevalues$builders$script_builders_safeScript;module$exports$google3$third_party$javascript$safevalues$index.safeScriptWithArgs=module$contents$google3$third_party$javascript$safevalues$builders$script_builders_safeScriptWithArgs;module$exports$google3$third_party$javascript$safevalues$index.valueAsScript=module$contents$google3$third_party$javascript$safevalues$builders$script_builders_valueAsScript; module$exports$google3$third_party$javascript$safevalues$index.concatStyleSheets=module$contents$google3$third_party$javascript$safevalues$builders$style_sheet_builders_concatStyleSheets;module$exports$google3$third_party$javascript$safevalues$index.safeStyleRule=module$contents$google3$third_party$javascript$safevalues$builders$style_sheet_builders_safeStyleRule;module$exports$google3$third_party$javascript$safevalues$index.safeStyleSheet=module$contents$google3$third_party$javascript$safevalues$builders$style_sheet_builders_safeStyleSheet; module$exports$google3$third_party$javascript$safevalues$index.SanitizableUrlScheme=module$exports$google3$third_party$javascript$safevalues$builders$url_builders.SanitizableUrlScheme;module$exports$google3$third_party$javascript$safevalues$index.addJavaScriptUrlSanitizationCallback=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback;module$exports$google3$third_party$javascript$safevalues$index.fromMediaSource=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_fromMediaSource; module$exports$google3$third_party$javascript$safevalues$index.fromTrustedResourceUrl=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_fromTrustedResourceUrl;module$exports$google3$third_party$javascript$safevalues$index.objectUrlFromSafeSource=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_objectUrlFromSafeSource;module$exports$google3$third_party$javascript$safevalues$index.removeJavaScriptUrlSanitizationCallback=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback; module$exports$google3$third_party$javascript$safevalues$index.safeUrl=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_safeUrl;module$exports$google3$third_party$javascript$safevalues$index.sanitizeUrl=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizeUrl;module$exports$google3$third_party$javascript$safevalues$index.sanitizeUrlForMigration=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizeUrlForMigration; module$exports$google3$third_party$javascript$safevalues$index.trySanitizeUrl=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_trySanitizeUrl;module$exports$google3$third_party$javascript$safevalues$index.SafeAttributePrefix=module$exports$google3$third_party$javascript$safevalues$internals$attribute_impl.SafeAttributePrefix;module$exports$google3$third_party$javascript$safevalues$index.unwrapAttributePrefix=module$contents$google3$third_party$javascript$safevalues$internals$attribute_impl_unwrapAttributePrefix; module$exports$google3$third_party$javascript$safevalues$index.EMPTY_HTML=module$exports$google3$third_party$javascript$safevalues$internals$html_impl.EMPTY_HTML;module$exports$google3$third_party$javascript$safevalues$index.SafeHtml=module$exports$google3$third_party$javascript$safevalues$internals$html_impl.SafeHtml;module$exports$google3$third_party$javascript$safevalues$index.isHtml=module$exports$google3$third_party$javascript$safevalues$internals$html_impl.isHtml; module$exports$google3$third_party$javascript$safevalues$index.unwrapHtml=module$exports$google3$third_party$javascript$safevalues$internals$html_impl.unwrapHtml;module$exports$google3$third_party$javascript$safevalues$index.TrustedResourceUrl=module$exports$google3$third_party$javascript$safevalues$internals$resource_url_impl.TrustedResourceUrl;module$exports$google3$third_party$javascript$safevalues$index.isResourceUrl=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_isResourceUrl; module$exports$google3$third_party$javascript$safevalues$index.unwrapResourceUrl=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl;module$exports$google3$third_party$javascript$safevalues$index.EMPTY_SCRIPT=module$exports$google3$third_party$javascript$safevalues$internals$script_impl.EMPTY_SCRIPT;module$exports$google3$third_party$javascript$safevalues$index.SafeScript=module$exports$google3$third_party$javascript$safevalues$internals$script_impl.SafeScript; module$exports$google3$third_party$javascript$safevalues$index.isScript=module$contents$google3$third_party$javascript$safevalues$internals$script_impl_isScript;module$exports$google3$third_party$javascript$safevalues$index.unwrapScript=module$contents$google3$third_party$javascript$safevalues$internals$script_impl_unwrapScript;module$exports$google3$third_party$javascript$safevalues$index.SafeStyleSheet=module$exports$google3$third_party$javascript$safevalues$internals$style_sheet_impl.SafeStyleSheet; module$exports$google3$third_party$javascript$safevalues$index.isStyleSheet=module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_isStyleSheet;module$exports$google3$third_party$javascript$safevalues$index.unwrapStyleSheet=module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_unwrapStyleSheet;module$exports$google3$third_party$javascript$safevalues$index.ABOUT_BLANK=module$exports$google3$third_party$javascript$safevalues$internals$url_impl.ABOUT_BLANK; module$exports$google3$third_party$javascript$safevalues$index.INNOCUOUS_URL=module$exports$google3$third_party$javascript$safevalues$internals$url_impl.INNOCUOUS_URL;module$exports$google3$third_party$javascript$safevalues$index.SafeUrl=module$exports$google3$third_party$javascript$safevalues$internals$url_impl.SafeUrl;module$exports$google3$third_party$javascript$safevalues$index.isUrl=module$contents$google3$third_party$javascript$safevalues$internals$url_impl_isUrl; module$exports$google3$third_party$javascript$safevalues$index.unwrapUrl=module$contents$google3$third_party$javascript$safevalues$internals$url_impl_unwrapUrl;module$exports$google3$third_party$javascript$safevalues$index.reportOnlyHtmlPassthrough=module$contents$google3$third_party$javascript$safevalues$reporting$reporting_reportOnlyHtmlPassthrough;safevalues.safeAttrPrefix=module$contents$google3$third_party$javascript$safevalues$builders$attribute_builders_safeAttrPrefix;safevalues.htmlFragment=module$contents$google3$third_party$javascript$safevalues$builders$document_fragment_builders_htmlFragment;safevalues.htmlToNode=module$contents$google3$third_party$javascript$safevalues$builders$document_fragment_builders_htmlToNode;safevalues.svgFragment=module$contents$google3$third_party$javascript$safevalues$builders$document_fragment_builders_svgFragment; safevalues.concatHtmls=module$exports$google3$third_party$javascript$safevalues$index.concatHtmls;safevalues.createHtml=module$exports$google3$third_party$javascript$safevalues$index.createHtml;safevalues.doctypeHtml=module$exports$google3$third_party$javascript$safevalues$index.doctypeHtml;safevalues.htmlEscape=module$exports$google3$third_party$javascript$safevalues$index.htmlEscape;safevalues.joinHtmls=module$exports$google3$third_party$javascript$safevalues$index.joinHtmls; safevalues.nodeToHtml=module$exports$google3$third_party$javascript$safevalues$index.nodeToHtml;safevalues.scriptToHtml=module$exports$google3$third_party$javascript$safevalues$index.scriptToHtml;safevalues.scriptUrlToHtml=module$exports$google3$third_party$javascript$safevalues$index.scriptUrlToHtml;safevalues.styleSheetToHtml=module$exports$google3$third_party$javascript$safevalues$index.styleSheetToHtml;safevalues.HtmlFormatter=module$exports$google3$third_party$javascript$safevalues$builders$html_formatter.HtmlFormatter; safevalues.sanitizeHtmlWithCss=module$contents$google3$third_party$javascript$safevalues$builders$html_sanitizer$default_css_sanitizer_sanitizeHtmlWithCss;safevalues.sanitizeHtml=module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtml;safevalues.sanitizeHtmlAssertUnchanged=module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged;safevalues.sanitizeHtmlToFragment=module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlToFragment; safevalues.CssSanitizer=module$exports$google3$third_party$javascript$safevalues$index.CssSanitizer;safevalues.HtmlSanitizer=module$exports$google3$third_party$javascript$safevalues$index.HtmlSanitizer;safevalues.CssSanitizerBuilder=module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder.CssSanitizerBuilder;safevalues.HtmlSanitizerBuilder=module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder; safevalues.ResourceUrlPolicyHintsType=module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$resource_url_policy.ResourceUrlPolicyHintsType;safevalues.ResourceUrlPolicy=module$exports$google3$third_party$javascript$safevalues$index.ResourceUrlPolicy;safevalues.ResourceUrlPolicyHints=module$exports$google3$third_party$javascript$safevalues$index.ResourceUrlPolicyHints;safevalues.appendParams=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_appendParams; safevalues.appendPathSegment=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_appendPathSegment;safevalues.objectUrlFromScript=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_objectUrlFromScript;safevalues.replaceFragment=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_replaceFragment;safevalues.replaceParams=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_replaceParams; safevalues.toAbsoluteResourceUrl=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_toAbsoluteResourceUrl;safevalues.trustedResourceUrl=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_trustedResourceUrl;safevalues.concatScripts=module$contents$google3$third_party$javascript$safevalues$builders$script_builders_concatScripts;safevalues.safeScript=module$contents$google3$third_party$javascript$safevalues$builders$script_builders_safeScript; safevalues.safeScriptWithArgs=module$contents$google3$third_party$javascript$safevalues$builders$script_builders_safeScriptWithArgs;safevalues.valueAsScript=module$contents$google3$third_party$javascript$safevalues$builders$script_builders_valueAsScript;safevalues.concatStyleSheets=module$contents$google3$third_party$javascript$safevalues$builders$style_sheet_builders_concatStyleSheets;safevalues.safeStyleRule=module$contents$google3$third_party$javascript$safevalues$builders$style_sheet_builders_safeStyleRule; safevalues.safeStyleSheet=module$contents$google3$third_party$javascript$safevalues$builders$style_sheet_builders_safeStyleSheet;safevalues.SanitizableUrlScheme=module$exports$google3$third_party$javascript$safevalues$builders$url_builders.SanitizableUrlScheme;safevalues.addJavaScriptUrlSanitizationCallback=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_addJavaScriptUrlSanitizationCallback;safevalues.fromMediaSource=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_fromMediaSource; safevalues.fromTrustedResourceUrl=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_fromTrustedResourceUrl;safevalues.objectUrlFromSafeSource=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_objectUrlFromSafeSource;safevalues.removeJavaScriptUrlSanitizationCallback=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_removeJavaScriptUrlSanitizationCallback;safevalues.safeUrl=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_safeUrl; safevalues.sanitizeUrl=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizeUrl;safevalues.sanitizeUrlForMigration=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizeUrlForMigration;safevalues.trySanitizeUrl=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_trySanitizeUrl;safevalues.Scheme=module$exports$google3$third_party$javascript$safevalues$index.Scheme;safevalues.SafeAttributePrefix=module$exports$google3$third_party$javascript$safevalues$internals$attribute_impl.SafeAttributePrefix; safevalues.unwrapAttributePrefix=module$contents$google3$third_party$javascript$safevalues$internals$attribute_impl_unwrapAttributePrefix;safevalues.EMPTY_HTML=module$exports$google3$third_party$javascript$safevalues$index.EMPTY_HTML;safevalues.SafeHtml=module$exports$google3$third_party$javascript$safevalues$internals$html_impl.SafeHtml;safevalues.isHtml=module$exports$google3$third_party$javascript$safevalues$index.isHtml;safevalues.unwrapHtml=module$exports$google3$third_party$javascript$safevalues$index.unwrapHtml; safevalues.TrustedResourceUrl=module$exports$google3$third_party$javascript$safevalues$internals$resource_url_impl.TrustedResourceUrl;safevalues.isResourceUrl=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_isResourceUrl;safevalues.unwrapResourceUrl=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl;safevalues.EMPTY_SCRIPT=module$exports$google3$third_party$javascript$safevalues$internals$script_impl.EMPTY_SCRIPT; safevalues.SafeScript=module$exports$google3$third_party$javascript$safevalues$internals$script_impl.SafeScript;safevalues.isScript=module$contents$google3$third_party$javascript$safevalues$internals$script_impl_isScript;safevalues.unwrapScript=module$contents$google3$third_party$javascript$safevalues$internals$script_impl_unwrapScript;safevalues.SafeStyleSheet=module$exports$google3$third_party$javascript$safevalues$internals$style_sheet_impl.SafeStyleSheet;safevalues.isStyleSheet=module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_isStyleSheet; safevalues.unwrapStyleSheet=module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_unwrapStyleSheet;safevalues.ABOUT_BLANK=module$exports$google3$third_party$javascript$safevalues$internals$url_impl.ABOUT_BLANK;safevalues.INNOCUOUS_URL=module$exports$google3$third_party$javascript$safevalues$internals$url_impl.INNOCUOUS_URL;safevalues.SafeUrl=module$exports$google3$third_party$javascript$safevalues$internals$url_impl.SafeUrl;safevalues.isUrl=module$contents$google3$third_party$javascript$safevalues$internals$url_impl_isUrl; safevalues.unwrapUrl=module$contents$google3$third_party$javascript$safevalues$internals$url_impl_unwrapUrl;safevalues.reportOnlyHtmlPassthrough=module$contents$google3$third_party$javascript$safevalues$reporting$reporting_reportOnlyHtmlPassthrough;goog.dom.ASSUME_QUIRKS_MODE=!1;goog.dom.ASSUME_STANDARDS_MODE=!1;goog.dom.COMPAT_MODE_KNOWN_=goog.dom.ASSUME_QUIRKS_MODE||goog.dom.ASSUME_STANDARDS_MODE;goog.dom.getDomHelper=function(a){return a?new goog.dom.DomHelper(goog.dom.getOwnerDocument(a)):goog.dom.defaultDomHelper_||(goog.dom.defaultDomHelper_=new goog.dom.DomHelper)};goog.dom.getDocument=function(){return document};goog.dom.getElement=function(a){return goog.dom.getElementHelper_(document,a)}; goog.dom.getHTMLElement=function(a){return(a=goog.dom.getElement(a))?module$contents$goog$asserts$dom_assertIsHtmlElement(a):null};goog.dom.getElementHelper_=function(a,b){return typeof b==="string"?a.getElementById(b):b};goog.dom.getRequiredElement=function(a){return goog.dom.getRequiredElementHelper_(document,a)};goog.dom.getRequiredHTMLElement=function(a){return module$contents$goog$asserts$dom_assertIsHtmlElement(goog.dom.getRequiredElementHelper_(document,a))}; goog.dom.getRequiredElementHelper_=function(a,b){goog.asserts.assertString(b);a=goog.dom.getElementHelper_(a,b);return goog.asserts.assert(a,"No element found with id: "+b)};goog.dom.$=goog.dom.getElement;goog.dom.getElementsByTagName=function(a,b){b=b||document;return b.getElementsByTagName(String(a))};goog.dom.getElementsByTagNameAndClass=function(a,b,c){return goog.dom.getElementsByTagNameAndClass_(document,a,b,c)}; goog.dom.getElementByTagNameAndClass=function(a,b,c){return goog.dom.getElementByTagNameAndClass_(document,a,b,c)};goog.dom.getElementsByClass=function(a,b){return(b||document).querySelectorAll("."+a)};goog.dom.getElementByClass=function(a,b){var c=b||document;return(a=c.getElementsByClassName?c.getElementsByClassName(a)[0]:goog.dom.getElementByTagNameAndClass_(document,"*",a,b))||null}; goog.dom.getHTMLElementByClass=function(a,b){return(a=goog.dom.getElementByClass(a,b))?module$contents$goog$asserts$dom_assertIsHtmlElement(a):null};goog.dom.getRequiredElementByClass=function(a,b){b=goog.dom.getElementByClass(a,b);return goog.asserts.assert(b,"No element found with className: "+a)};goog.dom.getRequiredHTMLElementByClass=function(a,b){b=goog.dom.getElementByClass(a,b);goog.asserts.assert(b,"No HTMLElement found with className: "+a);return module$contents$goog$asserts$dom_assertIsHtmlElement(b)}; goog.dom.getElementsByTagNameAndClass_=function(a,b,c,d){a=d||a;return(b=b&&b!="*"?String(b).toUpperCase():"")||c?(c=b+(c?"."+c:""),a.querySelectorAll(c)):a.getElementsByTagName("*")};goog.dom.getElementByTagNameAndClass_=function(a,b,c,d){var e=d||a,f=b&&b!="*"?String(b).toUpperCase():"";if(f||c)return e.querySelector(f+(c?"."+c:""));a=goog.dom.getElementsByTagNameAndClass_(a,b,c,d);return a[0]||null};goog.dom.$$=goog.dom.getElementsByTagNameAndClass; goog.dom.setProperties=function(a,b){module$contents$goog$object_forEach(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:goog.dom.DIRECT_ATTRIBUTE_MAP_.hasOwnProperty(d)?a.setAttribute(goog.dom.DIRECT_ATTRIBUTE_MAP_[d],c):goog.string.startsWith(d,"aria-")||goog.string.startsWith(d,"data-")?a.setAttribute(d,c):a[d]=c})}; goog.dom.DIRECT_ATTRIBUTE_MAP_={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};goog.dom.getViewportSize=function(a){return goog.dom.getViewportSize_(a||window)};goog.dom.getViewportSize_=function(a){a=a.document;a=goog.dom.isCss1CompatMode_(a)?a.documentElement:a.body;return new goog.math.Size(a.clientWidth,a.clientHeight)}; goog.dom.getDocumentHeight=function(){return goog.dom.getDocumentHeight_(window)};goog.dom.getDocumentHeightForWindow=function(a){return goog.dom.getDocumentHeight_(a)}; goog.dom.getDocumentHeight_=function(a){var b=a.document,c=0;if(b){c=b.body;var d=b.documentElement;if(!d||!c)return 0;a=goog.dom.getViewportSize_(a).height;if(goog.dom.isCss1CompatMode_(b)&&d.scrollHeight)c=d.scrollHeight!=a?d.scrollHeight:d.offsetHeight;else{b=d.scrollHeight;var e=d.offsetHeight;d.clientHeight!=e&&(b=c.scrollHeight,e=c.offsetHeight);c=b>a?b>e?b:e:b<e?b:e}}return c};goog.dom.getPageScroll=function(a){a=a||goog.global||window;return goog.dom.getDomHelper(a.document).getDocumentScroll()}; goog.dom.getDocumentScroll=function(){return goog.dom.getDocumentScroll_(document)};goog.dom.getDocumentScroll_=function(a){var b=goog.dom.getDocumentScrollElement_(a);a=goog.dom.getWindow_(a);return new goog.math.Coordinate(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};goog.dom.getDocumentScrollElement=function(){return goog.dom.getDocumentScrollElement_(document)}; goog.dom.getDocumentScrollElement_=function(a){return a.scrollingElement?a.scrollingElement:!goog.userAgent.WEBKIT&&goog.dom.isCss1CompatMode_(a)?a.documentElement:a.body||a.documentElement};goog.dom.getWindow=function(a){return a?goog.dom.getWindow_(a):window};goog.dom.getWindow_=function(a){return a.defaultView};goog.dom.createDom=function(a,b,c){return goog.dom.createDom_(document,arguments)}; goog.dom.createDom_=function(a,b){var c=String(b[0]),d=b[1];c=goog.dom.createElement_(a,c);d&&(typeof d==="string"?c.className=d:Array.isArray(d)?c.className=d.join(" "):goog.dom.setProperties(c,d));b.length>2&&goog.dom.append_(a,c,b,2);return c}; goog.dom.append_=function(a,b,c,d){function e(g){g&&b.appendChild(typeof g==="string"?a.createTextNode(g):g)}for(;d<c.length;d++){var f=c[d];goog.isArrayLike(f)&&!goog.dom.isNodeLike(f)?module$contents$goog$array_forEach(goog.dom.isNodeList(f)?module$contents$goog$array_toArray(f):f,e):e(f)}};goog.dom.$dom=goog.dom.createDom;goog.dom.createElement=function(a){return goog.dom.createElement_(document,a)}; goog.dom.createElement_=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)};goog.dom.createTextNode=function(a){return document.createTextNode(String(a))};goog.dom.createTable=function(a,b,c){return goog.dom.createTable_(document,a,b,!!c)}; goog.dom.createTable_=function(a,b,c,d){for(var e=goog.dom.createElement_(a,goog.dom.TagName.TABLE),f=e.appendChild(goog.dom.createElement_(a,goog.dom.TagName.TBODY)),g=0;g<b;g++){for(var h=goog.dom.createElement_(a,goog.dom.TagName.TR),k=0;k<c;k++){var l=goog.dom.createElement_(a,goog.dom.TagName.TD);d&&goog.dom.setTextContent(l,goog.string.Unicode.NBSP);h.appendChild(l)}f.appendChild(h)}return e}; goog.dom.constHtmlToNode=function(a){var b=Array.prototype.map.call(arguments,goog.string.Const.unwrap);b=module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_htmlSafeByReview(b.join(""),{justification:"Constant HTML string, that gets turned into a Node later, so it will be automatically balanced."});return goog.dom.safeHtmlToNode(b)};goog.dom.safeHtmlToNode=function(a){return goog.dom.safeHtmlToNode_(document,a)}; goog.dom.safeHtmlToNode_=function(a,b){var c=goog.dom.createElement_(a,goog.dom.TagName.DIV);module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml(c,b);return goog.dom.childrenToNode_(a,c)};goog.dom.childrenToNode_=function(a,b){if(b.childNodes.length==1)return b.removeChild(goog.asserts.assert(b.firstChild));for(a=a.createDocumentFragment();b.firstChild;)a.appendChild(b.firstChild);return a};goog.dom.isCss1CompatMode=function(){return goog.dom.isCss1CompatMode_(document)}; goog.dom.isCss1CompatMode_=function(a){return goog.dom.COMPAT_MODE_KNOWN_?goog.dom.ASSUME_STANDARDS_MODE:a.compatMode=="CSS1Compat"};goog.dom.canHaveChildren=function(a){if(a.nodeType!=goog.dom.NodeType.ELEMENT)return!1;switch(a.tagName){case String(goog.dom.TagName.APPLET):case String(goog.dom.TagName.AREA):case String(goog.dom.TagName.BASE):case String(goog.dom.TagName.BR):case String(goog.dom.TagName.COL):case String(goog.dom.TagName.COMMAND):case String(goog.dom.TagName.EMBED):case String(goog.dom.TagName.FRAME):case String(goog.dom.TagName.HR):case String(goog.dom.TagName.IMG):case String(goog.dom.TagName.INPUT):case String(goog.dom.TagName.IFRAME):case String(goog.dom.TagName.ISINDEX):case String(goog.dom.TagName.KEYGEN):case String(goog.dom.TagName.LINK):case String(goog.dom.TagName.NOFRAMES):case String(goog.dom.TagName.NOSCRIPT):case String(goog.dom.TagName.META):case String(goog.dom.TagName.OBJECT):case String(goog.dom.TagName.PARAM):case String(goog.dom.TagName.SCRIPT):case String(goog.dom.TagName.SOURCE):case String(goog.dom.TagName.STYLE):case String(goog.dom.TagName.TRACK):case String(goog.dom.TagName.WBR):return!1}return!0}; goog.dom.appendChild=function(a,b){goog.asserts.assert(a!=null&&b!=null,"goog.dom.appendChild expects non-null arguments");a.appendChild(b)};goog.dom.append=function(a,b){goog.dom.append_(goog.dom.getOwnerDocument(a),a,arguments,1)};goog.dom.removeChildren=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};goog.dom.insertSiblingBefore=function(a,b){goog.asserts.assert(a!=null&&b!=null,"goog.dom.insertSiblingBefore expects non-null arguments");b.parentNode&&b.parentNode.insertBefore(a,b)}; goog.dom.insertSiblingAfter=function(a,b){goog.asserts.assert(a!=null&&b!=null,"goog.dom.insertSiblingAfter expects non-null arguments");b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)};goog.dom.insertChildAt=function(a,b,c){goog.asserts.assert(a!=null,"goog.dom.insertChildAt expects a non-null parent");a.insertBefore(b,a.childNodes[c]||null)};goog.dom.removeNode=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null}; goog.dom.replaceNode=function(a,b){goog.asserts.assert(a!=null&&b!=null,"goog.dom.replaceNode expects non-null arguments");var c=b.parentNode;c&&c.replaceChild(a,b)};goog.dom.copyContents=function(a,b){goog.asserts.assert(a!=null&&b!=null,"goog.dom.copyContents expects non-null arguments");b=b.cloneNode(!0).childNodes;for(goog.dom.removeChildren(a);b.length;)a.appendChild(b[0])}; goog.dom.flattenElement=function(a){var b,c=a.parentNode;if(c&&c.nodeType!=goog.dom.NodeType.DOCUMENT_FRAGMENT){if(a.removeNode)return a.removeNode(!1);for(;b=a.firstChild;)c.insertBefore(b,a);return goog.dom.removeNode(a)}};goog.dom.getChildren=function(a){return goog.FEATURESET_YEAR>2018||a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(b){return b.nodeType==goog.dom.NodeType.ELEMENT})}; goog.dom.getFirstElementChild=function(a){return a.firstElementChild!==void 0?a.firstElementChild:goog.dom.getNextElementNode_(a.firstChild,!0)};goog.dom.getLastElementChild=function(a){return a.lastElementChild!==void 0?a.lastElementChild:goog.dom.getNextElementNode_(a.lastChild,!1)};goog.dom.getNextElementSibling=function(a){return goog.FEATURESET_YEAR>2018||a.nextElementSibling!==void 0?a.nextElementSibling:goog.dom.getNextElementNode_(a.nextSibling,!0)}; goog.dom.getPreviousElementSibling=function(a){return a.previousElementSibling!==void 0?a.previousElementSibling:goog.dom.getNextElementNode_(a.previousSibling,!1)};goog.dom.getNextElementNode_=function(a,b){for(;a&&a.nodeType!=goog.dom.NodeType.ELEMENT;)a=b?a.nextSibling:a.previousSibling;return a};goog.dom.getNextNode=function(a){if(!a)return null;if(a.firstChild)return a.firstChild;for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:null}; goog.dom.getPreviousNode=function(a){if(!a)return null;if(!a.previousSibling)return a.parentNode;for(a=a.previousSibling;a&&a.lastChild;)a=a.lastChild;return a};goog.dom.isNodeLike=function(a){return goog.isObject(a)&&a.nodeType>0};goog.dom.isElement=function(a){return goog.isObject(a)&&a.nodeType==goog.dom.NodeType.ELEMENT};goog.dom.isWindow=function(a){return goog.isObject(a)&&a.window==a};goog.dom.getParentElement=function(a){return a.parentElement||null}; goog.dom.contains=function(a,b){if(!a||!b)return!1;if(goog.FEATURESET_YEAR>2018||a.contains&&b.nodeType==goog.dom.NodeType.ELEMENT)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}; goog.dom.compareNodeOrder=function(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=a.nodeType==goog.dom.NodeType.ELEMENT,d=b.nodeType==goog.dom.NodeType.ELEMENT;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,f=b.parentNode;return e==f?goog.dom.compareSiblingOrder_(a,b):!c&&goog.dom.contains(e,b)?-1*goog.dom.compareParentsDescendantNodeIe_(a,b):!d&&goog.dom.contains(f, a)?goog.dom.compareParentsDescendantNodeIe_(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}d=goog.dom.getOwnerDocument(a);c=d.createRange();c.selectNode(a);c.collapse(!0);a=d.createRange();a.selectNode(b);a.collapse(!0);return c.compareBoundaryPoints(goog.global.Range.START_TO_END,a)};goog.dom.compareParentsDescendantNodeIe_=function(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return goog.dom.compareSiblingOrder_(b,a)}; goog.dom.compareSiblingOrder_=function(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1};goog.dom.findCommonAncestor=function(a){var b,c=arguments.length;if(!c)return null;if(c==1)return arguments[0];var d=[],e=Infinity;for(b=0;b<c;b++){for(var f=[],g=arguments[b];g;)f.unshift(g),g=g.parentNode;d.push(f);e=Math.min(e,f.length)}f=null;for(b=0;b<e;b++){g=d[0][b];for(var h=1;h<c;h++)if(g!=d[h][b])return f;f=g}return f}; goog.dom.isInDocument=function(a){return(a.ownerDocument.compareDocumentPosition(a)&16)==16};goog.dom.getOwnerDocument=function(a){goog.asserts.assert(a,"Node cannot be null or undefined.");return a.nodeType==goog.dom.NodeType.DOCUMENT?a:a.ownerDocument||a.document};goog.dom.getFrameContentDocument=function(a){return a.contentDocument||a.contentWindow.document};goog.dom.getFrameContentWindow=function(a){try{return a.contentWindow||(a.contentDocument?goog.dom.getWindow(a.contentDocument):null)}catch(b){}return null}; goog.dom.setTextContent=function(a,b){goog.asserts.assert(a!=null,"goog.dom.setTextContent expects a non-null value for node");if("textContent"in a)a.textContent=b;else if(a.nodeType==goog.dom.NodeType.TEXT)a.data=String(b);else if(a.firstChild&&a.firstChild.nodeType==goog.dom.NodeType.TEXT){for(;a.lastChild!=a.firstChild;)a.removeChild(goog.asserts.assert(a.lastChild));a.firstChild.data=String(b)}else{goog.dom.removeChildren(a);var c=goog.dom.getOwnerDocument(a);a.appendChild(c.createTextNode(String(b)))}}; goog.dom.getOuterHtml=function(a){goog.asserts.assert(a!==null,"goog.dom.getOuterHtml expects a non-null value for element");if("outerHTML"in a)return a.outerHTML;var b=goog.dom.getOwnerDocument(a);b=goog.dom.createElement_(b,goog.dom.TagName.DIV);b.appendChild(a.cloneNode(!0));return b.innerHTML};goog.dom.findNode=function(a,b){var c=[];return(a=goog.dom.findNodes_(a,b,c,!0))?c[0]:void 0};goog.dom.findNodes=function(a,b){var c=[];goog.dom.findNodes_(a,b,c,!1);return c}; goog.dom.findNodes_=function(a,b,c,d){if(a!=null)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||goog.dom.findNodes_(a,b,c,d))return!0;a=a.nextSibling}return!1};goog.dom.findElement=function(a,b){for(a=goog.dom.getChildrenReverse_(a);a.length>0;){var c=a.pop();if(b(c))return c;for(c=c.lastElementChild;c;c=c.previousElementSibling)a.push(c)}return null}; goog.dom.findElements=function(a,b){var c=[];for(a=goog.dom.getChildrenReverse_(a);a.length>0;){var d=a.pop();b(d)&&c.push(d);for(d=d.lastElementChild;d;d=d.previousElementSibling)a.push(d)}return c};goog.dom.getChildrenReverse_=function(a){if(a.nodeType==goog.dom.NodeType.DOCUMENT)return[a.documentElement];var b=[];for(a=a.lastElementChild;a;a=a.previousElementSibling)b.push(a);return b};goog.dom.TAGS_TO_IGNORE_={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1}; goog.dom.PREDEFINED_TAG_VALUES_={IMG:" ",BR:"\n"};goog.dom.isFocusableTabIndex=function(a){return goog.dom.hasSpecifiedTabIndex_(a)&&goog.dom.isTabIndexFocusable_(a)};goog.dom.setFocusableTabIndex=function(a,b){b?a.tabIndex=0:(a.tabIndex=-1,a.removeAttribute("tabIndex"))};goog.dom.isFocusable=function(a){return a=goog.dom.nativelySupportsFocus_(a)?!a.disabled&&(!goog.dom.hasSpecifiedTabIndex_(a)||goog.dom.isTabIndexFocusable_(a)):goog.dom.isFocusableTabIndex(a)};goog.dom.hasSpecifiedTabIndex_=function(a){return a.hasAttribute("tabindex")}; goog.dom.isTabIndexFocusable_=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768};goog.dom.nativelySupportsFocus_=function(a){return a.tagName==goog.dom.TagName.A&&a.hasAttribute("href")||a.tagName==goog.dom.TagName.INPUT||a.tagName==goog.dom.TagName.TEXTAREA||a.tagName==goog.dom.TagName.SELECT||a.tagName==goog.dom.TagName.BUTTON}; goog.dom.hasNonZeroBoundingRect_=function(a){a=typeof a.getBoundingClientRect!=="function"?{height:a.offsetHeight,width:a.offsetWidth}:a.getBoundingClientRect();return a!=null&&a.height>0&&a.width>0};goog.dom.getTextContent=function(a){var b=[];goog.dom.getTextContent_(a,b,!0);a=b.join("");a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");a=a.replace(/ +/g," ");a!=" "&&(a=a.replace(/^\s*/,""));return a}; goog.dom.getRawTextContent=function(a){var b=[];goog.dom.getTextContent_(a,b,!1);return b.join("")};goog.dom.getTextContent_=function(a,b,c){if(!(a.nodeName in goog.dom.TAGS_TO_IGNORE_))if(a.nodeType==goog.dom.NodeType.TEXT)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in goog.dom.PREDEFINED_TAG_VALUES_)b.push(goog.dom.PREDEFINED_TAG_VALUES_[a.nodeName]);else for(a=a.firstChild;a;)goog.dom.getTextContent_(a,b,c),a=a.nextSibling}; goog.dom.getNodeTextLength=function(a){return goog.dom.getTextContent(a).length};goog.dom.getNodeTextOffset=function(a,b){b=b||goog.dom.getOwnerDocument(a).body;for(var c=[];a&&a!=b;){for(var d=a;d=d.previousSibling;)c.unshift(goog.dom.getTextContent(d));a=a.parentNode}return goog.string.trimLeft(c.join("")).replace(/ +/g," ").length}; goog.dom.getNodeAtOffset=function(a,b,c){a=[a];for(var d=0,e=null;a.length>0&&d<b;)if(e=a.pop(),!(e.nodeName in goog.dom.TAGS_TO_IGNORE_))if(e.nodeType==goog.dom.NodeType.TEXT){var f=e.nodeValue.replace(/(\r\n|\r|\n)/g,"").replace(/ +/g," ");d+=f.length}else if(e.nodeName in goog.dom.PREDEFINED_TAG_VALUES_)d+=goog.dom.PREDEFINED_TAG_VALUES_[e.nodeName].length;else for(f=e.childNodes.length-1;f>=0;f--)a.push(e.childNodes[f]);goog.isObject(c)&&(c.remainder=e?e.nodeValue.length+b-d-1:0,c.node=e);return e}; goog.dom.isNodeList=function(a){if(goog.FEATURESET_YEAR>=2018)return!!a&&typeof a.length=="number"&&typeof a.item=="function";if(a&&typeof a.length=="number"){if(goog.isObject(a))return typeof a.item=="function"||typeof a.item=="string";if(typeof a==="function")return typeof a.item=="function"}return!1}; goog.dom.getAncestorByTagNameAndClass=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return goog.dom.getAncestor(a,function(f){return(!e||f.nodeName==e)&&(!c||typeof f.className==="string"&&module$contents$goog$array_contains(f.className.split(/\s+/),c))},!0,d)};goog.dom.getAncestorByClass=function(a,b,c){return goog.dom.getAncestorByTagNameAndClass(a,null,b,c)}; goog.dom.getAncestor=function(a,b,c,d){a&&!c&&(a=a.parentNode);for(c=0;a&&(d==null||c<=d);){goog.asserts.assert(a.name!="parentNode");if(b(a))return a;a=a.parentNode;c++}return null};goog.dom.getActiveElement=function(a){try{var b=a&&a.activeElement;return b&&b.nodeName?b:null}catch(c){return null}}; goog.dom.getPixelRatio=function(){var a=goog.dom.getWindow();return a.devicePixelRatio!==void 0?a.devicePixelRatio:a.matchMedia?goog.dom.matchesPixelRatio_(3)||goog.dom.matchesPixelRatio_(2)||goog.dom.matchesPixelRatio_(1.5)||goog.dom.matchesPixelRatio_(1)||.75:1};goog.dom.matchesPixelRatio_=function(a){var b=goog.dom.getWindow(),c="(min-resolution: "+a+"dppx),(min--moz-device-pixel-ratio: "+a+"),(min-resolution: "+a*96+"dpi)";return b.matchMedia(c).matches?a:0};goog.dom.getCanvasContext2D=function(a){return a.getContext("2d")}; goog.dom.DomHelper=function(a){this.document_=a||goog.global.document||document};goog.dom.DomHelper.prototype.getDomHelper=goog.dom.getDomHelper;goog.dom.DomHelper.prototype.getDocument=function(){return this.document_};goog.dom.DomHelper.prototype.getElement=function(a){return goog.dom.getElementHelper_(this.document_,a)};goog.dom.DomHelper.prototype.getRequiredElement=function(a){return goog.dom.getRequiredElementHelper_(this.document_,a)};goog.dom.DomHelper.prototype.$=goog.dom.DomHelper.prototype.getElement; goog.dom.DomHelper.prototype.getElementsByTagName=function(a,b){b=b||this.document_;return b.getElementsByTagName(String(a))};goog.dom.DomHelper.prototype.getElementsByTagNameAndClass=function(a,b,c){return goog.dom.getElementsByTagNameAndClass_(this.document_,a,b,c)};goog.dom.DomHelper.prototype.getElementByTagNameAndClass=function(a,b,c){return goog.dom.getElementByTagNameAndClass_(this.document_,a,b,c)}; goog.dom.DomHelper.prototype.getElementsByClass=function(a,b){b=b||this.document_;return goog.dom.getElementsByClass(a,b)};goog.dom.DomHelper.prototype.getElementByClass=function(a,b){b=b||this.document_;return goog.dom.getElementByClass(a,b)};goog.dom.DomHelper.prototype.getRequiredElementByClass=function(a,b){b=b||this.document_;return goog.dom.getRequiredElementByClass(a,b)};goog.dom.DomHelper.prototype.$$=goog.dom.DomHelper.prototype.getElementsByTagNameAndClass; goog.dom.DomHelper.prototype.setProperties=goog.dom.setProperties;goog.dom.DomHelper.prototype.getViewportSize=function(a){return goog.dom.getViewportSize(a||this.getWindow())};goog.dom.DomHelper.prototype.getDocumentHeight=function(){return goog.dom.getDocumentHeight_(this.getWindow())};goog.dom.DomHelper.prototype.createDom=function(a,b,c){return goog.dom.createDom_(this.document_,arguments)};goog.dom.DomHelper.prototype.$dom=goog.dom.DomHelper.prototype.createDom; goog.dom.DomHelper.prototype.createElement=function(a){return goog.dom.createElement_(this.document_,a)};goog.dom.DomHelper.prototype.createTextNode=function(a){return this.document_.createTextNode(String(a))};goog.dom.DomHelper.prototype.createTable=function(a,b,c){return goog.dom.createTable_(this.document_,a,b,!!c)};goog.dom.DomHelper.prototype.safeHtmlToNode=function(a){return goog.dom.safeHtmlToNode_(this.document_,a)};goog.dom.DomHelper.prototype.isCss1CompatMode=function(){return goog.dom.isCss1CompatMode_(this.document_)}; goog.dom.DomHelper.prototype.getWindow=function(){return goog.dom.getWindow_(this.document_)};goog.dom.DomHelper.prototype.getDocumentScrollElement=function(){return goog.dom.getDocumentScrollElement_(this.document_)};goog.dom.DomHelper.prototype.getDocumentScroll=function(){return goog.dom.getDocumentScroll_(this.document_)};goog.dom.DomHelper.prototype.getActiveElement=function(a){return goog.dom.getActiveElement(a||this.document_)};goog.dom.DomHelper.prototype.appendChild=goog.dom.appendChild; goog.dom.DomHelper.prototype.append=goog.dom.append;goog.dom.DomHelper.prototype.canHaveChildren=goog.dom.canHaveChildren;goog.dom.DomHelper.prototype.removeChildren=goog.dom.removeChildren;goog.dom.DomHelper.prototype.insertSiblingBefore=goog.dom.insertSiblingBefore;goog.dom.DomHelper.prototype.insertSiblingAfter=goog.dom.insertSiblingAfter;goog.dom.DomHelper.prototype.insertChildAt=goog.dom.insertChildAt;goog.dom.DomHelper.prototype.removeNode=goog.dom.removeNode; goog.dom.DomHelper.prototype.replaceNode=goog.dom.replaceNode;goog.dom.DomHelper.prototype.copyContents=goog.dom.copyContents;goog.dom.DomHelper.prototype.flattenElement=goog.dom.flattenElement;goog.dom.DomHelper.prototype.getChildren=goog.dom.getChildren;goog.dom.DomHelper.prototype.getFirstElementChild=goog.dom.getFirstElementChild;goog.dom.DomHelper.prototype.getLastElementChild=goog.dom.getLastElementChild;goog.dom.DomHelper.prototype.getNextElementSibling=goog.dom.getNextElementSibling; goog.dom.DomHelper.prototype.getPreviousElementSibling=goog.dom.getPreviousElementSibling;goog.dom.DomHelper.prototype.getNextNode=goog.dom.getNextNode;goog.dom.DomHelper.prototype.getPreviousNode=goog.dom.getPreviousNode;goog.dom.DomHelper.prototype.isNodeLike=goog.dom.isNodeLike;goog.dom.DomHelper.prototype.isElement=goog.dom.isElement;goog.dom.DomHelper.prototype.isWindow=goog.dom.isWindow;goog.dom.DomHelper.prototype.getParentElement=goog.dom.getParentElement; goog.dom.DomHelper.prototype.contains=goog.dom.contains;goog.dom.DomHelper.prototype.compareNodeOrder=goog.dom.compareNodeOrder;goog.dom.DomHelper.prototype.findCommonAncestor=goog.dom.findCommonAncestor;goog.dom.DomHelper.prototype.getOwnerDocument=goog.dom.getOwnerDocument;goog.dom.DomHelper.prototype.getFrameContentDocument=goog.dom.getFrameContentDocument;goog.dom.DomHelper.prototype.getFrameContentWindow=goog.dom.getFrameContentWindow;goog.dom.DomHelper.prototype.setTextContent=goog.dom.setTextContent; goog.dom.DomHelper.prototype.getOuterHtml=goog.dom.getOuterHtml;goog.dom.DomHelper.prototype.findNode=goog.dom.findNode;goog.dom.DomHelper.prototype.findNodes=goog.dom.findNodes;goog.dom.DomHelper.prototype.isFocusableTabIndex=goog.dom.isFocusableTabIndex;goog.dom.DomHelper.prototype.setFocusableTabIndex=goog.dom.setFocusableTabIndex;goog.dom.DomHelper.prototype.isFocusable=goog.dom.isFocusable;goog.dom.DomHelper.prototype.getTextContent=goog.dom.getTextContent; goog.dom.DomHelper.prototype.getNodeTextLength=goog.dom.getNodeTextLength;goog.dom.DomHelper.prototype.getNodeTextOffset=goog.dom.getNodeTextOffset;goog.dom.DomHelper.prototype.getNodeAtOffset=goog.dom.getNodeAtOffset;goog.dom.DomHelper.prototype.isNodeList=goog.dom.isNodeList;goog.dom.DomHelper.prototype.getAncestorByTagNameAndClass=goog.dom.getAncestorByTagNameAndClass;goog.dom.DomHelper.prototype.getAncestorByClass=goog.dom.getAncestorByClass;goog.dom.DomHelper.prototype.getAncestor=goog.dom.getAncestor; goog.dom.DomHelper.prototype.getCanvasContext2D=goog.dom.getCanvasContext2D;function module$contents$goog$dispose_dispose(a){a&&typeof a.dispose=="function"&&a.dispose()}goog.dispose=module$contents$goog$dispose_dispose;function module$contents$goog$disposeAll_disposeAll(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];goog.isArrayLike(d)?module$contents$goog$disposeAll_disposeAll.apply(null,d):module$contents$goog$dispose_dispose(d)}}goog.disposeAll=module$contents$goog$disposeAll_disposeAll;goog.disposable={};goog.disposable.IDisposable=function(){};goog.Disposable=function(){goog.Disposable.MONITORING_MODE!=goog.Disposable.MonitoringMode.OFF&&(goog.Disposable.instances_[goog.getUid(this)]=this);this.disposed_=this.disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};goog.Disposable.MonitoringMode={OFF:0,PERMANENT:1,INTERACTIVE:2};goog.Disposable.MONITORING_MODE=0;goog.Disposable.INCLUDE_STACK_ON_CREATION=!0;goog.Disposable.instances_={}; goog.Disposable.getUndisposedObjects=function(){var a=[],b;for(b in goog.Disposable.instances_)goog.Disposable.instances_.hasOwnProperty(b)&&a.push(goog.Disposable.instances_[Number(b)]);return a};goog.Disposable.clearUndisposedObjects=function(){goog.Disposable.instances_={}};goog.Disposable.prototype.disposed_=!1;goog.Disposable.prototype.isDisposed=function(){return this.disposed_}; goog.Disposable.prototype.dispose=function(){if(!this.disposed_&&(this.disposed_=!0,this.disposeInternal(),goog.Disposable.MONITORING_MODE!=goog.Disposable.MonitoringMode.OFF)){var a=goog.getUid(this);if(goog.Disposable.MONITORING_MODE==goog.Disposable.MonitoringMode.PERMANENT&&!goog.Disposable.instances_.hasOwnProperty(a))throw Error(this+" did not call the goog.Disposable base constructor or was disposed of after a clearUndisposedObjects call");if(goog.Disposable.MONITORING_MODE!=goog.Disposable.MonitoringMode.OFF&& this.onDisposeCallbacks_&&this.onDisposeCallbacks_.length>0)throw Error(this+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete goog.Disposable.instances_[a]}};goog.Disposable.prototype[Symbol.dispose]=function(){this.dispose()};goog.Disposable.prototype.registerDisposable=function(a){this.addOnDisposeCallback(goog.partial(module$contents$goog$dispose_dispose,a))}; goog.Disposable.prototype.addOnDisposeCallback=function(a,b){this.disposed_?b!==void 0?a.call(b):a():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),b&&(a=goog.TRUSTED_SITE?a.bind(b):goog.bind(a,b)),this.onDisposeCallbacks_.push(a))};goog.Disposable.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};goog.Disposable.isDisposed=function(a){return a&&typeof a.isDisposed=="function"?a.isDisposed():!1};goog.debug.entryPointRegistry={};goog.debug.entryPointRegistry.EntryPointMonitor=function(){};goog.debug.entryPointRegistry.refList_=[];goog.debug.entryPointRegistry.monitors_=[];goog.debug.entryPointRegistry.monitorsMayExist_=!1; goog.debug.entryPointRegistry.register=function(a){goog.debug.entryPointRegistry.refList_[goog.debug.entryPointRegistry.refList_.length]=a;if(goog.debug.entryPointRegistry.monitorsMayExist_)for(var b=goog.debug.entryPointRegistry.monitors_,c=0;c<b.length;c++)a(goog.bind(b[c].wrap,b[c]))};goog.debug.entryPointRegistry.unregister=function(a){var b=goog.debug.entryPointRegistry.refList_;b&&module$contents$goog$array_remove(b,a)}; goog.debug.entryPointRegistry.monitorAll=function(a){goog.debug.entryPointRegistry.monitorsMayExist_=!0;for(var b=goog.bind(a.wrap,a),c=0;c<goog.debug.entryPointRegistry.refList_.length;c++)goog.debug.entryPointRegistry.refList_[c](b);goog.debug.entryPointRegistry.monitors_.push(a)}; goog.debug.entryPointRegistry.unmonitorAllIfPossible=function(a){var b=goog.debug.entryPointRegistry.monitors_;goog.asserts.assert(a==b[b.length-1],"Only the most recent monitor can be unwrapped.");a=goog.bind(a.unwrap,a);for(var c=0;c<goog.debug.entryPointRegistry.refList_.length;c++)goog.debug.entryPointRegistry.refList_[c](a);b.length--};goog.events={};goog.events.EventId=function(a){this.id=a};goog.events.EventId.prototype.toString=function(){return this.id};goog.events.Event=function(a,b){this.type=a instanceof goog.events.EventId?String(a):a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};goog.events.Event.prototype.stopPropagation=function(){this.propagationStopped_=!0};goog.events.Event.prototype.preventDefault=function(){this.defaultPrevented=!0};goog.events.Event.stopPropagation=function(a){a.stopPropagation()};goog.events.Event.preventDefault=function(a){a.preventDefault()};goog.events.BrowserFeature={TOUCH_ENABLED:!!(goog.global.navigator&&goog.global.navigator.maxTouchPoints||goog.FEATURESET_YEAR<2018&&("ontouchstart"in goog.global||goog.global.document&&document.documentElement&&"ontouchstart"in document.documentElement||goog.global.navigator&&goog.global.navigator.msMaxTouchPoints)),POINTER_EVENTS:goog.FEATURESET_YEAR>=2019||"PointerEvent"in goog.global,PASSIVE_EVENTS:goog.FEATURESET_YEAR>2018||function(){if(!goog.global.addEventListener||!Object.defineProperty)return!1; var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});try{var c=function(){};goog.global.addEventListener("test",c,b);goog.global.removeEventListener("test",c,b)}catch(d){}return a}()};goog.events.eventTypeHelpers={};goog.events.eventTypeHelpers.getVendorPrefixedName=function(a){return goog.userAgent.WEBKIT?"webkit"+a:a.toLowerCase()};goog.events.eventTypeHelpers.getPointerFallbackEventName=function(a,b){return goog.events.BrowserFeature.POINTER_EVENTS?a:b};goog.events.EventType={CLICK:"click",RIGHTCLICK:"rightclick",DBLCLICK:"dblclick",AUXCLICK:"auxclick",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEMOVE:"mousemove",MOUSEENTER:"mouseenter",MOUSELEAVE:"mouseleave",MOUSECANCEL:"mousecancel",SELECTIONCHANGE:"selectionchange",SELECTSTART:"selectstart",WHEEL:"wheel",KEYPRESS:"keypress",KEYDOWN:"keydown",KEYUP:"keyup",BLUR:"blur",FOCUS:"focus",DEACTIVATE:"deactivate",FOCUSIN:"focusin",FOCUSOUT:"focusout",CHANGE:"change", RESET:"reset",SELECT:"select",SUBMIT:"submit",INPUT:"input",PROPERTYCHANGE:"propertychange",DRAGSTART:"dragstart",DRAG:"drag",DRAGENTER:"dragenter",DRAGOVER:"dragover",DRAGLEAVE:"dragleave",DROP:"drop",DRAGEND:"dragend",TOUCHSTART:"touchstart",TOUCHMOVE:"touchmove",TOUCHEND:"touchend",TOUCHCANCEL:"touchcancel",BEFOREUNLOAD:"beforeunload",CONSOLEMESSAGE:"consolemessage",CONTEXTMENU:"contextmenu",DEVICECHANGE:"devicechange",DEVICEMOTION:"devicemotion",DEVICEORIENTATION:"deviceorientation",DOMCONTENTLOADED:"DOMContentLoaded", ERROR:"error",HELP:"help",LOAD:"load",LOSECAPTURE:"losecapture",ORIENTATIONCHANGE:"orientationchange",READYSTATECHANGE:"readystatechange",RESIZE:"resize",SCROLL:"scroll",UNLOAD:"unload",CANPLAY:"canplay",CANPLAYTHROUGH:"canplaythrough",DURATIONCHANGE:"durationchange",EMPTIED:"emptied",ENDED:"ended",LOADEDDATA:"loadeddata",LOADEDMETADATA:"loadedmetadata",PAUSE:"pause",PLAY:"play",PLAYING:"playing",PROGRESS:"progress",RATECHANGE:"ratechange",SEEKED:"seeked",SEEKING:"seeking",STALLED:"stalled",SUSPEND:"suspend", TIMEUPDATE:"timeupdate",VOLUMECHANGE:"volumechange",WAITING:"waiting",SOURCEOPEN:"sourceopen",SOURCEENDED:"sourceended",SOURCECLOSED:"sourceclosed",ABORT:"abort",UPDATE:"update",UPDATESTART:"updatestart",UPDATEEND:"updateend",HASHCHANGE:"hashchange",PAGEHIDE:"pagehide",PAGESHOW:"pageshow",POPSTATE:"popstate",COPY:"copy",PASTE:"paste",CUT:"cut",BEFORECOPY:"beforecopy",BEFORECUT:"beforecut",BEFOREPASTE:"beforepaste",ONLINE:"online",OFFLINE:"offline",MESSAGE:"message",CONNECT:"connect",INSTALL:"install", ACTIVATE:"activate",FETCH:"fetch",FOREIGNFETCH:"foreignfetch",MESSAGEERROR:"messageerror",STATECHANGE:"statechange",UPDATEFOUND:"updatefound",CONTROLLERCHANGE:"controllerchange",ANIMATIONSTART:goog.events.eventTypeHelpers.getVendorPrefixedName("AnimationStart"),ANIMATIONEND:goog.events.eventTypeHelpers.getVendorPrefixedName("AnimationEnd"),ANIMATIONITERATION:goog.events.eventTypeHelpers.getVendorPrefixedName("AnimationIteration"),TRANSITIONEND:goog.events.eventTypeHelpers.getVendorPrefixedName("TransitionEnd"), POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTERCANCEL:"pointercancel",POINTERMOVE:"pointermove",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",GOTPOINTERCAPTURE:"gotpointercapture",LOSTPOINTERCAPTURE:"lostpointercapture",MSGESTURECHANGE:"MSGestureChange",MSGESTUREEND:"MSGestureEnd",MSGESTUREHOLD:"MSGestureHold",MSGESTURESTART:"MSGestureStart",MSGESTURETAP:"MSGestureTap",MSGOTPOINTERCAPTURE:"MSGotPointerCapture",MSINERTIASTART:"MSInertiaStart", MSLOSTPOINTERCAPTURE:"MSLostPointerCapture",MSPOINTERCANCEL:"MSPointerCancel",MSPOINTERDOWN:"MSPointerDown",MSPOINTERENTER:"MSPointerEnter",MSPOINTERHOVER:"MSPointerHover",MSPOINTERLEAVE:"MSPointerLeave",MSPOINTERMOVE:"MSPointerMove",MSPOINTEROUT:"MSPointerOut",MSPOINTEROVER:"MSPointerOver",MSPOINTERUP:"MSPointerUp",TEXT:"text",TEXTINPUT:"textInput",COMPOSITIONSTART:"compositionstart",COMPOSITIONUPDATE:"compositionupdate",COMPOSITIONEND:"compositionend",BEFOREINPUT:"beforeinput",FULLSCREENCHANGE:"fullscreenchange", WEBKITBEGINFULLSCREEN:"webkitbeginfullscreen",WEBKITENDFULLSCREEN:"webkitendfullscreen",EXIT:"exit",LOADABORT:"loadabort",LOADCOMMIT:"loadcommit",LOADREDIRECT:"loadredirect",LOADSTART:"loadstart",LOADSTOP:"loadstop",RESPONSIVE:"responsive",SIZECHANGED:"sizechanged",UNRESPONSIVE:"unresponsive",VISIBILITYCHANGE:"visibilitychange",STORAGE:"storage",BEFOREPRINT:"beforeprint",AFTERPRINT:"afterprint",BEFOREINSTALLPROMPT:"beforeinstallprompt",APPINSTALLED:"appinstalled",CANCEL:"cancel",FINISH:"finish",REMOVE:"remove"};goog.events.BrowserEvent=function(a,b){goog.events.Event.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.platformModifierKey=!1;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.event_=null;a&&this.init(a,b)};goog.inherits(goog.events.BrowserEvent,goog.events.Event); goog.events.BrowserEvent.USE_LAYER_XY_AS_OFFSET_XY=!1;goog.events.BrowserEvent.MouseButton={LEFT:0,MIDDLE:1,RIGHT:2,BACK:3,FORWARD:4};goog.events.BrowserEvent.PointerType={MOUSE:"mouse",PEN:"pen",TOUCH:"touch"}; goog.events.BrowserEvent.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;b=a.relatedTarget;b||(c==goog.events.EventType.MOUSEOVER?b=a.fromElement:c==goog.events.EventType.MOUSEOUT&&(b=a.toElement));this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY|| 0):(goog.events.BrowserEvent.USE_LAYER_XY_AS_OFFSET_XY?(this.offsetX=a.layerX!==void 0?a.layerX:a.offsetX,this.offsetY=a.layerY!==void 0?a.layerY:a.offsetY):(this.offsetX=goog.userAgent.WEBKIT||a.offsetX!==void 0?a.offsetX:a.layerX,this.offsetY=goog.userAgent.WEBKIT||a.offsetY!==void 0?a.offsetY:a.layerY),this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode|| 0;this.key=a.key||"";this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.platformModifierKey=goog.userAgent.MAC?a.metaKey:a.ctrlKey;this.pointerId=a.pointerId||0;this.pointerType=goog.events.BrowserEvent.getPointerType_(a);this.state=a.state;this.timeStamp=a.timeStamp;this.event_=a;a.defaultPrevented&&goog.events.BrowserEvent.superClass_.preventDefault.call(this)}; goog.events.BrowserEvent.prototype.isButton=function(a){return this.event_.button==a};goog.events.BrowserEvent.prototype.isMouseActionButton=function(){return this.isButton(goog.events.BrowserEvent.MouseButton.LEFT)&&!(goog.userAgent.MAC&&this.ctrlKey)};goog.events.BrowserEvent.prototype.stopPropagation=function(){goog.events.BrowserEvent.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0}; goog.events.BrowserEvent.prototype.preventDefault=function(){goog.events.BrowserEvent.superClass_.preventDefault.call(this);var a=this.event_;a.preventDefault?a.preventDefault():a.returnValue=!1};goog.events.BrowserEvent.getPointerType_=function(a){return a.pointerType};goog.events.Listenable=function(){};goog.events.Listenable.IMPLEMENTED_BY_PROP="closure_listenable_"+(Math.random()*1E6|0);goog.events.Listenable.addImplementation=function(a){a.prototype[goog.events.Listenable.IMPLEMENTED_BY_PROP]=!0};goog.events.Listenable.isImplementedBy=function(a){return!(!a||!a[goog.events.Listenable.IMPLEMENTED_BY_PROP])};goog.events.Listenable.prototype.listen=function(){};goog.events.Listenable.prototype.listenOnce=function(){};goog.events.Listenable.prototype.unlisten=function(){}; goog.events.Listenable.prototype.unlistenByKey=function(){};goog.events.Listenable.prototype.dispatchEvent=function(){};goog.events.Listenable.prototype.removeAllListeners=function(){};goog.events.Listenable.prototype.getParentEventTarget=function(){};goog.events.Listenable.prototype.fireListeners=function(){};goog.events.Listenable.prototype.getListeners=function(){};goog.events.Listenable.prototype.getListener=function(){};goog.events.Listenable.prototype.hasListener=function(){};goog.events.ListenableKey=function(){};goog.events.ListenableKey.counter_=0;goog.events.ListenableKey.reserveKey=function(){return++goog.events.ListenableKey.counter_};goog.events.Listener=function(a,b,c,d,e,f){this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!e;this.handler=f;this.key=goog.events.ListenableKey.reserveKey();this.removed=this.callOnce=!1};goog.events.Listener.ENABLE_MONITORING=!1;goog.events.Listener.prototype.markAsRemoved=function(){this.removed=!0;this.handler=this.src=this.proxy=this.listener=null};goog.events.ListenerMap=function(a){this.src=a;this.listeners={};this.typeCount_=0};goog.events.ListenerMap.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.typeCount_++);var g=goog.events.ListenerMap.findListenerIndex_(a,b,d,e);g>-1?(b=a[g],c||(b.callOnce=!1)):(b=new goog.events.Listener(b,null,this.src,f,!!d,e),b.callOnce=c,a.push(b));return b}; goog.events.ListenerMap.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=goog.events.ListenerMap.findListenerIndex_(e,b,c,d);return b>-1?(c=e[b],c.markAsRemoved(),module$contents$goog$array_removeAt(e,b),e.length==0&&(delete this.listeners[a],this.typeCount_--),!0):!1}; goog.events.ListenerMap.prototype.removeByKey=function(a){var b=a.type;if(!(b in this.listeners))return!1;var c=module$contents$goog$array_remove(this.listeners[b],a);c&&(a.markAsRemoved(),this.listeners[b].length==0&&(delete this.listeners[b],this.typeCount_--));return c};goog.events.ListenerMap.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var d=this.listeners[c],e=0;e<d.length;e++)++b,d[e].markAsRemoved();delete this.listeners[c];this.typeCount_--}return b}; goog.events.ListenerMap.prototype.getListeners=function(a,b){a=this.listeners[a.toString()];var c=[];if(a)for(var d=0;d<a.length;++d){var e=a[d];e.capture==b&&c.push(e)}return c};goog.events.ListenerMap.prototype.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=goog.events.ListenerMap.findListenerIndex_(a,b,c,d));return e>-1?a[e]:null}; goog.events.ListenerMap.prototype.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return module$contents$goog$object_some(this.listeners,function(f){for(var g=0;g<f.length;++g)if(!(c&&f[g].type!=d||e&&f[g].capture!=b))return!0;return!1})};goog.events.ListenerMap.findListenerIndex_=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.removed&&f.listener==b&&f.capture==!!c&&f.handler==d)return e}return-1};goog.events.Key={};goog.events.ListenableType={};goog.events.LISTENER_MAP_PROP_="closure_lm_"+(Math.random()*1E6|0);goog.events.onString_="on";goog.events.onStringMap_={};goog.events.CaptureSimulationMode={OFF_AND_FAIL:0,OFF_AND_SILENT:1,ON:2};goog.events.listenerCountEstimate_=0; goog.events.listen=function(a,b,c,d,e){if(d&&d.once)return goog.events.listenOnce(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)goog.events.listen(a,b[f],c,d,e);return null}c=goog.events.wrapListener(c);return goog.events.Listenable.isImplementedBy(a)?(d=goog.isObject(d)?!!d.capture:!!d,a.listen(b,c,d,e)):goog.events.listen_(a,b,c,!1,d,e)}; goog.events.listen_=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=goog.isObject(e)?!!e.capture:!!e,h=goog.events.getListenerMap_(a);h||(a[goog.events.LISTENER_MAP_PROP_]=h=new goog.events.ListenerMap(a));c=h.add(b,c,d,g,f);if(c.proxy)return c;d=goog.events.getProxy();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)goog.events.BrowserFeature.PASSIVE_EVENTS||(e=g),e===void 0&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(goog.events.getOnString_(b.toString()), d);else if(a.addListener&&a.removeListener)goog.asserts.assert(b==="change","MediaQueryList only has a change event"),a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");goog.events.listenerCountEstimate_++;return c};goog.events.getProxy=function(){var a=goog.events.handleBrowserEvent_,b=function(c){return a.call(b.src,b.listener,c)};return b}; goog.events.listenOnce=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)goog.events.listenOnce(a,b[f],c,d,e);return null}c=goog.events.wrapListener(c);return goog.events.Listenable.isImplementedBy(a)?(d=goog.isObject(d)?!!d.capture:!!d,a.listenOnce(b,c,d,e)):goog.events.listen_(a,b,c,!0,d,e)};goog.events.listenWithWrapper=function(a,b,c,d,e){b.listen(a,c,d,e)}; goog.events.unlisten=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)goog.events.unlisten(a,b[f],c,d,e);return null}d=goog.isObject(d)?!!d.capture:!!d;c=goog.events.wrapListener(c);if(goog.events.Listenable.isImplementedBy(a))return a.unlisten(b,c,d,e);if(!a)return!1;if(a=goog.events.getListenerMap_(a))if(b=a.getListener(b,c,d,e))return goog.events.unlistenByKey(b);return!1}; goog.events.unlistenByKey=function(a){if(typeof a==="number"||!a||a.removed)return!1;var b=a.src;if(goog.events.Listenable.isImplementedBy(b))return b.unlistenByKey(a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(goog.events.getOnString_(c),d):b.addListener&&b.removeListener&&b.removeListener(d);goog.events.listenerCountEstimate_--;(c=goog.events.getListenerMap_(b))?(c.removeByKey(a),c.typeCount_==0&&(c.src=null,b[goog.events.LISTENER_MAP_PROP_]= null)):a.markAsRemoved();return!0};goog.events.unlistenWithWrapper=function(a,b,c,d,e){b.unlisten(a,c,d,e)};goog.events.removeAll=function(a,b){if(!a)return 0;if(goog.events.Listenable.isImplementedBy(a))return a.removeAllListeners(b);a=goog.events.getListenerMap_(a);if(!a)return 0;var c=0;b=b&&b.toString();for(var d in a.listeners)if(!b||d==b)for(var e=a.listeners[d].concat(),f=0;f<e.length;++f)goog.events.unlistenByKey(e[f])&&++c;return c}; goog.events.getListeners=function(a,b,c){return goog.events.Listenable.isImplementedBy(a)?a.getListeners(b,c):a?(a=goog.events.getListenerMap_(a))?a.getListeners(b,c):[]:[]};goog.events.getListener=function(a,b,c,d,e){c=goog.events.wrapListener(c);d=!!d;return goog.events.Listenable.isImplementedBy(a)?a.getListener(b,c,d,e):a?(a=goog.events.getListenerMap_(a))?a.getListener(b,c,d,e):null:null}; goog.events.hasListener=function(a,b,c){if(goog.events.Listenable.isImplementedBy(a))return a.hasListener(b,c);a=goog.events.getListenerMap_(a);return!!a&&a.hasListener(b,c)};goog.events.expose=function(a){var b=[],c;for(c in a)a[c]&&a[c].id?b.push(c+" = "+a[c]+" ("+a[c].id+")"):b.push(c+" = "+a[c]);return b.join("\n")};goog.events.getOnString_=function(a){return a in goog.events.onStringMap_?goog.events.onStringMap_[a]:goog.events.onStringMap_[a]=goog.events.onString_+a}; goog.events.fireListeners=function(a,b,c,d){return goog.events.Listenable.isImplementedBy(a)?a.fireListeners(b,c,d):goog.events.fireListeners_(a,b,c,d)};goog.events.fireListeners_=function(a,b,c,d){var e=!0;if(a=goog.events.getListenerMap_(a))if(b=a.listeners[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.removed&&(f=goog.events.fireListener(f,d),e=e&&f!==!1)}return e}; goog.events.fireListener=function(a,b){var c=a.listener,d=a.handler||a.src;a.callOnce&&goog.events.unlistenByKey(a);return c.call(d,b)};goog.events.getTotalListenerCount=function(){return goog.events.listenerCountEstimate_};goog.events.dispatchEvent=function(a,b){goog.asserts.assert(goog.events.Listenable.isImplementedBy(a),"Can not use goog.events.dispatchEvent with non-goog.events.Listenable instance.");return a.dispatchEvent(b)}; goog.events.protectBrowserEventEntryPoint=function(a){goog.events.handleBrowserEvent_=a.protectEntryPoint(goog.events.handleBrowserEvent_)};goog.events.handleBrowserEvent_=function(a,b){return a.removed?!0:goog.events.fireListener(a,new goog.events.BrowserEvent(b,this))};goog.events.markIeEvent_=function(a){var b=!1;if(a.keyCode==0)try{a.keyCode=-1;return}catch(c){b=!0}if(b||a.returnValue==void 0)a.returnValue=!0};goog.events.isMarkedIeEvent_=function(a){return a.keyCode<0||a.returnValue!=void 0}; goog.events.uniqueIdCounter_=0;goog.events.getUniqueId=function(a){return a+"_"+goog.events.uniqueIdCounter_++};goog.events.getListenerMap_=function(a){a=a[goog.events.LISTENER_MAP_PROP_];return a instanceof goog.events.ListenerMap?a:null};goog.events.LISTENER_WRAPPER_PROP_="__closure_events_fn_"+(Math.random()*1E9>>>0); goog.events.wrapListener=function(a){goog.asserts.assert(a,"Listener can not be null.");if(typeof a==="function")return a;goog.asserts.assert(a.handleEvent,"An object listener must have handleEvent method.");a[goog.events.LISTENER_WRAPPER_PROP_]||(a[goog.events.LISTENER_WRAPPER_PROP_]=function(b){return a.handleEvent(b)});return a[goog.events.LISTENER_WRAPPER_PROP_]};goog.debug.entryPointRegistry.register(function(a){goog.events.handleBrowserEvent_=a(goog.events.handleBrowserEvent_)});goog.events.EventHandler=function(a){goog.Disposable.call(this);this.handler_=a;this.keys_={}};goog.inherits(goog.events.EventHandler,goog.Disposable);goog.events.EventHandler.typeArray_=[];goog.events.EventHandler.prototype.listen=function(a,b,c,d){var e=this;return e.listen_(a,b,c,d)};goog.events.EventHandler.prototype.listenWithScope=function(a,b,c,d,e){var f=this;return f.listen_(a,b,c,d,e)}; goog.events.EventHandler.prototype.listen_=function(a,b,c,d,e){var f=this;Array.isArray(b)||(b&&(goog.events.EventHandler.typeArray_[0]=b.toString()),b=goog.events.EventHandler.typeArray_);for(var g=0;g<b.length;g++){var h=goog.events.listen(a,b[g],c||f.handleEvent,d||!1,e||f.handler_||f);if(!h)break;var k=h.key;f.keys_[k]=h}return f};goog.events.EventHandler.prototype.listenOnce=function(a,b,c,d){var e=this;return e.listenOnce_(a,b,c,d)}; goog.events.EventHandler.prototype.listenOnce_=function(a,b,c,d,e){var f=this;if(Array.isArray(b))for(var g=0;g<b.length;g++)f.listenOnce_(a,b[g],c,d,e);else{a=goog.events.listenOnce(a,b,c||f.handleEvent,d,e||f.handler_||f);if(!a)return f;b=a.key;f.keys_[b]=a}return f};goog.events.EventHandler.prototype.listenWithWrapper=function(a,b,c,d){var e=this;return e.listenWithWrapper_(a,b,c,d)}; goog.events.EventHandler.prototype.listenWithWrapperAndScope=function(a,b,c,d,e){var f=this;return f.listenWithWrapper_(a,b,c,d,e)};goog.events.EventHandler.prototype.listenWithWrapper_=function(a,b,c,d,e){var f=this;b.listen(a,c,d,e||f.handler_||f,f);return f}; goog.events.EventHandler.prototype.unlisten=function(a,b,c,d,e){var f=this;if(Array.isArray(b))for(var g=0;g<b.length;g++)f.unlisten(a,b[g],c,d,e);else if(d=goog.isObject(d)?!!d.capture:!!d,a=goog.events.getListener(a,b,c||f.handleEvent,d,e||f.handler_||f))goog.events.unlistenByKey(a),delete f.keys_[a.key];return f};goog.events.EventHandler.prototype.unlistenWithWrapper=function(a,b,c,d,e){var f=this;b.unlisten(a,c,d,e||f.handler_||f,f);return f}; goog.events.EventHandler.prototype.removeAll=function(){module$contents$goog$object_forEach(this.keys_,function(a,b){this.keys_.hasOwnProperty(b)&&goog.events.unlistenByKey(a)},this);this.keys_={}};goog.events.EventHandler.prototype.disposeInternal=function(){goog.events.EventHandler.superClass_.disposeInternal.call(this);this.removeAll()};goog.events.EventHandler.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};goog.i18n={};goog.i18n.LocaleFeature={};goog.i18n.LocaleFeature.ECMASCRIPT_INTL_OPT_OUT=!1;goog.i18n.LocaleFeature.ECMASCRIPT_COMMON_LOCALES_2019=!0;goog.i18n.LocaleFeature.USE_ECMASCRIPT_I18N_2020=goog.FEATURESET_YEAR>=2020&&goog.i18n.LocaleFeature.ECMASCRIPT_COMMON_LOCALES_2019&&!goog.i18n.LocaleFeature.ECMASCRIPT_INTL_OPT_OUT;goog.i18n.LocaleFeature.USE_ECMASCRIPT_I18N_2021=goog.FEATURESET_YEAR>=2021&&goog.i18n.LocaleFeature.ECMASCRIPT_COMMON_LOCALES_2019&&!goog.i18n.LocaleFeature.ECMASCRIPT_INTL_OPT_OUT; goog.i18n.LocaleFeature.USE_ECMASCRIPT_I18N_2022=goog.FEATURESET_YEAR>=2022&&goog.i18n.LocaleFeature.ECMASCRIPT_COMMON_LOCALES_2019&&!goog.i18n.LocaleFeature.ECMASCRIPT_INTL_OPT_OUT;goog.i18n.LocaleFeature.USE_ECMASCRIPT_I18N_RDTF=goog.i18n.LocaleFeature.USE_ECMASCRIPT_I18N_2021;goog.i18n.LocaleFeature.USE_ECMASCRIPT_I18N_NUMFORMAT=goog.i18n.LocaleFeature.USE_ECMASCRIPT_I18N_2021;goog.i18n.LocaleFeature.USE_ECMASCRIPT_I18N_PLURALRULES=goog.i18n.LocaleFeature.USE_ECMASCRIPT_I18N_2020; goog.i18n.LocaleFeature.USE_ECMASCRIPT_I18N_DATETIMEF=goog.i18n.LocaleFeature.USE_ECMASCRIPT_I18N_2021;goog.i18n.LocaleFeature.ECMASCRIPT_LISTFORMAT_LOCALES="am ar ar-001 ar-AE ar-BH ar-DJ ar-DZ ar-EG ar-EH ar-ER ar-IL ar-IQ ar-JO ar-KM ar-KW ar-LB ar-LY ar-MA ar-MR ar-OM ar-PS ar-QA ar-SA ar-SD ar-SO ar-SS ar-SY ar-TD ar-TN ar-YE bg bg-BG bn bn-BD bn-IN bs-Cyrl bs-Cyrl-BA ca ca-AD ca-ES ca-FR ca-IT cs cs-CZ da da-DK da-GL de de-AT de-BE de-CH de-DE de-IT de-LI de-LU el el-CY el-GR en en-001 en-150 en-AE en-AG en-AI en-AS en-AT en-AU en-BB en-BE en-BI en-BM en-BS en-BW en-BZ en-CA en-CC en-CH en-CK en-CM en-CX en-CY en-DE en-DG en-DK en-DM en-ER en-FI en-FJ en-FK en-FM en-GB en-GD en-GG en-GH en-GI en-GM en-GU en-GY en-HK en-IE en-IL en-IM en-IN en-IO en-JE en-JM en-KE en-KI en-KN en-KY en-LC en-LR en-LS en-MG en-MH en-MO en-MP en-MS en-MT en-MU en-MW en-MY en-NA en-NF en-NG en-NL en-NR en-NU en-NZ en-PG en-PH en-PK en-PN en-PR en-PW en-RW en-SB en-SC en-SD en-SE en-SG en-SH en-SI en-SL en-SS en-SX en-SZ en-TC en-TK en-TO en-TT en-TV en-TZ en-UG en-UM en-US en-VC en-VG en-VI en-VU en-WS en-ZA en-ZM en-ZW es es-419 es-AR es-BO es-BR es-BZ es-CL es-CO es-CR es-CU es-DO es-EA es-EC es-ES es-GQ es-GT es-HN es-IC es-MX es-NI es-PA es-PE es-PH es-PR es-PY es-SV es-US es-UY es-VE et et-EE fa fa-AF fa-IR fi fi-FI fil fil-PH fr fr-BE fr-BF fr-BI fr-BJ fr-BL fr-CA fr-CD fr-CF fr-CG fr-CH fr-CI fr-CM fr-DJ fr-DZ fr-FR fr-GA fr-GF fr-GN fr-GP fr-GQ fr-HT fr-KM fr-LU fr-MA fr-MC fr-MF fr-MG fr-ML fr-MQ fr-MR fr-MU fr-NC fr-NE fr-PF fr-PM fr-RE fr-RW fr-SC fr-SN fr-SY fr-TD fr-TG fr-TN fr-VU fr-WF fr-YT gu gu-IN he he-IL hi hi-IN hr hr-BA hr-HR hu hu-HU id id-ID it it-CH it-IT it-SM it-VA ja ja-JP kn kn-IN ko ko-KP ko-KR lt lt-LT lv lv-LV ml ml-IN mr mr-IN ms ms-BN ms-ID ms-MY ms-SG nb nl nl-AW nl-BE nl-BQ nl-CW nl-NL nl-SR nl-SX no pl pl-PL pt pt-AO pt-BR pt-CH pt-CV pt-GQ pt-GW pt-LU pt-MO pt-MZ pt-PT pt-ST pt-TL ro ro-MD ro-RO ru ru-BY ru-KG ru-KZ ru-MD ru-RU ru-UA sk sk-SK sl sl-SI sr sr-Cyrl sr-Cyrl-BA sr-Cyrl-ME sr-Cyrl-RS sr-Cyrl-XK sr-Latn sr-Latn-BA sr-Latn-ME sr-Latn-RS sr-Latn-XK sv sv-AX sv-FI sv-SE sw sw-CD sw-KE sw-TZ sw-UG ta ta-IN ta-LK ta-MY ta-SG te te-IN th th-TH tr tr-CY tr-TR uk uk-UA vi vi-VN zh zh-Hans zh-Hans-CN zh-Hans-HK zh-Hans-MO zh-Hans-SG zh-Hant zh-Hant-HK zh-Hant-MO zh-Hant-TW".split(" "); goog.i18n.LocaleFeature.ECMASCRIPT_LISTFORMAT_COMMON_LOCALES_2022=!0;goog.i18n.LocaleFeature.USE_ECMASCRIPT_I18N_LISTFORMAT=goog.FEATURESET_YEAR>=2022&&goog.i18n.LocaleFeature.ECMASCRIPT_LISTFORMAT_COMMON_LOCALES_2022&&!goog.i18n.LocaleFeature.ECMASCRIPT_INTL_OPT_OUT;goog.i18n.LocaleFeature.USE_ECMASCRIPT_I18N_DATEINTERVALFORMAT=goog.FEATURESET_YEAR>=2022&&goog.i18n.LocaleFeature.ECMASCRIPT_LISTFORMAT_COMMON_LOCALES_2022&&!goog.i18n.LocaleFeature.ECMASCRIPT_INTL_OPT_OUT;var module$exports$goog$i18n$NativeLocaleDigits={FormatWithLocaleDigits:{ar:"latn","ar-EG":"arab",bn:"beng",fa:"arabext",mr:"deva",my:"mymr",ne:"deva"}};goog.dom.vendor={};goog.dom.vendor.getVendorJsPrefix=function(){return goog.userAgent.WEBKIT?"Webkit":goog.userAgent.GECKO?"Moz":null};goog.dom.vendor.getVendorPrefix=function(){return goog.userAgent.WEBKIT?"-webkit":goog.userAgent.GECKO?"-moz":null};goog.dom.vendor.getPrefixedPropertyName=function(a,b){if(b&&a in b)return a;var c=goog.dom.vendor.getVendorJsPrefix();return c?(c=c.toLowerCase(),a=c+goog.string.toTitleCase(a),b===void 0||a in b?a:null):null}; goog.dom.vendor.getPrefixedEventType=function(a){var b=goog.dom.vendor.getVendorJsPrefix()||"";return(b+a).toLowerCase()};goog.math.Box=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};goog.math.Box.boundingBox=function(a){for(var b=new goog.math.Box(arguments[0].y,arguments[0].x,arguments[0].y,arguments[0].x),c=1;c<arguments.length;c++)b.expandToIncludeCoordinate(arguments[c]);return b};goog.math.Box.prototype.getWidth=function(){return this.right-this.left};goog.math.Box.prototype.getHeight=function(){return this.bottom-this.top}; goog.math.Box.prototype.clone=function(){return new goog.math.Box(this.top,this.right,this.bottom,this.left)};goog.DEBUG&&(goog.math.Box.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"});goog.math.Box.prototype.contains=function(a){return goog.math.Box.contains(this,a)}; goog.math.Box.prototype.expand=function(a,b,c,d){goog.isObject(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(b),this.bottom+=Number(c),this.left-=Number(d));return this};goog.math.Box.prototype.expandToIncludeCoordinate=function(a){this.top=Math.min(this.top,a.y);this.right=Math.max(this.right,a.x);this.bottom=Math.max(this.bottom,a.y);this.left=Math.min(this.left,a.x)}; goog.math.Box.equals=function(a,b){return a==b?!0:a&&b?a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left:!1};goog.math.Box.contains=function(a,b){return a&&b?b instanceof goog.math.Box?b.left>=a.left&&b.right<=a.right&&b.top>=a.top&&b.bottom<=a.bottom:b.x>=a.left&&b.x<=a.right&&b.y>=a.top&&b.y<=a.bottom:!1};goog.math.Box.relativePositionX=function(a,b){return b.x<a.left?b.x-a.left:b.x>a.right?b.x-a.right:0}; goog.math.Box.relativePositionY=function(a,b){return b.y<a.top?b.y-a.top:b.y>a.bottom?b.y-a.bottom:0};goog.math.Box.distance=function(a,b){var c=goog.math.Box.relativePositionX(a,b);a=goog.math.Box.relativePositionY(a,b);return Math.sqrt(c*c+a*a)};goog.math.Box.intersects=function(a,b){return a.left<=b.right&&b.left<=a.right&&a.top<=b.bottom&&b.top<=a.bottom};goog.math.Box.intersectsWithPadding=function(a,b,c){return a.left<=b.right+c&&b.left<=a.right+c&&a.top<=b.bottom+c&&b.top<=a.bottom+c}; goog.math.Box.prototype.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};goog.math.Box.prototype.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this}; goog.math.Box.prototype.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};goog.math.Box.prototype.translate=function(a,b){a instanceof goog.math.Coordinate?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(goog.asserts.assertNumber(a),this.left+=a,this.right+=a,typeof b==="number"&&(this.top+=b,this.bottom+=b));return this}; goog.math.Box.prototype.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};goog.math.IRect=function(){};goog.math.Rect=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};goog.math.Rect.prototype.clone=function(){return new goog.math.Rect(this.left,this.top,this.width,this.height)};goog.math.Rect.prototype.toBox=function(){var a=this.left+this.width,b=this.top+this.height;return new goog.math.Box(this.top,a,b,this.left)};goog.math.Rect.createFromPositionAndSize=function(a,b){return new goog.math.Rect(a.x,a.y,b.width,b.height)}; goog.math.Rect.createFromBox=function(a){return new goog.math.Rect(a.left,a.top,a.right-a.left,a.bottom-a.top)};goog.DEBUG&&(goog.math.Rect.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"});goog.math.Rect.equals=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1}; goog.math.Rect.prototype.intersection=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top);a=Math.min(this.top+this.height,a.top+a.height);if(d<=a)return this.left=b,this.top=d,this.width=c-b,this.height=a-d,!0}return!1}; goog.math.Rect.intersection=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top);a=Math.min(a.top+a.height,b.top+b.height);if(e<=a)return new goog.math.Rect(c,e,d-c,a-e)}return null};goog.math.Rect.intersects=function(a,b){return a.left<=b.left+b.width&&b.left<=a.left+a.width&&a.top<=b.top+b.height&&b.top<=a.top+a.height};goog.math.Rect.prototype.intersects=function(a){return goog.math.Rect.intersects(this,a)}; goog.math.Rect.difference=function(a,b){var c=goog.math.Rect.intersection(a,b);if(!c||!c.height||!c.width)return[a.clone()];c=[];var d=a.top,e=a.height,f=a.left+a.width,g=a.top+a.height,h=b.left+b.width,k=b.top+b.height;b.top>a.top&&(c.push(new goog.math.Rect(a.left,a.top,a.width,b.top-a.top)),d=b.top,e-=b.top-a.top);k<g&&(c.push(new goog.math.Rect(a.left,k,a.width,g-k)),e=k-d);b.left>a.left&&c.push(new goog.math.Rect(a.left,d,b.left-a.left,e));h<f&&c.push(new goog.math.Rect(h,d,f-h,e));return c}; goog.math.Rect.prototype.difference=function(a){return goog.math.Rect.difference(this,a)};goog.math.Rect.prototype.boundingRect=function(a){var b=Math.max(this.left+this.width,a.left+a.width),c=Math.max(this.top+this.height,a.top+a.height);this.left=Math.min(this.left,a.left);this.top=Math.min(this.top,a.top);this.width=b-this.left;this.height=c-this.top};goog.math.Rect.boundingRect=function(a,b){if(!a||!b)return null;a=new goog.math.Rect(a.left,a.top,a.width,a.height);a.boundingRect(b);return a}; goog.math.Rect.prototype.contains=function(a){return a instanceof goog.math.Coordinate?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};goog.math.Rect.prototype.squaredDistance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return b*b+a*a}; goog.math.Rect.prototype.distance=function(a){return Math.sqrt(this.squaredDistance(a))};goog.math.Rect.prototype.getSize=function(){return new goog.math.Size(this.width,this.height)};goog.math.Rect.prototype.getTopLeft=function(){return new goog.math.Coordinate(this.left,this.top)};goog.math.Rect.prototype.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; goog.math.Rect.prototype.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};goog.math.Rect.prototype.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; goog.math.Rect.prototype.translate=function(a,b){a instanceof goog.math.Coordinate?(this.left+=a.x,this.top+=a.y):(this.left+=goog.asserts.assertNumber(a),typeof b==="number"&&(this.top+=b));return this};goog.math.Rect.prototype.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};goog.style={};goog.style.setStyle=function(a,b,c){if(typeof b==="string")goog.style.setStyle_(a,c,b);else for(var d in b)goog.style.setStyle_(a,b[d],d)};goog.style.setStyle_=function(a,b,c){(c=goog.style.getVendorJsStyleName_(a,c))&&(a.style[c]=b)};goog.style.styleNameCache_={}; goog.style.getVendorJsStyleName_=function(a,b){var c=goog.style.styleNameCache_[b];if(!c){var d=goog.string.toCamelCase(b);c=d;a.style[d]===void 0&&(d=goog.dom.vendor.getVendorJsPrefix()+goog.string.toTitleCase(d),a.style[d]!==void 0&&(c=d));goog.style.styleNameCache_[b]=c}return c}; goog.style.getVendorStyleName_=function(a,b){var c=goog.string.toCamelCase(b);return a.style[c]===void 0&&(c=goog.dom.vendor.getVendorJsPrefix()+goog.string.toTitleCase(c),a.style[c]!==void 0)?goog.dom.vendor.getVendorPrefix()+"-"+b:b};goog.style.getStyle=function(a,b){var c=a.style[goog.string.toCamelCase(b)];return typeof c!=="undefined"?c:a.style[goog.style.getVendorJsStyleName_(a,b)]||""}; goog.style.getComputedStyle=function(a,b){var c=goog.dom.getOwnerDocument(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};goog.style.getCascadedStyle=function(a,b){return a.currentStyle?a.currentStyle[b]:null};goog.style.getStyle_=function(a,b){return goog.style.getComputedStyle(a,b)||goog.style.getCascadedStyle(a,b)||a.style&&a.style[b]}; goog.style.getComputedBoxSizing=function(a){return goog.style.getStyle_(a,"boxSizing")||goog.style.getStyle_(a,"MozBoxSizing")||goog.style.getStyle_(a,"WebkitBoxSizing")||null};goog.style.getComputedPosition=function(a){return goog.style.getStyle_(a,"position")};goog.style.getBackgroundColor=function(a){return goog.style.getStyle_(a,"backgroundColor")};goog.style.getComputedOverflowX=function(a){return goog.style.getStyle_(a,"overflowX")}; goog.style.getComputedOverflowY=function(a){return goog.style.getStyle_(a,"overflowY")};goog.style.getComputedZIndex=function(a){return goog.style.getStyle_(a,"zIndex")};goog.style.getComputedTextAlign=function(a){return goog.style.getStyle_(a,"textAlign")};goog.style.getComputedCursor=function(a){return goog.style.getStyle_(a,"cursor")};goog.style.getComputedTransform=function(a){var b=goog.style.getVendorStyleName_(a,"transform");return goog.style.getStyle_(a,b)||goog.style.getStyle_(a,"transform")}; goog.style.setPosition=function(a,b,c){if(b instanceof goog.math.Coordinate){var d=b.x;b=b.y}else d=b,b=c;a.style.left=goog.style.getPixelStyleValue_(d,!1);a.style.top=goog.style.getPixelStyleValue_(b,!1)};goog.style.getPosition=function(a){return new goog.math.Coordinate(a.offsetLeft,a.offsetTop)};goog.style.getClientViewportElement=function(a){a=a?goog.dom.getOwnerDocument(a):goog.dom.getDocument();return a.documentElement}; goog.style.getViewportPageOffset=function(a){var b=a.body,c=a.documentElement;a=b.scrollLeft||c.scrollLeft;b=b.scrollTop||c.scrollTop;return new goog.math.Coordinate(a,b)};goog.style.getBoundingClientRect_=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}}; goog.style.getOffsetParent=function(a){var b=goog.dom.getOwnerDocument(a),c=goog.style.getStyle_(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(a.nodeType==goog.dom.NodeType.DOCUMENT_FRAGMENT&&a.host&&(a=a.host),c=goog.style.getStyle_(a,"position"),d=d&&c=="static"&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a;return null}; goog.style.getVisibleRectForElement=function(a){for(var b=new goog.math.Box(0,Infinity,Infinity,0),c=goog.dom.getDomHelper(a),d=c.getDocument().body,e=c.getDocument().documentElement,f=c.getDocumentScrollElement();a=goog.style.getOffsetParent(a);)if((!goog.userAgent.WEBKIT||a.clientHeight!=0||a!=d)&&a!=d&&a!=e&&goog.style.getStyle_(a,"overflow")!="visible"){var g=goog.style.getPageOffset(a),h=goog.style.getClientLeftTop(a);g.x+=h.x;g.y+=h.y;b.top=Math.max(b.top,g.y);b.right=Math.min(b.right,g.x+a.clientWidth); b.bottom=Math.min(b.bottom,g.y+a.clientHeight);b.left=Math.max(b.left,g.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=c.getViewportSize();b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:null}; goog.style.getContainerOffsetToScrollInto=function(a,b,c){var d=b||goog.dom.getDocumentScrollElement(),e=goog.style.getPageOffset(a),f=goog.style.getPageOffset(d),g=goog.style.getBorderBox(d);d==goog.dom.getDocumentScrollElement()?(b=e.x-d.scrollLeft,e=e.y-d.scrollTop):(b=e.x-f.x-g.left,e=e.y-f.y-g.top);f=goog.style.getSizeWithDisplay_(a);a=d.clientWidth-f.width;f=d.clientHeight-f.height;g=d.scrollLeft;d=d.scrollTop;c?(g+=b-a/2,d+=e-f/2):(g+=Math.min(b,Math.max(b-a,0)),d+=Math.min(e,Math.max(e-f, 0)));return new goog.math.Coordinate(g,d)};goog.style.scrollIntoContainerView=function(a,b,c){b=b||goog.dom.getDocumentScrollElement();a=goog.style.getContainerOffsetToScrollInto(a,b,c);b.scrollLeft=a.x;b.scrollTop=a.y};goog.style.getClientLeftTop=function(a){return new goog.math.Coordinate(a.clientLeft,a.clientTop)}; goog.style.getPageOffset=function(a){var b=goog.dom.getOwnerDocument(a);goog.asserts.assertObject(a,"Parameter is required");var c=new goog.math.Coordinate(0,0),d=goog.style.getClientViewportElement(b);if(a==d)return c;a=goog.style.getBoundingClientRect_(a);b=goog.dom.getDomHelper(b).getDocumentScroll();c.x=a.left+b.x;c.y=a.top+b.y;return c};goog.style.getPageOffsetLeft=function(a){return goog.style.getPageOffset(a).x};goog.style.getPageOffsetTop=function(a){return goog.style.getPageOffset(a).y}; goog.style.getFramedPageOffset=function(a,b){var c=new goog.math.Coordinate(0,0),d=goog.dom.getWindow(goog.dom.getOwnerDocument(a));if(!goog.reflect.canAccessProperty(d,"parent"))return c;do{var e=d==b?goog.style.getPageOffset(a):goog.style.getClientPositionForElement_(goog.asserts.assert(a));c.x+=e.x;c.y+=e.y}while(d&&d!=b&&d!=d.parent&&(a=d.frameElement)&&(d=d.parent));return c}; goog.style.translateRectForAnotherFrame=function(a,b,c){b.getDocument()!=c.getDocument()&&(b=b.getDocument().body,c=goog.style.getFramedPageOffset(b,c.getWindow()),c=goog.math.Coordinate.difference(c,goog.style.getPageOffset(b)),a.left+=c.x,a.top+=c.y)};goog.style.getRelativePosition=function(a,b){a=goog.style.getClientPosition(a);b=goog.style.getClientPosition(b);return new goog.math.Coordinate(a.x-b.x,a.y-b.y)}; goog.style.getClientPositionForElement_=function(a){a=goog.style.getBoundingClientRect_(a);return new goog.math.Coordinate(a.left,a.top)};goog.style.getClientPosition=function(a){goog.asserts.assert(a);if(a.nodeType==goog.dom.NodeType.ELEMENT)return goog.style.getClientPositionForElement_(a);a=a.changedTouches?a.changedTouches[0]:a;return new goog.math.Coordinate(a.clientX,a.clientY)}; goog.style.setPageOffset=function(a,b,c){var d=goog.style.getPageOffset(a);b instanceof goog.math.Coordinate&&(c=b.y,b=b.x);b=goog.asserts.assertNumber(b)-d.x;c=Number(c)-d.y;goog.style.setPosition(a,a.offsetLeft+b,a.offsetTop+c)};goog.style.setSize=function(a,b,c){if(b instanceof goog.math.Size)c=b.height,b=b.width;else if(c==void 0)throw Error("missing height argument");goog.style.setWidth(a,b);goog.style.setHeight(a,c)}; goog.style.getPixelStyleValue_=function(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a};goog.style.setHeight=function(a,b){a.style.height=goog.style.getPixelStyleValue_(b,!0)};goog.style.setWidth=function(a,b){a.style.width=goog.style.getPixelStyleValue_(b,!0)};goog.style.getSize=function(a){return goog.style.evaluateWithTemporaryDisplay_(goog.style.getSizeWithDisplay_,a)}; goog.style.evaluateWithTemporaryDisplay_=function(a,b){if(goog.style.getStyle_(b,"display")!="none")return a(b);var c=b.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=a(b);c.display=d;c.position=f;c.visibility=e;return a}; goog.style.getSizeWithDisplay_=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=goog.userAgent.WEBKIT&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=goog.style.getBoundingClientRect_(a),new goog.math.Size(a.right-a.left,a.bottom-a.top)):new goog.math.Size(b,c)};goog.style.getTransformedSize=function(a){if(!a.getBoundingClientRect)return null;a=goog.style.evaluateWithTemporaryDisplay_(goog.style.getBoundingClientRect_,a);return new goog.math.Size(a.right-a.left,a.bottom-a.top)}; goog.style.getBounds=function(a){var b=goog.style.getPageOffset(a);a=goog.style.getSize(a);return new goog.math.Rect(b.x,b.y,a.width,a.height)};goog.style.toCamelCase=function(a){return goog.string.toCamelCase(String(a))};goog.style.toSelectorCase=function(a){return goog.string.toSelectorCase(a)}; goog.style.getOpacity=function(a){goog.asserts.assert(a);var b=a.style;a="";"opacity"in b?a=b.opacity:"MozOpacity"in b?a=b.MozOpacity:"filter"in b&&(b=b.filter.match(/alpha\(opacity=([\d.]+)\)/))&&(a=String(b[1]/100));return a==""?a:Number(a)};goog.style.setOpacity=function(a,b){goog.asserts.assert(a);a=a.style;"opacity"in a?a.opacity=b:"MozOpacity"in a?a.MozOpacity=b:"filter"in a&&(a.filter=b===""?"":"alpha(opacity="+Number(b)*100+")")}; goog.style.setTransparentBackgroundImage=function(a,b){a=a.style;a.backgroundImage="url("+b+")";a.backgroundPosition="top left";a.backgroundRepeat="no-repeat"};goog.style.clearTransparentBackgroundImage=function(a){a=a.style;"filter"in a?a.filter="":a.backgroundImage="none"};goog.style.showElement=function(a,b){goog.style.setElementShown(a,b)};goog.style.setElementShown=function(a,b){a.style.display=b?"":"none"};goog.style.isElementShown=function(a){return a.style.display!="none"}; goog.style.installSafeStyleSheet=function(a,b){b=goog.dom.getDomHelper(b);var c=b.getElementsByTagNameAndClass(goog.dom.TagName.HEAD)[0];if(!c){var d=b.getElementsByTagNameAndClass(goog.dom.TagName.BODY)[0];c=b.createDom(goog.dom.TagName.HEAD);d.parentNode.insertBefore(c,d)}d=b.createDom(goog.dom.TagName.STYLE);var e=module$exports$google3$third_party$javascript$safevalues$dom$index.getStyleNonce(window);e&&d.setAttribute("nonce",e);goog.style.setSafeStyleSheet(d,a);b.appendChild(c,d);return d}; goog.style.uninstallStyles=function(a){a=a.ownerNode||a.owningElement||a;goog.dom.removeNode(a)};goog.style.setSafeStyleSheet=function(a,b){b=module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_unwrapStyleSheet(b);goog.global.trustedTypes?goog.dom.setTextContent(a,b):a.innerHTML=b};goog.style.setPreWrap=function(a){a=a.style;a.whiteSpace=goog.userAgent.GECKO?"-moz-pre-wrap":"pre-wrap"}; goog.style.setInlineBlock=function(a){a=a.style;a.position="relative";a.display="inline-block"};goog.style.isRightToLeft=function(a){return"rtl"==goog.style.getStyle_(a,"direction")};goog.style.unselectableStyle_=goog.userAgent.GECKO?"MozUserSelect":goog.userAgent.WEBKIT||goog.userAgent.EDGE?"WebkitUserSelect":null;goog.style.isUnselectable=function(a){return!(!goog.style.unselectableStyle_||a.style[goog.style.unselectableStyle_].toLowerCase()!="none")}; goog.style.setUnselectable=function(a,b,c){c=c?null:a.getElementsByTagName("*");var d=goog.style.unselectableStyle_;if(d&&(b=b?"none":"",a.style&&(a.style[d]=b),c))for(var e=0;a=c[e];e++)a.style&&(a.style[d]=b)};goog.style.getBorderBoxSize=function(a){return new goog.math.Size(a.offsetWidth,a.offsetHeight)};goog.style.setBorderBoxSize=function(a,b){goog.style.setBoxSizingSize_(a,b,"border-box")}; goog.style.getContentBoxSize=function(a){var b=goog.style.getBorderBoxSize(a),c=goog.style.getPaddingBox(a);a=goog.style.getBorderBox(a);return new goog.math.Size(b.width-a.left-c.left-c.right-a.right,b.height-a.top-c.top-c.bottom-a.bottom)};goog.style.setContentBoxSize=function(a,b){goog.style.setBoxSizingSize_(a,b,"content-box")}; goog.style.setBoxSizingSize_=function(a,b,c){a=a.style;goog.userAgent.GECKO?a.MozBoxSizing=c:goog.userAgent.WEBKIT?a.WebkitBoxSizing=c:a.boxSizing=c;a.width=Math.max(b.width,0)+"px";a.height=Math.max(b.height,0)+"px"};goog.style.getIePixelValue_=function(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);var e=a.style[c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=f;return+b}; goog.style.getIePixelDistance_=function(a,b){return(b=goog.style.getCascadedStyle(a,b))?goog.style.getIePixelValue_(a,b,"left","pixelLeft"):0};goog.style.getBox_=function(a,b){var c=goog.style.getComputedStyle(a,b+"Left"),d=goog.style.getComputedStyle(a,b+"Right"),e=goog.style.getComputedStyle(a,b+"Top");a=goog.style.getComputedStyle(a,b+"Bottom");return new goog.math.Box(parseFloat(e),parseFloat(d),parseFloat(a),parseFloat(c))};goog.style.getPaddingBox=function(a){return goog.style.getBox_(a,"padding")}; goog.style.getMarginBox=function(a){return goog.style.getBox_(a,"margin")};goog.style.ieBorderWidthKeywords_={thin:2,medium:4,thick:6};goog.style.getIePixelBorder_=function(a,b){if(goog.style.getCascadedStyle(a,b+"Style")=="none")return 0;b=goog.style.getCascadedStyle(a,b+"Width");return b in goog.style.ieBorderWidthKeywords_?goog.style.ieBorderWidthKeywords_[b]:goog.style.getIePixelValue_(a,b,"left","pixelLeft")}; goog.style.getBorderBox=function(a){var b=goog.style.getComputedStyle(a,"borderLeftWidth"),c=goog.style.getComputedStyle(a,"borderRightWidth"),d=goog.style.getComputedStyle(a,"borderTopWidth");a=goog.style.getComputedStyle(a,"borderBottomWidth");return new goog.math.Box(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}; goog.style.getFontFamily=function(a){var b=goog.dom.getOwnerDocument(a),c="";if(b.body.createTextRange&&goog.dom.contains(b,a)){b=b.body.createTextRange();b.moveToElementText(a);try{c=b.queryCommandValue("FontName")}catch(d){c=""}}c||(c=goog.style.getStyle_(a,"fontFamily"));a=c.split(",");a.length>1&&(c=a[0]);return goog.string.stripQuotes(c,"\"'")};goog.style.lengthUnitRegex_=/[^\d]+$/;goog.style.getLengthUnits=function(a){return(a=a.match(goog.style.lengthUnitRegex_))&&a[0]||null}; goog.style.ABSOLUTE_CSS_LENGTH_UNITS_={cm:1,"in":1,mm:1,pc:1,pt:1};goog.style.CONVERTIBLE_RELATIVE_CSS_UNITS_={em:1,ex:1};goog.style.getFontSize=function(a){var b=goog.style.getStyle_(a,"fontSize"),c=goog.style.getLengthUnits(b);if(b&&"px"==c)return parseInt(b,10);c=goog.dom.createDom(goog.dom.TagName.SPAN,{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});goog.dom.appendChild(a,c);b=c.offsetHeight;goog.dom.removeNode(c);return b}; goog.style.parseStyleAttribute=function(a){var b={};a.split(/\s*;\s*/).forEach(function(c){var d=c.match(/\s*([\w-]+)\s*:(.+)/);d&&(c=d[1],d=goog.string.trim(d[2]),b[goog.string.toCamelCase(c.toLowerCase())]=d)});return b};goog.style.toStyleAttribute=function(a){var b=[];module$contents$goog$object_forEach(a,function(c,d){b.push(goog.string.toSelectorCase(d),":",c,";")});return b.join("")};goog.style.setFloat=function(a,b){a.style.cssFloat=b}; goog.style.getFloat=function(a){return a.style.cssFloat||""};goog.style.getScrollbarWidth=function(a){var b=goog.dom.createElement(goog.dom.TagName.DIV);a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=goog.dom.createElement(goog.dom.TagName.DIV);goog.style.setSize(a,"200px","200px");b.appendChild(a);goog.dom.appendChild(goog.dom.getDocument().body,b);a=b.offsetWidth-b.clientWidth;goog.dom.removeNode(b);return a}; goog.style.MATRIX_TRANSLATION_REGEX_=RegExp("matrix\\([0-9\\.\\-]+, [0-9\\.\\-]+, [0-9\\.\\-]+, [0-9\\.\\-]+, ([0-9\\.\\-]+)p?x?, ([0-9\\.\\-]+)p?x?\\)");goog.style.getCssTranslation=function(a){a=goog.style.getComputedTransform(a);return a?(a=a.match(goog.style.MATRIX_TRANSLATION_REGEX_))?new goog.math.Coordinate(parseFloat(a[1]),parseFloat(a[2])):new goog.math.Coordinate(0,0):new goog.math.Coordinate(0,0)};var module$exports$google3$third_party$javascript$safevalues$restricted$legacy={};module$exports$google3$third_party$javascript$safevalues$restricted$legacy.lenientlySanitizeHtml=module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.lenientlySanitizeHtml;module$exports$google3$third_party$javascript$safevalues$restricted$legacy.lenientlySanitizeHtmlAssertUnchanged=module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.lenientlySanitizeHtmlAssertUnchanged; function module$contents$google3$third_party$javascript$safevalues$restricted$legacy_legacyUnsafeHtml(a,b){a=module$contents$google3$third_party$javascript$safevalues$restricted$legacy_nullUndefinedToString(a);if(goog.DEBUG&&typeof a!=="string")throw Error("Expected a string");return(0,module$exports$google3$third_party$javascript$safevalues$internals$html_impl.createHtmlInternal)(module$contents$google3$third_party$javascript$safevalues$reporting$reporting_reportOnlyHtmlPassthrough(a,b))} module$exports$google3$third_party$javascript$safevalues$restricted$legacy.legacyUnsafeHtml=module$contents$google3$third_party$javascript$safevalues$restricted$legacy_legacyUnsafeHtml; function module$contents$google3$third_party$javascript$safevalues$restricted$legacy_legacyUnsafeScript(a){a=module$contents$google3$third_party$javascript$safevalues$restricted$legacy_nullUndefinedToString(a);if(goog.DEBUG&&typeof a!=="string")throw Error("Expected a string");return module$contents$google3$third_party$javascript$safevalues$internals$script_impl_createScriptInternal(a)}module$exports$google3$third_party$javascript$safevalues$restricted$legacy.legacyUnsafeScript=module$contents$google3$third_party$javascript$safevalues$restricted$legacy_legacyUnsafeScript; function module$contents$google3$third_party$javascript$safevalues$restricted$legacy_legacyUnsafeResourceUrl(a){a=module$contents$google3$third_party$javascript$safevalues$restricted$legacy_nullUndefinedToString(a);if(goog.DEBUG&&typeof a!=="string")throw Error("Expected a string");return module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_createResourceUrlInternal(a)} module$exports$google3$third_party$javascript$safevalues$restricted$legacy.legacyUnsafeResourceUrl=module$contents$google3$third_party$javascript$safevalues$restricted$legacy_legacyUnsafeResourceUrl; function module$contents$google3$third_party$javascript$safevalues$restricted$legacy_legacyUnsafeUrl(a){a=module$contents$google3$third_party$javascript$safevalues$restricted$legacy_nullUndefinedToString(a);if(goog.DEBUG&&typeof a!=="string")throw Error("Expected a string");return module$contents$google3$third_party$javascript$safevalues$internals$url_impl_createUrlInternal(a)}module$exports$google3$third_party$javascript$safevalues$restricted$legacy.legacyUnsafeUrl=module$contents$google3$third_party$javascript$safevalues$restricted$legacy_legacyUnsafeUrl; function module$contents$google3$third_party$javascript$safevalues$restricted$legacy_legacyUnsafeStyleSheet(a){a=module$contents$google3$third_party$javascript$safevalues$restricted$legacy_nullUndefinedToString(a);if(goog.DEBUG&&typeof a!=="string")throw Error("Expected a string");return module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_createStyleSheetInternal(a)}module$exports$google3$third_party$javascript$safevalues$restricted$legacy.legacyUnsafeStyleSheet=module$contents$google3$third_party$javascript$safevalues$restricted$legacy_legacyUnsafeStyleSheet; function module$contents$google3$third_party$javascript$safevalues$restricted$legacy_nullUndefinedToString(a){return a===null?"null":a===void 0?"undefined":a}function module$contents$google3$third_party$javascript$safevalues$restricted$legacy_superLenientlySanitizeHtml(a){return(0,module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer.superLenientlySanitizeHtml)(a)} module$exports$google3$third_party$javascript$safevalues$restricted$legacy.superLenientlySanitizeHtml=module$contents$google3$third_party$javascript$safevalues$restricted$legacy_superLenientlySanitizeHtml;safevalues.restricted.legacy={};safevalues.restricted.legacy.legacyUnsafeHtml=module$contents$google3$third_party$javascript$safevalues$restricted$legacy_legacyUnsafeHtml;safevalues.restricted.legacy.legacyUnsafeScript=module$contents$google3$third_party$javascript$safevalues$restricted$legacy_legacyUnsafeScript;safevalues.restricted.legacy.legacyUnsafeResourceUrl=module$contents$google3$third_party$javascript$safevalues$restricted$legacy_legacyUnsafeResourceUrl; safevalues.restricted.legacy.legacyUnsafeUrl=module$contents$google3$third_party$javascript$safevalues$restricted$legacy_legacyUnsafeUrl;safevalues.restricted.legacy.legacyUnsafeStyleSheet=module$contents$google3$third_party$javascript$safevalues$restricted$legacy_legacyUnsafeStyleSheet;safevalues.restricted.legacy.superLenientlySanitizeHtml=module$contents$google3$third_party$javascript$safevalues$restricted$legacy_superLenientlySanitizeHtml;safevalues.restricted.legacy.lenientlySanitizeHtml=module$exports$google3$third_party$javascript$safevalues$restricted$legacy.lenientlySanitizeHtml; safevalues.restricted.legacy.lenientlySanitizeHtmlAssertUnchanged=module$exports$google3$third_party$javascript$safevalues$restricted$legacy.lenientlySanitizeHtmlAssertUnchanged;goog.dom.classlist={};goog.dom.classlist.ALWAYS_USE_DOM_TOKEN_LIST=!1;goog.dom.classlist.getClassName_=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""};goog.dom.classlist.get=function(a){return goog.dom.classlist.ALWAYS_USE_DOM_TOKEN_LIST||a.classList?a.classList:goog.dom.classlist.getClassName_(a).match(/\S+/g)||[]};goog.dom.classlist.set=function(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)}; goog.dom.classlist.contains=function(a,b){return goog.dom.classlist.ALWAYS_USE_DOM_TOKEN_LIST||a.classList?a.classList.contains(b):module$contents$goog$array_contains(goog.dom.classlist.get(a),b)};goog.dom.classlist.add=function(a,b){if(goog.dom.classlist.ALWAYS_USE_DOM_TOKEN_LIST||a.classList)a.classList.add(b);else if(!goog.dom.classlist.contains(a,b)){var c=goog.dom.classlist.getClassName_(a);goog.dom.classlist.set(a,c+(c.length>0?" "+b:b))}}; goog.dom.classlist.addAll=function(a,b){if(goog.dom.classlist.ALWAYS_USE_DOM_TOKEN_LIST||a.classList)Array.prototype.forEach.call(b,function(e){goog.dom.classlist.add(a,e)});else{var c={};Array.prototype.forEach.call(goog.dom.classlist.get(a),function(e){c[e]=!0});Array.prototype.forEach.call(b,function(e){c[e]=!0});b="";for(var d in c)b+=b.length>0?" "+d:d;goog.dom.classlist.set(a,b)}}; goog.dom.classlist.remove=function(a,b){goog.dom.classlist.ALWAYS_USE_DOM_TOKEN_LIST||a.classList?a.classList.remove(b):goog.dom.classlist.contains(a,b)&&goog.dom.classlist.set(a,Array.prototype.filter.call(goog.dom.classlist.get(a),function(c){return c!=b}).join(" "))}; goog.dom.classlist.removeAll=function(a,b){goog.dom.classlist.ALWAYS_USE_DOM_TOKEN_LIST||a.classList?Array.prototype.forEach.call(b,function(c){goog.dom.classlist.remove(a,c)}):goog.dom.classlist.set(a,Array.prototype.filter.call(goog.dom.classlist.get(a),function(c){return!module$contents$goog$array_contains(b,c)}).join(" "))};goog.dom.classlist.enable=function(a,b,c){c?goog.dom.classlist.add(a,b):goog.dom.classlist.remove(a,b)}; goog.dom.classlist.enableAll=function(a,b,c){c=c?goog.dom.classlist.addAll:goog.dom.classlist.removeAll;c(a,b)};goog.dom.classlist.swap=function(a,b,c){return goog.dom.classlist.contains(a,b)?(goog.dom.classlist.remove(a,b),goog.dom.classlist.add(a,c),!0):!1};goog.dom.classlist.toggle=function(a,b){var c=!goog.dom.classlist.contains(a,b);goog.dom.classlist.enable(a,b,c);return c};goog.dom.classlist.addRemove=function(a,b,c){goog.dom.classlist.remove(a,b);goog.dom.classlist.add(a,c)};goog.events.EventTarget=function(){goog.Disposable.call(this);this.eventTargetListeners_=new goog.events.ListenerMap(this);this.actualEventTarget_=this;this.parentEventTarget_=null};goog.inherits(goog.events.EventTarget,goog.Disposable);goog.events.Listenable.addImplementation(goog.events.EventTarget);goog.events.EventTarget.MAX_ANCESTORS_=1E3;goog.events.EventTarget.prototype.getParentEventTarget=function(){return this.parentEventTarget_}; goog.events.EventTarget.prototype.setParentEventTarget=function(a){this.parentEventTarget_=a};goog.events.EventTarget.prototype.addEventListener=function(a,b,c,d){goog.events.listen(this,a,b,c,d)};goog.events.EventTarget.prototype.removeEventListener=function(a,b,c,d){goog.events.unlisten(this,a,b,c,d)}; goog.events.EventTarget.prototype.dispatchEvent=function(a){this.assertInitialized_();var b=this.getParentEventTarget();if(b){var c=[];for(var d=1;b;b=b.getParentEventTarget())c.push(b),goog.asserts.assert(++d<goog.events.EventTarget.MAX_ANCESTORS_,"infinite loop")}return goog.events.EventTarget.dispatchEventInternal_(this.actualEventTarget_,a,c)}; goog.events.EventTarget.prototype.disposeInternal=function(){goog.events.EventTarget.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};goog.events.EventTarget.prototype.listen=function(a,b,c,d){this.assertInitialized_();return this.eventTargetListeners_.add(String(a),b,!1,c,d)};goog.events.EventTarget.prototype.listenOnce=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!0,c,d)}; goog.events.EventTarget.prototype.unlisten=function(a,b,c,d){return this.eventTargetListeners_.remove(String(a),b,c,d)};goog.events.EventTarget.prototype.unlistenByKey=function(a){return this.eventTargetListeners_.removeByKey(a)};goog.events.EventTarget.prototype.removeAllListeners=function(a){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(a):0}; goog.events.EventTarget.prototype.fireListeners=function(a,b,c){a=this.eventTargetListeners_.listeners[String(a)];if(!a)return!0;a=a.concat();for(var d=!0,e=0;e<a.length;++e){var f=a[e];if(f&&!f.removed&&f.capture==b){var g=f.listener,h=f.handler||f.src;f.callOnce&&this.unlistenByKey(f);d=g.call(h,c)!==!1&&d}}return d&&!c.defaultPrevented};goog.events.EventTarget.prototype.getListeners=function(a,b){return this.eventTargetListeners_.getListeners(String(a),b)}; goog.events.EventTarget.prototype.getListener=function(a,b,c,d){return this.eventTargetListeners_.getListener(String(a),b,c,d)};goog.events.EventTarget.prototype.hasListener=function(a,b){a=a!==void 0?String(a):void 0;return this.eventTargetListeners_.hasListener(a,b)};goog.events.EventTarget.prototype.assertInitialized_=function(){goog.asserts.assert(this.eventTargetListeners_,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")}; goog.events.EventTarget.dispatchEventInternal_=function(a,b,c){var d=b.type||b;if(typeof b==="string")b=new goog.events.Event(b,a);else if(b instanceof goog.events.Event)b.target=b.target||a;else{var e=b;b=new goog.events.Event(d,a);module$contents$goog$object_extend(b,e)}e=!0;var f;if(c)for(f=c.length-1;!b.propagationStopped_&&f>=0;f--){var g=b.currentTarget=c[f];e=g.fireListeners(d,!0,b)&&e}b.propagationStopped_||(g=b.currentTarget=a,e=g.fireListeners(d,!0,b)&&e,b.propagationStopped_||(e=g.fireListeners(d, !1,b)&&e));if(c)for(f=0;!b.propagationStopped_&&f<c.length;f++)g=b.currentTarget=c[f],e=g.fireListeners(d,!1,b)&&e;return e};goog.dom.ViewportSizeMonitor=function(a){goog.events.EventTarget.call(this);this.window_=a||window;this.listenerKey_=goog.events.listen(this.window_,goog.events.EventType.RESIZE,this.handleResize_,!1,this);this.size_=goog.dom.getViewportSize(this.window_)};goog.inherits(goog.dom.ViewportSizeMonitor,goog.events.EventTarget); goog.dom.ViewportSizeMonitor.getInstanceForWindow=function(a){a=a||window;var b=goog.getUid(a);return goog.dom.ViewportSizeMonitor.windowInstanceMap_[b]=goog.dom.ViewportSizeMonitor.windowInstanceMap_[b]||new goog.dom.ViewportSizeMonitor(a)};goog.dom.ViewportSizeMonitor.removeInstanceForWindow=function(a){a=goog.getUid(a||window);module$contents$goog$dispose_dispose(goog.dom.ViewportSizeMonitor.windowInstanceMap_[a]);delete goog.dom.ViewportSizeMonitor.windowInstanceMap_[a]}; goog.dom.ViewportSizeMonitor.windowInstanceMap_={};goog.dom.ViewportSizeMonitor.prototype.getSize=function(){return this.size_?this.size_.clone():null};goog.dom.ViewportSizeMonitor.prototype.disposeInternal=function(){goog.dom.ViewportSizeMonitor.superClass_.disposeInternal.call(this);this.listenerKey_&&(goog.events.unlistenByKey(this.listenerKey_),this.listenerKey_=null);this.size_=this.window_=null}; goog.dom.ViewportSizeMonitor.prototype.handleResize_=function(){var a=goog.dom.getViewportSize(this.window_);goog.math.Size.equals(a,this.size_)||(this.size_=a,this.dispatchEvent(goog.events.EventType.RESIZE))};goog.events.KeyCodes={WIN_KEY_FF_LINUX:0,MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PLUS_SIGN:43,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,FF_SEMICOLON:59,FF_EQUALS:61,FF_DASH:173,FF_HASH:163,FF_JP_QUOTE:58,FF_DE_PLUS:171,QUESTION_MARK:63,AT_SIGN:64,A:65,B:66,C:67,D:68,E:69,F:70,G:71, H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SCROLL_LOCK:145,FIRST_MEDIA_KEY:166,LAST_MEDIA_KEY:183,SEMICOLON:186, DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,TILDE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,MAC_WK_CMD_LEFT:91,MAC_WK_CMD_RIGHT:93,WIN_IME:229,VK_NONAME:252,PHANTOM:255}; goog.events.KeyCodes.isTextModifyingKeyEvent=function(a){if(a.altKey&&!a.ctrlKey||a.metaKey||a.keyCode>=goog.events.KeyCodes.F1&&a.keyCode<=goog.events.KeyCodes.F12)return!1;if(goog.events.KeyCodes.isCharacterKey(a.keyCode))return!0;switch(a.keyCode){case goog.events.KeyCodes.ALT:case goog.events.KeyCodes.CAPS_LOCK:case goog.events.KeyCodes.CONTEXT_MENU:case goog.events.KeyCodes.CTRL:case goog.events.KeyCodes.DOWN:case goog.events.KeyCodes.END:case goog.events.KeyCodes.ESC:case goog.events.KeyCodes.HOME:case goog.events.KeyCodes.INSERT:case goog.events.KeyCodes.LEFT:case goog.events.KeyCodes.MAC_FF_META:case goog.events.KeyCodes.META:case goog.events.KeyCodes.NUMLOCK:case goog.events.KeyCodes.NUM_CENTER:case goog.events.KeyCodes.PAGE_DOWN:case goog.events.KeyCodes.PAGE_UP:case goog.events.KeyCodes.PAUSE:case goog.events.KeyCodes.PHANTOM:case goog.events.KeyCodes.PRINT_SCREEN:case goog.events.KeyCodes.RIGHT:case goog.events.KeyCodes.SCROLL_LOCK:case goog.events.KeyCodes.SHIFT:case goog.events.KeyCodes.UP:case goog.events.KeyCodes.VK_NONAME:case goog.events.KeyCodes.WIN_KEY:case goog.events.KeyCodes.WIN_KEY_RIGHT:return!1;case goog.events.KeyCodes.WIN_KEY_FF_LINUX:return!goog.userAgent.GECKO; default:return a.keyCode<goog.events.KeyCodes.FIRST_MEDIA_KEY||a.keyCode>goog.events.KeyCodes.LAST_MEDIA_KEY}}; goog.events.KeyCodes.firesKeyPressEvent=function(a,b,c,d,e,f){if(goog.userAgent.MAC&&e)return goog.events.KeyCodes.isCharacterKey(a);if(e&&!d)return!1;if(!goog.userAgent.GECKO){typeof b==="number"&&(b=goog.events.KeyCodes.normalizeKeyCode(b));var g=b==goog.events.KeyCodes.CTRL||b==goog.events.KeyCodes.ALT||goog.userAgent.MAC&&b==goog.events.KeyCodes.META;b=b==goog.events.KeyCodes.SHIFT&&(d||f);if((!c||goog.userAgent.MAC)&&g||goog.userAgent.MAC&&b)return!1}if(goog.userAgent.WEBKIT&&d&&c)switch(a){case goog.events.KeyCodes.BACKSLASH:case goog.events.KeyCodes.OPEN_SQUARE_BRACKET:case goog.events.KeyCodes.CLOSE_SQUARE_BRACKET:case goog.events.KeyCodes.TILDE:case goog.events.KeyCodes.SEMICOLON:case goog.events.KeyCodes.DASH:case goog.events.KeyCodes.EQUALS:case goog.events.KeyCodes.COMMA:case goog.events.KeyCodes.PERIOD:case goog.events.KeyCodes.SLASH:case goog.events.KeyCodes.APOSTROPHE:case goog.events.KeyCodes.SINGLE_QUOTE:return!1}switch(a){case goog.events.KeyCodes.ENTER:return goog.userAgent.GECKO? f||e?!1:!(c&&d):!0;case goog.events.KeyCodes.ESC:return!goog.userAgent.WEBKIT&&!goog.userAgent.GECKO}return goog.userAgent.GECKO&&(d||e||f)?!1:goog.events.KeyCodes.isCharacterKey(a)}; goog.events.KeyCodes.isCharacterKey=function(a){if(a>=goog.events.KeyCodes.ZERO&&a<=goog.events.KeyCodes.NINE||a>=goog.events.KeyCodes.NUM_ZERO&&a<=goog.events.KeyCodes.NUM_MULTIPLY||a>=goog.events.KeyCodes.A&&a<=goog.events.KeyCodes.Z||goog.userAgent.WEBKIT&&a==0)return!0;switch(a){case goog.events.KeyCodes.SPACE:case goog.events.KeyCodes.PLUS_SIGN:case goog.events.KeyCodes.QUESTION_MARK:case goog.events.KeyCodes.AT_SIGN:case goog.events.KeyCodes.NUM_PLUS:case goog.events.KeyCodes.NUM_MINUS:case goog.events.KeyCodes.NUM_PERIOD:case goog.events.KeyCodes.NUM_DIVISION:case goog.events.KeyCodes.SEMICOLON:case goog.events.KeyCodes.FF_SEMICOLON:case goog.events.KeyCodes.DASH:case goog.events.KeyCodes.EQUALS:case goog.events.KeyCodes.FF_EQUALS:case goog.events.KeyCodes.COMMA:case goog.events.KeyCodes.PERIOD:case goog.events.KeyCodes.SLASH:case goog.events.KeyCodes.APOSTROPHE:case goog.events.KeyCodes.SINGLE_QUOTE:case goog.events.KeyCodes.OPEN_SQUARE_BRACKET:case goog.events.KeyCodes.BACKSLASH:case goog.events.KeyCodes.CLOSE_SQUARE_BRACKET:case goog.events.KeyCodes.FF_HASH:case goog.events.KeyCodes.FF_JP_QUOTE:return!0;case goog.events.KeyCodes.FF_DASH:case goog.events.KeyCodes.FF_DE_PLUS:return goog.userAgent.GECKO; default:return!1}};goog.events.KeyCodes.normalizeKeyCode=function(a){return goog.userAgent.GECKO?goog.events.KeyCodes.normalizeGeckoKeyCode(a):goog.userAgent.MAC&&goog.userAgent.WEBKIT?goog.events.KeyCodes.normalizeMacWebKitKeyCode(a):a}; goog.events.KeyCodes.normalizeGeckoKeyCode=function(a){switch(a){case goog.events.KeyCodes.FF_EQUALS:return goog.events.KeyCodes.EQUALS;case goog.events.KeyCodes.FF_SEMICOLON:return goog.events.KeyCodes.SEMICOLON;case goog.events.KeyCodes.FF_DASH:return goog.events.KeyCodes.DASH;case goog.events.KeyCodes.MAC_FF_META:return goog.events.KeyCodes.META;case goog.events.KeyCodes.WIN_KEY_FF_LINUX:return goog.events.KeyCodes.WIN_KEY;default:return a}}; goog.events.KeyCodes.normalizeMacWebKitKeyCode=function(a){switch(a){case goog.events.KeyCodes.MAC_WK_CMD_RIGHT:return goog.events.KeyCodes.META;default:return a}};goog.collections={};goog.collections.maps={};var module$contents$goog$collections$maps_MapLike=function(){};module$contents$goog$collections$maps_MapLike.prototype.set=function(){};module$contents$goog$collections$maps_MapLike.prototype.get=function(){};module$contents$goog$collections$maps_MapLike.prototype.keys=function(){};module$contents$goog$collections$maps_MapLike.prototype.values=function(){};module$contents$goog$collections$maps_MapLike.prototype.has=function(){}; goog.collections.maps.MapLike=module$contents$goog$collections$maps_MapLike;function module$contents$goog$collections$maps_setAll(a,b){if(b){b=(0,$jscomp.makeIterator)(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=(0,$jscomp.makeIterator)(c);c=d.next().value;d=d.next().value;a.set(c,d)}}}goog.collections.maps.setAll=module$contents$goog$collections$maps_setAll; function module$contents$goog$collections$maps_hasValue(a,b,c){c=c===void 0?module$contents$goog$collections$maps_defaultEqualityFn:c;a=(0,$jscomp.makeIterator)(a.values());for(var d=a.next();!d.done;d=a.next())if(d=d.value,c(d,b))return!0;return!1}goog.collections.maps.hasValue=module$contents$goog$collections$maps_hasValue;var module$contents$goog$collections$maps_defaultEqualityFn=function(a,b){return a===b}; function module$contents$goog$collections$maps_equals(a,b,c){c=c===void 0?module$contents$goog$collections$maps_defaultEqualityFn:c;if(a===b)return!0;if(a.size!==b.size)return!1;for(var d=(0,$jscomp.makeIterator)(a.keys()),e=d.next();!e.done;e=d.next())if(e=e.value,!b.has(e)||!c(a.get(e),b.get(e)))return!1;return!0}goog.collections.maps.equals=module$contents$goog$collections$maps_equals; function module$contents$goog$collections$maps_transpose(a){for(var b=new Map,c=(0,$jscomp.makeIterator)(a.keys()),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.get(d);b.set(e,d)}return b}goog.collections.maps.transpose=module$contents$goog$collections$maps_transpose;function module$contents$goog$collections$maps_toObject(a){for(var b={},c=(0,$jscomp.makeIterator)(a.keys()),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.get(d);return b}goog.collections.maps.toObject=module$contents$goog$collections$maps_toObject;goog.structs={};goog.structs.getCount=function(a){return a.getCount&&typeof a.getCount=="function"?a.getCount():goog.isArrayLike(a)||typeof a==="string"?a.length:module$contents$goog$object_getCount(a)}; goog.structs.getValues=function(a){if(a.getValues&&typeof a.getValues=="function")return a.getValues();if(typeof Map!=="undefined"&&a instanceof Map||typeof Set!=="undefined"&&a instanceof Set)return Array.from(a.values());if(typeof a==="string")return a.split("");if(goog.isArrayLike(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return module$contents$goog$object_getValues(a)}; goog.structs.getKeys=function(a){if(a.getKeys&&typeof a.getKeys=="function")return a.getKeys();if(!a.getValues||typeof a.getValues!="function"){if(typeof Map!=="undefined"&&a instanceof Map)return Array.from(a.keys());if(!(typeof Set!=="undefined"&&a instanceof Set)){if(goog.isArrayLike(a)||typeof a==="string"){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return module$contents$goog$object_getKeys(a)}}}; goog.structs.contains=function(a,b){return a.contains&&typeof a.contains=="function"?a.contains(b):a.containsValue&&typeof a.containsValue=="function"?a.containsValue(b):goog.isArrayLike(a)||typeof a==="string"?module$contents$goog$array_contains(a,b):module$contents$goog$object_containsValue(a,b)};goog.structs.isEmpty=function(a){return a.isEmpty&&typeof a.isEmpty=="function"?a.isEmpty():goog.isArrayLike(a)||typeof a==="string"?a.length===0:module$contents$goog$object_isEmpty(a)}; goog.structs.clear=function(a){a.clear&&typeof a.clear=="function"?a.clear():goog.isArrayLike(a)?module$contents$goog$array_clear(a):module$contents$goog$object_clear(a)};goog.structs.forEach=function(a,b,c){if(a.forEach&&typeof a.forEach=="function")a.forEach(b,c);else if(goog.isArrayLike(a)||typeof a==="string")Array.prototype.forEach.call(a,b,c);else for(var d=goog.structs.getKeys(a),e=goog.structs.getValues(a),f=e.length,g=0;g<f;g++)b.call(c,e[g],d&&d[g],a)}; goog.structs.filter=function(a,b,c){if(typeof a.filter=="function")return a.filter(b,c);if(goog.isArrayLike(a)||typeof a==="string")return Array.prototype.filter.call(a,b,c);var d=goog.structs.getKeys(a),e=goog.structs.getValues(a),f=e.length;if(d){var g={};for(var h=0;h<f;h++)b.call(c,e[h],d[h],a)&&(g[d[h]]=e[h])}else for(g=[],d=0;d<f;d++)b.call(c,e[d],void 0,a)&&g.push(e[d]);return g}; goog.structs.map=function(a,b,c){if(typeof a.map=="function")return a.map(b,c);if(goog.isArrayLike(a)||typeof a==="string")return Array.prototype.map.call(a,b,c);var d=goog.structs.getKeys(a),e=goog.structs.getValues(a),f=e.length;if(d){var g={};for(var h=0;h<f;h++)g[d[h]]=b.call(c,e[h],d[h],a)}else for(g=[],d=0;d<f;d++)g[d]=b.call(c,e[d],void 0,a);return g}; goog.structs.some=function(a,b,c){if(typeof a.some=="function")return a.some(b,c);if(goog.isArrayLike(a)||typeof a==="string")return Array.prototype.some.call(a,b,c);for(var d=goog.structs.getKeys(a),e=goog.structs.getValues(a),f=e.length,g=0;g<f;g++)if(b.call(c,e[g],d&&d[g],a))return!0;return!1}; goog.structs.every=function(a,b,c){if(typeof a.every=="function")return a.every(b,c);if(goog.isArrayLike(a)||typeof a==="string")return Array.prototype.every.call(a,b,c);for(var d=goog.structs.getKeys(a),e=goog.structs.getValues(a),f=e.length,g=0;g<f;g++)if(!b.call(c,e[g],d&&d[g],a))return!1;return!0};goog.uri={};goog.uri.utils={};goog.uri.utils.QueryArray={};goog.uri.utils.CharCode_={AMPERSAND:38,EQUAL:61,HASH:35,QUESTION:63};goog.uri.utils.buildFromEncodedParts=function(a,b,c,d,e,f,g){var h="";a&&(h+=a+":");c&&(h+="//",b&&(h+=b+"@"),h+=c,d&&(h+=":"+d));e&&(h+=e);f&&(h+="?"+f);g&&(h+="#"+g);return h};goog.uri.utils.splitRe_=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"); goog.uri.utils.ComponentIndex={SCHEME:1,USER_INFO:2,DOMAIN:3,PORT:4,PATH:5,QUERY_DATA:6,FRAGMENT:7};goog.uri.utils.urlPackageSupportLoggingHandler_=null;goog.uri.utils.setUrlPackageSupportLoggingHandler=function(a){goog.uri.utils.urlPackageSupportLoggingHandler_=a}; goog.uri.utils.split=function(a){var b=a.match(goog.uri.utils.splitRe_);goog.uri.utils.urlPackageSupportLoggingHandler_&&["http","https","ws","wss","ftp"].indexOf(b[goog.uri.utils.ComponentIndex.SCHEME])>=0&&goog.uri.utils.urlPackageSupportLoggingHandler_(a);return b};goog.uri.utils.decodeIfPossible_=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):a};goog.uri.utils.getComponentByIndex_=function(a,b){return goog.uri.utils.split(b)[a]||null}; goog.uri.utils.getScheme=function(a){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.SCHEME,a)};goog.uri.utils.getEffectiveScheme=function(a){a=goog.uri.utils.getScheme(a);!a&&goog.global.self&&goog.global.self.location&&(a=goog.global.self.location.protocol,a=a.slice(0,-1));return a?a.toLowerCase():""};goog.uri.utils.getUserInfoEncoded=function(a){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.USER_INFO,a)};goog.uri.utils.getUserInfo=function(a){return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getUserInfoEncoded(a))}; goog.uri.utils.getDomainEncoded=function(a){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.DOMAIN,a)};goog.uri.utils.getDomain=function(a){return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getDomainEncoded(a),!0)};goog.uri.utils.getPort=function(a){return Number(goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.PORT,a))||null};goog.uri.utils.getPathEncoded=function(a){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.PATH,a)}; goog.uri.utils.getPath=function(a){return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getPathEncoded(a),!0)};goog.uri.utils.getQueryData=function(a){return goog.uri.utils.getComponentByIndex_(goog.uri.utils.ComponentIndex.QUERY_DATA,a)};goog.uri.utils.getFragmentEncoded=function(a){var b=a.indexOf("#");return b<0?null:a.slice(b+1)};goog.uri.utils.setFragmentEncoded=function(a,b){return goog.uri.utils.removeFragment(a)+(b?"#"+b:"")};goog.uri.utils.getFragment=function(a){return goog.uri.utils.decodeIfPossible_(goog.uri.utils.getFragmentEncoded(a))}; goog.uri.utils.getHost=function(a){a=goog.uri.utils.split(a);return goog.uri.utils.buildFromEncodedParts(a[goog.uri.utils.ComponentIndex.SCHEME],a[goog.uri.utils.ComponentIndex.USER_INFO],a[goog.uri.utils.ComponentIndex.DOMAIN],a[goog.uri.utils.ComponentIndex.PORT])};goog.uri.utils.getOrigin=function(a){a=goog.uri.utils.split(a);return goog.uri.utils.buildFromEncodedParts(a[goog.uri.utils.ComponentIndex.SCHEME],null,a[goog.uri.utils.ComponentIndex.DOMAIN],a[goog.uri.utils.ComponentIndex.PORT])}; goog.uri.utils.getPathAndAfter=function(a){a=goog.uri.utils.split(a);return goog.uri.utils.buildFromEncodedParts(null,null,null,null,a[goog.uri.utils.ComponentIndex.PATH],a[goog.uri.utils.ComponentIndex.QUERY_DATA],a[goog.uri.utils.ComponentIndex.FRAGMENT])};goog.uri.utils.removeFragment=function(a){var b=a.indexOf("#");return b<0?a:a.slice(0,b)}; goog.uri.utils.haveSameDomain=function(a,b){a=goog.uri.utils.split(a);b=goog.uri.utils.split(b);return a[goog.uri.utils.ComponentIndex.DOMAIN]==b[goog.uri.utils.ComponentIndex.DOMAIN]&&a[goog.uri.utils.ComponentIndex.SCHEME]==b[goog.uri.utils.ComponentIndex.SCHEME]&&a[goog.uri.utils.ComponentIndex.PORT]==b[goog.uri.utils.ComponentIndex.PORT]}; goog.uri.utils.assertNoFragmentsOrQueries_=function(a){goog.asserts.assert(a.indexOf("#")<0&&a.indexOf("?")<0,"goog.uri.utils: Fragment or query identifiers are not supported: [%s]",a)};goog.uri.utils.parseQueryData=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(d>=0){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?goog.string.urlDecode(e):"")}}}; goog.uri.utils.splitQueryData_=function(a){var b=a.indexOf("#");b<0&&(b=a.length);var c=a.indexOf("?");if(c<0||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.slice(0,c),d,a.slice(b)]};goog.uri.utils.joinQueryData_=function(a){return a[0]+(a[1]?"?"+a[1]:"")+a[2]};goog.uri.utils.appendQueryData_=function(a,b){return b?a?a+"&"+b:b:a};goog.uri.utils.appendQueryDataToUri_=function(a,b){if(!b)return a;a=goog.uri.utils.splitQueryData_(a);a[1]=goog.uri.utils.appendQueryData_(a[1],b);return goog.uri.utils.joinQueryData_(a)}; goog.uri.utils.appendKeyValuePairs_=function(a,b,c){goog.asserts.assertString(a);if(Array.isArray(b)){goog.asserts.assertArray(b);for(var d=0;d<b.length;d++)goog.uri.utils.appendKeyValuePairs_(a,String(b[d]),c)}else b!=null&&c.push(a+(b===""?"":"="+goog.string.urlEncode(b)))}; goog.uri.utils.buildQueryData=function(a,b){goog.asserts.assert(Math.max(a.length-(b||0),0)%2==0,"goog.uri.utils: Key/value lists must be even in length.");var c=[];for(b=b||0;b<a.length;b+=2){var d=a[b];goog.uri.utils.appendKeyValuePairs_(d,a[b+1],c)}return c.join("&")};goog.uri.utils.buildQueryDataFromMap=function(a){var b=[],c;for(c in a)goog.uri.utils.appendKeyValuePairs_(c,a[c],b);return b.join("&")}; goog.uri.utils.appendParams=function(a,b){var c=arguments.length==2?goog.uri.utils.buildQueryData(arguments[1],0):goog.uri.utils.buildQueryData(arguments,1);return goog.uri.utils.appendQueryDataToUri_(a,c)};goog.uri.utils.appendParamsFromMap=function(a,b){b=goog.uri.utils.buildQueryDataFromMap(b);return goog.uri.utils.appendQueryDataToUri_(a,b)};goog.uri.utils.appendParam=function(a,b,c){c=c!=null?"="+goog.string.urlEncode(c):"";return goog.uri.utils.appendQueryDataToUri_(a,b+c)}; goog.uri.utils.findParam_=function(a,b,c,d){for(var e=c.length;(b=a.indexOf(c,b))>=0&&b<d;){var f=a.charCodeAt(b-1);if(f==goog.uri.utils.CharCode_.AMPERSAND||f==goog.uri.utils.CharCode_.QUESTION)if(f=a.charCodeAt(b+e),!f||f==goog.uri.utils.CharCode_.EQUAL||f==goog.uri.utils.CharCode_.AMPERSAND||f==goog.uri.utils.CharCode_.HASH)return b;b+=e+1}return-1};goog.uri.utils.hashOrEndRe_=/#|$/; goog.uri.utils.hasParam=function(a,b){return goog.uri.utils.findParam_(a,0,b,a.search(goog.uri.utils.hashOrEndRe_))>=0};goog.uri.utils.getParamValue=function(a,b){var c=a.search(goog.uri.utils.hashOrEndRe_),d=goog.uri.utils.findParam_(a,0,b,c);if(d<0)return null;var e=a.indexOf("&",d);if(e<0||e>c)e=c;d+=b.length+1;return goog.string.urlDecode(a.slice(d,e!==-1?e:0))}; goog.uri.utils.getParamValues=function(a,b){for(var c=a.search(goog.uri.utils.hashOrEndRe_),d=0,e,f=[];(e=goog.uri.utils.findParam_(a,d,b,c))>=0;){d=a.indexOf("&",e);if(d<0||d>c)d=c;e+=b.length+1;f.push(goog.string.urlDecode(a.slice(e,Math.max(d,0))))}return f};goog.uri.utils.trailingQueryPunctuationRe_=/[?&]($|#)/; goog.uri.utils.removeParam=function(a,b){for(var c=a.search(goog.uri.utils.hashOrEndRe_),d=0,e,f=[];(e=goog.uri.utils.findParam_(a,d,b,c))>=0;)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(goog.uri.utils.trailingQueryPunctuationRe_,"$1")};goog.uri.utils.setParam=function(a,b,c){return goog.uri.utils.appendParam(goog.uri.utils.removeParam(a,b),b,c)}; goog.uri.utils.setParamsFromMap=function(a,b){a=goog.uri.utils.splitQueryData_(a);var c=a[1],d=[];c&&c.split("&").forEach(function(e){var f=e.indexOf("=");f=f>=0?e.slice(0,f):e;b.hasOwnProperty(f)||d.push(e)});a[1]=goog.uri.utils.appendQueryData_(d.join("&"),goog.uri.utils.buildQueryDataFromMap(b));return goog.uri.utils.joinQueryData_(a)}; goog.uri.utils.appendPath=function(a,b){goog.uri.utils.assertNoFragmentsOrQueries_(a);goog.string.endsWith(a,"/")&&(a=a.slice(0,-1));goog.string.startsWith(b,"/")&&(b=b.slice(1));return""+a+"/"+b}; goog.uri.utils.setPath=function(a,b){goog.string.startsWith(b,"/")||(b="/"+b);a=goog.uri.utils.split(a);return goog.uri.utils.buildFromEncodedParts(a[goog.uri.utils.ComponentIndex.SCHEME],a[goog.uri.utils.ComponentIndex.USER_INFO],a[goog.uri.utils.ComponentIndex.DOMAIN],a[goog.uri.utils.ComponentIndex.PORT],b,a[goog.uri.utils.ComponentIndex.QUERY_DATA],a[goog.uri.utils.ComponentIndex.FRAGMENT])};goog.uri.utils.StandardQueryParam={RANDOM:"zx"}; goog.uri.utils.makeUnique=function(a){return goog.uri.utils.setParam(a,goog.uri.utils.StandardQueryParam.RANDOM,goog.string.getRandomString())};goog.Uri=function(a,b){this.domain_=this.userInfo_=this.scheme_="";this.port_=null;this.fragment_=this.path_="";this.ignoreCase_=this.isReadOnly_=!1;var c;a instanceof goog.Uri?(this.ignoreCase_=b!==void 0?b:a.ignoreCase_,this.setScheme(a.getScheme()),this.setUserInfo(a.getUserInfo()),this.setDomain(a.getDomain()),this.setPort(a.getPort()),this.setPath(a.getPath()),this.setQueryData(a.getQueryData().clone()),this.setFragment(a.getFragment())):a&&(c=goog.uri.utils.split(String(a)))?(this.ignoreCase_= !!b,this.setScheme(c[goog.uri.utils.ComponentIndex.SCHEME]||"",!0),this.setUserInfo(c[goog.uri.utils.ComponentIndex.USER_INFO]||"",!0),this.setDomain(c[goog.uri.utils.ComponentIndex.DOMAIN]||"",!0),this.setPort(c[goog.uri.utils.ComponentIndex.PORT]),this.setPath(c[goog.uri.utils.ComponentIndex.PATH]||"",!0),this.setQueryData(c[goog.uri.utils.ComponentIndex.QUERY_DATA]||"",!0),this.setFragment(c[goog.uri.utils.ComponentIndex.FRAGMENT]||"",!0)):(this.ignoreCase_=!!b,this.queryData_=new goog.Uri.QueryData(null, this.ignoreCase_))};goog.Uri.RANDOM_PARAM=goog.uri.utils.StandardQueryParam.RANDOM; goog.Uri.prototype.toString=function(){var a=[],b=this.getScheme();b&&a.push(goog.Uri.encodeSpecialChars_(b,goog.Uri.reDisallowedInSchemeOrUserInfo_,!0),":");var c=this.getDomain();if(c||b=="file")a.push("//"),(b=this.getUserInfo())&&a.push(goog.Uri.encodeSpecialChars_(b,goog.Uri.reDisallowedInSchemeOrUserInfo_,!0),"@"),a.push(goog.Uri.removeDoubleEncoding_(goog.string.urlEncode(c))),c=this.getPort(),c!=null&&a.push(":",String(c));if(c=this.getPath())this.hasDomain()&&c.charAt(0)!="/"&&a.push("/"), a.push(goog.Uri.encodeSpecialChars_(c,c.charAt(0)=="/"?goog.Uri.reDisallowedInAbsolutePath_:goog.Uri.reDisallowedInRelativePath_,!0));(c=this.getEncodedQuery())&&a.push("?",c);(c=this.getFragment())&&a.push("#",goog.Uri.encodeSpecialChars_(c,goog.Uri.reDisallowedInFragment_));return a.join("")}; goog.Uri.prototype.resolve=function(a){var b=this.clone(),c=a.hasScheme();c?b.setScheme(a.getScheme()):c=a.hasUserInfo();c?b.setUserInfo(a.getUserInfo()):c=a.hasDomain();c?b.setDomain(a.getDomain()):c=a.hasPort();var d=a.getPath();if(c)b.setPort(a.getPort());else if(c=a.hasPath()){if(d.charAt(0)!="/")if(this.hasDomain()&&!this.hasPath())d="/"+d;else{var e=b.getPath().lastIndexOf("/");e!=-1&&(d=b.getPath().slice(0,e+1)+d)}d=goog.Uri.removeDotSegments(d)}c?b.setPath(d):c=a.hasQuery();c?b.setQueryData(a.getQueryData().clone()): c=a.hasFragment();c&&b.setFragment(a.getFragment());return b};goog.Uri.prototype.clone=function(){return new goog.Uri(this)};goog.Uri.prototype.getScheme=function(){return this.scheme_};goog.Uri.prototype.setScheme=function(a,b){this.enforceReadOnly();if(this.scheme_=b?goog.Uri.decodeOrEmpty_(a,!0):a)this.scheme_=this.scheme_.replace(/:$/,"");return this};goog.Uri.prototype.hasScheme=function(){return!!this.scheme_};goog.Uri.prototype.getUserInfo=function(){return this.userInfo_}; goog.Uri.prototype.setUserInfo=function(a,b){this.enforceReadOnly();this.userInfo_=b?goog.Uri.decodeOrEmpty_(a):a;return this};goog.Uri.prototype.hasUserInfo=function(){return!!this.userInfo_};goog.Uri.prototype.getDomain=function(){return this.domain_};goog.Uri.prototype.setDomain=function(a,b){this.enforceReadOnly();this.domain_=b?goog.Uri.decodeOrEmpty_(a,!0):a;return this};goog.Uri.prototype.hasDomain=function(){return!!this.domain_};goog.Uri.prototype.getPort=function(){return this.port_}; goog.Uri.prototype.setPort=function(a){this.enforceReadOnly();if(a){a=Number(a);if(isNaN(a)||a<0)throw Error("Bad port number "+a);this.port_=a}else this.port_=null;return this};goog.Uri.prototype.hasPort=function(){return this.port_!=null};goog.Uri.prototype.getPath=function(){return this.path_};goog.Uri.prototype.setPath=function(a,b){this.enforceReadOnly();this.path_=b?goog.Uri.decodeOrEmpty_(a,!0):a;return this};goog.Uri.prototype.hasPath=function(){return!!this.path_}; goog.Uri.prototype.hasQuery=function(){return this.queryData_.toString()!==""};goog.Uri.prototype.setQueryData=function(a,b){this.enforceReadOnly();a instanceof goog.Uri.QueryData?(this.queryData_=a,this.queryData_.setIgnoreCase(this.ignoreCase_)):(b||(a=goog.Uri.encodeSpecialChars_(a,goog.Uri.reDisallowedInQuery_)),this.queryData_=new goog.Uri.QueryData(a,this.ignoreCase_));return this};goog.Uri.prototype.setQuery=function(a,b){return this.setQueryData(a,b)};goog.Uri.prototype.getEncodedQuery=function(){return this.queryData_.toString()}; goog.Uri.prototype.getQueryData=function(){return this.queryData_};goog.Uri.prototype.getQuery=function(){return this.getEncodedQuery()};goog.Uri.prototype.setParameterValue=function(a,b){this.enforceReadOnly();this.queryData_.set(a,b);return this};goog.Uri.prototype.getParameterValue=function(a){return this.queryData_.get(a)};goog.Uri.prototype.getFragment=function(){return this.fragment_}; goog.Uri.prototype.setFragment=function(a,b){this.enforceReadOnly();this.fragment_=b?goog.Uri.decodeOrEmpty_(a):a;return this};goog.Uri.prototype.hasFragment=function(){return!!this.fragment_};goog.Uri.prototype.makeUnique=function(){this.enforceReadOnly();this.setParameterValue(goog.Uri.RANDOM_PARAM,goog.string.getRandomString());return this};goog.Uri.prototype.removeParameter=function(a){this.enforceReadOnly();this.queryData_.remove(a);return this}; goog.Uri.prototype.enforceReadOnly=function(){if(this.isReadOnly_)throw Error("Tried to modify a read-only Uri");};goog.Uri.prototype.setIgnoreCase=function(a){this.ignoreCase_=a;this.queryData_&&this.queryData_.setIgnoreCase(a);return this};goog.Uri.parse=function(a,b){return a instanceof goog.Uri?a.clone():new goog.Uri(a,b)}; goog.Uri.create=function(a,b,c,d,e,f,g,h){h=new goog.Uri(null,h);a&&h.setScheme(a);b&&h.setUserInfo(b);c&&h.setDomain(c);d&&h.setPort(d);e&&h.setPath(e);f&&h.setQueryData(f);g&&h.setFragment(g);return h};goog.Uri.resolve=function(a,b){a instanceof goog.Uri||(a=goog.Uri.parse(a));b instanceof goog.Uri||(b=goog.Uri.parse(b));return a.resolve(b)}; goog.Uri.removeDotSegments=function(a){if(a==".."||a==".")return"";if(goog.string.contains(a,"./")||goog.string.contains(a,"/.")){var b=goog.string.startsWith(a,"/");a=a.split("/");for(var c=[],d=0;d<a.length;){var e=a[d++];e=="."?b&&d==a.length&&c.push(""):e==".."?((c.length>1||c.length==1&&c[0]!="")&&c.pop(),b&&d==a.length&&c.push("")):(c.push(e),b=!0)}return c.join("/")}return a};goog.Uri.decodeOrEmpty_=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}; goog.Uri.encodeSpecialChars_=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,goog.Uri.encodeChar_),c&&(a=goog.Uri.removeDoubleEncoding_(a)),a):null};goog.Uri.encodeChar_=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};goog.Uri.removeDoubleEncoding_=function(a){return a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")};goog.Uri.reDisallowedInSchemeOrUserInfo_=/[#\/\?@]/g;goog.Uri.reDisallowedInRelativePath_=/[#\?:]/g; goog.Uri.reDisallowedInAbsolutePath_=/[#\?]/g;goog.Uri.reDisallowedInQuery_=/[#\?@]/g;goog.Uri.reDisallowedInFragment_=/#/g;goog.Uri.haveSameDomain=function(a,b){a=goog.uri.utils.split(a);b=goog.uri.utils.split(b);return a[goog.uri.utils.ComponentIndex.DOMAIN]==b[goog.uri.utils.ComponentIndex.DOMAIN]&&a[goog.uri.utils.ComponentIndex.PORT]==b[goog.uri.utils.ComponentIndex.PORT]};goog.Uri.QueryData=function(a,b){this.count_=this.keyMap_=null;this.encodedQuery_=a||null;this.ignoreCase_=!!b}; goog.Uri.QueryData.prototype.ensureKeyMapInitialized_=function(){if(!this.keyMap_&&(this.keyMap_=new Map,this.count_=0,this.encodedQuery_)){var a=this;goog.uri.utils.parseQueryData(this.encodedQuery_,function(b,c){a.add(goog.string.urlDecode(b),c)})}}; goog.Uri.QueryData.createFromMap=function(a,b){var c=goog.structs.getKeys(a);if(typeof c=="undefined")throw Error("Keys are undefined");b=new goog.Uri.QueryData(null,b);a=goog.structs.getValues(a);for(var d=0;d<c.length;d++){var e=c[d],f=a[d];Array.isArray(f)?b.setValues(e,f):b.add(e,f)}return b}; goog.Uri.QueryData.createFromKeysValues=function(a,b,c){if(a.length!=b.length)throw Error("Mismatched lengths for keys/values");c=new goog.Uri.QueryData(null,c);for(var d=0;d<a.length;d++)c.add(a[d],b[d]);return c};goog.Uri.QueryData.prototype.getCount=function(){this.ensureKeyMapInitialized_();return this.count_}; goog.Uri.QueryData.prototype.add=function(a,b){this.ensureKeyMapInitialized_();this.invalidateCache_();a=this.getKeyName_(a);var c=this.keyMap_.get(a);c||this.keyMap_.set(a,c=[]);c.push(b);this.count_=goog.asserts.assertNumber(this.count_)+1;return this}; goog.Uri.QueryData.prototype.remove=function(a){this.ensureKeyMapInitialized_();a=this.getKeyName_(a);return this.keyMap_.has(a)?(this.invalidateCache_(),this.count_=goog.asserts.assertNumber(this.count_)-this.keyMap_.get(a).length,this.keyMap_.delete(a)):!1};goog.Uri.QueryData.prototype.clear=function(){this.invalidateCache_();this.keyMap_=null;this.count_=0};goog.Uri.QueryData.prototype.isEmpty=function(){this.ensureKeyMapInitialized_();return this.count_==0}; goog.Uri.QueryData.prototype.containsKey=function(a){this.ensureKeyMapInitialized_();a=this.getKeyName_(a);return this.keyMap_.has(a)};goog.Uri.QueryData.prototype.containsValue=function(a){var b=this.getValues();return module$contents$goog$array_contains(b,a)};goog.Uri.QueryData.prototype.forEach=function(a,b){this.ensureKeyMapInitialized_();this.keyMap_.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)}; goog.Uri.QueryData.prototype.getKeys=function(){this.ensureKeyMapInitialized_();for(var a=Array.from(this.keyMap_.values()),b=Array.from(this.keyMap_.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};goog.Uri.QueryData.prototype.getValues=function(a){this.ensureKeyMapInitialized_();var b=[];if(typeof a==="string")this.containsKey(a)&&(b=b.concat(this.keyMap_.get(this.getKeyName_(a))));else{a=Array.from(this.keyMap_.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b}; goog.Uri.QueryData.prototype.set=function(a,b){this.ensureKeyMapInitialized_();this.invalidateCache_();a=this.getKeyName_(a);this.containsKey(a)&&(this.count_=goog.asserts.assertNumber(this.count_)-this.keyMap_.get(a).length);this.keyMap_.set(a,[b]);this.count_=goog.asserts.assertNumber(this.count_)+1;return this};goog.Uri.QueryData.prototype.get=function(a,b){if(!a)return b;a=this.getValues(a);return a.length>0?String(a[0]):b}; goog.Uri.QueryData.prototype.setValues=function(a,b){this.remove(a);b.length>0&&(this.invalidateCache_(),this.keyMap_.set(this.getKeyName_(a),module$contents$goog$array_toArray(b)),this.count_=goog.asserts.assertNumber(this.count_)+b.length)}; goog.Uri.QueryData.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var a=[],b=Array.from(this.keyMap_.keys()),c=0;c<b.length;c++){var d=b[c],e=goog.string.urlEncode(d);d=this.getValues(d);for(var f=0;f<d.length;f++){var g=e;d[f]!==""&&(g+="="+goog.string.urlEncode(d[f]));a.push(g)}}return this.encodedQuery_=a.join("&")};goog.Uri.QueryData.prototype.invalidateCache_=function(){this.encodedQuery_=null}; goog.Uri.QueryData.prototype.clone=function(){var a=new goog.Uri.QueryData;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=new Map(this.keyMap_),a.count_=this.count_);return a};goog.Uri.QueryData.prototype.getKeyName_=function(a){a=String(a);this.ignoreCase_&&(a=a.toLowerCase());return a}; goog.Uri.QueryData.prototype.setIgnoreCase=function(a){var b=a&&!this.ignoreCase_;b&&(this.ensureKeyMapInitialized_(),this.invalidateCache_(),this.keyMap_.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),this.setValues(e,c))},this));this.ignoreCase_=a};goog.Uri.QueryData.prototype.extend=function(a){for(var b=0;b<arguments.length;b++){var c=arguments[b];goog.structs.forEach(c,function(d,e){this.add(e,d)},this)}};goog.net={};goog.net.EventType={COMPLETE:"complete",SUCCESS:"success",ERROR:"error",ABORT:"abort",READY:"ready",READY_STATE_CHANGE:"readystatechange",TIMEOUT:"timeout",INCREMENTAL_DATA:"incrementaldata",PROGRESS:"progress",DOWNLOAD_PROGRESS:"downloadprogress",UPLOAD_PROGRESS:"uploadprogress"};goog.json={};goog.json.USE_NATIVE_JSON=!1;goog.json.isValid=function(a){if(/^\s*$/.test(a))return!1;var b=/\\["\\\/bfnrtu]/g,c=/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,d=/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,e=/^[\],:{}\s\u2028\u2029]*$/;return e.test(a.replace(b,"@").replace(c,"]").replace(d,""))};goog.json.errorLogger_=function(){};goog.json.setErrorLogger=function(a){goog.json.errorLogger_=a}; goog.json.parse=goog.json.USE_NATIVE_JSON?goog.global.JSON.parse:function(a){try{return goog.global.JSON.parse(a)}catch(d){var b=d}a=String(a);if(goog.json.isValid(a))try{var c=eval("("+a+")");b&&goog.json.errorLogger_("Invalid JSON: "+a,b);return c}catch(d){}throw Error("Invalid JSON string: "+a);};goog.json.serialize=goog.json.USE_NATIVE_JSON?goog.global.JSON.stringify:function(a,b){return(new goog.json.Serializer(b)).serialize(a)};goog.json.Serializer=function(a){this.replacer_=a}; goog.json.Serializer.prototype.serialize=function(a){var b=[];this.serializeInternal(a,b);return b.join("")}; goog.json.Serializer.prototype.serializeInternal=function(a,b){if(a==null)b.push("null");else{if(typeof a=="object"){if(Array.isArray(a)){this.serializeArray(a,b);return}if(a instanceof String||a instanceof Number||a instanceof Boolean)a=a.valueOf();else{this.serializeObject_(a,b);return}}switch(typeof a){case "string":this.serializeString_(a,b);break;case "number":this.serializeNumber_(a,b);break;case "boolean":b.push(String(a));break;case "function":b.push("null");break;default:throw Error("Unknown type: "+ typeof a);}}};goog.json.Serializer.charToJsonCharCache_={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"};goog.json.Serializer.charsToReplace_=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g; goog.json.Serializer.prototype.serializeString_=function(a,b){b.push('"',a.replace(goog.json.Serializer.charsToReplace_,function(c){var d=goog.json.Serializer.charToJsonCharCache_[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),goog.json.Serializer.charToJsonCharCache_[c]=d);return d}),'"')};goog.json.Serializer.prototype.serializeNumber_=function(a,b){b.push(isFinite(a)&&!isNaN(a)?String(a):"null")}; goog.json.Serializer.prototype.serializeArray=function(a,b){var c=a.length;b.push("[");for(var d="",e=0;e<c;e++)b.push(d),d=a[e],this.serializeInternal(this.replacer_?this.replacer_.call(a,String(e),d):d,b),d=",";b.push("]")}; goog.json.Serializer.prototype.serializeObject_=function(a,b){b.push("{");var c="",d;for(d in a)if(Object.prototype.hasOwnProperty.call(a,d)){var e=a[d];typeof e!="function"&&(b.push(c),this.serializeString_(d,b),b.push(":"),this.serializeInternal(this.replacer_?this.replacer_.call(a,d,e):e,b),c=",")}b.push("}")};goog.json.hybrid={};goog.json.hybrid.stringify=goog.json.USE_NATIVE_JSON?goog.global.JSON.stringify:function(a){if(goog.global.JSON)try{return goog.global.JSON.stringify(a)}catch(b){}return goog.json.serialize(a)};goog.json.hybrid.parse_=function(a,b){if(goog.global.JSON)try{var c=goog.global.JSON.parse(a);goog.asserts.assert(typeof c=="object");return c}catch(d){}return b(a)};goog.json.hybrid.parse=goog.json.USE_NATIVE_JSON?goog.global.JSON.parse:function(a){return goog.json.hybrid.parse_(a,goog.json.parse)};goog.net.ErrorCode={NO_ERROR:0,ACCESS_DENIED:1,FILE_NOT_FOUND:2,FF_SILENT_ERROR:3,CUSTOM_ERROR:4,EXCEPTION:5,HTTP_ERROR:6,ABORT:7,TIMEOUT:8,OFFLINE:9}; goog.net.ErrorCode.getDebugMessage=function(a){switch(a){case goog.net.ErrorCode.NO_ERROR:return"No Error";case goog.net.ErrorCode.ACCESS_DENIED:return"Access denied to content document";case goog.net.ErrorCode.FILE_NOT_FOUND:return"File not found";case goog.net.ErrorCode.FF_SILENT_ERROR:return"Firefox silently errored";case goog.net.ErrorCode.CUSTOM_ERROR:return"Application custom error";case goog.net.ErrorCode.EXCEPTION:return"An exception occurred";case goog.net.ErrorCode.HTTP_ERROR:return"Http response at 400 or 500 level"; case goog.net.ErrorCode.ABORT:return"Request was aborted";case goog.net.ErrorCode.TIMEOUT:return"Request timed out";case goog.net.ErrorCode.OFFLINE:return"The resource is not available offline";default:return"Unrecognized error code"}};goog.net.HttpStatus={CONTINUE:100,SWITCHING_PROTOCOLS:101,OK:200,CREATED:201,ACCEPTED:202,NON_AUTHORITATIVE_INFORMATION:203,NO_CONTENT:204,RESET_CONTENT:205,PARTIAL_CONTENT:206,MULTI_STATUS:207,MULTIPLE_CHOICES:300,MOVED_PERMANENTLY:301,FOUND:302,SEE_OTHER:303,NOT_MODIFIED:304,USE_PROXY:305,TEMPORARY_REDIRECT:307,PERMANENT_REDIRECT:308,BAD_REQUEST:400,UNAUTHORIZED:401,PAYMENT_REQUIRED:402,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,NOT_ACCEPTABLE:406,PROXY_AUTHENTICATION_REQUIRED:407,REQUEST_TIMEOUT:408, CONFLICT:409,GONE:410,LENGTH_REQUIRED:411,PRECONDITION_FAILED:412,REQUEST_ENTITY_TOO_LARGE:413,REQUEST_URI_TOO_LONG:414,UNSUPPORTED_MEDIA_TYPE:415,REQUEST_RANGE_NOT_SATISFIABLE:416,EXPECTATION_FAILED:417,UNPROCESSABLE_ENTITY:422,LOCKED:423,FAILED_DEPENDENCY:424,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,REQUEST_HEADER_FIELDS_TOO_LARGE:431,CLIENT_CLOSED_REQUEST:499,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,HTTP_VERSION_NOT_SUPPORTED:505, INSUFFICIENT_STORAGE:507,NETWORK_AUTHENTICATION_REQUIRED:511,QUIRK_IE_NO_CONTENT:1223};goog.net.HttpStatus.isSuccess=function(a){switch(a){case goog.net.HttpStatus.OK:case goog.net.HttpStatus.CREATED:case goog.net.HttpStatus.ACCEPTED:case goog.net.HttpStatus.NO_CONTENT:case goog.net.HttpStatus.PARTIAL_CONTENT:case goog.net.HttpStatus.NOT_MODIFIED:case goog.net.HttpStatus.QUIRK_IE_NO_CONTENT:return!0;default:return!1}};goog.net.XhrLike=function(){};goog.net.XhrLike.prototype.open=function(){};goog.net.XhrLike.prototype.send=function(){};goog.net.XhrLike.prototype.abort=function(){};goog.net.XhrLike.prototype.setRequestHeader=function(){};goog.net.XhrLike.prototype.getResponseHeader=function(){};goog.net.XhrLike.prototype.getAllResponseHeaders=function(){};goog.net.XhrLike.prototype.setTrustToken=function(){};goog.net.XmlHttpFactory=function(){};goog.net.XmlHttp=function(){return goog.net.XmlHttp.factory_.createInstance()};goog.net.XmlHttp.ReadyState={UNINITIALIZED:0,LOADING:1,LOADED:2,INTERACTIVE:3,COMPLETE:4};goog.net.XmlHttp.setGlobalFactory=function(a){goog.net.XmlHttp.factory_=a};goog.net.DefaultXmlHttpFactory=function(){};goog.inherits(goog.net.DefaultXmlHttpFactory,goog.net.XmlHttpFactory);goog.net.DefaultXmlHttpFactory.prototype.createInstance=function(){return new XMLHttpRequest};goog.net.XmlHttp.setGlobalFactory(new goog.net.DefaultXmlHttpFactory);goog.net.XhrIo=function(a){goog.events.EventTarget.call(this);this.headers=new Map;this.xmlHttpFactory_=a||null;this.active_=!1;this.xhr_=null;this.lastError_=this.lastMethod_=this.lastUri_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.timeoutId_=null;this.responseType_=goog.net.XhrIo.ResponseType.DEFAULT;this.progressEventsEnabled_=this.withCredentials_=!1;this.attributionReportingOptions_=this.trustToken_=null};goog.inherits(goog.net.XhrIo,goog.events.EventTarget); goog.net.XhrIo.ResponseType={DEFAULT:"",TEXT:"text",DOCUMENT:"document",BLOB:"blob",ARRAY_BUFFER:"arraybuffer"};goog.net.XhrIo.prototype.logger_=goog.log.getLogger("goog.net.XhrIo");goog.net.XhrIo.CONTENT_TYPE_HEADER="Content-Type";goog.net.XhrIo.CONTENT_TRANSFER_ENCODING="Content-Transfer-Encoding";goog.net.XhrIo.HTTP_SCHEME_PATTERN=/^https?$/i;goog.net.XhrIo.METHODS_WITH_FORM_DATA=["POST","PUT"];goog.net.XhrIo.FORM_CONTENT_TYPE="application/x-www-form-urlencoded;charset=utf-8"; goog.net.XhrIo.sendInstances_=[];goog.net.XhrIo.send=function(a,b,c,d,e,f,g){var h=new goog.net.XhrIo;goog.net.XhrIo.sendInstances_.push(h);b&&h.listen(goog.net.EventType.COMPLETE,b);h.listenOnce(goog.net.EventType.READY,h.cleanupSend_);f&&h.setTimeoutInterval(f);g&&h.setWithCredentials(g);h.send(a,c,d,e);return h};goog.net.XhrIo.cleanup=function(){for(var a=goog.net.XhrIo.sendInstances_;a.length;)a.pop().dispose()}; goog.net.XhrIo.protectEntryPoints=function(a){goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_=a.protectEntryPoint(goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_)};goog.net.XhrIo.prototype.cleanupSend_=function(){this.dispose();module$contents$goog$array_remove(goog.net.XhrIo.sendInstances_,this)};goog.net.XhrIo.prototype.setTimeoutInterval=function(a){this.timeoutInterval_=Math.max(0,a)};goog.net.XhrIo.prototype.setWithCredentials=function(a){this.withCredentials_=a}; goog.net.XhrIo.prototype.setTrustToken=function(a){this.trustToken_=a};goog.net.XhrIo.prototype.setAttributionReporting=function(a){this.attributionReportingOptions_=a}; goog.net.XhrIo.prototype.send=function(a,b,c,d){if(this.xhr_)throw Error("[goog.net.XhrIo] Object is active with another request="+this.lastUri_+"; newUri="+a);b=b?b.toUpperCase():"GET";this.lastUri_=a;this.lastError_="";this.lastMethod_=b;this.errorDispatched_=!1;this.active_=!0;this.xhr_=this.createXhr();this.xhr_.onreadystatechange=(0,module$exports$google3$javascript$common$async$context$propagate.propagateAsyncContext)(goog.bind(this.onReadyStateChange_,this));this.progressEventsEnabled_&&"onprogress"in this.xhr_&&(this.xhr_.onprogress=(0,module$exports$google3$javascript$common$async$context$propagate.propagateAsyncContext)(goog.bind(function(g){this.onProgressHandler_(g,!0)},this)),this.xhr_.upload&&(this.xhr_.upload.onprogress=(0,module$exports$google3$javascript$common$async$context$propagate.propagateAsyncContext)(goog.bind(this.onProgressHandler_,this))));try{goog.log.fine(this.logger_,this.formatMsg_("Opening Xhr")),this.inOpen_=!0,this.xhr_.open(b,String(a),!0),this.inOpen_=!1}catch(g){goog.log.fine(this.logger_, this.formatMsg_("Error opening Xhr: "+g.message));this.error_(goog.net.ErrorCode.EXCEPTION,g);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,d[e]);else if(typeof d.keys==="function"&&typeof d.get==="function"){e=(0,$jscomp.makeIterator)(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(g){return goog.string.caseInsensitiveEquals(goog.net.XhrIo.CONTENT_TYPE_HEADER, g)});e=goog.global.FormData&&a instanceof goog.global.FormData;!module$contents$goog$array_contains(goog.net.XhrIo.METHODS_WITH_FORM_DATA,b)||d||e||c.set(goog.net.XhrIo.CONTENT_TYPE_HEADER,goog.net.XhrIo.FORM_CONTENT_TYPE);b=(0,$jscomp.makeIterator)(c);for(d=b.next();!d.done;d=b.next())d=d.value,c=(0,$jscomp.makeIterator)(d),d=c.next().value,c=c.next().value,this.xhr_.setRequestHeader(d,c);this.responseType_&&(this.xhr_.responseType=this.responseType_);"withCredentials"in this.xhr_&&this.xhr_.withCredentials!== this.withCredentials_&&(this.xhr_.withCredentials=this.withCredentials_);if("setTrustToken"in this.xhr_&&this.trustToken_)try{this.xhr_.setTrustToken(this.trustToken_)}catch(g){goog.log.fine(this.logger_,this.formatMsg_("Error SetTrustToken: "+g.message))}if("setAttributionReporting"in this.xhr_&&this.attributionReportingOptions_)try{this.xhr_.setAttributionReporting(this.attributionReportingOptions_)}catch(g){goog.log.fine(this.logger_,this.formatMsg_("Error SetAttributionReporting: "+g.message))}try{this.cleanUpTimeoutTimer_(), this.timeoutInterval_>0&&(goog.log.fine(this.logger_,this.formatMsg_("Will abort after "+this.timeoutInterval_+"ms if incomplete")),this.timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),goog.log.fine(this.logger_,this.formatMsg_("Sending request")),this.inSend_=!0,this.xhr_.send(a),this.inSend_=!1}catch(g){goog.log.fine(this.logger_,this.formatMsg_("Send error: "+g.message)),this.error_(goog.net.ErrorCode.EXCEPTION,g)}}; goog.net.XhrIo.prototype.createXhr=function(){return this.xmlHttpFactory_?this.xmlHttpFactory_.createInstance():goog.net.XmlHttp()};goog.net.XhrIo.prototype.timeout_=function(){typeof goog!="undefined"&&this.xhr_&&(this.lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",goog.log.fine(this.logger_,this.formatMsg_(this.lastError_)),this.dispatchEvent(goog.net.EventType.TIMEOUT),this.abort(goog.net.ErrorCode.TIMEOUT))}; goog.net.XhrIo.prototype.error_=function(a,b){this.active_=!1;this.xhr_&&(this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1);this.lastError_=b;this.dispatchErrors_();this.cleanUpXhr_()};goog.net.XhrIo.prototype.dispatchErrors_=function(){this.errorDispatched_||(this.errorDispatched_=!0,this.dispatchEvent(goog.net.EventType.COMPLETE),this.dispatchEvent(goog.net.EventType.ERROR))}; goog.net.XhrIo.prototype.abort=function(){this.xhr_&&this.active_&&(goog.log.fine(this.logger_,this.formatMsg_("Aborting")),this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1,this.dispatchEvent(goog.net.EventType.COMPLETE),this.dispatchEvent(goog.net.EventType.ABORT),this.cleanUpXhr_())};goog.net.XhrIo.prototype.disposeInternal=function(){this.xhr_&&(this.active_&&(this.active_=!1,this.inAbort_=!0,this.xhr_.abort(),this.inAbort_=!1),this.cleanUpXhr_(!0));goog.net.XhrIo.superClass_.disposeInternal.call(this)}; goog.net.XhrIo.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)this.onReadyStateChangeHelper_();else this.onReadyStateChangeEntryPoint_()};goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_=function(){this.onReadyStateChangeHelper_()}; goog.net.XhrIo.prototype.onReadyStateChangeHelper_=function(){if(this.active_&&typeof goog!="undefined")if(this.inSend_&&this.getReadyState()==goog.net.XmlHttp.ReadyState.COMPLETE)setTimeout(this.onReadyStateChange_.bind(this),0);else if(this.dispatchEvent(goog.net.EventType.READY_STATE_CHANGE),this.isComplete()){goog.log.fine(this.logger_,this.formatMsg_("Request complete"));this.active_=!1;try{this.isSuccess()?(this.dispatchEvent(goog.net.EventType.COMPLETE),this.dispatchEvent(goog.net.EventType.SUCCESS)): (this.lastError_=this.getStatusText()+" ["+this.getStatus()+"]",this.dispatchErrors_())}finally{this.cleanUpXhr_()}}};goog.net.XhrIo.prototype.onProgressHandler_=function(a,b){goog.asserts.assert(a.type===goog.net.EventType.PROGRESS,"goog.net.EventType.PROGRESS is of the same type as raw XHR progress.");this.dispatchEvent(goog.net.XhrIo.buildProgressEvent_(a,goog.net.EventType.PROGRESS));this.dispatchEvent(goog.net.XhrIo.buildProgressEvent_(a,b?goog.net.EventType.DOWNLOAD_PROGRESS:goog.net.EventType.UPLOAD_PROGRESS))}; goog.net.XhrIo.buildProgressEvent_=function(a,b){return{type:b,lengthComputable:a.lengthComputable,loaded:a.loaded,total:a.total}};goog.net.XhrIo.prototype.cleanUpXhr_=function(a){if(this.xhr_){this.cleanUpTimeoutTimer_();var b=this.xhr_;this.xhr_=null;a||this.dispatchEvent(goog.net.EventType.READY);try{b.onreadystatechange=null}catch(c){goog.log.error(this.logger_,"Problem encountered resetting onreadystatechange: "+c.message)}}}; goog.net.XhrIo.prototype.cleanUpTimeoutTimer_=function(){this.timeoutId_&&(clearTimeout(this.timeoutId_),this.timeoutId_=null)};goog.net.XhrIo.prototype.isActive=function(){return!!this.xhr_};goog.net.XhrIo.prototype.isComplete=function(){return this.getReadyState()==goog.net.XmlHttp.ReadyState.COMPLETE};goog.net.XhrIo.prototype.isSuccess=function(){var a=this.getStatus();return goog.net.HttpStatus.isSuccess(a)||a===0&&!this.isLastUriEffectiveSchemeHttp_()}; goog.net.XhrIo.prototype.isLastUriEffectiveSchemeHttp_=function(){var a=goog.uri.utils.getEffectiveScheme(String(this.lastUri_));return goog.net.XhrIo.HTTP_SCHEME_PATTERN.test(a)};goog.net.XhrIo.prototype.getReadyState=function(){return this.xhr_?this.xhr_.readyState:goog.net.XmlHttp.ReadyState.UNINITIALIZED};goog.net.XhrIo.prototype.getStatus=function(){try{return this.getReadyState()>goog.net.XmlHttp.ReadyState.LOADED?this.xhr_.status:-1}catch(a){return-1}}; goog.net.XhrIo.prototype.getStatusText=function(){try{return this.getReadyState()>goog.net.XmlHttp.ReadyState.LOADED?this.xhr_.statusText:""}catch(a){return goog.log.fine(this.logger_,"Can not get status: "+a.message),""}};goog.net.XhrIo.prototype.getLastUri=function(){return String(this.lastUri_)};goog.net.XhrIo.prototype.getResponseText=function(){try{return this.xhr_?this.xhr_.responseText:""}catch(a){return goog.log.fine(this.logger_,"Can not get responseText: "+a.message),""}}; goog.net.XhrIo.prototype.getResponseJson=function(a){if(this.xhr_){var b=this.xhr_.responseText;a&&b.indexOf(a)==0&&(b=b.substring(a.length));return goog.json.hybrid.parse(b)}};goog.net.XhrIo.prototype.getResponseHeader=function(a){if(this.xhr_&&this.isComplete())return a=this.xhr_.getResponseHeader(a),a===null?void 0:a};goog.net.XhrIo.prototype.getAllResponseHeaders=function(){return this.xhr_&&this.getReadyState()>=goog.net.XmlHttp.ReadyState.LOADED?this.xhr_.getAllResponseHeaders()||"":""}; goog.net.XhrIo.prototype.formatMsg_=function(a){return a+" ["+this.lastMethod_+" "+this.lastUri_+" "+this.getStatus()+"]"};goog.debug.entryPointRegistry.register(function(a){goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_=a(goog.net.XhrIo.prototype.onReadyStateChangeEntryPoint_)});var ocean={layout:{}};function module$contents$ocean$layout$LayoutItem_LayoutItem(){}module$contents$ocean$layout$LayoutItem_LayoutItem.prototype.setLeft=function(a){this.left_=a};module$contents$ocean$layout$LayoutItem_LayoutItem.prototype.setTop=function(a){this.top_=a};module$contents$ocean$layout$LayoutItem_LayoutItem.prototype.setWidth=function(a){this.width_=a};module$contents$ocean$layout$LayoutItem_LayoutItem.prototype.setSize=function(a){this.width_=a.width;this.height_=a.height}; module$contents$ocean$layout$LayoutItem_LayoutItem.prototype.getSize=function(){return new goog.math.Size(this.width_,this.height_)};module$contents$ocean$layout$LayoutItem_LayoutItem.prototype.setHeight=function(a){this.height_=a};module$contents$ocean$layout$LayoutItem_LayoutItem.prototype.getLeft=function(){return this.left_};module$contents$ocean$layout$LayoutItem_LayoutItem.prototype.getTop=function(){return this.top_};module$contents$ocean$layout$LayoutItem_LayoutItem.prototype.getWidth=function(){return this.width_}; module$contents$ocean$layout$LayoutItem_LayoutItem.prototype.getHeight=function(){return this.height_};module$contents$ocean$layout$LayoutItem_LayoutItem.prototype.getBottom=function(){return this.getTop()+this.getSize().height};module$contents$ocean$layout$LayoutItem_LayoutItem.prototype.getPosition=function(){return new goog.math.Coordinate(this.left_,this.top_)}; module$contents$ocean$layout$LayoutItem_LayoutItem.prototype.getRect=function(){return new goog.math.Rect(this.left_,this.top_,this.width_,this.height_)};module$contents$ocean$layout$LayoutItem_LayoutItem.prototype.getBox=function(){return this.getRect().toBox()};ocean.layout.LayoutItem=module$contents$ocean$layout$LayoutItem_LayoutItem;goog.functions={};goog.functions.constant=function(a){return function(){return a}};goog.functions.FALSE=function(){return!1};goog.functions.TRUE=function(){return!0};goog.functions.NULL=function(){return null};goog.functions.UNDEFINED=function(){};goog.functions.EMPTY=goog.functions.UNDEFINED;goog.functions.identity=function(a){return a};goog.functions.error=function(a){return function(){throw Error(a);}};goog.functions.fail=function(a){return function(){throw a;}}; goog.functions.lock=function(a,b){b=b||0;return function(){var c=this;return a.apply(c,Array.prototype.slice.call(arguments,0,b))}};goog.functions.nth=function(a){return function(){return arguments[a]}};goog.functions.partialRight=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=this;d===goog.global&&(d=void 0);var e=Array.prototype.slice.call(arguments);e.push.apply(e,c);return a.apply(d,e)}}; goog.functions.withReturnValue=function(a,b){return goog.functions.sequence(a,goog.functions.constant(b))};goog.functions.equalTo=function(a,b){return function(c){return b?a==c:a===c}};goog.functions.compose=function(a,b){var c=arguments,d=c.length;return function(){var e=this,f;d&&(f=c[d-1].apply(e,arguments));for(var g=d-2;g>=0;g--)f=c[g].call(e,f);return f}};goog.functions.sequence=function(a){var b=arguments,c=b.length;return function(){for(var d=this,e,f=0;f<c;f++)e=b[f].apply(d,arguments);return e}}; goog.functions.and=function(a){var b=arguments,c=b.length;return function(){for(var d=this,e=0;e<c;e++)if(!b[e].apply(d,arguments))return!1;return!0}};goog.functions.or=function(a){var b=arguments,c=b.length;return function(){for(var d=this,e=0;e<c;e++)if(b[e].apply(d,arguments))return!0;return!1}};goog.functions.not=function(a){return function(){var b=this;return!a.apply(b,arguments)}}; goog.functions.create=function(a,b){var c=function(){};c.prototype=a.prototype;c=new c;a.apply(c,Array.prototype.slice.call(arguments,1));return c};goog.functions.CACHE_RETURN_VALUE=!0;goog.functions.cacheReturnValue=function(a){var b=!1,c;return function(){if(!goog.functions.CACHE_RETURN_VALUE)return a();b||(c=a(),b=!0);return c}};goog.functions.once=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}}; goog.functions.debounce=function(a,b,c){var d=0;return function(e){goog.global.clearTimeout(d);var f=arguments;d=goog.global.setTimeout(function(){a.apply(c,f)},b)}};goog.functions.throttle=function(a,b,c){var d=0,e=!1,f=[],g=function(){d=0;e&&(e=!1,h())},h=function(){d=goog.global.setTimeout(g,b);var k=f;f=[];a.apply(c,k)};return function(k){f=arguments;d?e=!0:h()}};goog.functions.rateLimit=function(a,b,c){var d=0,e=function(){d=0};return function(f){d||(d=goog.global.setTimeout(e,b),a.apply(c,arguments))}}; goog.functions.isFunction=function(a){return typeof a==="function"};ocean.layout.Layout=function(){this.items=[]};ocean.layout.Layout.ZoomMode={FIXED_HEIGHT:"fixed_height",FIXED_WIDTH:"fixed_width"};ocean.layout.Layout.prototype.addItem=function(a){this.items.push(a)};ocean.layout.Layout.prototype.getSize=function(){var a=this.getWidth(),b=this.getHeight();return a===null||b===null?null:new goog.math.Size(a,b)};ocean.layout.Layout.prototype.getItems=function(a){return this.items.filter(a||goog.functions.TRUE)}; ocean.layout.Layout.prototype.getItem=function(a){for(var b=0;b<this.items.length;b++){var c=this.items[b];if(a(c))return c}return null};ocean.layout.Layout.prototype.getItemAtYCoordinate=function(a){return this.getItem(function(b){return b.getTop()<=a&&b.getBottom()>=a})};ocean.layout.Layout.prototype.getItemAtCoordinate=function(a){return this.items.find(function(b){return b.getBox().contains(a)})}; ocean.layout.Layout.prototype.getClosestItem=function(a){for(var b=Number.POSITIVE_INFINITY,c=this.getItems(),d=c[0],e=0;e<c.length;e++){var f=c[e],g=f.getBox();g=goog.math.Box.distance(g,a);if(g<b){b=g;if(g==0)return f;d=f}}return d};ocean.layout.BaseGridLayout=function(){ocean.layout.Layout.call(this);this.cells=[]};goog.inherits(ocean.layout.BaseGridLayout,ocean.layout.Layout);ocean.layout.BaseGridLayout.prototype.marginLeft=0;ocean.layout.BaseGridLayout.prototype.marginTop=0;ocean.layout.BaseGridLayout.prototype.marginRight=0;ocean.layout.BaseGridLayout.prototype.marginBottom=0;ocean.layout.BaseGridLayout.prototype.horizontalSpacing=0;ocean.layout.BaseGridLayout.prototype.verticalSpacing=0; ocean.layout.BaseGridLayout.prototype.verticalAlignMiddle=!1;ocean.layout.BaseGridLayout.prototype.getWidth=function(){return this.width_};ocean.layout.BaseGridLayout.prototype.getHeight=function(){return this.height_}; ocean.layout.BaseGridLayout.prototype.calculate=function(){this.fillCells();for(var a=this.marginLeft,b={},c=0;c<this.columns_;b={columnWidth:void 0},c++)b.columnWidth=this.getColumnWidth(c),this.getColumn(c).forEach(function(e){return function(f){f&&f.setLeft(a+Math.round((e.columnWidth-f.getSize().width)/2))}}(b)),a+=b.columnWidth+this.horizontalSpacing;this.width_=a+this.marginRight;var d=this.marginTop;b={};for(c=0;c<this.rows_;b={rowHeight:void 0},c++)b.rowHeight=this.getRowHeight(c),this.getRow(c).forEach(function(e){return function(f){f&& (this.verticalAlignMiddle?f.setTop(d+Math.round((e.rowHeight-f.getSize().height)/2)):f.setTop(d))}}(b)),d+=b.rowHeight+this.verticalSpacing;this.height_=d+this.marginBottom};ocean.layout.BaseGridLayout.prototype.getColumn=function(a){return this.cells[a]};ocean.layout.BaseGridLayout.prototype.getRow=function(a){return this.cells.map(function(b){return b[a]})}; ocean.layout.BaseGridLayout.prototype.getColumnWidth=function(a){var b=0;this.getColumn(a).forEach(function(c){c&&(b=Math.max(b,c.getSize().width))});return b};ocean.layout.BaseGridLayout.prototype.getRowHeight=function(a){var b=0;this.getRow(a).forEach(function(c){c&&(b=Math.max(b,c.getSize().height))});return b};var module$contents$ocean$layout$LayoutPage_LayoutPage=function(a){this.pageInfo_=a};$jscomp.inherits(module$contents$ocean$layout$LayoutPage_LayoutPage,module$contents$ocean$layout$LayoutItem_LayoutItem);module$contents$ocean$layout$LayoutPage_LayoutPage.prototype.getPageInfo=function(){return this.pageInfo_}; module$contents$ocean$layout$LayoutPage_LayoutPage.prototype.setSize=function(a){a.width==void 0?(this.height_=a.height,this.width_=Math.round(a.height*this.pageInfo_.getRatio())):a.height==void 0?(this.width_=a.width,this.height_=Math.round(a.width/this.pageInfo_.getRatio())):(this.width_=a.width,this.height_=a.height)};module$contents$ocean$layout$LayoutPage_LayoutPage.prototype.setWidth=function(a){this.width_=a;this.height_=Math.round(a/this.pageInfo_.getRatio())}; module$contents$ocean$layout$LayoutPage_LayoutPage.prototype.setHeight=function(a){this.height_=a;this.width_=Math.round(a*this.pageInfo_.getRatio())};ocean.layout.LayoutPage=module$contents$ocean$layout$LayoutPage_LayoutPage;goog.async={};var module$contents$goog$async$FreeList_FreeList=function(a,b,c){this.limit_=c;this.create_=a;this.reset_=b;this.occupants_=0;this.head_=null};module$contents$goog$async$FreeList_FreeList.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var a=this.head_;this.head_=a.next;a.next=null}else a=this.create_();return a}; module$contents$goog$async$FreeList_FreeList.prototype.put=function(a){this.reset_(a);this.occupants_<this.limit_&&(this.occupants_++,a.next=this.head_,this.head_=a)};goog.async.FreeList=module$contents$goog$async$FreeList_FreeList;goog.async.nextTick=function(a,b){var c=a;b&&(c=goog.bind(a,b));c=goog.async.nextTick.wrapCallback_(c);goog.async.nextTick.USE_SET_TIMEOUT?setTimeout(c,0):(c=module$exports$google3$javascript$common$async$context$propagate.propagateAsyncContext(c),goog.DEBUG&&typeof goog.global.setImmediate==="function"&&goog.async.nextTick.useSetImmediate_()?goog.global.setImmediate(c):(goog.async.nextTick.nextTickImpl||(goog.async.nextTick.nextTickImpl=goog.async.nextTick.getNextTickImpl_()),goog.async.nextTick.nextTickImpl(c)))}; goog.async.nextTick.USE_SET_TIMEOUT=!1;goog.async.nextTick.useSetImmediate_=function(){return goog.global.Window&&goog.global.Window.prototype&&goog.global.Window.prototype.setImmediate==goog.global.setImmediate?!1:!0}; goog.async.nextTick.getNextTickImpl_=function(){if(typeof MessageChannel!=="undefined"){var a=new MessageChannel,b={},c=b;a.port1.onmessage=function(){if(b.next!==void 0){b=b.next;var d=b.cb;b.cb=null;d()}};return function(d){c.next={cb:d};c=c.next;a.port2.postMessage(0)}}return function(d){goog.global.setTimeout(d,0)}};goog.async.nextTick.wrapCallback_=function(a){return a};goog.debug.entryPointRegistry.register(function(a){goog.async.nextTick.wrapCallback_=a});function module$contents$goog$async$throwException_throwException(a){goog.global.setTimeout(function(){throw a;},0)}goog.async.throwException=module$contents$goog$async$throwException_throwException;var module$contents$goog$async$WorkQueue_WorkQueue=function(){this.workTail_=this.workHead_=null};module$contents$goog$async$WorkQueue_WorkQueue.prototype.add=function(a,b){var c=this.getUnusedItem_();c.set(a,b);this.workTail_?this.workTail_.next=c:((0,goog.asserts.assert)(!this.workHead_),this.workHead_=c);this.workTail_=c}; module$contents$goog$async$WorkQueue_WorkQueue.prototype.remove=function(){var a=null;this.workHead_&&(a=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),a.next=null);return a};module$contents$goog$async$WorkQueue_WorkQueue.prototype.returnUnused=function(a){module$contents$goog$async$WorkQueue_WorkQueue.freelist_.put(a)};module$contents$goog$async$WorkQueue_WorkQueue.prototype.getUnusedItem_=function(){return module$contents$goog$async$WorkQueue_WorkQueue.freelist_.get()}; module$contents$goog$async$WorkQueue_WorkQueue.DEFAULT_MAX_UNUSED=100;module$contents$goog$async$WorkQueue_WorkQueue.freelist_=new module$contents$goog$async$FreeList_FreeList(function(){return new module$contents$goog$async$WorkQueue_WorkItem},function(a){return a.reset()},module$contents$goog$async$WorkQueue_WorkQueue.DEFAULT_MAX_UNUSED);var module$contents$goog$async$WorkQueue_WorkItem=function(){this.next=this.scope=this.fn=null}; module$contents$goog$async$WorkQueue_WorkItem.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};module$contents$goog$async$WorkQueue_WorkItem.prototype.reset=function(){this.next=this.scope=this.fn=null};goog.async.WorkQueue=module$contents$goog$async$WorkQueue_WorkQueue;goog.debug.asyncStackTag={};var module$contents$goog$debug$asyncStackTag_createTask=goog.DEBUG&&goog.global.console&&goog.global.console.createTask?goog.global.console.createTask.bind(goog.global.console):void 0,module$contents$goog$debug$asyncStackTag_CONSOLE_TASK_SYMBOL=module$contents$goog$debug$asyncStackTag_createTask?Symbol("consoleTask"):void 0; function module$contents$goog$debug$asyncStackTag_wrap(a,b){function c(){var h=$jscomp.getRestArguments.apply(0,arguments),k=this;return g.run(function(){return a.call.apply(a,[k].concat((0,$jscomp.arrayFromIterable)(h)))})}b=b===void 0?"anonymous":b;if(!goog.DEBUG||module$contents$goog$debug$asyncStackTag_CONSOLE_TASK_SYMBOL&&a[module$contents$goog$debug$asyncStackTag_CONSOLE_TASK_SYMBOL])return a;var d=a,e,f=(e=module$contents$goog$debug$asyncStackTag_testNameProvider)==null?void 0:e();a=function(){var h= $jscomp.getRestArguments.apply(0,arguments),k,l=(k=module$contents$goog$debug$asyncStackTag_testNameProvider)==null?void 0:k();if(f!==l)throw Error(b+" was scheduled in '"+f+"' but called in '"+l+"'.\nMake sure your test awaits all async calls.\n\nTIP: To help investigate, debug the test in Chrome and look at the async portion\nof the call stack to see what originally scheduled the callback. Then, make the\ntest wait for the relevant asynchronous work to finish.");return d.call.apply(d,[this].concat((0,$jscomp.arrayFromIterable)(h)))}; if(!module$contents$goog$debug$asyncStackTag_createTask)return a;var g=module$contents$goog$debug$asyncStackTag_createTask(a.name||b);c[(0,goog.asserts.assertExists)(module$contents$goog$debug$asyncStackTag_CONSOLE_TASK_SYMBOL)]=g;return c}goog.debug.asyncStackTag.wrap=module$contents$goog$debug$asyncStackTag_wrap;var module$contents$goog$debug$asyncStackTag_testNameProvider; goog.debug.asyncStackTag.setTestNameProvider=function(a){if(!goog.DEBUG)throw Error("This feature is debug-only");module$contents$goog$debug$asyncStackTag_testNameProvider=a};goog.debug.asyncStackTag.getTestNameProvider=function(){if(!goog.DEBUG)throw Error("This feature is debug-only");return module$contents$goog$debug$asyncStackTag_testNameProvider};var module$contents$goog$async$run_schedule,module$contents$goog$async$run_workQueueScheduled=!1,module$contents$goog$async$run_workQueue=new module$contents$goog$async$WorkQueue_WorkQueue,module$contents$goog$async$run_run=function(a,b){a=module$contents$goog$debug$asyncStackTag_wrap(a,"goog.async.run");module$contents$goog$async$run_schedule||module$contents$goog$async$run_initializeRunner();module$contents$goog$async$run_workQueueScheduled||(module$contents$goog$async$run_schedule(),module$contents$goog$async$run_workQueueScheduled= !0);module$contents$goog$async$run_workQueue.add(a,b)},module$contents$goog$async$run_initializeRunner=function(){var a=Promise.resolve(void 0);module$contents$goog$async$run_schedule=function(){a.then(module$contents$goog$async$run_processWorkQueueInternal)}}; function module$contents$goog$async$run_processWorkQueueInternal(){for(var a;a=module$contents$goog$async$run_workQueue.remove();){try{a.fn.call(a.scope)}catch(b){module$contents$goog$async$throwException_throwException(b)}module$contents$goog$async$run_workQueue.returnUnused(a)}module$contents$goog$async$run_workQueueScheduled=!1}goog.async.run=module$contents$goog$async$run_run;goog.promise={};var module$contents$goog$promise$Resolver_Resolver=function(){};goog.promise.Resolver=module$contents$goog$promise$Resolver_Resolver;function module$contents$goog$Thenable_Thenable(){}module$contents$goog$Thenable_Thenable.prototype.then=function(){};module$contents$goog$Thenable_Thenable.IMPLEMENTED_BY_PROP="$goog_Thenable";module$contents$goog$Thenable_Thenable.addImplementation=function(a){a.prototype[module$contents$goog$Thenable_Thenable.IMPLEMENTED_BY_PROP]=!0};module$contents$goog$Thenable_Thenable.isImplementedBy=function(a){if(!a)return!1;try{return!!a[module$contents$goog$Thenable_Thenable.IMPLEMENTED_BY_PROP]}catch(b){return!1}}; goog.Thenable=module$contents$goog$Thenable_Thenable;goog.Promise=function(a,b){this.state_=goog.Promise.State_.PENDING;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.executing_=!1;goog.Promise.UNHANDLED_REJECTION_DELAY>0?this.unhandledRejectionId_=0:goog.Promise.UNHANDLED_REJECTION_DELAY==0&&(this.hadUnhandledRejection_=!1);goog.Promise.LONG_STACK_TRACES&&(this.stack_=[],this.addStackTrace_(Error("created")),this.currentStep_=0);if(a!=goog.functions.UNDEFINED)try{var c=this;a.call(b,function(d){c.resolve_(goog.Promise.State_.FULFILLED, d)},function(d){if(goog.DEBUG&&!(d instanceof goog.Promise.CancellationError))try{if(d instanceof Error)throw d;throw Error("Promise rejected.");}catch(e){}c.resolve_(goog.Promise.State_.REJECTED,d)})}catch(d){this.resolve_(goog.Promise.State_.REJECTED,d)}};goog.Promise.wrap_=module$exports$google3$javascript$common$async$context$propagate.propagateAsyncContext;goog.Promise.LONG_STACK_TRACES=!1;goog.Promise.UNHANDLED_REJECTION_DELAY=0;goog.Promise.State_={PENDING:0,BLOCKED:1,FULFILLED:2,REJECTED:3}; goog.Promise.CallbackEntry_=function(){this.next=this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};goog.Promise.CallbackEntry_.prototype.reset=function(){this.context=this.onRejected=this.onFulfilled=this.child=null;this.always=!1};goog.Promise.DEFAULT_MAX_UNUSED=100;goog.Promise.freelist_=new module$contents$goog$async$FreeList_FreeList(function(){return new goog.Promise.CallbackEntry_},function(a){a.reset()},goog.Promise.DEFAULT_MAX_UNUSED); goog.Promise.getCallbackEntry_=function(a,b,c){var d=goog.Promise.freelist_.get();d.onFulfilled=a;d.onRejected=b;d.context=c;return d};goog.Promise.returnEntry_=function(a){goog.Promise.freelist_.put(a)};goog.Promise.resolve=function(a){if(a instanceof goog.Promise)return a;var b=new goog.Promise(goog.functions.UNDEFINED);b.resolve_(goog.Promise.State_.FULFILLED,a);return b};goog.Promise.reject=function(a){return new goog.Promise(function(b,c){c(a)})}; goog.Promise.resolveThen_=function(a,b,c){(c=goog.Promise.maybeThen_(a,b,c,null))||module$contents$goog$async$run_run(goog.partial(b,a))};goog.Promise.race=function(a){return new goog.Promise(function(b,c){a.length||b(void 0);for(var d,e=0;e<a.length;e++)d=a[e],goog.Promise.resolveThen_(d,b,c)})}; goog.Promise.all=function(a){return new goog.Promise(function(b,c){var d=a.length,e=[];if(d)for(var f=function(l,m){d--;e[l]=m;d==0&&b(e)},g=function(l){c(l)},h,k=0;k<a.length;k++)h=a[k],goog.Promise.resolveThen_(h,goog.partial(f,k),g);else b(e)})}; goog.Promise.allSettled=function(a){return new goog.Promise(function(b){var c=a.length,d=[];if(c)for(var e=function(h,k,l){c--;d[h]=k?{fulfilled:!0,value:l}:{fulfilled:!1,reason:l};c==0&&b(d)},f,g=0;g<a.length;g++)f=a[g],goog.Promise.resolveThen_(f,goog.partial(e,g,!0),goog.partial(e,g,!1));else b(d)})}; goog.Promise.firstFulfilled=function(a){return new goog.Promise(function(b,c){var d=a.length,e=[];if(d)for(var f=function(l){b(l)},g=function(l,m){d--;e[l]=m;d==0&&c(e)},h,k=0;k<a.length;k++)h=a[k],goog.Promise.resolveThen_(h,f,goog.partial(g,k));else b(void 0)})};goog.Promise.withResolver=function(){var a,b,c=new goog.Promise(function(d,e){a=d;b=e});return new goog.Promise.Resolver_(c,a,b)}; goog.Promise.prototype.then=function(a,b,c){a!=null&&goog.asserts.assertFunction(a,"opt_onFulfilled should be a function.");b!=null&&goog.asserts.assertFunction(b,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");goog.Promise.LONG_STACK_TRACES&&this.addStackTrace_(Error("then"));return this.addChildPromise_(module$exports$google3$javascript$common$async$context$propagate.propagateAsyncContext(typeof a==="function"?a:null),module$exports$google3$javascript$common$async$context$propagate.propagateAsyncContext(typeof b=== "function"?b:null),c)};module$contents$goog$Thenable_Thenable.addImplementation(goog.Promise); goog.Promise.prototype.thenVoid=function(a,b,c){a!=null&&goog.asserts.assertFunction(a,"opt_onFulfilled should be a function.");b!=null&&goog.asserts.assertFunction(b,"opt_onRejected should be a function. Did you pass opt_context as the second argument instead of the third?");goog.Promise.LONG_STACK_TRACES&&this.addStackTrace_(Error("then"));this.addCallbackEntry_(goog.Promise.getCallbackEntry_(a||goog.functions.UNDEFINED,b||null,c))}; goog.Promise.prototype.thenCatch=function(a,b){goog.Promise.LONG_STACK_TRACES&&this.addStackTrace_(Error("thenCatch"));return this.addChildPromise_(null,module$exports$google3$javascript$common$async$context$propagate.propagateAsyncContext(a),b)};goog.Promise.prototype.catch=goog.Promise.prototype.thenCatch; goog.Promise.prototype.cancel=function(a){if(this.state_==goog.Promise.State_.PENDING){var b=new goog.Promise.CancellationError(a);module$contents$goog$async$run_run(function(){this.cancelInternal_(b)},this)}};goog.Promise.prototype.cancelInternal_=function(a){this.state_==goog.Promise.State_.PENDING&&(this.parent_?(this.parent_.cancelChild_(this,a),this.parent_=null):this.resolve_(goog.Promise.State_.REJECTED,a))}; goog.Promise.prototype.cancelChild_=function(a,b){if(this.callbackEntries_){for(var c=0,d=null,e=null,f=this.callbackEntries_;f&&(f.always||(c++,f.child==a&&(d=f),!(d&&c>1)));f=f.next)d||(e=f);d&&(this.state_==goog.Promise.State_.PENDING&&c==1?this.cancelInternal_(b):(e?this.removeEntryAfter_(e):this.popEntry_(),this.executeCallback_(d,goog.Promise.State_.REJECTED,b)))}}; goog.Promise.prototype.addCallbackEntry_=function(a){this.hasEntry_()||this.state_!=goog.Promise.State_.FULFILLED&&this.state_!=goog.Promise.State_.REJECTED||this.scheduleCallbacks_();this.queueEntry_(a)}; goog.Promise.prototype.addChildPromise_=function(a,b,c){a&&(a=module$contents$goog$debug$asyncStackTag_wrap(a,"goog.Promise.then"));b&&(b=module$contents$goog$debug$asyncStackTag_wrap(b,"goog.Promise.then"));var d=goog.Promise.getCallbackEntry_(null,null,null);d.child=new goog.Promise(function(e,f){d.onFulfilled=a?function(g){try{var h=a.call(c,g);e(h)}catch(k){f(k)}}:e;d.onRejected=b?function(g){try{var h=b.call(c,g);h===void 0&&g instanceof goog.Promise.CancellationError?f(g):e(h)}catch(k){f(k)}}: f});d.child.parent_=this;this.addCallbackEntry_(d);return d.child};goog.Promise.prototype.unblockAndFulfill_=function(a){goog.asserts.assert(this.state_==goog.Promise.State_.BLOCKED);this.state_=goog.Promise.State_.PENDING;this.resolve_(goog.Promise.State_.FULFILLED,a)};goog.Promise.prototype.unblockAndReject_=function(a){goog.asserts.assert(this.state_==goog.Promise.State_.BLOCKED);this.state_=goog.Promise.State_.PENDING;this.resolve_(goog.Promise.State_.REJECTED,a)}; goog.Promise.prototype.resolve_=function(a,b){if(this.state_==goog.Promise.State_.PENDING){this===b&&(a=goog.Promise.State_.REJECTED,b=new TypeError("Promise cannot resolve to itself"));this.state_=goog.Promise.State_.BLOCKED;var c=goog.Promise.maybeThen_(b,this.unblockAndFulfill_,this.unblockAndReject_,this);c||(this.result_=b,this.state_=a,this.parent_=null,this.scheduleCallbacks_(),a!=goog.Promise.State_.REJECTED||b instanceof goog.Promise.CancellationError||goog.Promise.addUnhandledRejection_(this, b))}};goog.Promise.maybeThen_=function(a,b,c,d){if(a instanceof goog.Promise)return a.thenVoid(b,c,d),!0;if(module$contents$goog$Thenable_Thenable.isImplementedBy(a))return a.then(b,c,d),!0;if(goog.isObject(a))try{var e=a.then;if(typeof e==="function")return goog.Promise.tryThen_(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};goog.Promise.tryThen_=function(a,b,c,d,e){var f=!1,g=function(k){f||(f=!0,c.call(e,k))},h=function(k){f||(f=!0,d.call(e,k))};try{b.call(a,g,h)}catch(k){h(k)}}; goog.Promise.prototype.scheduleCallbacks_=function(){this.executing_||(this.executing_=!0,module$contents$goog$async$run_run(this.executeCallbacks_,this))};goog.Promise.prototype.hasEntry_=function(){return!!this.callbackEntries_};goog.Promise.prototype.queueEntry_=function(a){goog.asserts.assert(a.onFulfilled!=null);this.callbackEntriesTail_?this.callbackEntriesTail_.next=a:this.callbackEntries_=a;this.callbackEntriesTail_=a}; goog.Promise.prototype.popEntry_=function(){var a=null;this.callbackEntries_&&(a=this.callbackEntries_,this.callbackEntries_=a.next,a.next=null);this.callbackEntries_||(this.callbackEntriesTail_=null);a!=null&&goog.asserts.assert(a.onFulfilled!=null);return a};goog.Promise.prototype.removeEntryAfter_=function(a){goog.asserts.assert(this.callbackEntries_);goog.asserts.assert(a!=null);a.next==this.callbackEntriesTail_&&(this.callbackEntriesTail_=a);a.next=a.next.next}; goog.Promise.prototype.executeCallbacks_=function(){for(var a;a=this.popEntry_();)goog.Promise.LONG_STACK_TRACES&&this.currentStep_++,this.executeCallback_(a,this.state_,this.result_);this.executing_=!1}; goog.Promise.prototype.executeCallback_=function(a,b,c){b==goog.Promise.State_.REJECTED&&a.onRejected&&!a.always&&this.removeUnhandledRejection_();if(a.child)a.child.parent_=null,goog.Promise.invokeCallback_(a,b,c);else try{a.always?a.onFulfilled.call(a.context):goog.Promise.invokeCallback_(a,b,c)}catch(d){goog.Promise.handleRejection_.call(null,d)}goog.Promise.returnEntry_(a)}; goog.Promise.invokeCallback_=function(a,b,c){b==goog.Promise.State_.FULFILLED?a.onFulfilled.call(a.context,c):a.onRejected&&a.onRejected.call(a.context,c)};goog.Promise.prototype.addStackTrace_=function(a){if(goog.Promise.LONG_STACK_TRACES&&typeof a.stack==="string"){var b=a.stack.split("\n",4)[3];a=a.message;a+=Array(11-a.length).join(" ");this.stack_.push(a+b)}}; goog.Promise.prototype.appendLongStack_=function(a){if(goog.Promise.LONG_STACK_TRACES&&a&&typeof a.stack==="string"&&this.stack_.length){for(var b=["Promise trace:"],c=this;c;c=c.parent_){for(var d=this.currentStep_;d>=0;d--)b.push(c.stack_[d]);b.push("Value: ["+(c.state_==goog.Promise.State_.REJECTED?"REJECTED":"FULFILLED")+"] <"+String(c.result_)+">")}a.stack+="\n\n"+b.join("\n")}}; goog.Promise.prototype.removeUnhandledRejection_=function(){if(goog.Promise.UNHANDLED_REJECTION_DELAY>0)for(var a=this;a&&a.unhandledRejectionId_;a=a.parent_)goog.global.clearTimeout(a.unhandledRejectionId_),a.unhandledRejectionId_=0;else if(goog.Promise.UNHANDLED_REJECTION_DELAY==0)for(a=this;a&&a.hadUnhandledRejection_;a=a.parent_)a.hadUnhandledRejection_=!1}; goog.Promise.addUnhandledRejection_=function(a,b){goog.Promise.UNHANDLED_REJECTION_DELAY>0?a.unhandledRejectionId_=goog.global.setTimeout(function(){a.appendLongStack_(b);goog.Promise.handleRejection_.call(null,b)},goog.Promise.UNHANDLED_REJECTION_DELAY):goog.Promise.UNHANDLED_REJECTION_DELAY==0&&(a.hadUnhandledRejection_=!0,module$contents$goog$async$run_run(function(){a.hadUnhandledRejection_&&(a.appendLongStack_(b),goog.Promise.handleRejection_.call(null,b))}))};goog.Promise.handleRejection_=module$contents$goog$async$throwException_throwException; goog.Promise.setUnhandledRejectionHandler=function(a){goog.Promise.handleRejection_=a};goog.Promise.CancellationError=function(a){module$contents$goog$debug$Error_DebugError.call(this,a)};goog.inherits(goog.Promise.CancellationError,module$contents$goog$debug$Error_DebugError);goog.Promise.CancellationError.prototype.name="cancel";goog.Promise.Resolver_=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};goog.Timer=function(a,b){goog.events.EventTarget.call(this);this.interval_=a||1;this.timerObject_=b||goog.Timer.defaultTimerObject;this.boundTick_=goog.bind(this.tick_,this);this.last_=goog.now()};goog.inherits(goog.Timer,goog.events.EventTarget);goog.Timer.MAX_TIMEOUT_=2147483647;goog.Timer.INVALID_TIMEOUT_ID_=-1;goog.Timer.prototype.enabled=!1;goog.Timer.defaultTimerObject=goog.global;goog.Timer.intervalScale=.8;goog.Timer.prototype.timer_=null; goog.Timer.prototype.setInterval=function(a){this.interval_=a;this.timer_&&this.enabled?(this.stop(),this.start()):this.timer_&&this.stop()};goog.Timer.prototype.tick_=function(){if(this.enabled){var a=goog.now()-this.last_;a>0&&a<this.interval_*goog.Timer.intervalScale?this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_-a):(this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null),this.dispatchTick(),this.enabled&&(this.stop(),this.start()))}}; goog.Timer.prototype.dispatchTick=function(){this.dispatchEvent(goog.Timer.TICK)};goog.Timer.prototype.start=function(){this.enabled=!0;this.timer_||(this.timer_=this.timerObject_.setTimeout(this.boundTick_,this.interval_),this.last_=goog.now())};goog.Timer.prototype.stop=function(){this.enabled=!1;this.timer_&&(this.timerObject_.clearTimeout(this.timer_),this.timer_=null)};goog.Timer.prototype.disposeInternal=function(){goog.Timer.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_}; goog.Timer.TICK="tick";goog.Timer.callOnce=function(a,b,c){if(typeof a==="function")c&&(a=goog.bind(a,c));else if(a&&typeof a.handleEvent=="function")a=goog.bind(a.handleEvent,a);else throw Error("Invalid listener argument");return Number(b)>goog.Timer.MAX_TIMEOUT_?goog.Timer.INVALID_TIMEOUT_ID_:goog.Timer.defaultTimerObject.setTimeout(a,b||0)};goog.Timer.clear=function(a){goog.Timer.defaultTimerObject.clearTimeout(a)}; goog.Timer.promise=function(a,b){var c=null;return(new goog.Promise(function(d,e){c=goog.Timer.callOnce(function(){d(b)},a);c==goog.Timer.INVALID_TIMEOUT_ID_&&e(Error("Failed to schedule timer."))})).thenCatch(function(d){goog.Timer.clear(c);throw d;})};ocean.style={};ocean.style.mirrorCSS=function(a){var b=/\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g,c=/left/g,d=/right/g,e=/Left/g,f=/Right/g,g=/%%%%/g,h={},k;for(k in a){var l=a[k].replace(b,"$1 $4 $3 $2");l=l.replace(c,"%%%%").replace(d,"left").replace(g,"right");var m=k.replace(c,"%%%%").replace(d,"left").replace(g,"right");m=m.replace(e,"%%%%").replace(f,"Left").replace(g,"Right");h[m]=l}return h}; ocean.style.setBidiStyles=function(a,b){ocean.style.isPageRtl()&&(b=ocean.style.mirrorCSS(b));goog.style.setStyle(a,b)};ocean.style.isPageRtl=function(){return goog.dom.getDocument().body.dir=="rtl"};ocean.style.setBidiFloat=function(a,b){goog.asserts.assert(b=="left"||b=="right","the value for bidi float must be either left or right");ocean.style.isPageRtl()?goog.style.setFloat(a,b=="left"?"right":"left"):goog.style.setFloat(a,b)}; ocean.style.setBackgroundImage=function(a,b,c){a=a.style;goog.userAgent.IE?a.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+b+'", sizingMethod="scale")':(a.backgroundImage="url("+b+")",a.backgroundRepeat=c||"no-repeat")};ocean.style.CLEAR_COMPOUND_STYLES_={border:!0,padding:!0,margin:!0};ocean.style.CLEAR_COMPOUND_DIRECTIONS_=["Top","Bottom","Right","Left"];ocean.style.LINK_STYLES_={color:"#0000cc",textDecoration:"underline"}; ocean.style.clearExternalStyles_=function(a,b){var c={backgroundColor:"transparent",border:"0px",color:"#000",fontFamily:"Arial, sans-serif",fontSize:"13.28px",fontWeight:"normal",lineHeight:"1",margin:"0px",padding:"0px",textAlign:"left",textDecoration:"none",verticalAlign:"middle"},d={img:!0,div:!0,table:!0,td:!0,span:!0,a:!0},e=[];d[a.tagName.toLowerCase()]&&e.push(a);b||module$contents$goog$object_forEach(d,function(f,g){module$contents$goog$array_extend(e,module$contents$goog$array_toArray(a.getElementsByTagName(g)))}); ocean.style.clearExternalStylesOnNodes_(e,c)};ocean.style.clearExternalStylesOnNodes_=function(a,b){module$contents$goog$array_forEach(a,function(c){module$contents$goog$object_forEach(b,goog.partial(ocean.style.clearExternalStyle_,c))})}; ocean.style.clearExternalStyle_=function(a,b,c){var d=goog.style.getStyle(a,c)=="";ocean.style.CLEAR_COMPOUND_STYLES_[c]?module$contents$goog$array_forEach(ocean.style.CLEAR_COMPOUND_DIRECTIONS_,function(e){d&&goog.style.getStyle(a,c+e)==""&&goog.style.setStyle(a,c+e,b)}):d&&(a.tagName.toLowerCase()=="a"&&ocean.style.LINK_STYLES_[c]?goog.style.setStyle(a,c,ocean.style.LINK_STYLES_[c]):goog.style.setStyle(a,c,b))};ocean.style.clearExternalStyles=ocean.style.clearExternalStyles_; ocean.style.setClearExternalStyles=function(a){ocean.style.clearExternalStyles=a?ocean.style.clearExternalStyles_:goog.functions.UNDEFINED};goog.async.AnimationDelay=function(a,b,c){goog.Disposable.call(this);this.id_=null;this.usingListeners_=!1;this.listener_=a;this.handler_=c;this.win_=b||window;this.callback_=goog.bind(this.doAction_,this)};goog.inherits(goog.async.AnimationDelay,goog.Disposable);goog.async.AnimationDelay.TIMEOUT=20;goog.async.AnimationDelay.MOZ_BEFORE_PAINT_EVENT_="MozBeforePaint"; goog.async.AnimationDelay.prototype.start=function(){this.stop();this.usingListeners_=!1;var a=this.getRaf_(),b=this.getCancelRaf_();a&&!b&&this.win_.mozRequestAnimationFrame?(this.id_=goog.events.listen(this.win_,goog.async.AnimationDelay.MOZ_BEFORE_PAINT_EVENT_,this.callback_),this.win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.id_=a&&b?a.call(this.win_,this.callback_):this.win_.setTimeout(goog.functions.lock(this.callback_),goog.async.AnimationDelay.TIMEOUT)}; goog.async.AnimationDelay.prototype.stop=function(){if(this.isActive()){var a=this.getRaf_(),b=this.getCancelRaf_();a&&!b&&this.win_.mozRequestAnimationFrame?goog.events.unlistenByKey(this.id_):a&&b?b.call(this.win_,this.id_):this.win_.clearTimeout(this.id_)}this.id_=null};goog.async.AnimationDelay.prototype.isActive=function(){return this.id_!=null}; goog.async.AnimationDelay.prototype.doAction_=function(){this.usingListeners_&&this.id_&&goog.events.unlistenByKey(this.id_);this.id_=null;this.listener_.call(this.handler_,goog.now())};goog.async.AnimationDelay.prototype.disposeInternal=function(){this.stop();goog.async.AnimationDelay.superClass_.disposeInternal.call(this)}; goog.async.AnimationDelay.prototype.getRaf_=function(){var a=this.win_;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};goog.async.AnimationDelay.prototype.getCancelRaf_=function(){var a=this.win_;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};goog.async.Delay=function(a,b,c){goog.Disposable.call(this);this.listener_=a;this.interval_=b||0;this.handler_=c;this.callback_=goog.bind(this.doAction_,this)};goog.inherits(goog.async.Delay,goog.Disposable);goog.async.Delay.prototype.id_=0;goog.async.Delay.prototype.disposeInternal=function(){goog.async.Delay.superClass_.disposeInternal.call(this);this.stop();delete this.listener_;delete this.handler_}; goog.async.Delay.prototype.start=function(a){this.stop();this.id_=goog.Timer.callOnce(this.callback_,a!==void 0?a:this.interval_)};goog.async.Delay.prototype.stop=function(){this.isActive()&&goog.Timer.clear(this.id_);this.id_=0};goog.async.Delay.prototype.isActive=function(){return this.id_!=0};goog.async.Delay.prototype.doAction_=function(){this.id_=0;this.listener_&&this.listener_.call(this.handler_)};goog.fx={};goog.fx.anim={};goog.fx.anim.Animated=function(){};goog.fx.anim.TIMEOUT=goog.async.AnimationDelay.TIMEOUT;goog.fx.anim.activeAnimations_={};goog.fx.anim.animationWindow_=null;goog.fx.anim.animationDelay_=null;goog.fx.anim.registerAnimation=function(a){var b=goog.getUid(a);b in goog.fx.anim.activeAnimations_||(goog.fx.anim.activeAnimations_[b]=a);goog.fx.anim.requestAnimationFrame_()}; goog.fx.anim.unregisterAnimation=function(a){a=goog.getUid(a);delete goog.fx.anim.activeAnimations_[a];module$contents$goog$object_isEmpty(goog.fx.anim.activeAnimations_)&&goog.fx.anim.cancelAnimationFrame_()};goog.fx.anim.tearDown=function(){goog.fx.anim.animationWindow_=null;module$contents$goog$dispose_dispose(goog.fx.anim.animationDelay_);goog.fx.anim.animationDelay_=null;goog.fx.anim.activeAnimations_={}}; goog.fx.anim.setAnimationWindow=function(a){var b=goog.fx.anim.animationDelay_&&goog.fx.anim.animationDelay_.isActive();module$contents$goog$dispose_dispose(goog.fx.anim.animationDelay_);goog.fx.anim.animationDelay_=null;goog.fx.anim.animationWindow_=a;b&&goog.fx.anim.requestAnimationFrame_()}; goog.fx.anim.requestAnimationFrame_=function(){goog.fx.anim.animationDelay_||(goog.fx.anim.animationDelay_=goog.fx.anim.animationWindow_?new goog.async.AnimationDelay(function(b){goog.fx.anim.cycleAnimations_(b)},goog.fx.anim.animationWindow_):new goog.async.Delay(function(){goog.fx.anim.cycleAnimations_(goog.now())},goog.async.AnimationDelay.TIMEOUT));var a=goog.fx.anim.animationDelay_;a.isActive()||a.start()};goog.fx.anim.cancelAnimationFrame_=function(){goog.fx.anim.animationDelay_&&goog.fx.anim.animationDelay_.stop()}; goog.fx.anim.cycleAnimations_=function(a){module$contents$goog$object_forEach(goog.fx.anim.activeAnimations_,function(b){b.onAnimationFrame(a)});module$contents$goog$object_isEmpty(goog.fx.anim.activeAnimations_)||goog.fx.anim.requestAnimationFrame_()};goog.fx.Transition=function(){};goog.fx.Transition.EventType={PLAY:"play",BEGIN:"begin",RESUME:"resume",END:"end",STOP:"stop",FINISH:"finish",PAUSE:"pause"};goog.fx.TransitionBase=function(){goog.events.EventTarget.call(this);this.state_=goog.fx.TransitionBase.State.STOPPED;this.endTime=this.startTime=null};goog.inherits(goog.fx.TransitionBase,goog.events.EventTarget);goog.fx.TransitionBase.State={STOPPED:0,PAUSED:-1,PLAYING:1};goog.fx.TransitionBase.prototype.setStatePlaying=function(){this.state_=goog.fx.TransitionBase.State.PLAYING};goog.fx.TransitionBase.prototype.setStatePaused=function(){this.state_=goog.fx.TransitionBase.State.PAUSED}; goog.fx.TransitionBase.prototype.setStateStopped=function(){this.state_=goog.fx.TransitionBase.State.STOPPED};goog.fx.TransitionBase.prototype.isPlaying=function(){return this.state_==goog.fx.TransitionBase.State.PLAYING};goog.fx.TransitionBase.prototype.isPaused=function(){return this.state_==goog.fx.TransitionBase.State.PAUSED};goog.fx.TransitionBase.prototype.isStopped=function(){return this.state_==goog.fx.TransitionBase.State.STOPPED};goog.fx.TransitionBase.prototype.onBegin=function(){this.dispatchAnimationEvent(goog.fx.Transition.EventType.BEGIN)}; goog.fx.TransitionBase.prototype.onEnd=function(){this.dispatchAnimationEvent(goog.fx.Transition.EventType.END)};goog.fx.TransitionBase.prototype.onFinish=function(){this.dispatchAnimationEvent(goog.fx.Transition.EventType.FINISH)};goog.fx.TransitionBase.prototype.onPause=function(){this.dispatchAnimationEvent(goog.fx.Transition.EventType.PAUSE)};goog.fx.TransitionBase.prototype.onPlay=function(){this.dispatchAnimationEvent(goog.fx.Transition.EventType.PLAY)}; goog.fx.TransitionBase.prototype.onResume=function(){this.dispatchAnimationEvent(goog.fx.Transition.EventType.RESUME)};goog.fx.TransitionBase.prototype.onStop=function(){this.dispatchAnimationEvent(goog.fx.Transition.EventType.STOP)};goog.fx.TransitionBase.prototype.dispatchAnimationEvent=function(a){this.dispatchEvent(a)};goog.fx.Animation=function(a,b,c,d){goog.fx.TransitionBase.call(this);if(!Array.isArray(a)||!Array.isArray(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.startPoint=a;this.endPoint=b;this.duration=c;this.accel_=d;this.coords=[];this.useRightPositioningForRtl_=!1;this.progress=0;this.lastFrame=null};goog.inherits(goog.fx.Animation,goog.fx.TransitionBase); goog.fx.Animation.EventType={PLAY:goog.fx.Transition.EventType.PLAY,BEGIN:goog.fx.Transition.EventType.BEGIN,RESUME:goog.fx.Transition.EventType.RESUME,END:goog.fx.Transition.EventType.END,STOP:goog.fx.Transition.EventType.STOP,FINISH:goog.fx.Transition.EventType.FINISH,PAUSE:goog.fx.Transition.EventType.PAUSE,ANIMATE:"animate",DESTROY:"destroy"};goog.fx.Animation.TIMEOUT=goog.async.AnimationDelay.TIMEOUT;goog.fx.Animation.State=goog.fx.TransitionBase.State;goog.fx.Animation.setAnimationWindow=function(a){goog.fx.anim.setAnimationWindow(a)}; goog.fx.Animation.prototype.play=function(a){if(a||this.isStopped())this.progress=0,this.coords=this.startPoint;else if(this.isPlaying())return!1;goog.fx.anim.unregisterAnimation(this);this.startTime=a=goog.now();this.isPaused()&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.lastFrame=this.startTime;if(!this.progress)this.onBegin();this.onPlay();if(this.isPaused())this.onResume();this.setStatePlaying();goog.fx.anim.registerAnimation(this);this.cycle(a); return!0};goog.fx.Animation.prototype.stop=function(a){goog.fx.anim.unregisterAnimation(this);this.setStateStopped();a&&(this.progress=1);this.updateCoords_(this.progress);this.onStop();this.onEnd()};goog.fx.Animation.prototype.pause=function(){this.isPlaying()&&(goog.fx.anim.unregisterAnimation(this),this.setStatePaused(),this.onPause())};goog.fx.Animation.prototype.disposeInternal=function(){this.isStopped()||this.stop(!1);this.onDestroy();goog.fx.Animation.superClass_.disposeInternal.call(this)}; goog.fx.Animation.prototype.onAnimationFrame=function(a){this.cycle(a)}; goog.fx.Animation.prototype.cycle=function(a){goog.asserts.assertNumber(this.startTime);goog.asserts.assertNumber(this.endTime);goog.asserts.assertNumber(this.lastFrame);a<this.startTime&&(this.endTime=a+this.endTime-this.startTime,this.startTime=a);this.progress=(a-this.startTime)/(this.endTime-this.startTime);this.progress>1&&(this.progress=1);this.lastFrame=a;this.updateCoords_(this.progress);if(this.progress==1)this.setStateStopped(),goog.fx.anim.unregisterAnimation(this),this.onFinish(),this.onEnd(); else if(this.isPlaying())this.onAnimate()};goog.fx.Animation.prototype.updateCoords_=function(a){typeof this.accel_==="function"&&(a=this.accel_(a));this.coords=Array(this.startPoint.length);for(var b=0;b<this.startPoint.length;b++)this.coords[b]=(this.endPoint[b]-this.startPoint[b])*a+this.startPoint[b]};goog.fx.Animation.prototype.onAnimate=function(){this.dispatchAnimationEvent(goog.fx.Animation.EventType.ANIMATE)};goog.fx.Animation.prototype.onDestroy=function(){this.dispatchAnimationEvent(goog.fx.Animation.EventType.DESTROY)}; goog.fx.Animation.prototype.dispatchAnimationEvent=function(a){this.dispatchEvent(new goog.fx.AnimationEvent(a,this))};goog.fx.AnimationEvent=function(a,b){goog.events.Event.call(this,a);this.coords=b.coords;this.x=b.coords[0];this.y=b.coords[1];this.z=b.coords[2];this.duration=b.duration;this.progress=b.progress;this.state=b.state_;this.anim=b};goog.inherits(goog.fx.AnimationEvent,goog.events.Event);goog.fx.AnimationEvent.prototype.coordsAsInts=function(){return this.coords.map(Math.round)};goog.fx.easing={};goog.fx.easing.easeIn=function(a){return goog.fx.easing.easeInInternal_(a,3)};goog.fx.easing.easeInInternal_=function(a,b){return Math.pow(a,b)};goog.fx.easing.easeOut=function(a){return goog.fx.easing.easeOutInternal_(a,3)};goog.fx.easing.easeOutInternal_=function(a,b){return 1-goog.fx.easing.easeInInternal_(1-a,b)};goog.fx.easing.easeOutLong=function(a){return goog.fx.easing.easeOutInternal_(a,4)};goog.fx.easing.inAndOut=function(a){return 3*a*a-2*a*a*a};function module$contents$ocean$EventManager_EventManager(){goog.events.EventTarget.call(this);this.eventHandler_=new goog.events.EventHandler(this)}goog.inherits(module$contents$ocean$EventManager_EventManager,goog.events.EventTarget);module$contents$ocean$EventManager_EventManager.prototype.getHandler=function(){return this.eventHandler_}; module$contents$ocean$EventManager_EventManager.prototype.disposeInternal=function(){this.dispatchEvent(module$contents$ocean$EventManager_EventManager.EventType.DISPOSE);module$contents$ocean$EventManager_EventManager.superClass_.disposeInternal.call(this);this.eventHandler_.dispose()};module$contents$ocean$EventManager_EventManager.EventType={DISPOSE:"dispose"};ocean.EventManager=module$contents$ocean$EventManager_EventManager;ocean.viewport={};function module$contents$ocean$viewport$Drawable_Drawable(){module$contents$ocean$EventManager_EventManager.call(this)}goog.inherits(module$contents$ocean$viewport$Drawable_Drawable,module$contents$ocean$EventManager_EventManager);ocean.viewport.Drawable=module$contents$ocean$viewport$Drawable_Drawable;goog.math.Vec2=function(a,b){this.x=a;this.y=b};goog.inherits(goog.math.Vec2,goog.math.Coordinate);goog.math.Vec2.randomUnit=function(){var a=Math.random()*Math.PI*2;return new goog.math.Vec2(Math.cos(a),Math.sin(a))};goog.math.Vec2.random=function(){var a=Math.sqrt(Math.random()),b=Math.random()*Math.PI*2;return new goog.math.Vec2(Math.cos(b)*a,Math.sin(b)*a)};goog.math.Vec2.fromCoordinate=function(a){return new goog.math.Vec2(a.x,a.y)}; goog.math.Vec2.prototype.clone=function(){return new goog.math.Vec2(this.x,this.y)};goog.math.Vec2.prototype.magnitude=function(){return Math.hypot(this.x,this.y)};goog.math.Vec2.prototype.scale=goog.math.Coordinate.prototype.scale;goog.math.Vec2.prototype.normalize=function(){return this.scale(1/this.magnitude())};goog.math.Vec2.prototype.add=function(a){this.x+=a.x;this.y+=a.y;return this};goog.math.Vec2.prototype.subtract=function(a){this.x-=a.x;this.y-=a.y;return this}; goog.math.Vec2.prototype.rotate=function(a){var b=Math.cos(a),c=Math.sin(a);a=this.x*b-this.y*c;b=this.y*b+this.x*c;this.x=a;this.y=b;return this};goog.math.Vec2.rotateAroundPoint=function(a,b,c){a=a.clone();return a.subtract(b).rotate(c).add(b)};goog.math.Vec2.prototype.equals=function(a){return this===a?!0:a instanceof goog.math.Vec2&&!!a&&this.x==a.x&&this.y==a.y};goog.math.Vec2.distance=goog.math.Coordinate.distance;goog.math.Vec2.squaredDistance=goog.math.Coordinate.squaredDistance; goog.math.Vec2.equals=goog.math.Coordinate.equals;goog.math.Vec2.sum=function(a,b){return new goog.math.Vec2(a.x+b.x,a.y+b.y)};goog.math.Vec2.difference=function(a,b){return new goog.math.Vec2(a.x-b.x,a.y-b.y)};goog.math.Vec2.dot=function(a,b){return a.x*b.x+a.y*b.y};goog.math.Vec2.determinant=function(a,b){return a.x*b.y-a.y*b.x};goog.math.Vec2.lerp=function(a,b,c){return new goog.math.Vec2(goog.math.lerp(a.x,b.x,c),goog.math.lerp(a.y,b.y,c))}; goog.math.Vec2.rescaled=function(a,b,c){c=c===void 0?b:c;return new goog.math.Vec2(a.x*b,a.y*c)};var module$contents$ocean$layout$PointMapper_PointMapper=function(a,b){this.sourceLayout_=a;this.destinationLayout_=b}; module$contents$ocean$layout$PointMapper_PointMapper.prototype.getDestCoordinate=function(a){var b=this.sourceLayout_.getItemAtCoordinate(a);b||(b=this.sourceLayout_.getClosestItem(a));var c=this.destinationLayout_.getCorrespondingItem(b);a=goog.math.Vec2.fromCoordinate(a);goog.reflect.sinkValue(a.subtract(b.getPosition()));var d=c.getSize().width/b.getSize().width;b=c.getSize().height/b.getSize().height;b=new goog.math.Coordinate(Math.round(a.x*d),Math.round(a.y*b));c=goog.math.Vec2.fromCoordinate(c.getPosition()); return c.add(b)};ocean.layout.PointMapper=module$contents$ocean$layout$PointMapper_PointMapper;ocean.msg={}; var module$contents$ocean$msg_usePendingTranslation=function(a){return a},module$contents$ocean$msg_getAddedBookshelfAction=function(a){return a="Added "+a+"."},module$contents$ocean$msg_getAddedToShelf=function(a){return a="Added to "+a},module$contents$ocean$msg_getAddedToShelves=function(a){return a="Added to "+a+" shelves"},module$contents$ocean$msg_getAvailableOnDate=function(a){return a="Available on: "+a},module$contents$ocean$msg_getBooksAdded=function(a){return a="Books added: "+a},module$contents$ocean$msg_getBookByAuthor= function(a,b){return a='"'+a+'" by '+b},module$contents$ocean$msg_getBuyEbookWithPrice=function(a){return a="Buy eBook - "+a},module$contents$ocean$msg_getClearBookshelfDialogTitle=function(a){return a="Clear '"+a+"'"},module$contents$ocean$msg_getConfirmRemoveVolumeFromCollection=function(a){var b=new module$exports$google3$third_party$javascript$safevalues$builders$html_formatter.HtmlFormatter;a="Are you sure you would like to delete <u>"+b.text(a)+"</u>?";return b.format(a.replace(/<u>/,b.startTag("u")).replace(/<\/u>/, b.endTag("u")))},module$contents$ocean$msg_getDeleteBookshelfDialogTitle=function(a){return a="Delete '"+a+"'"},module$contents$ocean$msg_getDeletePurchasedBookDialogTitle=function(a){return a='Delete "'+a+'"?'},module$contents$ocean$msg_getEbookFromWithPrice=function(a){return a="EBOOK FROM "+a},module$contents$ocean$msg_getEditBookshelfDialogTitle=function(a){return a="Edit '"+a+"' properties"},module$contents$ocean$msg_getEmptyBookshelfMessage=function(a){return a='No books in this bookshelf yet. <a href="'+ a+'" class=help-link>Learn more.</a>'},module$contents$ocean$msg_getGoogleBooksResultViewSummary=function(a,b,c){return a="Result "+a+" of "+b+" in this book for "+c},module$contents$ocean$msg_getGoogleBooksSnippetViewSummary=function(a,b){return a="Showing "+a+" results in this book for "+b},module$contents$ocean$msg_getGooglePrintPageNumber=function(a){return a="Page "+a},module$contents$ocean$msg_getItemsNotAdded=function(a){return a="Items not added: "+a},module$contents$ocean$msg_getMoreWithRightArrows= function(a){return a="more "+a},module$contents$ocean$msg_getMoveBookshelfAction=function(a){return a="Moved "+a+"."},module$contents$ocean$msg_getNetworkErrorTryingToContactBooks=function(a){var b=new module$exports$google3$third_party$javascript$safevalues$builders$html_formatter.HtmlFormatter,c=b.startTag("span",{"class":"jfk-butterBar-highlight"}),d=b.endTag("span");a="Attempting to reach Google Books, trying again in "+c+b.text(String(a))+d+" seconds.";return b.format(a)},module$contents$ocean$msg_getNoResultsFoundBold= function(a){return a="No results found for "+a+"."},module$contents$ocean$msg_getNoResultsFoundInBook=function(a){return a="No results found in this book for "+a},module$contents$ocean$msg_getNReviews=function(a){return a+=" reviews"},module$contents$ocean$msg_getPageCount=function(a){return a+=" pages"},module$contents$ocean$msg_getPageNotPartOfBookPreview=function(a){return a="Page "+a+" is not part of this book preview."},module$contents$ocean$msg_getPageRangeNotShown=function(a,b){return a="Pages "+ a+" to "+b+" are not shown in this preview."},module$contents$ocean$msg_getPatentsShowNMore=function(a){return a+=" More"},module$contents$ocean$msg_getPatentImageNOfM=function(a,b){return a=a+" of "+b},module$contents$ocean$msg_getPauseBookshelfDialogTitle=function(a){return a="Pause '"+a+"'"},module$contents$ocean$msg_getPreOrderPrice=function(a){return a="Pre-order eBook - "+a},module$contents$ocean$msg_getRemoveBookshelfAction=function(a){return a="Removed "+a+"."},module$contents$ocean$msg_getRemoveVolumeFromBookshelf= function(a,b){return a="Remove '"+a+"' from '"+b+"'?"},module$contents$ocean$msg_getRentalExpiringDays=function(a){return a+=" days"},module$contents$ocean$msg_getRentalExpiringHours=function(a){return a+=" hours"},module$contents$ocean$msg_getResumeBookshelfDialogTitle=function(a){return a="Resume '"+a+"'"},module$contents$ocean$msg_getSearchInsideYourLibrary=function(a){return a="Search "+a+"'s library"},module$contents$ocean$msg_getSearchWithinVolumeResult1=function(a,b){return a="Result "+a+" of "+ b},module$contents$ocean$msg_getWebReaderConcurrentAccessErrorBody=function(a){return a="Sorry, concurrent reading of this book is limited to "+a+" devices or computers, and you have reached this limit. Please close this book in other readers, wait a few minutes, and try again."},module$contents$ocean$msg_getWebReaderOfflineAccessErrorBody=function(a){return a="Sorry, the publisher limits downloads of this book to "+a+" devices or computers, and you have reached this limit. Please remove this book from other readers, wait a few minutes, and try again."}; ocean.msg.MSG_ADD_BOOKMARK="Add bookmark";ocean.msg.MSG_ADD_BOOKS="Add books";ocean.msg.MSG_ADD_BOOKS_EXAMPLE="Ex: 0-7432-9733-4, or 0161-7370";ocean.msg.MSG_ADD_BY_ISBN_OR_ISSN="Add by ISBN or ISSN";ocean.msg.MSG_ADD_NOTE_LEGAL_MESSAGE="This note will be public.";ocean.msg.MSG_ADD_SAMPLE_TO_BOOKS="Add to My Books";ocean.msg.MSG_ADD_TO_MY_LIBRARY="Add to my library";ocean.msg.MSG_AS_SEARCH="Search";ocean.msg.MSG_BACK_TO_ARTICLE="Back to the article";ocean.msg.MSG_BISAC_WEB="Web"; ocean.msg.MSG_BOOKMARK="Bookmark";ocean.msg.MSG_BOOKMARK_ADD_ERROR="There was a problem adding your bookmark";ocean.msg.MSG_BOOKMARK_REMOVE_ERROR="There was a problem removing your bookmark";ocean.msg.MSG_BOOKSHELF_DESCRIPTION="Description <span class=cl-desc>(optional)</span>";ocean.msg.MSG_BOOKSHELF_PRIVACY_MSG="Please note that the contents and title of Public bookshelves can be viewed and shared by others.";ocean.msg.MSG_BOOKS_FOR_YOU_BUTTER_BAR="This list is generated based on what you like."; ocean.msg.MSG_BOOKS_PRODUCT_NAME_WITH_LOGO="Books";ocean.msg.MSG_BROWSE_SUBJECTS="Browse subjects";ocean.msg.MSG_BROWSING_HISTORY_BUTTER_BAR="This shelf displays the books you have viewed for the past year. Use shelf settings to manage this collection.";ocean.msg.MSG_BUY_THIS_BOOK="Buy this book";ocean.msg.MSG_CANCEL="Cancel";ocean.msg.MSG_CANCELLED="Cancelled";ocean.msg.MSG_CANCELLED_CUSTOMER_REQUEST="Cancelled - by customer request";ocean.msg.MSG_CANCELLED_FULFILLMENT_ERROR="Cancelled - problem with eBook"; ocean.msg.MSG_CANCELLED_PRICE_CHANGE="Cancelled - price change";ocean.msg.MSG_CANCELLED_PUBLISHER_CHANGE="Cancelled - publisher cancellation";ocean.msg.MSG_CANNOT_REORDER_SWITCH_TO_CUSTOM="Would you like to switch to custom ordering?";ocean.msg.MSG_CANNOT_REORDER_SWITCH_TO_CUSTOM_TITLE="Cannot Reorder. Shelf is already sorted.";ocean.msg.MSG_CLEAR_BOOKSHELF="Clear bookshelf";ocean.msg.MSG_CLEAR_BOOKSHELF_CAUTION="Are you sure you want remove all the books on this bookshelf?"; ocean.msg.MSG_CLICK_FOR_PAGE="Click to view the whole page.";ocean.msg.MSG_CLIP_FORMATS_IMAGE="Image";ocean.msg.MSG_CLOSE="Close";ocean.msg.MSG_CONFIRM_REMOVE_VOLUME_FROM_COLLECTION_TITLE="Confirm";ocean.msg.MSG_CREATE_BOOKSHELF="Create bookshelf";ocean.msg.MSG_CREATE_NEW_BOOKSHELF="Create new bookshelf";ocean.msg.MSG_CREDIT_CARD_DECLINED="Credit card declined:";ocean.msg.MSG_DELETE_BOOKS="Delete books...";ocean.msg.MSG_DELETE_BOOKSHELF="Delete bookshelf";ocean.msg.MSG_DELETE_BOOKSHELF_CAUTION="Are you sure you want to permanently delete this bookshelf and all the books on it?"; ocean.msg.MSG_DELETE_FOREVER="Delete forever";ocean.msg.MSG_DELETE_PURCHASED_BOOK_DIALOG_CONFIRMATION="Are you sure you want to permanently delete ownership of this book? You will no longer be able to read this book.";ocean.msg.MSG_DEVICES_EREADER_FLOWING="This Google eBook includes flowing text, so you can adjust the font to read comfortably on an eReader.";ocean.msg.MSG_DEVICES_EREADER_NOFLOWING="This Google eBook does not include flowing text, so you cannot adjust the font on an eReader."; ocean.msg.MSG_DEVICES_GOOD_FOR="Good for:";ocean.msg.MSG_DEVICES_NOTSUPPORTED_SMARTPHONE="This eBook may be hard to read on smartphones like Android and iPhone / iPod touch.";ocean.msg.MSG_DEVICES_READABLE_SMARTPHONE="This eBook is good for smartphones like Android and iPhone / iPod touch.";ocean.msg.MSG_DEVICES_READABLE_TABLET="This eBook, like all Google eBooks, is formatted to be readable on tablet devices like Android tablets and the iPad.";ocean.msg.MSG_DEVICES_READABLE_WEB="This eBook, like all Google eBooks, is formatted to be readable on the web."; ocean.msg.MSG_DEVICES_SMARTPHONE_FLOWING="This Google eBook includes flowing text so you can adjust the font to read comfortably on the small screen of a smartphone.";ocean.msg.MSG_DEVICE_TYPE_EREADER="eReader";ocean.msg.MSG_DEVICE_TYPE_SMARTPHONE="Smartphone";ocean.msg.MSG_DEVICE_TYPE_TABLET="Tablet / iPad";ocean.msg.MSG_DISCUSS_THIS_APPLICATION="Discuss this application";ocean.msg.MSG_DISCUSS_THIS_APPLICATION_HOVER="Discuss this application on Stack Exchange";ocean.msg.MSG_DISCUSS_THIS_GRANT="Discuss this patent"; ocean.msg.MSG_DISCUSS_THIS_GRANT_HOVER="Discuss this patent on Stack Exchange";ocean.msg.MSG_DOWNLOAD_BUTTON="Download";ocean.msg.MSG_DOWNLOAD_PDF="Download PDF";ocean.msg.MSG_DUPLICATE_BOOKSHELF_TITLE="Another bookshelf already has that title. Please enter a different title.";ocean.msg.MSG_EBOOK_SAMPLE="Sample";ocean.msg.MSG_EDIT_BOOKSHELF_PROPERTIES="Edit properties";ocean.msg.MSG_EMBED="Embed";ocean.msg.MSG_EMPTY_BOOKSHELF_TITLE="Please enter a title for this bookshelf.";ocean.msg.MSG_EPUB="EPUB"; ocean.msg.MSG_EXIT_FULL_SCREEN="Exit full screen";ocean.msg.MSG_EXPLAIN_BOOKMARK="As you search, add books you find interesting to your library.";ocean.msg.MSG_EXPLAIN_ORGANIZE="Create your own bookshelves to organize your collection. Rate books and write reviews.";ocean.msg.MSG_EXPLAIN_SHARE="Know the top ten books to learn Russian? Share a bookshelf with the world or just let friends know what you are reading.";ocean.msg.MSG_EXPORT_AS_XML="Export as XML";ocean.msg.MSG_FEATURES_FLOWING="This eBook includes flowing text, so you can adjust the font size and style to read comfortably on any device."; ocean.msg.MSG_FEATURES_NOFLOWING="This book does not include flowing text, so you cannot adjust the font. Instead, you see images of pages, with a fixed layout. This is good for larger screens, but not always ideal for eReaders and smartphones.";ocean.msg.MSG_FEATURES_NOSCANNED="This eBook does not include scanned pages, which retain the format of a printed book. Instead, the text can be adjusted and it flows to fit any screen.";ocean.msg.MSG_FEATURES_SCANNED="This eBook includes scanned pages, so pages appear as they would in a printed book."; ocean.msg.MSG_FIND_PRIOR_ART="Find prior art";ocean.msg.MSG_FIT_TO_HEIGHT="Fit to height";ocean.msg.MSG_FLOWING_TEXT="Flowing text";ocean.msg.MSG_FLOWING_TEXT_UNAVAILABLE="Screen reader users, this volume is not available in flowing text mode";ocean.msg.MSG_FORMAT_FEATURES="Features:";ocean.msg.MSG_FULL_SCREEN="Full screen";ocean.msg.MSG_FULL_VIEW="Full view";ocean.msg.MSG_GOOGLE_BOOKS_ADD_NOTE="Add note";ocean.msg.MSG_GOOGLE_BOOKS_BROWSABLE_BOOKS="Limited preview and full view"; ocean.msg.MSG_GOOGLE_BOOKS_CLEAR_SEARCH="Clear search";ocean.msg.MSG_GOOGLE_BOOKS_EDIT_NOTE="Edit note";ocean.msg.MSG_GOOGLE_BOOKS_FULL_VIEW_ONLY="Full view only";ocean.msg.MSG_GOOGLE_BOOKS_GOOGLE_EDITIONS_ONLY="Google eBooks only";ocean.msg.MSG_GOOGLE_BOOKS_IN_STOCK="in stock";ocean.msg.MSG_GOOGLE_BOOKS_NO_PREVIEW_PAGE="No preview available for this page.";ocean.msg.MSG_GOOGLE_BOOKS_ORDER_BY="Order by";ocean.msg.MSG_GOOGLE_BOOKS_PAGES="pages";ocean.msg.MSG_GOOGLE_BOOKS_PREVIEW_WARNING="This is a preview. The total pages displayed will be limited."; ocean.msg.MSG_GOOGLE_BOOKS_PUBLIC_DOMAIN_ONLY="Public domain only";ocean.msg.MSG_GOOGLE_BOOKS_RELEVANCE="relevance";ocean.msg.MSG_GOOGLE_BOOKS_REMOVE="Remove";ocean.msg.MSG_GOOGLE_BOOKS_REMOVE_BOOK="Remove book";ocean.msg.MSG_GOOGLE_BOOKS_REMOVE_FROM_MYEBOOKS="Remove from My eBooks";ocean.msg.MSG_GOOGLE_BOOKS_RESULTS_CLASSIC_MODE="List view";ocean.msg.MSG_GOOGLE_BOOKS_RESULTS_GRID_MODE="Cover view";ocean.msg.MSG_GOOGLE_BOOKS_WRITE_REVIEW="Write review";ocean.msg.MSG_GOOGLE_BOOK_SEARCH_LOGO="Book Search"; ocean.msg.MSG_GOOGLE_COMPLETE_CLOSE="close";ocean.msg.MSG_GOOGLE_PRINT_ALL_BOOKS="All books";ocean.msg.MSG_GOOGLE_PRINT_BACK_COVER="Back Cover";ocean.msg.MSG_GOOGLE_PRINT_BOOK_RESTRICT_SEARCH_SHORT="Search in this book";ocean.msg.MSG_GOOGLE_PRINT_BOOK_TOC_SHORT="Contents";ocean.msg.MSG_GOOGLE_PRINT_BUY_THIS_MAGAZINE="Subscribe to this magazine";ocean.msg.MSG_GOOGLE_PRINT_FRONT_COVER="Front Cover";ocean.msg.MSG_GOOGLE_PRINT_NO_PAGE_EXPLANATION="You have either reached a page that is unavailable for viewing or reached your viewing limit for this book."; ocean.msg.MSG_GOOGLE_PRINT_SEARCH_ALL_BOOKS_AND_MAGAZINES="Search all books";ocean.msg.MSG_GUOXUE_BOOKS="Guoxue books";ocean.msg.MSG_HELP_WITH_DEVICES_AND_FORMATS="Help with devices & formats";ocean.msg.MSG_JUSTIFY="Justify";ocean.msg.MSG_LEARN_ABOUT_BOOKS_ON_PLAY="Learn more about books on Google Play";ocean.msg.MSG_LEARN_MORE="Learn more";ocean.msg.MSG_LESS_UPPERCASE="Less";ocean.msg.MSG_LIMITED_PREVIEW="Limited preview";ocean.msg.MSG_LINK_TO_ARTICLE="Link to article"; ocean.msg.MSG_LINK_TO_ARTICLE_INSTRUCTION="Click on a headline to choose the article";ocean.msg.MSG_LINK_TO_PAGE_POPUP_INSTRUCTIONS="Paste link in <b>email</b> or <b>IM</b>";ocean.msg.MSG_LOADING="Loading...";ocean.msg.MSG_MAKE_PRIVATE="Make private";ocean.msg.MSG_MAKE_PUBLIC="Make public";ocean.msg.MSG_MARGIN_NOTE_DELETE_ERROR="There was a problem deleting your margin note";ocean.msg.MSG_MARGIN_NOTE_SAVE_ERROR="There was a problem saving your margin note"; ocean.msg.MSG_MEDIA_UNAVAILABLE_OFFLINE="Rich media unavailable while offline.";ocean.msg.MSG_MISSING_SNIPPET="We couldn't make an image for this result.";ocean.msg.MSG_MN_COPY="Copy";ocean.msg.MSG_MN_DEFINE="Define";ocean.msg.MSG_MN_SEARCH_BOOK="Search Book";ocean.msg.MSG_MN_TRANSLATE="Translate";ocean.msg.MSG_MORE_ABOUT_THIS_BOOK="More about this book";ocean.msg.MSG_MORE_EDIT_BOOKSHELF_OPTIONS="More Options";ocean.msg.MSG_MORE_UPPERCASE="More";ocean.msg.MSG_MY_BOOKS="My Books"; ocean.msg.MSG_NAME="Name";ocean.msg.MSG_NAVBAR_NEXT="Next";ocean.msg.MSG_NAVBAR_PREVIOUS="Previous";ocean.msg.MSG_NETWORK_ERROR_REORDERING_SHELF="Unable to reorder your shelf at this time. Please try again later.";ocean.msg.MSG_NEWSPAPER_REPORT_BAD_EDITION="Flag this edition as unreadable";ocean.msg.MSG_NO_DEFINITION="No definition found.";ocean.msg.MSG_NO_PREVIEW="No preview";ocean.msg.MSG_ORGANIZE="Organize";ocean.msg.MSG_ORIGINAL_TEXT="Original text:";ocean.msg.MSG_PAGE_WORD="Page"; ocean.msg.MSG_PATENTS_SHOW_LESS="Less";ocean.msg.MSG_PATENT_SORT_BY_DATE_NEW="Sort by date (new first)";ocean.msg.MSG_PATENT_SORT_BY_DATE_OLD="Sort by date (old first)";ocean.msg.MSG_PATENT_SORT_BY_RELEVANCE="Sort by relevance";ocean.msg.MSG_PATENT_STATUS_ANY="Any status";ocean.msg.MSG_PATENT_STATUS_APPLICATION="Applications";ocean.msg.MSG_PATENT_STATUS_ISSUED="Issued patents";ocean.msg.MSG_PAUSE_BOOKSHELF="Pause collection";ocean.msg.MSG_PAUSE_BOOKSHELF_CAUTION="Are you sure you want to pause collection of this information? This could negatively affect quality of our recommendations for you."; ocean.msg.MSG_PDF="PDF";ocean.msg.MSG_PLEASE_ENTER_VALID_NUMBER="Please enter a valid number";ocean.msg.MSG_PLEASE_ENTER_VALID_NUMBER_BETWEEN_TITLE="Invalid Number";ocean.msg.MSG_PREVIEW="Preview";ocean.msg.MSG_PREVIEW_IT="preview it";ocean.msg.MSG_PRE_ORDERED="Pre-ordered";ocean.msg.MSG_PRINT_ABOUT_THIS_BOOK="About this book";ocean.msg.MSG_PRIVATE="Private";ocean.msg.MSG_PRIVATE_BOOKSHELF="Private bookshelf";ocean.msg.MSG_PUBLIC="Public";ocean.msg.MSG_PUBLIC_BOOKSHELF="Public bookshelf"; ocean.msg.MSG_PUBLISHER="publisher";ocean.msg.MSG_PURCHASED_BOOK_LABEL="Purchased";ocean.msg.MSG_READER_AUTO_LAYOUT_TOOLTIP="Automatic layout";ocean.msg.MSG_READER_CONTENTS="Contents";ocean.msg.MSG_READER_DISPLAY_OPTIONS="Display options";ocean.msg.MSG_READER_JUSTIFY_OFF="No justification";ocean.msg.MSG_READER_JUSTIFY_ON="Justify text";ocean.msg.MSG_READER_LINE_HEIGHT="Line height";ocean.msg.MSG_READER_ONE_PAGE_TOOLTIP="One-page layout";ocean.msg.MSG_READER_SEARCH="Search"; ocean.msg.MSG_READER_SYNONYMS="synonyms";ocean.msg.MSG_READER_TWO_PAGE_TOOLTIP="Two-page layout";ocean.msg.MSG_READER_UNKNOWN_ERROR="An unknown error has occurred.";ocean.msg.MSG_READER_VIEW_MODE_HEADING="View";ocean.msg.MSG_READ_EBOOK="Read eBook";ocean.msg.MSG_READ_EREADER_INSTRUCTIONS="read eReader instructions";ocean.msg.MSG_READ_NOW="Read now";ocean.msg.MSG_READ_THE_BOOK="Read the book";ocean.msg.MSG_REDO_BOOKSHELF_ACTION="Redo";ocean.msg.MSG_REMOVE_BOOKMARK="Remove bookmark"; ocean.msg.MSG_RENTAL_EXPIRED="Expired";ocean.msg.MSG_RENTAL_EXPIRING_SOON="Expiring soon";ocean.msg.MSG_REPORT_AN_ISSUE="Report an issue";ocean.msg.MSG_REPORT_OFFENSIVE_CONTENT="Report offensive content";ocean.msg.MSG_RESUME_BOOKSHELF="Resume collection";ocean.msg.MSG_RESUME_BOOKSHELF_CAUTION="Do you want to resume collecting this information? This could improve the quality of our recommendations for you.";ocean.msg.MSG_SAMPLE_EBOOK="Sample eBook";ocean.msg.MSG_SAMPLE_PRINT_BOOK="Sample print book"; ocean.msg.MSG_SAVE="Save";ocean.msg.MSG_SCANNED_PAGES="Scanned pages";ocean.msg.MSG_SCROLL_LEFT="Scroll left";ocean.msg.MSG_SCROLL_RIGHT="Scroll right";ocean.msg.MSG_SEARCH_MY_LIBRARY="Search My Library";ocean.msg.MSG_SEARCH_RESULT_LABEL="Search result";ocean.msg.MSG_SEE_PURCHASE_HISTORY="See full purchase history";ocean.msg.MSG_SELECTION_TEXT="Selection text";ocean.msg.MSG_SHARE="Share";ocean.msg.MSG_SHARE_THIS_CLIP="Share this clip";ocean.msg.MSG_SNIPPET_VIEW="Snippet view"; ocean.msg.MSG_SOME_PAGES_OMITTED="Some pages are omitted from this book preview.";ocean.msg.MSG_SORT_BY_CUSTOM_ORDERING="Custom Ordering";ocean.msg.MSG_SORT_BY_DEFAULT_ORDERING="Default Ordering";ocean.msg.MSG_SPELL_SUGGEST="Did you mean:";ocean.msg.MSG_THANKS_FOR_REPORTING_BAD_PAGE="Done! Thanks for reporting the problem.";ocean.msg.MSG_THE_GLOBE_AND_MAIL="The Globe & Mail";ocean.msg.MSG_THE_NEW_YORK_TIMES="The New York Times\u00ae";ocean.msg.MSG_TRANSLATE_OCR_TEXT="Translate"; ocean.msg.MSG_TURN_OFF_HIGHLIGHTING="Turn off highlighting";ocean.msg.MSG_TURN_ON_HIGHLIGHTING="Turn on highlighting";ocean.msg.MSG_UNABLE_TO_REORDER_REFRESH_PAGE="Unable to reorder your shelf. Please refresh the page and try again.";ocean.msg.MSG_UNAVAILABLE_IN_SAMPLE="Unavailable in the sample";ocean.msg.MSG_UNDO_BOOKSHELF_ACTION="Undo";ocean.msg.MSG_UNKNOWN_DEVICE_HOVER="The format of this book is currently unknown. We will update this when we receive the information from the publisher."; ocean.msg.MSG_UNREVERSIBLE_ACTION_CAUTION="This action can't be reversed.";ocean.msg.MSG_VIEW_ALL="View all";ocean.msg.MSG_VIEW_ORDER_PLAIN_TEXT="View order";ocean.msg.MSG_VIEW_PAGE_IMAGES="View page images";ocean.msg.MSG_VIEW_PDF="View PDF";ocean.msg.MSG_VIEW_PLAIN_TEXT="View plain text";ocean.msg.MSG_VIEW_SAMPLE="View sample";ocean.msg.MSG_VISIBILITY="Visibility";ocean.msg.MSG_VOLUMES_NEXT_PAGE="Next Page";ocean.msg.MSG_VOLUMES_PREVIOUS_PAGE="Previous Page";ocean.msg.MSG_WEB="Web"; ocean.msg.MSG_WEB_READER_PAYMENT_DECLINED_ACCESS_ERROR_BODY="Sorry, your credit card payment for this book was declined. Please update your credit card billing information and try again.";ocean.msg.MSG_WEB_READER_SERVER_ACCESS_ERROR_BODY="Sorry, an error occurred while reading this book. Please close this book and try again in a few minutes.";ocean.msg.MSG_ZOOM="Zoom";ocean.msg.MSG_ZOOM_IN_LOWERCASE="Zoom in";ocean.msg.MSG_ZOOM_OUT_LOWERCASE="Zoom out";ocean.msg.getAddedBookshelfAction=module$contents$ocean$msg_getAddedBookshelfAction; ocean.msg.getAddedToShelf=module$contents$ocean$msg_getAddedToShelf;ocean.msg.getAddedToShelves=module$contents$ocean$msg_getAddedToShelves;ocean.msg.getAvailableOnDate=module$contents$ocean$msg_getAvailableOnDate;ocean.msg.getBookByAuthor=module$contents$ocean$msg_getBookByAuthor;ocean.msg.getBooksAdded=module$contents$ocean$msg_getBooksAdded;ocean.msg.getBuyEbookWithPrice=module$contents$ocean$msg_getBuyEbookWithPrice;ocean.msg.getClearBookshelfDialogTitle=module$contents$ocean$msg_getClearBookshelfDialogTitle; ocean.msg.getConfirmRemoveVolumeFromCollection=module$contents$ocean$msg_getConfirmRemoveVolumeFromCollection;ocean.msg.getDeleteBookshelfDialogTitle=module$contents$ocean$msg_getDeleteBookshelfDialogTitle;ocean.msg.getDeletePurchasedBookDialogTitle=module$contents$ocean$msg_getDeletePurchasedBookDialogTitle;ocean.msg.getEbookFromWithPrice=module$contents$ocean$msg_getEbookFromWithPrice;ocean.msg.getEditBookshelfDialogTitle=module$contents$ocean$msg_getEditBookshelfDialogTitle; ocean.msg.getEmptyBookshelfMessage=module$contents$ocean$msg_getEmptyBookshelfMessage;ocean.msg.getGoogleBooksResultViewSummary=module$contents$ocean$msg_getGoogleBooksResultViewSummary;ocean.msg.getGoogleBooksSnippetViewSummary=module$contents$ocean$msg_getGoogleBooksSnippetViewSummary;ocean.msg.getGooglePrintPageNumber=module$contents$ocean$msg_getGooglePrintPageNumber;ocean.msg.getItemsNotAdded=module$contents$ocean$msg_getItemsNotAdded;ocean.msg.getMoreWithRightArrows=module$contents$ocean$msg_getMoreWithRightArrows; ocean.msg.getMoveBookshelfAction=module$contents$ocean$msg_getMoveBookshelfAction;ocean.msg.getNReviews=module$contents$ocean$msg_getNReviews;ocean.msg.getNetworkErrorTryingToContactBooks=module$contents$ocean$msg_getNetworkErrorTryingToContactBooks;ocean.msg.getNoResultsFoundBold=module$contents$ocean$msg_getNoResultsFoundBold;ocean.msg.getNoResultsFoundInBook=module$contents$ocean$msg_getNoResultsFoundInBook;ocean.msg.getPageCount=module$contents$ocean$msg_getPageCount; ocean.msg.getPageNotPartOfBookPreview=module$contents$ocean$msg_getPageNotPartOfBookPreview;ocean.msg.getPageRangeNotShown=module$contents$ocean$msg_getPageRangeNotShown;ocean.msg.getPatentImageNOfM=module$contents$ocean$msg_getPatentImageNOfM;ocean.msg.getPatentsShowNMore=module$contents$ocean$msg_getPatentsShowNMore;ocean.msg.getPauseBookshelfDialogTitle=module$contents$ocean$msg_getPauseBookshelfDialogTitle;ocean.msg.getPreOrderPrice=module$contents$ocean$msg_getPreOrderPrice; ocean.msg.getRemoveBookshelfAction=module$contents$ocean$msg_getRemoveBookshelfAction;ocean.msg.getRemoveVolumeFromBookshelf=module$contents$ocean$msg_getRemoveVolumeFromBookshelf;ocean.msg.getRentalExpiringDays=module$contents$ocean$msg_getRentalExpiringDays;ocean.msg.getRentalExpiringHours=module$contents$ocean$msg_getRentalExpiringHours;ocean.msg.getResumeBookshelfDialogTitle=module$contents$ocean$msg_getResumeBookshelfDialogTitle;ocean.msg.getSearchInsideYourLibrary=module$contents$ocean$msg_getSearchInsideYourLibrary; ocean.msg.getSearchWithinVolumeResult1=module$contents$ocean$msg_getSearchWithinVolumeResult1;ocean.msg.getWebReaderConcurrentAccessErrorBody=module$contents$ocean$msg_getWebReaderConcurrentAccessErrorBody;ocean.msg.getWebReaderOfflineAccessErrorBody=module$contents$ocean$msg_getWebReaderOfflineAccessErrorBody;ocean.msg.usePendingTranslation=module$contents$ocean$msg_usePendingTranslation;goog.a11y={};goog.a11y.aria={}; goog.a11y.aria.State={ACTIVEDESCENDANT:"activedescendant",ATOMIC:"atomic",AUTOCOMPLETE:"autocomplete",BUSY:"busy",CHECKED:"checked",COLINDEX:"colindex",CONTROLS:"controls",CURRENT:"current",DESCRIBEDBY:"describedby",DISABLED:"disabled",DROPEFFECT:"dropeffect",EXPANDED:"expanded",FLOWTO:"flowto",GRABBED:"grabbed",HASPOPUP:"haspopup",HIDDEN:"hidden",INVALID:"invalid",LABEL:"label",LABELLEDBY:"labelledby",LEVEL:"level",LIVE:"live",MULTILINE:"multiline",MULTISELECTABLE:"multiselectable",ORIENTATION:"orientation", OWNS:"owns",POSINSET:"posinset",PRESSED:"pressed",READONLY:"readonly",RELEVANT:"relevant",REQUIRED:"required",ROWINDEX:"rowindex",SELECTED:"selected",SETSIZE:"setsize",SORT:"sort",VALUEMAX:"valuemax",VALUEMIN:"valuemin",VALUENOW:"valuenow",VALUETEXT:"valuetext"};goog.a11y.aria.AutoCompleteValues={INLINE:"inline",LIST:"list",BOTH:"both",NONE:"none"};goog.a11y.aria.DropEffectValues={COPY:"copy",MOVE:"move",LINK:"link",EXECUTE:"execute",POPUP:"popup",NONE:"none"}; goog.a11y.aria.LivePriority={OFF:"off",POLITE:"polite",ASSERTIVE:"assertive"};goog.a11y.aria.OrientationValues={VERTICAL:"vertical",HORIZONTAL:"horizontal"};goog.a11y.aria.RelevantValues={ADDITIONS:"additions",REMOVALS:"removals",TEXT:"text",ALL:"all"};goog.a11y.aria.SortValues={ASCENDING:"ascending",DESCENDING:"descending",NONE:"none",OTHER:"other"};goog.a11y.aria.CheckedValues={TRUE:"true",FALSE:"false",MIXED:"mixed",UNDEFINED:"undefined"}; goog.a11y.aria.ExpandedValues={TRUE:"true",FALSE:"false",UNDEFINED:"undefined"};goog.a11y.aria.GrabbedValues={TRUE:"true",FALSE:"false",UNDEFINED:"undefined"};goog.a11y.aria.InvalidValues={FALSE:"false",TRUE:"true",GRAMMAR:"grammar",SPELLING:"spelling"};goog.a11y.aria.PressedValues={TRUE:"true",FALSE:"false",MIXED:"mixed",UNDEFINED:"undefined"};goog.a11y.aria.SelectedValues={TRUE:"true",FALSE:"false",UNDEFINED:"undefined"};goog.a11y.aria.datatables={};var module$contents$goog$a11y$aria$datatables_defaultStateValueMap; goog.a11y.aria.datatables.getDefaultValuesMap=function(){if(!module$contents$goog$a11y$aria$datatables_defaultStateValueMap){var a={};module$contents$goog$a11y$aria$datatables_defaultStateValueMap=(a[goog.a11y.aria.State.ATOMIC]=!1,a[goog.a11y.aria.State.AUTOCOMPLETE]="none",a[goog.a11y.aria.State.DROPEFFECT]="none",a[goog.a11y.aria.State.HASPOPUP]=!1,a[goog.a11y.aria.State.LIVE]="off",a[goog.a11y.aria.State.MULTILINE]=!1,a[goog.a11y.aria.State.MULTISELECTABLE]=!1,a[goog.a11y.aria.State.ORIENTATION]= "vertical",a[goog.a11y.aria.State.READONLY]=!1,a[goog.a11y.aria.State.RELEVANT]="additions text",a[goog.a11y.aria.State.REQUIRED]=!1,a[goog.a11y.aria.State.SORT]="none",a[goog.a11y.aria.State.BUSY]=!1,a[goog.a11y.aria.State.DISABLED]=!1,a[goog.a11y.aria.State.HIDDEN]=!1,a[goog.a11y.aria.State.INVALID]="false",a)}return module$contents$goog$a11y$aria$datatables_defaultStateValueMap};goog.a11y.aria.Role={ALERT:"alert",ALERTDIALOG:"alertdialog",APPLICATION:"application",ARTICLE:"article",BANNER:"banner",BUTTON:"button",CHECKBOX:"checkbox",COLUMNHEADER:"columnheader",COMBOBOX:"combobox",COMPLEMENTARY:"complementary",CONTENTINFO:"contentinfo",DEFINITION:"definition",DIALOG:"dialog",DIRECTORY:"directory",DOCUMENT:"document",FORM:"form",GRID:"grid",GRIDCELL:"gridcell",GROUP:"group",HEADING:"heading",IMG:"img",LINK:"link",LIST:"list",LISTBOX:"listbox",LISTITEM:"listitem",LOG:"log", MAIN:"main",MARQUEE:"marquee",MATH:"math",MENU:"menu",MENUBAR:"menubar",MENUITEM:"menuitem",MENUITEMCHECKBOX:"menuitemcheckbox",MENUITEMRADIO:"menuitemradio",NAVIGATION:"navigation",NOTE:"note",OPTION:"option",PRESENTATION:"presentation",PROGRESSBAR:"progressbar",RADIO:"radio",RADIOGROUP:"radiogroup",REGION:"region",ROW:"row",ROWGROUP:"rowgroup",ROWHEADER:"rowheader",SCROLLBAR:"scrollbar",SEARCH:"search",SEPARATOR:"separator",SLIDER:"slider",SPINBUTTON:"spinbutton",STATUS:"status",SWITCH:"switch", TAB:"tab",TABLIST:"tablist",TABPANEL:"tabpanel",TEXTBOX:"textbox",TEXTINFO:"textinfo",TIMER:"timer",TOOLBAR:"toolbar",TOOLTIP:"tooltip",TREE:"tree",TREEGRID:"treegrid",TREEITEM:"treeitem"};goog.a11y.aria.ARIA_PREFIX_="aria-";goog.a11y.aria.ROLE_ATTRIBUTE_="role"; goog.a11y.aria.TAGS_WITH_ASSUMED_ROLES_=module$contents$goog$object_createSet([goog.dom.TagName.A,goog.dom.TagName.AREA,goog.dom.TagName.BUTTON,goog.dom.TagName.HEAD,goog.dom.TagName.INPUT,goog.dom.TagName.LINK,goog.dom.TagName.MENU,goog.dom.TagName.META,goog.dom.TagName.OPTGROUP,goog.dom.TagName.OPTION,goog.dom.TagName.PROGRESS,goog.dom.TagName.STYLE,goog.dom.TagName.SELECT,goog.dom.TagName.SOURCE,goog.dom.TagName.TEXTAREA,goog.dom.TagName.TITLE,goog.dom.TagName.TRACK]); goog.a11y.aria.CONTAINER_ROLES_=[goog.a11y.aria.Role.COMBOBOX,goog.a11y.aria.Role.GRID,goog.a11y.aria.Role.GROUP,goog.a11y.aria.Role.LISTBOX,goog.a11y.aria.Role.MENU,goog.a11y.aria.Role.MENUBAR,goog.a11y.aria.Role.RADIOGROUP,goog.a11y.aria.Role.ROW,goog.a11y.aria.Role.ROWGROUP,goog.a11y.aria.Role.TABLIST,goog.a11y.aria.Role.TEXTBOX,goog.a11y.aria.Role.TOOLBAR,goog.a11y.aria.Role.TREE,goog.a11y.aria.Role.TREEGRID]; goog.a11y.aria.setRole=function(a,b){b?(module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&goog.asserts.assert(module$contents$goog$object_containsValue(goog.a11y.aria.Role,b),"No such ARIA role "+b),a.setAttribute(goog.a11y.aria.ROLE_ATTRIBUTE_,b)):goog.a11y.aria.removeRole(a)};goog.a11y.aria.getRole=function(a){return(a=a.getAttribute(goog.a11y.aria.ROLE_ATTRIBUTE_))||null};goog.a11y.aria.removeRole=function(a){a.removeAttribute(goog.a11y.aria.ROLE_ATTRIBUTE_)}; goog.a11y.aria.setState=function(a,b,c){Array.isArray(c)&&(c=c.join(" "));var d=goog.a11y.aria.getAriaAttributeName_(b);c===""||c==void 0?(c=goog.a11y.aria.datatables.getDefaultValuesMap(),b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)}; goog.a11y.aria.toggleState=function(a,b){var c=goog.a11y.aria.getState(a,b);goog.string.isEmptyOrWhitespace(goog.string.makeSafe(c))||c=="true"||c=="false"?goog.a11y.aria.setState(a,b,c=="true"?"false":"true"):goog.a11y.aria.removeState(a,b)};goog.a11y.aria.removeState=function(a,b){a.removeAttribute(goog.a11y.aria.getAriaAttributeName_(b))};goog.a11y.aria.getState=function(a,b){a=a.getAttribute(goog.a11y.aria.getAriaAttributeName_(b));return(b=a==null||a==void 0)?"":String(a)}; goog.a11y.aria.getActiveDescendant=function(a){var b=goog.a11y.aria.getState(a,goog.a11y.aria.State.ACTIVEDESCENDANT);return goog.dom.getOwnerDocument(a).getElementById(b)};goog.a11y.aria.setActiveDescendant=function(a,b){var c="";b&&(c=b.id,goog.asserts.assert(c,"The active element should have an id."));goog.a11y.aria.setState(a,goog.a11y.aria.State.ACTIVEDESCENDANT,c)};goog.a11y.aria.getLabel=function(a){return goog.a11y.aria.getState(a,goog.a11y.aria.State.LABEL)}; goog.a11y.aria.setLabel=function(a,b){goog.a11y.aria.setState(a,goog.a11y.aria.State.LABEL,b)};goog.a11y.aria.assertRoleIsSetInternalUtil=function(a,b){goog.a11y.aria.TAGS_WITH_ASSUMED_ROLES_[a.tagName]||(a=goog.a11y.aria.getRole(a),goog.asserts.assert(a!=null,"The element ARIA role cannot be null."),goog.asserts.assert(module$contents$goog$array_contains(b,a),'Non existing or incorrect role set for element.The role set is "'+a+'". The role should be any of "'+b+'". Check the ARIA specification for more details http://www.w3.org/TR/wai-aria/roles.'))}; goog.a11y.aria.getStateBoolean=function(a,b){a=a.getAttribute(goog.a11y.aria.getAriaAttributeName_(b));goog.asserts.assert(typeof a==="boolean"||a==null||a=="true"||a=="false");return a==null?a:typeof a==="boolean"?a:a=="true"};goog.a11y.aria.getStateNumber=function(a,b){a=a.getAttribute(goog.a11y.aria.getAriaAttributeName_(b));goog.asserts.assert((a==null||!isNaN(Number(a)))&&typeof a!=="boolean");return a==null?null:Number(a)}; goog.a11y.aria.getStateString=function(a,b){a=a.getAttribute(goog.a11y.aria.getAriaAttributeName_(b));goog.asserts.assert((a==null||typeof a==="string")&&(a==""||isNaN(Number(a)))&&a!="true"&&a!="false");return a==null||a==""?null:a};goog.a11y.aria.getStringArrayStateInternalUtil=function(a,b){a=a.getAttribute(goog.a11y.aria.getAriaAttributeName_(b));return goog.a11y.aria.splitStringOnWhitespace_(a)};goog.a11y.aria.hasState=function(a,b){return a.hasAttribute(goog.a11y.aria.getAriaAttributeName_(b))}; goog.a11y.aria.isContainerRole=function(a){a=goog.a11y.aria.getRole(a);return module$contents$goog$array_contains(goog.a11y.aria.CONTAINER_ROLES_,a)};goog.a11y.aria.splitStringOnWhitespace_=function(a){return a?a.split(/\s+/):[]}; goog.a11y.aria.getAriaAttributeName_=function(a){module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&(goog.asserts.assert(a,"ARIA attribute cannot be empty."),goog.asserts.assert(module$contents$goog$object_containsValue(goog.a11y.aria.State,a),"No such ARIA attribute "+a));return goog.a11y.aria.ARIA_PREFIX_+a};goog.events.Keys={ALT:"Meta",ALTGRAPH:"AltGraph",BACKSPACE:"Backspace",CTRL:"Control",DELETE:"Delete",DOWN:"ArrowDown",END:"End",ENTER:"Enter",ESCAPE:"Escape",HOME:"Home",INSERT:"Insert",LEFT:"ArrowLeft",PAGE_DOWN:"PageDown",PAGE_UP:"PageUp",RIGHT:"ArrowRight",SHIFT:"Shift",SPACE:" ",TAB:"Tab",UP:"ArrowUp"};goog.userAgent.platform={}; goog.userAgent.platform.determineVersion_=function(){if(goog.userAgent.WINDOWS){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(goog.userAgent.getUserAgentString()))?a[1]:"0"}return goog.userAgent.MAC?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(goog.userAgent.getUserAgentString()))?a[0].replace(/_/g,"."):"10"):goog.userAgent.ANDROID?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(goog.userAgent.getUserAgentString()))?a[1]:""):goog.userAgent.IPHONE||goog.userAgent.IPAD||goog.userAgent.IPOD?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/, (a=a.exec(goog.userAgent.getUserAgentString()))?a[1].replace(/_/g,"."):""):""};goog.userAgent.platform.VERSION=goog.userAgent.platform.determineVersion_();goog.userAgent.platform.isVersion=function(a){return goog.string.compareVersions(goog.userAgent.platform.VERSION,a)>=0};goog.userAgent.product={};goog.userAgent.product.ASSUME_FIREFOX=!1;goog.userAgent.product.ASSUME_IPHONE=!1;goog.userAgent.product.ASSUME_IPAD=!1;goog.userAgent.product.ASSUME_ANDROID=!1;goog.userAgent.product.ASSUME_CHROME=!1;goog.userAgent.product.ASSUME_SAFARI=!1; goog.userAgent.product.PRODUCT_KNOWN_=goog.userAgent.ASSUME_IE||goog.userAgent.ASSUME_EDGE||goog.userAgent.ASSUME_OPERA||goog.userAgent.product.ASSUME_FIREFOX||goog.userAgent.product.ASSUME_IPHONE||goog.userAgent.product.ASSUME_IPAD||goog.userAgent.product.ASSUME_ANDROID||goog.userAgent.product.ASSUME_CHROME||goog.userAgent.product.ASSUME_SAFARI;goog.userAgent.product.OPERA=goog.userAgent.OPERA;goog.userAgent.product.IE=goog.userAgent.IE;goog.userAgent.product.EDGE=goog.userAgent.EDGE; goog.userAgent.product.FIREFOX=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_FIREFOX:module$contents$goog$labs$userAgent$browser_matchFirefox();goog.userAgent.product.isIphoneOrIpod_=function(){return module$contents$goog$labs$userAgent$platform_isIphone()||module$contents$goog$labs$userAgent$platform_isIpod()};goog.userAgent.product.IPHONE=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPHONE:goog.userAgent.product.isIphoneOrIpod_(); goog.userAgent.product.IPAD=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_IPAD:module$contents$goog$labs$userAgent$platform_isIpad();goog.userAgent.product.ANDROID=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_ANDROID:module$contents$goog$labs$userAgent$browser_matchAndroidBrowser();goog.userAgent.product.CHROME=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_CHROME:module$contents$goog$labs$userAgent$browser_matchChrome(); goog.userAgent.product.isSafariDesktop_=function(){return module$contents$goog$labs$userAgent$browser_matchSafari()&&!module$contents$goog$labs$userAgent$platform_isIos()};goog.userAgent.product.SAFARI=goog.userAgent.product.PRODUCT_KNOWN_?goog.userAgent.product.ASSUME_SAFARI:goog.userAgent.product.isSafariDesktop_();goog.userAgent.product.determineVersion_=function(){if(goog.userAgent.product.FIREFOX)return goog.userAgent.product.getFirstRegExpGroup_(/Firefox\/([0-9.]+)/);if(goog.userAgent.product.IE||goog.userAgent.product.EDGE||goog.userAgent.product.OPERA)return goog.userAgent.VERSION;if(goog.userAgent.product.CHROME){if(module$contents$goog$labs$userAgent$platform_isIos()||module$contents$goog$labs$userAgent$platform_isMacintosh()){var a=goog.userAgent.product.getFirstRegExpGroup_(/CriOS\/([0-9.]+)/);if(a)return a}return goog.userAgent.product.getFirstRegExpGroup_(/Chrome\/([0-9.]+)/)}if(goog.userAgent.product.SAFARI&& !module$contents$goog$labs$userAgent$platform_isIos())return goog.userAgent.product.getFirstRegExpGroup_(/Version\/([0-9.]+)/);if(goog.userAgent.product.IPHONE||goog.userAgent.product.IPAD){if(a=goog.userAgent.product.execRegExp_(/Version\/(\S+).*Mobile\/(\S+)/))return a[1]+"."+a[2]}else if(goog.userAgent.product.ANDROID)return(a=goog.userAgent.product.getFirstRegExpGroup_(/Android\s+([0-9.]+)/))?a:goog.userAgent.product.getFirstRegExpGroup_(/Version\/([0-9.]+)/);return""}; goog.userAgent.product.getFirstRegExpGroup_=function(a){return(a=goog.userAgent.product.execRegExp_(a))?a[1]:""};goog.userAgent.product.execRegExp_=function(a){return a.exec(goog.userAgent.getUserAgentString())};goog.userAgent.product.VERSION=goog.userAgent.product.determineVersion_();goog.userAgent.product.isVersion=function(a){return goog.string.compareVersions(goog.userAgent.product.VERSION,a)>=0};goog.style.bidi={};goog.style.bidi.getScrollLeft=function(a){var b=goog.style.isRightToLeft(a);return b&&goog.style.bidi.usesNegativeScrollLeftInRtl_()?-a.scrollLeft:b&&(b=goog.style.getComputedOverflowX(a),b!="visible")?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft}; goog.style.bidi.getOffsetStart=function(a){var b=a.offsetLeft,c=a.offsetParent;c||goog.style.getComputedPosition(a)!="fixed"||(c=goog.dom.getOwnerDocument(a).documentElement);if(!c)return b;if(goog.FEATURESET_YEAR<2019&&goog.userAgent.GECKO&&!goog.userAgent.isVersionOrHigher(58)){var d=goog.style.getBorderBox(c);b+=d.left}else goog.FEATURESET_YEAR<2018&&goog.userAgent.isDocumentModeOrHigher(8)&&!goog.userAgent.isDocumentModeOrHigher(9)&&(d=goog.style.getBorderBox(c),b-=d.left);return goog.style.isRightToLeft(c)? (a=b+a.offsetWidth,c.clientWidth-a):b};goog.style.bidi.setScrollOffset=function(a,b){b=Math.max(b,0);goog.style.isRightToLeft(a)?goog.style.bidi.usesNegativeScrollLeftInRtl_()?a.scrollLeft=-b:a.scrollLeft=a.scrollWidth-b-a.clientWidth:a.scrollLeft=b}; goog.style.bidi.usesNegativeScrollLeftInRtl_=function(){var a=goog.userAgent.product.SAFARI&&goog.userAgent.product.isVersion(10),b=goog.userAgent.IOS&&goog.userAgent.platform.isVersion(10),c=goog.userAgent.product.CHROME&&goog.userAgent.product.isVersion(85);return goog.FEATURESET_YEAR>=2021||goog.userAgent.GECKO||a||b||c};goog.style.bidi.setPosition=function(a,b,c,d){c!==null&&(a.style.top=c+"px");d?(a.style.right=b+"px",a.style.left=""):(a.style.left=b+"px",a.style.right="")};goog.fx.Dragger=function(a,b,c){goog.events.EventTarget.call(this);this.target=a;this.handle=b||a;this.limits=c||new goog.math.Rect(NaN,NaN,NaN,NaN);this.document_=goog.dom.getOwnerDocument(a);this.eventHandler_=new goog.events.EventHandler(this);this.registerDisposable(this.eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.enabled_=!0;this.dragging_=!1;this.preventMouseDown_=!0;this.hysteresisDistanceSquared_=0;this.useRightPositioningForRtl_= !1;goog.events.listen(this.handle,[goog.events.EventType.TOUCHSTART,goog.events.EventType.MOUSEDOWN],this.startDrag,!1,this);this.useSetCapture_=goog.fx.Dragger.HAS_SET_CAPTURE_};goog.inherits(goog.fx.Dragger,goog.events.EventTarget);goog.fx.Dragger.HAS_SET_CAPTURE_=goog.global.document&&goog.global.document.documentElement&&!!goog.global.document.documentElement.setCapture&&!!goog.global.document.releaseCapture; goog.fx.Dragger.cloneNode=function(a){for(var b=a.cloneNode(!0),c=goog.dom.getElementsByTagName(goog.dom.TagName.TEXTAREA,a),d=goog.dom.getElementsByTagName(goog.dom.TagName.TEXTAREA,b),e=0;e<c.length;e++)d[e].value=c[e].value;switch(a.tagName){case String(goog.dom.TagName.TR):return goog.dom.createDom(goog.dom.TagName.TABLE,null,goog.dom.createDom(goog.dom.TagName.TBODY,null,b));case String(goog.dom.TagName.TD):case String(goog.dom.TagName.TH):return goog.dom.createDom(goog.dom.TagName.TABLE,null, goog.dom.createDom(goog.dom.TagName.TBODY,null,goog.dom.createDom(goog.dom.TagName.TR,null,b)));case String(goog.dom.TagName.TEXTAREA):b.value=a.value;default:return b}};goog.fx.Dragger.EventType={EARLY_CANCEL:"earlycancel",START:"start",BEFOREDRAG:"beforedrag",DRAG:"drag",END:"end"};goog.fx.Dragger.prototype.getHandler=function(){var a=this;return a.eventHandler_};goog.fx.Dragger.prototype.setLimits=function(a){this.limits=a||new goog.math.Rect(NaN,NaN,NaN,NaN)}; goog.fx.Dragger.prototype.setHysteresis=function(a){this.hysteresisDistanceSquared_=Math.pow(a,2)};goog.fx.Dragger.prototype.setEnabled=function(a){this.enabled_=a};goog.fx.Dragger.prototype.disposeInternal=function(){goog.fx.Dragger.superClass_.disposeInternal.call(this);goog.events.unlisten(this.handle,[goog.events.EventType.TOUCHSTART,goog.events.EventType.MOUSEDOWN],this.startDrag,!1,this);this.cleanUpAfterDragging_();this.handle=this.target=null}; goog.fx.Dragger.prototype.isRightToLeft_=function(){this.rightToLeft_===void 0&&(this.rightToLeft_=goog.style.isRightToLeft(this.target));return this.rightToLeft_}; goog.fx.Dragger.prototype.startDrag=function(a){var b=a.type==goog.events.EventType.MOUSEDOWN;if(!this.enabled_||this.dragging_||b&&!a.isMouseActionButton())this.dispatchEvent(goog.fx.Dragger.EventType.EARLY_CANCEL);else{if(this.hysteresisDistanceSquared_==0)if(this.fireDragStart_(a))this.dragging_=!0,this.preventMouseDown_&&b&&a.preventDefault();else return;else this.preventMouseDown_&&b&&a.preventDefault();this.setupDragHandlers();this.clientX=this.startX=a.clientX;this.clientY=this.startY=a.clientY; this.screenX=a.screenX;this.screenY=a.screenY;this.computeInitialPosition();this.pageScroll=goog.dom.getDomHelper(this.document_).getDocumentScroll()}}; goog.fx.Dragger.prototype.setupDragHandlers=function(){var a=this.document_,b=a.documentElement,c=!this.useSetCapture_;this.eventHandler_.listen(a,[goog.events.EventType.TOUCHMOVE,goog.events.EventType.MOUSEMOVE],this.handleMove_,{capture:c,passive:!1});this.eventHandler_.listen(a,[goog.events.EventType.TOUCHEND,goog.events.EventType.MOUSEUP],this.endDrag,c);this.useSetCapture_?(b.setCapture(!1),this.eventHandler_.listen(b,goog.events.EventType.LOSECAPTURE,this.endDrag)):this.eventHandler_.listen(goog.dom.getWindow(a), goog.events.EventType.BLUR,this.endDrag);this.scrollTarget_&&this.eventHandler_.listen(this.scrollTarget_,goog.events.EventType.SCROLL,this.onScroll_,c)};goog.fx.Dragger.prototype.fireDragStart_=function(a){return this.dispatchEvent(new goog.fx.DragEvent(goog.fx.Dragger.EventType.START,this,a.clientX,a.clientY,a))};goog.fx.Dragger.prototype.cleanUpAfterDragging_=function(){this.eventHandler_.removeAll();this.useSetCapture_&&this.document_.releaseCapture()}; goog.fx.Dragger.prototype.endDrag=function(a,b){this.cleanUpAfterDragging_();if(this.dragging_){this.dragging_=!1;var c=this.limitX(this.deltaX),d=this.limitY(this.deltaY);b=b||a.type==goog.events.EventType.TOUCHCANCEL;this.dispatchEvent(new goog.fx.DragEvent(goog.fx.Dragger.EventType.END,this,a.clientX,a.clientY,a,c,d,b))}else this.dispatchEvent(goog.fx.Dragger.EventType.EARLY_CANCEL)}; goog.fx.Dragger.prototype.handleMove_=function(a){if(this.enabled_){var b=this.useRightPositioningForRtl_&&this.isRightToLeft_()?-1:1;b*=a.clientX-this.clientX;var c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.dragging_){var d=this.startX-this.clientX,e=this.startY-this.clientY;d=d*d+e*e;if(d>this.hysteresisDistanceSquared_)if(this.fireDragStart_(a))this.dragging_=!0;else{this.isDisposed()||this.endDrag(a);return}}c=this.calculatePosition_(b, c);b=c.x;c=c.y;this.dragging_&&(d=this.dispatchEvent(new goog.fx.DragEvent(goog.fx.Dragger.EventType.BEFOREDRAG,this,a.clientX,a.clientY,a,b,c)))&&(this.doDrag(a,b,c,!1),a.preventDefault())}}; goog.fx.Dragger.prototype.calculatePosition_=function(a,b){var c=goog.dom.getDomHelper(this.document_).getDocumentScroll();a+=c.x-this.pageScroll.x;b+=c.y-this.pageScroll.y;this.pageScroll=c;this.deltaX+=a;this.deltaY+=b;a=this.limitX(this.deltaX);b=this.limitY(this.deltaY);return new goog.math.Coordinate(a,b)};goog.fx.Dragger.prototype.onScroll_=function(a){var b=this.calculatePosition_(0,0);a.clientX=this.clientX;a.clientY=this.clientY;this.doDrag(a,b.x,b.y,!0)}; goog.fx.Dragger.prototype.doDrag=function(a,b,c){this.defaultAction(b,c);this.dispatchEvent(new goog.fx.DragEvent(goog.fx.Dragger.EventType.DRAG,this,a.clientX,a.clientY,a,b,c))};goog.fx.Dragger.prototype.limitX=function(a){var b=this.limits,c=isNaN(b.left)?null:b.left;b=isNaN(b.width)?0:b.width;b=c!=null?c+b:Infinity;c=c!=null?c:-Infinity;return Math.min(b,Math.max(c,a))}; goog.fx.Dragger.prototype.limitY=function(a){var b=this.limits,c=isNaN(b.top)?null:b.top;b=isNaN(b.height)?0:b.height;b=c!=null?c+b:Infinity;c=c!=null?c:-Infinity;return Math.min(b,Math.max(c,a))};goog.fx.Dragger.prototype.computeInitialPosition=function(){this.deltaX=this.useRightPositioningForRtl_?goog.style.bidi.getOffsetStart(this.target):this.target.offsetLeft;this.deltaY=this.target.offsetTop}; goog.fx.Dragger.prototype.defaultAction=function(a,b){this.useRightPositioningForRtl_&&this.isRightToLeft_()?this.target.style.right=a+"px":this.target.style.left=a+"px";this.target.style.top=b+"px"};goog.fx.DragEvent=function(a,b,c,d,e,f,g){goog.events.Event.call(this,a);this.clientX=c;this.clientY=d;this.browserEvent=e;this.left=f!==void 0?f:b.deltaX;this.top=g!==void 0?g:b.deltaY};goog.inherits(goog.fx.DragEvent,goog.events.Event);goog.ui={};var module$contents$goog$ui$Map_UiMap=function(a){this.map_=new Map;var b=arguments.length;if(b>1){if(b%2)throw Error("Uneven number of arguments");for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.addAll(a)};module$contents$goog$ui$Map_UiMap.prototype.getCount=function(){return this.map_.size};module$contents$goog$ui$Map_UiMap.prototype.getValues=function(){return Array.from(this.map_.values())};module$contents$goog$ui$Map_UiMap.prototype.getKeys=function(){return Array.from(this.map_.keys())}; module$contents$goog$ui$Map_UiMap.prototype.containsKey=function(a){return this.map_.has(a)};module$contents$goog$ui$Map_UiMap.prototype.containsValue=function(a){return this.getValues().some(function(b){return b==a})};module$contents$goog$ui$Map_UiMap.prototype.equals=function(a,b){var c=this;b=b===void 0?function(d,e){return d===e}:b;return this===a?!0:this.map_.size!=a.getCount()?!1:this.getKeys().every(function(d){return b(c.map_.get(d),a.get(d))})}; module$contents$goog$ui$Map_UiMap.prototype.isEmpty=function(){return this.map_.size==0};module$contents$goog$ui$Map_UiMap.prototype.clear=function(){this.map_.clear()};module$contents$goog$ui$Map_UiMap.prototype.remove=function(a){return this.map_.delete(a)};module$contents$goog$ui$Map_UiMap.prototype.get=function(a,b){return this.map_.has(a)?this.map_.get(a):b};module$contents$goog$ui$Map_UiMap.prototype.set=function(a,b){var c=this;c.map_.set(a,b);return c}; module$contents$goog$ui$Map_UiMap.prototype.addAll=function(a){if(a instanceof module$contents$goog$ui$Map_UiMap){a=(0,$jscomp.makeIterator)(a.map_);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=(0,$jscomp.makeIterator)(b);b=c.next().value;c=c.next().value;this.map_.set(b,c)}}else if(a)for(a=(0,$jscomp.makeIterator)(Object.entries(a)),b=a.next();!b.done;b=a.next())b=b.value,c=(0,$jscomp.makeIterator)(b),b=c.next().value,c=c.next().value,this.map_.set(b,c)}; module$contents$goog$ui$Map_UiMap.prototype.forEach=function(a,b){var c=this;b=b===void 0?this:b;this.map_.forEach(function(d,e){return a.call(b,d,e,c)})};module$contents$goog$ui$Map_UiMap.prototype.clone=function(){return new module$contents$goog$ui$Map_UiMap(this)};module$contents$goog$ui$Map_UiMap.prototype.toObject=function(){for(var a={},b=(0,$jscomp.makeIterator)(this.map_),c=b.next();!c.done;c=b.next()){c=c.value;var d=(0,$jscomp.makeIterator)(c);c=d.next().value;d=d.next().value;a[c]=d}return a}; goog.ui.Map=module$contents$goog$ui$Map_UiMap;goog.dom.animationFrame={};goog.dom.animationFrame.polyfill={};goog.dom.animationFrame.polyfill.ENABLED=goog.FEATURESET_YEAR<2018; goog.dom.animationFrame.polyfill.install=function(){if(goog.dom.animationFrame.polyfill.ENABLED){for(var a=["ms","moz","webkit","o"],b,c=0;b=a[c]&&!goog.global.requestAnimationFrame;++c)goog.global.requestAnimationFrame=goog.global[b+"RequestAnimationFrame"],goog.global.cancelAnimationFrame=goog.global[b+"CancelAnimationFrame"]||goog.global[b+"CancelRequestAnimationFrame"];if(!goog.global.requestAnimationFrame){var d=0;goog.global.requestAnimationFrame=function(e){var f=(new Date).getTime(),g=Math.max(0, 16-(f-d));d=f+g;return goog.global.setTimeout(function(){e(f+g)},g)};goog.global.cancelAnimationFrame||(goog.global.cancelAnimationFrame=function(e){clearTimeout(e)})}}};goog.dom.animationFrame.polyfill.install();goog.dom.animationFrame.State=function(){};goog.dom.animationFrame.tasks_=[[],[]];goog.dom.animationFrame.doubleBufferIndex_=0;goog.dom.animationFrame.requestedFrame_=!1;goog.dom.animationFrame.taskId_=0;goog.dom.animationFrame.running_=!1; goog.dom.animationFrame.createTask=function(a,b){var c=goog.dom.animationFrame.taskId_++,d={id:c,fn:a.measure,context:b};a={id:c,fn:a.mutate,context:b};var e={measureTask:d,mutateTask:a,state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(e.args||(e.args=[]),e.args.length=0,e.args.push.apply(e.args,arguments),e.args.push(e.state)):e.args&&e.args.length!=0?(e.args[0]=e.state,e.args.length=1):e.args=[e.state];if(!e.isScheduled){e.isScheduled=!0;var f=goog.dom.animationFrame.tasks_[goog.dom.animationFrame.doubleBufferIndex_]; f.push(e)}goog.dom.animationFrame.requestAnimationFrame_()}}; goog.dom.animationFrame.runTasks_=function(){goog.dom.animationFrame.running_=!0;goog.dom.animationFrame.requestedFrame_=!1;var a=goog.dom.animationFrame.tasks_[goog.dom.animationFrame.doubleBufferIndex_],b=a.length;goog.dom.animationFrame.doubleBufferIndex_=(goog.dom.animationFrame.doubleBufferIndex_+1)%2;for(var c,d=0;d<b;++d){c=a[d];var e=c.measureTask;c.isScheduled=!1;e.fn&&e.fn.apply(e.context,c.args)}for(d=0;d<b;++d)c=a[d],e=c.mutateTask,c.isScheduled=!1,e.fn&&e.fn.apply(e.context,c.args),c.state= {};a.length=0;goog.dom.animationFrame.running_=!1};goog.dom.animationFrame.isRunning=function(){return goog.dom.animationFrame.running_};goog.dom.animationFrame.requestAnimationFrame_=function(){goog.dom.animationFrame.requestedFrame_||(goog.dom.animationFrame.requestedFrame_=!0,window.requestAnimationFrame(goog.dom.animationFrame.runTasks_))};var $jscomp$templatelit$m676057039$0=$jscomp.createTemplateTagFirstArg(["about:blank"]),$jscomp$templatelit$m676057039$1=$jscomp.createTemplateTagFirstArg(["javascript:undefined"]);goog.dom.iframe={};goog.dom.iframe.BLANK_SOURCE_URL=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_trustedResourceUrl($jscomp$templatelit$m676057039$0);goog.dom.iframe.BLANK_SOURCE=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(goog.dom.iframe.BLANK_SOURCE_URL).toString(); goog.dom.iframe.BLANK_SOURCE_NEW_FRAME_URL=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_trustedResourceUrl($jscomp$templatelit$m676057039$1);goog.dom.iframe.BLANK_SOURCE_NEW_FRAME=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(goog.dom.iframe.BLANK_SOURCE_NEW_FRAME_URL).toString();goog.dom.iframe.STYLES_="border:0;vertical-align:bottom;"; goog.dom.iframe.createBlank=function(a,b){b=b?b:"";a=a.createDom(goog.dom.TagName.IFRAME,{frameborder:0,style:goog.dom.iframe.STYLES_+b});module$exports$google3$third_party$javascript$safevalues$dom$index.setIframeSrc(a,goog.dom.iframe.BLANK_SOURCE_URL);return a};goog.dom.iframe.writeSafeContent=function(a,b){a=goog.dom.getFrameContentDocument(a);a.open();module$contents$google3$third_party$javascript$safevalues$dom$globals$document_write(a,b);a.close()}; goog.dom.iframe.createWithContent=function(a,b,c,d,e){var f=goog.dom.getDomHelper(a);b=module$exports$google3$third_party$javascript$safevalues$index.createHtml("html",{},module$exports$google3$third_party$javascript$safevalues$index.concatHtmls([module$exports$google3$third_party$javascript$safevalues$index.createHtml("head",{},b),module$exports$google3$third_party$javascript$safevalues$index.createHtml("body",{},c)]));e||(b=module$exports$google3$third_party$javascript$safevalues$index.concatHtmls([module$exports$google3$third_party$javascript$safevalues$index.doctypeHtml(), b]));d=goog.dom.iframe.createBlank(f,d);a.appendChild(d);goog.dom.iframe.writeSafeContent(d,b);return d};goog.events.FocusHandler=function(a){goog.events.EventTarget.call(this);this.element_=a;this.listenKeyIn_=goog.events.listen(this.element_,"focus",this,!0);this.listenKeyOut_=goog.events.listen(this.element_,"blur",this,!0)};goog.inherits(goog.events.FocusHandler,goog.events.EventTarget);goog.events.FocusHandler.EventType={FOCUSIN:"focusin",FOCUSOUT:"focusout"}; goog.events.FocusHandler.prototype.handleEvent=function(a){var b=a.event_;b=new goog.events.BrowserEvent(b);b.type=a.type=="focusin"||a.type=="focus"?goog.events.FocusHandler.EventType.FOCUSIN:goog.events.FocusHandler.EventType.FOCUSOUT;this.dispatchEvent(b)};goog.events.FocusHandler.prototype.disposeInternal=function(){goog.events.FocusHandler.superClass_.disposeInternal.call(this);goog.events.unlistenByKey(this.listenKeyIn_);goog.events.unlistenByKey(this.listenKeyOut_);delete this.element_};goog.ui.IdGenerator=function(){};goog.addSingletonGetter(goog.ui.IdGenerator);goog.ui.IdGenerator.prototype.nextId_=0;goog.ui.IdGenerator.prototype.idPrefix_="";goog.ui.IdGenerator.prototype.getNextUniqueId=function(){return this.idPrefix_+":"+(this.nextId_++).toString(36)};goog.ui.Component=function(a){goog.events.EventTarget.call(this);this.dom_=a||goog.dom.getDomHelper();this.rightToLeft_=goog.ui.Component.defaultRightToLeft_;this.id_=null;this.inDocument_=!1;this.element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.pointerEventsEnabled_=this.wasDecorated_=!1};goog.inherits(goog.ui.Component,goog.events.EventTarget);goog.ui.Component.ALLOW_DETACHED_DECORATION=!1; goog.ui.Component.prototype.idGenerator_=goog.ui.IdGenerator.getInstance();goog.ui.Component.DEFAULT_BIDI_DIR=0;goog.ui.Component.defaultRightToLeft_=goog.ui.Component.DEFAULT_BIDI_DIR==1?!1:goog.ui.Component.DEFAULT_BIDI_DIR==-1?!0:null; goog.ui.Component.EventType={BEFORE_SHOW:"beforeshow",SHOW:"show",HIDE:"hide",DISABLE:"disable",ENABLE:"enable",HIGHLIGHT:"highlight",UNHIGHLIGHT:"unhighlight",ACTIVATE:"activate",DEACTIVATE:"deactivate",SELECT:"select",UNSELECT:"unselect",CHECK:"check",UNCHECK:"uncheck",FOCUS:"focus",BLUR:"blur",OPEN:"open",CLOSE:"close",ENTER:"enter",LEAVE:"leave",ACTION:"action",CHANGE:"change"}; goog.ui.Component.Error={NOT_SUPPORTED:"Method not supported",DECORATE_INVALID:"Invalid element to decorate",ALREADY_RENDERED:"Component already rendered",PARENT_UNABLE_TO_BE_SET:"Unable to set parent component",CHILD_INDEX_OUT_OF_BOUNDS:"Child component index out of bounds",NOT_OUR_CHILD:"Child is not in parent component",NOT_IN_DOCUMENT:"Operation not supported while component is not in document",STATE_INVALID:"Invalid component state"}; goog.ui.Component.State={ALL:255,DISABLED:1,HOVER:2,ACTIVE:4,SELECTED:8,CHECKED:16,FOCUSED:32,OPENED:64}; goog.ui.Component.getStateTransitionEvent=function(a,b){switch(a){case goog.ui.Component.State.DISABLED:return b?goog.ui.Component.EventType.DISABLE:goog.ui.Component.EventType.ENABLE;case goog.ui.Component.State.HOVER:return b?goog.ui.Component.EventType.HIGHLIGHT:goog.ui.Component.EventType.UNHIGHLIGHT;case goog.ui.Component.State.ACTIVE:return b?goog.ui.Component.EventType.ACTIVATE:goog.ui.Component.EventType.DEACTIVATE;case goog.ui.Component.State.SELECTED:return b?goog.ui.Component.EventType.SELECT: goog.ui.Component.EventType.UNSELECT;case goog.ui.Component.State.CHECKED:return b?goog.ui.Component.EventType.CHECK:goog.ui.Component.EventType.UNCHECK;case goog.ui.Component.State.FOCUSED:return b?goog.ui.Component.EventType.FOCUS:goog.ui.Component.EventType.BLUR;case goog.ui.Component.State.OPENED:return b?goog.ui.Component.EventType.OPEN:goog.ui.Component.EventType.CLOSE}throw Error(goog.ui.Component.Error.STATE_INVALID);}; goog.ui.Component.setDefaultRightToLeft=function(a){goog.ui.Component.defaultRightToLeft_=a};goog.ui.Component.prototype.getId=function(){return this.id_||(this.id_=this.idGenerator_.getNextUniqueId())};goog.ui.Component.prototype.setId=function(a){this.parent_&&this.parent_.childIndex_&&(module$contents$goog$object_remove(this.parent_.childIndex_,this.id_),module$contents$goog$object_add(this.parent_.childIndex_,a,this));this.id_=a};goog.ui.Component.prototype.getElement=function(){return this.element_}; goog.ui.Component.prototype.getElementStrict=function(){var a=this.element_;goog.asserts.assert(a,"Can not call getElementStrict before rendering/decorating.");return a};goog.ui.Component.prototype.setElementInternal=function(a){this.element_=a};goog.ui.Component.prototype.getElementsByClass=function(a){return this.element_?this.dom_.getElementsByClass(a,this.element_):[]};goog.ui.Component.prototype.getElementByClass=function(a){return this.element_?this.dom_.getElementByClass(a,this.element_):null}; goog.ui.Component.prototype.getRequiredElementByClass=function(a){var b=this.getElementByClass(a);goog.asserts.assert(b,"Expected element in component with class: %s",a);return b};goog.ui.Component.prototype.getHandler=function(){var a=this;a.googUiComponentHandler_||(a.googUiComponentHandler_=new goog.events.EventHandler(a));return goog.asserts.assert(a.googUiComponentHandler_)}; goog.ui.Component.prototype.setParent=function(a){if(this==a)throw Error(goog.ui.Component.Error.PARENT_UNABLE_TO_BE_SET);if(a&&this.parent_&&this.id_&&this.parent_.getChild(this.id_)&&this.parent_!=a)throw Error(goog.ui.Component.Error.PARENT_UNABLE_TO_BE_SET);this.parent_=a;goog.ui.Component.superClass_.setParentEventTarget.call(this,a)};goog.ui.Component.prototype.getParent=function(){return this.parent_}; goog.ui.Component.prototype.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error(goog.ui.Component.Error.NOT_SUPPORTED);goog.ui.Component.superClass_.setParentEventTarget.call(this,a)};goog.ui.Component.prototype.getDomHelper=function(){return this.dom_};goog.ui.Component.prototype.isInDocument=function(){return this.inDocument_};goog.ui.Component.prototype.createDom=function(){this.element_=this.dom_.createElement(goog.dom.TagName.DIV)}; goog.ui.Component.prototype.render=function(a){this.render_(a)};goog.ui.Component.prototype.renderBefore=function(a){this.render_(a.parentNode,a)};goog.ui.Component.prototype.render_=function(a,b){if(this.inDocument_)throw Error(goog.ui.Component.Error.ALREADY_RENDERED);this.element_||this.createDom();a?a.insertBefore(this.element_,b||null):this.dom_.getDocument().body.appendChild(this.element_);this.parent_&&!this.parent_.isInDocument()||this.enterDocument()}; goog.ui.Component.prototype.decorate=function(a){if(this.inDocument_)throw Error(goog.ui.Component.Error.ALREADY_RENDERED);if(a&&this.canDecorate(a)){this.wasDecorated_=!0;var b=goog.dom.getOwnerDocument(a);this.dom_&&this.dom_.getDocument()==b||(this.dom_=goog.dom.getDomHelper(a));this.decorateInternal(a);goog.ui.Component.ALLOW_DETACHED_DECORATION&&!goog.dom.contains(b,a)||this.enterDocument()}else throw Error(goog.ui.Component.Error.DECORATE_INVALID);};goog.ui.Component.prototype.canDecorate=function(){return!0}; goog.ui.Component.prototype.decorateInternal=function(a){this.element_=a};goog.ui.Component.prototype.enterDocument=function(){this.inDocument_=!0;this.forEachChild(function(a){!a.isInDocument()&&a.getElement()&&a.enterDocument()})};goog.ui.Component.prototype.exitDocument=function(){this.forEachChild(function(a){a.isInDocument()&&a.exitDocument()});this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1}; goog.ui.Component.prototype.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);this.forEachChild(function(a){a.dispose()});!this.wasDecorated_&&this.element_&&goog.dom.removeNode(this.element_);this.parent_=this.model_=this.element_=this.childIndex_=this.children_=null;goog.ui.Component.superClass_.disposeInternal.call(this)}; goog.ui.Component.prototype.makeId=function(a){return this.getId()+"."+a};goog.ui.Component.prototype.setModel=function(a){this.model_=a};goog.ui.Component.prototype.addChild=function(a,b){this.addChildAt(a,this.getChildCount(),b)}; goog.ui.Component.prototype.addChildAt=function(a,b,c){goog.asserts.assert(!!a,"Provided element must not be null.");if(a.inDocument_&&(c||!this.inDocument_))throw Error(goog.ui.Component.Error.ALREADY_RENDERED);if(b<0||b>this.getChildCount())throw Error(goog.ui.Component.Error.CHILD_INDEX_OUT_OF_BOUNDS);this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);if(a.getParent()==this){var d=this.childIndex_,e=a.getId();d[e]=a;module$contents$goog$array_remove(this.children_,a)}else module$contents$goog$object_add(this.childIndex_, a.getId(),a);a.setParent(this);module$contents$goog$array_insertAt(this.children_,a,b);a.inDocument_&&this.inDocument_&&a.getParent()==this?(c=this.getContentElement(),d=c.childNodes[b]||null,d!=a.getElement()&&(a.getElement().parentElement==c&&c.removeChild(a.getElement()),b=c.childNodes[b]||null,c.insertBefore(a.getElement(),b))):c?(this.element_||this.createDom(),b=this.getChildAt(b+1),a.render_(this.getContentElement(),b?b.element_:null)):this.inDocument_&&!a.inDocument_&&a.element_&&a.element_.parentNode&& a.element_.parentNode.nodeType==goog.dom.NodeType.ELEMENT&&a.enterDocument()};goog.ui.Component.prototype.getContentElement=function(){return this.element_};goog.ui.Component.prototype.isRightToLeft=function(){this.rightToLeft_==null&&(this.rightToLeft_=goog.style.isRightToLeft(this.inDocument_?this.element_:this.dom_.getDocument().body));return this.rightToLeft_}; goog.ui.Component.prototype.setRightToLeft=function(a){if(this.inDocument_)throw Error(goog.ui.Component.Error.ALREADY_RENDERED);this.rightToLeft_=a};goog.ui.Component.prototype.hasChildren=function(){return!!this.children_&&this.children_.length!=0};goog.ui.Component.prototype.getChildCount=function(){return this.children_?this.children_.length:0};goog.ui.Component.prototype.getChild=function(a){return this.childIndex_&&a?module$contents$goog$object_get(this.childIndex_,a)||null:null}; goog.ui.Component.prototype.getChildAt=function(a){return this.children_?this.children_[a]||null:null};goog.ui.Component.prototype.forEachChild=function(a,b){this.children_&&this.children_.forEach(a,b)};goog.ui.Component.prototype.indexOfChild=function(a){return this.children_&&a?this.children_.indexOf(a):-1}; goog.ui.Component.prototype.removeChild=function(a,b){if(a){var c=typeof a==="string"?a:a.getId();a=this.getChild(c);c&&a&&(module$contents$goog$object_remove(this.childIndex_,c),module$contents$goog$array_remove(this.children_,a),b&&(a.exitDocument(),a.element_&&goog.dom.removeNode(a.element_)),a.setParent(null))}if(!a)throw Error(goog.ui.Component.Error.NOT_OUR_CHILD);return a};goog.ui.Component.prototype.removeChildAt=function(a,b){return this.removeChild(this.getChildAt(a),b)}; goog.ui.Component.prototype.removeChildren=function(a){for(var b=[];this.hasChildren();)b.push(this.removeChildAt(0,a));return b};goog.ui.ModalAriaVisibilityHelper=function(a,b){this.element_=a;this.dom_=b}; goog.ui.ModalAriaVisibilityHelper.prototype.setBackgroundVisibility=function(a){if(a){this.hiddenElements_||(this.hiddenElements_=[]);a=this.dom_.getChildren(this.dom_.getDocument().body);for(var b=0;b<a.length;b++){var c=a[b];c==this.element_||goog.a11y.aria.getState(c,goog.a11y.aria.State.HIDDEN)||(goog.a11y.aria.setState(c,goog.a11y.aria.State.HIDDEN,!0),this.hiddenElements_.push(c))}}else if(this.hiddenElements_){for(a=0;a<this.hiddenElements_.length;a++)goog.a11y.aria.removeState(this.hiddenElements_[a], goog.a11y.aria.State.HIDDEN);this.hiddenElements_=null}};goog.ui.PopupBase=function(a,b){goog.events.EventTarget.call(this);this.handler_=new goog.events.EventHandler(this);this.setElement(a||null);b&&this.setType(b)};goog.inherits(goog.ui.PopupBase,goog.events.EventTarget);goog.ui.PopupBase.Type={TOGGLE_DISPLAY:"toggle_display",MOVE_OFFSCREEN:"move_offscreen"};goog.ui.PopupBase.prototype.element_=null;goog.ui.PopupBase.prototype.autoHide_=!0;goog.ui.PopupBase.prototype.autoHidePartners_=null;goog.ui.PopupBase.prototype.autoHideRegion_=null; goog.ui.PopupBase.prototype.isVisible_=!1;goog.ui.PopupBase.prototype.shouldHideAsync_=!1;goog.ui.PopupBase.prototype.lastShowTime_=-1;goog.ui.PopupBase.prototype.lastHideTime_=-1;goog.ui.PopupBase.prototype.hideOnEscape_=!1;goog.ui.PopupBase.prototype.enableCrossIframeDismissal_=!0;goog.ui.PopupBase.prototype.type_=goog.ui.PopupBase.Type.TOGGLE_DISPLAY;goog.ui.PopupBase.EventType={BEFORE_SHOW:"beforeshow",SHOW:"show",BEFORE_HIDE:"beforehide",HIDE:"hide"};goog.ui.PopupBase.DEBOUNCE_DELAY_MS=150; goog.ui.PopupBase.prototype.getType=function(){return this.type_};goog.ui.PopupBase.prototype.setType=function(a){this.type_=a};goog.ui.PopupBase.prototype.getElement=function(){return this.element_};goog.ui.PopupBase.prototype.setElement=function(a){this.ensureNotVisible_();this.element_=a};goog.ui.PopupBase.prototype.setAutoHide=function(a){this.ensureNotVisible_();this.autoHide_=a};goog.ui.PopupBase.prototype.setEnableCrossIframeDismissal=function(a){this.enableCrossIframeDismissal_=a}; goog.ui.PopupBase.prototype.setTransition=function(a,b){this.showTransition_=a;this.hideTransition_=b};goog.ui.PopupBase.prototype.getHandler=function(){var a=this;return a.handler_};goog.ui.PopupBase.prototype.ensureNotVisible_=function(){if(this.isVisible_)throw Error("Can not change this state of the popup while showing.");};goog.ui.PopupBase.prototype.isVisible=function(){return this.isVisible_}; goog.ui.PopupBase.prototype.isOrWasRecentlyVisible=function(){return this.isVisible_||Date.now()-this.lastHideTime_<goog.ui.PopupBase.DEBOUNCE_DELAY_MS};goog.ui.PopupBase.prototype.setVisible=function(a){this.showTransition_&&this.showTransition_.stop();this.hideTransition_&&this.hideTransition_.stop();a?this.show_():this.hide_()};goog.ui.PopupBase.prototype.reposition=function(){}; goog.ui.PopupBase.prototype.show_=function(){if(!this.isVisible_&&this.onBeforeShow()){if(!this.element_)throw Error("Caller must call setElement before trying to show the popup");this.reposition();var a=goog.dom.getOwnerDocument(this.element_);this.hideOnEscape_&&this.handler_.listen(a,goog.events.EventType.KEYDOWN,this.onDocumentKeyDown_,!0);this.autoHide_&&(this.handler_.listen(a,goog.events.EventType.MOUSEDOWN,this.onDocumentMouseDown_,!0),this.handler_.listen(a,goog.events.EventType.BLUR,this.onDocumentBlur_)); this.type_==goog.ui.PopupBase.Type.TOGGLE_DISPLAY?this.showPopupElement():this.type_==goog.ui.PopupBase.Type.MOVE_OFFSCREEN&&this.reposition();this.isVisible_=!0;this.lastShowTime_=Date.now();this.lastHideTime_=-1;if(this.showTransition_)goog.events.listenOnce(this.showTransition_,goog.fx.Transition.EventType.END,this.onShow,!1,this),this.showTransition_.play();else this.onShow()}}; goog.ui.PopupBase.prototype.hide_=function(a){if(!this.isVisible_||!this.onBeforeHide(a))return!1;this.handler_&&this.handler_.removeAll();this.isVisible_=!1;this.lastHideTime_=Date.now();this.hideTransition_?(goog.events.listenOnce(this.hideTransition_,goog.fx.Transition.EventType.END,goog.partial(this.continueHidingPopup_,a),!1,this),this.hideTransition_.play()):this.continueHidingPopup_(a);return!0}; goog.ui.PopupBase.prototype.continueHidingPopup_=function(a){this.type_==goog.ui.PopupBase.Type.TOGGLE_DISPLAY?this.shouldHideAsync_?goog.Timer.callOnce(this.hidePopupElement,0,this):this.hidePopupElement():this.type_==goog.ui.PopupBase.Type.MOVE_OFFSCREEN&&this.moveOffscreen_();this.onHide(a)};goog.ui.PopupBase.prototype.showPopupElement=function(){this.element_.style.visibility="visible";goog.style.setElementShown(this.element_,!0)}; goog.ui.PopupBase.prototype.hidePopupElement=function(){this.element_.style.visibility="hidden";goog.style.setElementShown(this.element_,!1)};goog.ui.PopupBase.prototype.moveOffscreen_=function(){this.element_.style.top="-10000px"};goog.ui.PopupBase.prototype.onBeforeShow=function(){return this.dispatchEvent(goog.ui.PopupBase.EventType.BEFORE_SHOW)};goog.ui.PopupBase.prototype.onShow=function(){this.dispatchEvent(goog.ui.PopupBase.EventType.SHOW)}; goog.ui.PopupBase.prototype.onBeforeHide=function(a){return this.dispatchEvent({type:goog.ui.PopupBase.EventType.BEFORE_HIDE,target:a})};goog.ui.PopupBase.prototype.onHide=function(a){this.dispatchEvent({type:goog.ui.PopupBase.EventType.HIDE,target:a})};goog.ui.PopupBase.prototype.onDocumentMouseDown_=function(a){a=a.target;goog.dom.contains(this.element_,a)||this.isOrWithinAutoHidePartner_(a)||!this.isWithinAutoHideRegion_(a)||this.shouldDebounce_()||this.hide_(a)}; goog.ui.PopupBase.prototype.onDocumentKeyDown_=function(a){a.keyCode==goog.events.KeyCodes.ESC&&this.hide_(a.target)&&(a.preventDefault(),a.stopPropagation())}; goog.ui.PopupBase.prototype.onDocumentBlur_=function(a){if(this.enableCrossIframeDismissal_){var b=goog.dom.getOwnerDocument(this.element_);if(typeof document.activeElement!="undefined"){if(a=b.activeElement,!a||goog.dom.contains(this.element_,a)||a.tagName==goog.dom.TagName.BODY||this.isOrWithinAutoHidePartner_(a))return}else if(a.target!=b)return;this.shouldDebounce_()||this.hide_()}}; goog.ui.PopupBase.prototype.isOrWithinAutoHidePartner_=function(a){return module$contents$goog$array_some(this.autoHidePartners_||[],function(b){return a===b||goog.dom.contains(b,a)})};goog.ui.PopupBase.prototype.isWithinAutoHideRegion_=function(a){return this.autoHideRegion_?goog.dom.contains(this.autoHideRegion_,a):!0};goog.ui.PopupBase.prototype.shouldDebounce_=function(){return Date.now()-this.lastShowTime_<goog.ui.PopupBase.DEBOUNCE_DELAY_MS}; goog.ui.PopupBase.prototype.disposeInternal=function(){goog.ui.PopupBase.superClass_.disposeInternal.call(this);this.handler_.dispose();module$contents$goog$dispose_dispose(this.showTransition_);module$contents$goog$dispose_dispose(this.hideTransition_);delete this.element_;delete this.handler_;delete this.autoHidePartners_};goog.ui.ModalPopup=function(a,b){goog.ui.Component.call(this,b);this.useIframeMask_=!!a;this.lastFocus_=null;this.resizeBackgroundTask_=goog.dom.animationFrame.createTask({mutate:this.resizeBackground_},this);this.updateModalAndBackgroundTask_=goog.dom.animationFrame.createTask({mutate:this.updateModalAndBackground_},this)};goog.inherits(goog.ui.ModalPopup,goog.ui.Component);goog.ui.ModalPopup.prototype.focusHandler_=null;goog.ui.ModalPopup.prototype.visible_=!1; goog.ui.ModalPopup.prototype.bgEl_=null;goog.ui.ModalPopup.prototype.bgIframeEl_=null;goog.ui.ModalPopup.prototype.tabCatcherElement_=null;goog.ui.ModalPopup.prototype.backwardTabWrapInProgress_=!1;goog.ui.ModalPopup.prototype.centerInsideParent_=!1;goog.ui.ModalPopup.prototype.parentElementResizeObserver_=null;goog.ui.ModalPopup.prototype.getCssClass=function(){return"goog-modalpopup"};goog.ui.ModalPopup.prototype.getBackgroundElement=function(){return this.bgEl_}; goog.ui.ModalPopup.prototype.createDom=function(){goog.ui.ModalPopup.superClass_.createDom.call(this);var a=this.getElement();goog.asserts.assert(a);var b=goog.string.trim(this.getCssClass()).split(" ");goog.dom.classlist.addAll(a,b);goog.dom.setFocusableTabIndex(a,!0);goog.style.setElementShown(a,!1);this.manageBackgroundDom_();this.createTabCatcher_()}; goog.ui.ModalPopup.prototype.manageBackgroundDom_=function(){this.useIframeMask_&&!this.bgIframeEl_&&(this.bgIframeEl_=goog.dom.iframe.createBlank(this.getDomHelper()),this.bgIframeEl_.className=this.getCssClass()+"-bg",goog.style.setElementShown(this.bgIframeEl_,!1),goog.style.setOpacity(this.bgIframeEl_,0));this.bgEl_||(this.bgEl_=this.getDomHelper().createDom(goog.dom.TagName.DIV,this.getCssClass()+"-bg"),goog.style.setElementShown(this.bgEl_,!1))}; goog.ui.ModalPopup.prototype.createTabCatcher_=function(){this.tabCatcherElement_||(this.tabCatcherElement_=this.getDomHelper().createElement(goog.dom.TagName.SPAN),goog.style.setElementShown(this.tabCatcherElement_,!1),goog.dom.setFocusableTabIndex(this.tabCatcherElement_,!0),this.tabCatcherElement_.style.position="absolute")}; goog.ui.ModalPopup.prototype.setupBackwardTabWrap=function(){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(a){}goog.Timer.callOnce(this.resetBackwardTabWrap_,0,this)};goog.ui.ModalPopup.prototype.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1}; goog.ui.ModalPopup.prototype.renderBackground_=function(){goog.asserts.assert(!!this.bgEl_,"Background element must not be null.");this.bgIframeEl_&&goog.dom.insertSiblingBefore(this.bgIframeEl_,this.getElement());goog.dom.insertSiblingBefore(this.bgEl_,this.getElement())};goog.ui.ModalPopup.prototype.canDecorate=function(a){return!!a&&a.tagName==goog.dom.TagName.DIV}; goog.ui.ModalPopup.prototype.decorateInternal=function(a){goog.ui.ModalPopup.superClass_.decorateInternal.call(this,a);a=goog.string.trim(this.getCssClass()).split(" ");goog.dom.classlist.addAll(goog.asserts.assert(this.getElement()),a);this.manageBackgroundDom_();this.createTabCatcher_();goog.dom.setFocusableTabIndex(this.getElement(),!0);goog.style.setElementShown(this.getElement(),!1)}; goog.ui.ModalPopup.prototype.enterDocument=function(){this.renderBackground_();goog.ui.ModalPopup.superClass_.enterDocument.call(this);goog.dom.insertSiblingAfter(this.tabCatcherElement_,this.getElement());this.focusHandler_=new goog.events.FocusHandler(this.getDomHelper().getDocument());this.getHandler().listen(this.focusHandler_,goog.events.FocusHandler.EventType.FOCUSIN,this.onFocus);this.setA11YDetectBackground(!1)}; goog.ui.ModalPopup.prototype.exitDocument=function(){this.isVisible()&&this.setVisible(!1);module$contents$goog$dispose_dispose(this.focusHandler_);goog.ui.ModalPopup.superClass_.exitDocument.call(this);goog.dom.removeNode(this.bgIframeEl_);goog.dom.removeNode(this.bgEl_);goog.dom.removeNode(this.tabCatcherElement_);this.parentElementResizeObserver_&&this.parentElementResizeObserver_.disconnect()}; goog.ui.ModalPopup.prototype.setVisible=function(a){goog.asserts.assert(this.isInDocument(),"ModalPopup must be rendered first.");a!=this.visible_&&(this.popupShowTransition_&&this.popupShowTransition_.stop(),this.bgShowTransition_&&this.bgShowTransition_.stop(),this.popupHideTransition_&&this.popupHideTransition_.stop(),this.bgHideTransition_&&this.bgHideTransition_.stop(),this.isInDocument()&&this.setA11YDetectBackground(a),a?this.show_():this.hide_())}; goog.ui.ModalPopup.prototype.setA11YDetectBackground=function(a){this.modalAriaVisibilityHelper_||(this.modalAriaVisibilityHelper_=new goog.ui.ModalAriaVisibilityHelper(this.getElementStrict(),this.dom_));this.modalAriaVisibilityHelper_.setBackgroundVisibility(a)};goog.ui.ModalPopup.prototype.setTransition=function(a,b,c,d){this.popupShowTransition_=a;this.popupHideTransition_=b;this.bgShowTransition_=c;this.bgHideTransition_=d}; goog.ui.ModalPopup.prototype.show_=function(){var a=this;if(this.dispatchEvent(goog.ui.PopupBase.EventType.BEFORE_SHOW)){try{this.lastFocus_=this.getDomHelper().getDocument().activeElement}catch(b){}this.updateModalAndBackground_();this.centerInsideParent_&&window.ResizeObserver!==void 0?(this.parentElementResizeObserver_=new ResizeObserver(function(){a.isVisible()&&a.updateModalAndBackground_()}),this.parentElementResizeObserver_.observe(goog.asserts.assert(this.getElement().parentElement)),this.getHandler().listen(this.getDomHelper().getWindow(), goog.events.EventType.ORIENTATIONCHANGE,this.updateModalAndBackgroundTask_)):this.getHandler().listen(this.getDomHelper().getWindow(),goog.events.EventType.RESIZE,this.resizeBackground_).listen(this.getDomHelper().getWindow(),goog.events.EventType.ORIENTATIONCHANGE,this.resizeBackgroundTask_);this.showPopupElement_(!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)goog.events.listenOnce(this.popupShowTransition_,goog.fx.Transition.EventType.END,this.onShow,!1, this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}};goog.ui.ModalPopup.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()}; goog.ui.ModalPopup.prototype.hide_=function(){if(this.dispatchEvent(goog.ui.PopupBase.EventType.BEFORE_HIDE)){this.getHandler().unlisten(this.getDomHelper().getWindow(),goog.events.EventType.RESIZE,this.resizeBackground_).unlisten(this.getDomHelper().getWindow(),goog.events.EventType.ORIENTATIONCHANGE,this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)goog.events.listenOnce(this.popupHideTransition_,goog.fx.Transition.EventType.END,this.onHide,!1,this), this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();this.returnFocus_()}};goog.ui.ModalPopup.prototype.returnFocus_=function(){try{var a=this.getDomHelper(),b=a.getDocument().body,c=a.getDocument().activeElement||b;if(!this.lastFocus_||this.lastFocus_==b){this.lastFocus_=null;return}(c==b||a.contains(this.getElement(),c))&&this.lastFocus_.focus()}catch(d){}this.lastFocus_=null}; goog.ui.ModalPopup.prototype.showPopupElement_=function(a){this.bgIframeEl_&&goog.style.setElementShown(this.bgIframeEl_,a);this.bgEl_&&goog.style.setElementShown(this.bgEl_,a);goog.style.setElementShown(this.getElement(),a);goog.style.setElementShown(this.tabCatcherElement_,a)};goog.ui.ModalPopup.prototype.onShow=function(){this.dispatchEvent(goog.ui.PopupBase.EventType.SHOW)};goog.ui.ModalPopup.prototype.onHide=function(){this.showPopupElement_(!1);this.dispatchEvent(goog.ui.PopupBase.EventType.HIDE)}; goog.ui.ModalPopup.prototype.isVisible=function(){return this.visible_};goog.ui.ModalPopup.prototype.focus=function(){this.focusElement_()}; goog.ui.ModalPopup.prototype.resizeBackground_=function(){this.bgIframeEl_&&goog.style.setElementShown(this.bgIframeEl_,!1);this.bgEl_&&goog.style.setElementShown(this.bgEl_,!1);if(this.centerInsideParent_){var a=this.getElement().parentElement;var b=a.clientWidth;a=a.clientHeight}else{a=this.getDomHelper().getDocument();var c=this.getDocumentViewportSize_();b=Math.max(c.width,Math.max(a.body.scrollWidth,a.documentElement.scrollWidth));a=Math.max(c.height,Math.max(a.body.scrollHeight,a.documentElement.scrollHeight))}this.bgIframeEl_&& (goog.style.setElementShown(this.bgIframeEl_,!0),goog.style.setSize(this.bgIframeEl_,b,a));this.bgEl_&&(goog.style.setElementShown(this.bgEl_,!0),goog.style.setSize(this.bgEl_,b,a))}; goog.ui.ModalPopup.prototype.reposition=function(){var a;if(goog.style.getComputedPosition(this.getElement())=="fixed")var b=a=0;else b=this.getDomHelper().getDocumentScroll(),a=b.x,b=b.y;var c=goog.style.getSize(this.getElement());if(this.centerInsideParent_){var d=this.getElement().parentElement;d=new goog.math.Size(d.clientWidth,d.clientHeight)}else d=this.getDocumentViewportSize_();a=Math.max(a+d.width/2-c.width/2,0);b=Math.max(b+d.height/2-c.height/2,0);goog.style.setPosition(this.getElement(), a,b);goog.style.setPosition(this.tabCatcherElement_,a,b)};goog.ui.ModalPopup.prototype.onFocus=function(a){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():a.target==this.tabCatcherElement_&&goog.Timer.callOnce(this.focusElement_,0,this)};goog.ui.ModalPopup.prototype.focusElement_=function(){try{this.getElement().focus()}catch(a){}};goog.ui.ModalPopup.prototype.getDocumentViewportSize_=function(){var a=this.getDomHelper().getDocument();a=goog.dom.getWindow(a)||window;return goog.dom.getViewportSize(a)}; goog.ui.ModalPopup.prototype.disposeInternal=function(){module$contents$goog$dispose_dispose(this.popupShowTransition_);this.popupShowTransition_=null;module$contents$goog$dispose_dispose(this.popupHideTransition_);this.popupHideTransition_=null;module$contents$goog$dispose_dispose(this.bgShowTransition_);this.bgShowTransition_=null;module$contents$goog$dispose_dispose(this.bgHideTransition_);this.bgHideTransition_=null;goog.ui.ModalPopup.superClass_.disposeInternal.call(this)};goog.ui.Dialog=function(a,b,c){goog.ui.ModalPopup.call(this,b,c);this.class_=a||"modal-dialog";this.buttons_=goog.ui.Dialog.ButtonSet.createOkCancel()};goog.inherits(goog.ui.Dialog,goog.ui.ModalPopup);goog.ui.Dialog.prototype.escapeToCancel_=!0;goog.ui.Dialog.prototype.hasTitleCloseButton_=!0;goog.ui.Dialog.prototype.modal_=!0;goog.ui.Dialog.prototype.draggable_=!0;goog.ui.Dialog.prototype.trackSurroundingSpace_=!1;goog.ui.Dialog.prototype.backgroundElementOpacity_=.5; goog.ui.Dialog.prototype.title_="";goog.ui.Dialog.prototype.content_=null;goog.ui.Dialog.prototype.dragger_=null;goog.ui.Dialog.prototype.disposeOnHide_=!1;goog.ui.Dialog.prototype.titleEl_=null;goog.ui.Dialog.prototype.titleTextEl_=null;goog.ui.Dialog.prototype.titleTextId_=null;goog.ui.Dialog.prototype.titleCloseEl_=null;goog.ui.Dialog.prototype.contentEl_=null;goog.ui.Dialog.prototype.buttonEl_=null;goog.ui.Dialog.prototype.preferredAriaRole_=goog.a11y.aria.Role.DIALOG; goog.ui.Dialog.prototype.isAriaDescribedByContent_=!1;goog.ui.Dialog.prototype.getCssClass=function(){return this.class_};goog.ui.Dialog.prototype.setTitle=function(a){this.title_=a;this.titleTextEl_&&goog.dom.setTextContent(this.titleTextEl_,a)};goog.ui.Dialog.prototype.getTitle=function(){return this.title_};goog.ui.Dialog.prototype.setTextContent=function(a){this.setSafeHtmlContent(module$exports$google3$third_party$javascript$safevalues$index.htmlEscape(a,{preserveNewlines:!0}))}; goog.ui.Dialog.prototype.setSafeHtmlContent=function(a){this.content_=a;this.contentEl_&&module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml(this.contentEl_,a)};goog.ui.Dialog.prototype.getContent=function(){return this.content_!=null?module$exports$google3$third_party$javascript$safevalues$index.unwrapHtml(this.content_).toString():""};goog.ui.Dialog.prototype.getPreferredAriaRole=function(){return this.preferredAriaRole_}; goog.ui.Dialog.prototype.setPreferredAriaRole=function(a){this.preferredAriaRole_=a};goog.ui.Dialog.prototype.renderIfNoDom_=function(){this.getElement()||this.render()};goog.ui.Dialog.prototype.getContentElement=function(){this.renderIfNoDom_();return this.contentEl_};goog.ui.Dialog.prototype.getTitleCloseElement=function(){this.renderIfNoDom_();return this.titleCloseEl_};goog.ui.Dialog.prototype.getButtonElement=function(){this.renderIfNoDom_();return this.buttonEl_}; goog.ui.Dialog.prototype.getDialogElement=function(){this.renderIfNoDom_();return this.getElement()};goog.ui.Dialog.prototype.getBackgroundElement=function(){this.renderIfNoDom_();return goog.ui.Dialog.superClass_.getBackgroundElement.call(this)};goog.ui.Dialog.prototype.setBackgroundElementOpacity=function(a){this.backgroundElementOpacity_=a;this.getElement()&&(a=this.getBackgroundElement())&&goog.style.setOpacity(a,this.backgroundElementOpacity_)}; goog.ui.Dialog.prototype.setModalInternal_=function(a){this.modal_=a;if(this.isInDocument()){var b=this.getDomHelper(),c=this.getBackgroundElement(),d=this.bgIframeEl_;a?(d&&b.insertSiblingBefore(d,this.getElement()),b.insertSiblingBefore(c,this.getElement())):(b.removeNode(d),b.removeNode(c))}this.isVisible()&&this.setA11YDetectBackground(a)};goog.ui.Dialog.prototype.setDraggable=function(a){this.draggable_=a;this.setDraggingEnabled_(a&&this.isInDocument())};goog.ui.Dialog.prototype.handleDrag=function(){this.maybeUpdateSurroundingSpace_()}; goog.ui.Dialog.prototype.maybeUpdateSurroundingSpace_=function(){if(this.trackSurroundingSpace_&&(this.getDomHelper(),this.getElement())){var a=this.getElementStrict();goog.style.getSize(a);goog.style.getComputedPosition(a)!="fixed"&&this.getDomHelper()}};goog.ui.Dialog.prototype.createDragger=function(){return new goog.fx.Dragger(this.getElement(),this.titleEl_)}; goog.ui.Dialog.prototype.setDraggingEnabled_=function(a){var b=goog.string.trim(this.class_+"-title-draggable").split(" ");this.getElement()&&(a?goog.dom.classlist.addAll(goog.asserts.assert(this.titleEl_),b):goog.dom.classlist.removeAll(goog.asserts.assert(this.titleEl_),b));a&&!this.dragger_?(this.dragger_=this.createDragger(),goog.dom.classlist.addAll(goog.asserts.assert(this.titleEl_),b),goog.events.listen(this.dragger_,goog.fx.Dragger.EventType.START,this.setDraggerLimits_,!1,this),goog.events.listen(this.dragger_, goog.fx.Dragger.EventType.DRAG,this.handleDrag,!1,this)):!a&&this.dragger_&&(this.dragger_.dispose(),this.dragger_=null)}; goog.ui.Dialog.prototype.createDom=function(){goog.ui.Dialog.superClass_.createDom.call(this);var a=this.getElement();goog.asserts.assert(a,"getElement() returns null");var b=this.getDomHelper();this.titleTextId_=this.getId();var c=this.makeId("contentEl");this.titleEl_=b.createDom(goog.dom.TagName.DIV,this.class_+"-title",this.titleTextEl_=b.createDom(goog.dom.TagName.SPAN,{className:this.class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=b.createDom(goog.dom.TagName.SPAN, this.class_+"-title-close"));goog.dom.append(a,this.titleEl_,this.contentEl_=b.createDom(goog.dom.TagName.DIV,{className:this.class_+"-content",id:c}),this.buttonEl_=b.createDom(goog.dom.TagName.DIV,this.class_+"-buttons"));goog.a11y.aria.setRole(this.titleTextEl_,goog.a11y.aria.Role.HEADING);goog.a11y.aria.setRole(this.titleCloseEl_,goog.a11y.aria.Role.BUTTON);goog.dom.setFocusableTabIndex(this.titleCloseEl_,!0);goog.a11y.aria.setLabel(this.titleCloseEl_,goog.ui.Dialog.MSG_GOOG_UI_DIALOG_CLOSE_); goog.a11y.aria.setRole(a,this.getPreferredAriaRole());goog.a11y.aria.setState(a,goog.a11y.aria.State.LABELLEDBY,this.titleTextId_||"");this.content_&&(module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml(this.contentEl_,this.content_),this.isAriaDescribedByContent_&&c&&goog.a11y.aria.setState(a,goog.a11y.aria.State.DESCRIBEDBY,c));goog.style.setElementShown(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&this.buttons_.attachToElement(this.buttonEl_); goog.style.setElementShown(this.buttonEl_,!!this.buttons_);this.setBackgroundElementOpacity(this.backgroundElementOpacity_)}; goog.ui.Dialog.prototype.decorateInternal=function(a){goog.ui.Dialog.superClass_.decorateInternal.call(this,a);a=this.getElement();goog.asserts.assert(a,"The DOM element for dialog cannot be null.");var b=this.class_+"-content";this.contentEl_=goog.dom.getElementsByTagNameAndClass(null,b,a)[0];this.contentEl_||(this.contentEl_=this.getDomHelper().createDom(goog.dom.TagName.DIV,b),this.content_&&module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml(this.contentEl_, this.content_),a.appendChild(this.contentEl_));b=this.class_+"-title";var c=this.class_+"-title-text",d=this.class_+"-title-close";(this.titleEl_=goog.dom.getElementsByTagNameAndClass(null,b,a)[0])?(this.titleTextEl_=goog.dom.getElementsByTagNameAndClass(null,c,this.titleEl_)[0],this.titleCloseEl_=goog.dom.getElementsByTagNameAndClass(null,d,this.titleEl_)[0]):(this.titleEl_=this.getDomHelper().createDom(goog.dom.TagName.DIV,b),a.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_= goog.dom.getTextContent(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=goog.dom.createDom(goog.dom.TagName.SPAN,{className:c,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;goog.a11y.aria.setState(a,goog.a11y.aria.State.LABELLEDBY,this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.getDomHelper().createDom(goog.dom.TagName.SPAN,d),this.titleEl_.appendChild(this.titleCloseEl_)); goog.style.setElementShown(this.titleCloseEl_,this.hasTitleCloseButton_);b=this.class_+"-buttons";(this.buttonEl_=goog.dom.getElementsByTagNameAndClass(null,b,a)[0])?(this.buttons_=new goog.ui.Dialog.ButtonSet(this.getDomHelper()),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.getDomHelper().createDom(goog.dom.TagName.DIV,b),a.appendChild(this.buttonEl_),this.buttons_&&this.buttons_.attachToElement(this.buttonEl_),goog.style.setElementShown(this.buttonEl_,!!this.buttons_));this.setBackgroundElementOpacity(this.backgroundElementOpacity_)}; goog.ui.Dialog.prototype.enterDocument=function(){goog.ui.Dialog.superClass_.enterDocument.call(this);this.getHandler().listen(this.getElement(),goog.events.EventType.KEYDOWN,this.onKey_).listen(this.getElement(),goog.events.EventType.KEYPRESS,this.onKey_);this.getHandler().listen(this.buttonEl_,goog.events.EventType.CLICK,this.onButtonClick_);this.setDraggingEnabled_(this.draggable_);this.getHandler().listen(this.titleCloseEl_,goog.events.EventType.CLICK,this.onTitleCloseClick_);var a=this.getElement(); goog.asserts.assert(a,"The DOM element for dialog cannot be null");goog.a11y.aria.setRole(a,this.getPreferredAriaRole());this.titleTextEl_.id!==""&&goog.a11y.aria.setState(a,goog.a11y.aria.State.LABELLEDBY,this.titleTextEl_.id);this.modal_||this.setModalInternal_(!1)};goog.ui.Dialog.prototype.exitDocument=function(){this.isVisible()&&this.setVisible(!1);this.setDraggingEnabled_(!1);goog.ui.Dialog.superClass_.exitDocument.call(this)}; goog.ui.Dialog.prototype.setVisible=function(a){a!=this.isVisible()&&(this.isInDocument()||this.render(),goog.ui.Dialog.superClass_.setVisible.call(this,a))};goog.ui.Dialog.prototype.onShow=function(){goog.ui.Dialog.superClass_.onShow.call(this);this.maybeUpdateSurroundingSpace_();this.dispatchEvent(goog.ui.Dialog.EventType.AFTER_SHOW)}; goog.ui.Dialog.prototype.onHide=function(){goog.ui.Dialog.superClass_.onHide.call(this);this.dispatchEvent(goog.ui.Dialog.EventType.AFTER_HIDE);this.disposeOnHide_&&this.dispose()}; goog.ui.Dialog.prototype.setDraggerLimits_=function(){var a=this.getDomHelper().getDocument(),b=goog.dom.getWindow(a)||window;b=goog.dom.getViewportSize(b);var c=Math.max(a.body.scrollWidth,b.width);a=Math.max(a.body.scrollHeight,b.height);var d=goog.style.getSize(this.getElement());goog.style.getComputedPosition(this.getElement())=="fixed"?this.dragger_.setLimits(new goog.math.Rect(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height))):this.dragger_.setLimits(new goog.math.Rect(0,0,c-d.width, a-d.height))};goog.ui.Dialog.prototype.onTitleCloseClick_=function(){this.handleTitleClose_()};goog.ui.Dialog.prototype.handleTitleClose_=function(){if(this.hasTitleCloseButton_){var a=this.buttons_,b=a&&a.cancelButton_;b?(a=a.get(b),this.dispatchEvent(new goog.ui.Dialog.Event(b,a))&&this.setVisible(!1)):this.setVisible(!1)}};goog.ui.Dialog.prototype.setHasTitleCloseButton=function(a){this.hasTitleCloseButton_=a;this.titleCloseEl_&&goog.style.setElementShown(this.titleCloseEl_,this.hasTitleCloseButton_)}; goog.ui.Dialog.prototype.setDisposeOnHide=function(a){this.disposeOnHide_=a};goog.ui.Dialog.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;goog.ui.Dialog.superClass_.disposeInternal.call(this)}; goog.ui.Dialog.prototype.setButtonSet=function(a){this.buttons_=a;this.buttonEl_&&(this.buttons_?this.buttons_.attachToElement(this.buttonEl_):module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml(this.buttonEl_,module$exports$google3$third_party$javascript$safevalues$index.EMPTY_HTML),goog.style.setElementShown(this.buttonEl_,!!this.buttons_))}; goog.ui.Dialog.prototype.onButtonClick_=function(a){if((a=this.findParentButton_(a.target))&&!a.disabled){a=a.name;var b=this.buttons_.get(a);this.dispatchEvent(new goog.ui.Dialog.Event(a,b))&&this.setVisible(!1)}};goog.ui.Dialog.prototype.findParentButton_=function(a){for(;a!=null&&a!=this.buttonEl_;){if(a.tagName==goog.dom.TagName.BUTTON)return a;a=a.parentNode}return null}; goog.ui.Dialog.prototype.onKey_=function(a){var b=!1,c=!1,d=this.buttons_,e=a.target;if(a.type==goog.events.EventType.KEYDOWN)if(this.escapeToCancel_&&a.keyCode==goog.events.KeyCodes.ESC){var f=d&&d.cancelButton_;e=e.tagName==goog.dom.TagName.SELECT&&!e.disabled;f&&!e?(c=!0,b=d.get(f),b=this.dispatchEvent(new goog.ui.Dialog.Event(f,b))):e||(b=!0)}else a.keyCode==goog.events.KeyCodes.TAB&&a.shiftKey&&e==this.getElement()&&this.setupBackwardTabWrap();else if(a.keyCode==goog.events.KeyCodes.ENTER){if(e.tagName== goog.dom.TagName.BUTTON&&!e.disabled)f=e.name;else if(e==this.titleCloseEl_)this.handleTitleClose_();else if(d){var g=d.defaultButton_,h=g&&d.getButton(g);e=(e.tagName==goog.dom.TagName.TEXTAREA||e.tagName==goog.dom.TagName.SELECT||e.tagName==goog.dom.TagName.A)&&!e.disabled;!h||h.disabled||e||(f=g)}f&&d&&(c=!0,b=this.dispatchEvent(new goog.ui.Dialog.Event(f,String(d.get(f)))))}else e!=this.titleCloseEl_||a.keyCode!=goog.events.KeyCodes.SPACE&&a.key!=goog.events.Keys.SPACE||this.handleTitleClose_(); if(b||c)a.stopPropagation(),a.preventDefault();b&&this.setVisible(!1)};goog.ui.Dialog.Event=function(a,b){this.type=goog.ui.Dialog.EventType.SELECT;this.key=a;this.caption=b};goog.inherits(goog.ui.Dialog.Event,goog.events.Event);goog.ui.Dialog.SELECT_EVENT="dialogselect";goog.ui.Dialog.EventType={SELECT:"dialogselect",AFTER_HIDE:"afterhide",AFTER_SHOW:"aftershow"}; goog.ui.Dialog.ButtonSet=function(a){module$contents$goog$ui$Map_UiMap.call(this);this.dom_=a||goog.dom.getDomHelper();this.class_="goog-buttonset";this.cancelButton_=this.element_=this.defaultButton_=null};goog.inherits(goog.ui.Dialog.ButtonSet,module$contents$goog$ui$Map_UiMap);goog.ui.Dialog.ButtonSet.prototype.clear=function(){module$contents$goog$ui$Map_UiMap.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null}; goog.ui.Dialog.ButtonSet.prototype.set=function(a,b,c,d){module$contents$goog$ui$Map_UiMap.prototype.set.call(this,a,b);c&&(this.defaultButton_=a);d&&(this.cancelButton_=a);return this};goog.ui.Dialog.ButtonSet.prototype.addButton=function(a,b,c){return this.set(a.key,a.caption,b,c)};goog.ui.Dialog.ButtonSet.prototype.attachToElement=function(a){this.element_=a;this.render()}; goog.ui.Dialog.ButtonSet.prototype.render=function(){if(this.element_){module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml(this.element_,module$exports$google3$third_party$javascript$safevalues$index.EMPTY_HTML);var a=goog.dom.getDomHelper(this.element_);this.forEach(function(b,c){b=a.createDom(goog.dom.TagName.BUTTON,{name:c},b);c==this.defaultButton_&&(b.className=this.class_+"-default");this.element_.appendChild(b)},this)}}; goog.ui.Dialog.ButtonSet.prototype.decorate=function(a){if(a&&a.nodeType==goog.dom.NodeType.ELEMENT){this.element_=a;a=goog.dom.getElementsByTagName(goog.dom.TagName.BUTTON,this.element_);for(var b,c,d,e=0;b=a[e];e++)if(c=b.name||b.id,d=goog.dom.getTextContent(b)||b.value,c){var f=e==0,g=b.name==goog.ui.Dialog.DefaultButtonKeys.CANCEL;this.set(c,d,f,g);f&&goog.dom.classlist.add(b,this.class_+"-default")}}};goog.ui.Dialog.ButtonSet.prototype.getElement=function(){return this.element_}; goog.ui.Dialog.ButtonSet.prototype.getDomHelper=function(){return this.dom_};goog.ui.Dialog.ButtonSet.prototype.getButton=function(a){for(var b=this.getAllButtons(),c,d=0;c=b[d];d++)if(c.name==a||c.id==a)return c;return null};goog.ui.Dialog.ButtonSet.prototype.getAllButtons=function(){return goog.dom.getElementsByTagName(goog.dom.TagName.BUTTON,goog.asserts.assert(this.element_))}; goog.ui.Dialog.ButtonSet.prototype.setAllButtonsEnabled=function(a){for(var b=this.getAllButtons(),c,d=0;c=b[d];d++)c.disabled=!a};goog.ui.Dialog.DefaultButtonKeys={OK:"ok",CANCEL:"cancel",YES:"yes",NO:"no",SAVE:"save",CONTINUE:"continue"};goog.ui.Dialog.MSG_DIALOG_OK_="OK";goog.ui.Dialog.MSG_DIALOG_CANCEL_="Cancel";goog.ui.Dialog.MSG_DIALOG_YES_="Yes";goog.ui.Dialog.MSG_DIALOG_NO_="No";goog.ui.Dialog.MSG_DIALOG_SAVE_="Save";goog.ui.Dialog.MSG_DIALOG_CONTINUE_="Continue"; goog.ui.Dialog.MSG_GOOG_UI_DIALOG_CLOSE_="Close";goog.ui.Dialog.DefaultButtonCaptions={OK:goog.ui.Dialog.MSG_DIALOG_OK_,CANCEL:goog.ui.Dialog.MSG_DIALOG_CANCEL_,YES:goog.ui.Dialog.MSG_DIALOG_YES_,NO:goog.ui.Dialog.MSG_DIALOG_NO_,SAVE:goog.ui.Dialog.MSG_DIALOG_SAVE_,CONTINUE:goog.ui.Dialog.MSG_DIALOG_CONTINUE_}; goog.ui.Dialog.ButtonSet.DefaultButtons={OK:{key:goog.ui.Dialog.DefaultButtonKeys.OK,caption:goog.ui.Dialog.DefaultButtonCaptions.OK},CANCEL:{key:goog.ui.Dialog.DefaultButtonKeys.CANCEL,caption:goog.ui.Dialog.DefaultButtonCaptions.CANCEL},YES:{key:goog.ui.Dialog.DefaultButtonKeys.YES,caption:goog.ui.Dialog.DefaultButtonCaptions.YES},NO:{key:goog.ui.Dialog.DefaultButtonKeys.NO,caption:goog.ui.Dialog.DefaultButtonCaptions.NO},SAVE:{key:goog.ui.Dialog.DefaultButtonKeys.SAVE,caption:goog.ui.Dialog.DefaultButtonCaptions.SAVE}, CONTINUE:{key:goog.ui.Dialog.DefaultButtonKeys.CONTINUE,caption:goog.ui.Dialog.DefaultButtonCaptions.CONTINUE}};goog.ui.Dialog.ButtonSet.createOk=function(){return(new goog.ui.Dialog.ButtonSet).addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.OK,!0,!0)};goog.ui.Dialog.ButtonSet.createOkCancel=function(){return(new goog.ui.Dialog.ButtonSet).addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.OK,!0).addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.CANCEL,!1,!0)}; goog.ui.Dialog.ButtonSet.createYesNo=function(){return(new goog.ui.Dialog.ButtonSet).addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.YES,!0).addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.NO,!1,!0)};goog.ui.Dialog.ButtonSet.createYesNoCancel=function(){return(new goog.ui.Dialog.ButtonSet).addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.YES).addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.NO,!0).addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.CANCEL,!1,!0)}; goog.ui.Dialog.ButtonSet.createContinueSaveCancel=function(){return(new goog.ui.Dialog.ButtonSet).addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.CONTINUE).addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.SAVE).addButton(goog.ui.Dialog.ButtonSet.DefaultButtons.CANCEL,!0,!0)}; typeof document!="undefined"&&(goog.ui.Dialog.ButtonSet.OK=goog.ui.Dialog.ButtonSet.createOk(),goog.ui.Dialog.ButtonSet.OK_CANCEL=goog.ui.Dialog.ButtonSet.createOkCancel(),goog.ui.Dialog.ButtonSet.YES_NO=goog.ui.Dialog.ButtonSet.createYesNo(),goog.ui.Dialog.ButtonSet.YES_NO_CANCEL=goog.ui.Dialog.ButtonSet.createYesNoCancel(),goog.ui.Dialog.ButtonSet.CONTINUE_SAVE_CANCEL=goog.ui.Dialog.ButtonSet.createContinueSaveCancel());goog.color={}; goog.color.names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400", darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc", ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a", lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1", moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57", seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};goog.color.Rgb={};goog.color.parse=function(a){var b=goog.color.tryParse(a);if(!b)throw Error(a+" is not a valid color string");return b}; goog.color.tryParse=function(a){var b={};a=String(a);var c=goog.color.prependHashIfNecessaryHelper(a);if(goog.color.isValidHexColor_(c))return b.hex=goog.color.normalizeHex(c),b.type="hex",b;c=goog.color.isValidRgbColor_(a);return c.length?(b.hex=goog.color.rgbArrayToHex(c),b.type="rgb",b):goog.color.names&&(a=goog.color.names[a.toLowerCase()])?(b.hex=a,b.type="named",b):null}; goog.color.isValidColor=function(a){var b=goog.color.prependHashIfNecessaryHelper(a);return!!(goog.color.isValidHexColor_(b)||goog.color.isValidRgbColor_(a).length||goog.color.names&&goog.color.names[a.toLowerCase()])};goog.color.parseRgb=function(a){var b=goog.color.isValidRgbColor_(a);if(!b.length)throw Error(a+" is not a valid RGB color");return b};goog.color.hexToRgbStyle=function(a){return goog.color.rgbStyle_(goog.color.hexToRgb(a))};goog.color.hexTripletRe_=/#(.)(.)(.)/; goog.color.normalizeHex=function(a){if(!goog.color.isValidHexColor_(a))throw Error("'"+a+"' is not a valid hex color");a.length==4&&(a=a.replace(goog.color.hexTripletRe_,"#$1$1$2$2$3$3"));return a.toLowerCase()};goog.color.hexToRgb=function(a){a=goog.color.normalizeHex(a);var b=parseInt(a.slice(1),16);a=b>>16;var c=b>>8&255;b&=255;return[a,c,b]}; goog.color.rgbToHex=function(a,b,c){a=Number(a);b=Number(b);c=Number(c);if(a!=(a&255)||b!=(b&255)||c!=(c&255))throw Error('"('+a+","+b+","+c+'") is not a valid RGB color');b=a<<16|b<<8|c;return a<16?"#"+(16777216|b).toString(16).slice(1):"#"+b.toString(16)};goog.color.rgbArrayToHex=function(a){return goog.color.rgbToHex(a[0],a[1],a[2])}; goog.color.rgbToHsl=function(a,b,c){a/=255;b/=255;c/=255;var d=Math.max(a,b,c),e=Math.min(a,b,c),f=0,g=0,h=.5*(d+e);d!=e&&(d==a?f=60*(b-c)/(d-e):d==b?f=60*(c-a)/(d-e)+120:d==c&&(f=60*(a-b)/(d-e)+240),g=0<h&&h<=.5?(d-e)/(2*h):(d-e)/(2-2*h));return[Math.round(f+360)%360,g,h]};goog.color.rgbArrayToHsl=function(a){return goog.color.rgbToHsl(a[0],a[1],a[2])};goog.color.hueToRgb_=function(a,b,c){c<0?c+=1:c>1&&--c;return 6*c<1?a+(b-a)*6*c:2*c<1?b:3*c<2?a+(b-a)*(2/3-c)*6:a}; goog.color.hslToRgb=function(a,b,c){a/=360;if(b==0)c=b=a=c*255;else{var d=c<.5?c*(1+b):c+b-b*c;var e=2*c-d;c=255*goog.color.hueToRgb_(e,d,a+1/3);b=255*goog.color.hueToRgb_(e,d,a);a=255*goog.color.hueToRgb_(e,d,a-1/3)}return[Math.round(c),Math.round(b),Math.round(a)]};goog.color.hslArrayToRgb=function(a){return goog.color.hslToRgb(a[0],a[1],a[2])};goog.color.validHexColorRe_=/^#(?:[0-9a-f]{3}){1,2}$/i;goog.color.isValidHexColor_=function(a){return goog.color.validHexColorRe_.test(a)}; goog.color.rgbColorRe_=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;goog.color.isValidRgbColor_=function(a){var b=a.match(goog.color.rgbColorRe_);if(b){a=Number(b[1]);var c=Number(b[2]);b=Number(b[3]);if(a>=0&&a<=255&&c>=0&&c<=255&&b>=0&&b<=255)return[a,c,b]}return[]};goog.color.prependZeroIfNecessaryHelper=function(a){return a.length==1?"0"+a:a};goog.color.prependHashIfNecessaryHelper=function(a){return a.charAt(0)=="#"?a:"#"+a}; goog.color.rgbStyle_=function(a){return"rgb("+a.join(",")+")"};goog.color.hsvToRgb=function(a,b,c){var d=0,e=0,f=0;if(b==0)f=e=d=c;else{var g=Math.floor(a/60),h=a/60-g;a=c*(1-b);var k=c*(1-b*h);b=c*(1-b*(1-h));switch(g){case 1:d=k;e=c;f=a;break;case 2:d=a;e=c;f=b;break;case 3:d=a;e=k;f=c;break;case 4:d=b;e=a;f=c;break;case 5:d=c;e=a;f=k;break;case 6:case 0:d=c,e=b,f=a}}return[Math.round(d),Math.round(e),Math.round(f)]}; goog.color.rgbToHsv=function(a,b,c){var d=Math.max(Math.max(a,b),c),e=Math.min(Math.min(a,b),c),f=d;if(e==d)e=a=0;else{var g=d-e;e=g/d;a=a==d?(b-c)/g:b==d?2+(c-a)/g:4+(a-b)/g;a*=60;a<0&&(a+=360);a>360&&(a-=360)}return[a,e,f]};goog.color.rgbArrayToHsv=function(a){return goog.color.rgbToHsv(a[0],a[1],a[2])};goog.color.hsvArrayToRgb=function(a){return goog.color.hsvToRgb(a[0],a[1],a[2])};goog.color.hexToHsl=function(a){a=goog.color.hexToRgb(a);return goog.color.rgbToHsl(a[0],a[1],a[2])}; goog.color.hslToHex=function(a,b,c){return goog.color.rgbArrayToHex(goog.color.hslToRgb(a,b,c))};goog.color.hslArrayToHex=function(a){return goog.color.rgbArrayToHex(goog.color.hslToRgb(a[0],a[1],a[2]))};goog.color.hexToHsv=function(a){return goog.color.rgbArrayToHsv(goog.color.hexToRgb(a))};goog.color.hsvToHex=function(a,b,c){return goog.color.rgbArrayToHex(goog.color.hsvToRgb(a,b,c))};goog.color.hsvArrayToHex=function(a){return goog.color.hsvToHex(a[0],a[1],a[2])}; goog.color.hslDistance=function(a,b){var c=a[2]<=.5?a[1]*a[2]:a[1]*(1-a[2]);var d=b[2]<=.5?b[1]*b[2]:b[1]*(1-b[2]);var e=a[0]/360,f=b[0]/360;e=(e-f)*2*Math.PI;return(a[2]-b[2])*(a[2]-b[2])+c*c+d*d-2*c*d*Math.cos(e)};goog.color.blend=function(a,b,c){c=goog.math.clamp(c,0,1);return[Math.round(b[0]+c*(a[0]-b[0])),Math.round(b[1]+c*(a[1]-b[1])),Math.round(b[2]+c*(a[2]-b[2]))]};goog.color.darken=function(a,b){var c=[0,0,0];return goog.color.blend(c,a,b)}; goog.color.lighten=function(a,b){var c=[255,255,255];return goog.color.blend(c,a,b)};goog.color.highContrast=function(a,b){for(var c=[],d=0;d<b.length;d++)c.push({color:b[d],diff:goog.color.yiqBrightnessDiff_(b[d],a)+goog.color.colorDiff_(b[d],a)});c.sort(function(e,f){return f.diff-e.diff});return c[0].color};goog.color.yiqBrightness_=function(a){return Math.round((a[0]*299+a[1]*587+a[2]*114)/1E3)};goog.color.yiqBrightnessDiff_=function(a,b){return Math.abs(goog.color.yiqBrightness_(a)-goog.color.yiqBrightness_(b))}; goog.color.colorDiff_=function(a,b){return Math.abs(a[0]-b[0])+Math.abs(a[1]-b[1])+Math.abs(a[2]-b[2])};goog.fx.dom={};goog.fx.dom.PredefinedEffect=function(a,b,c,d,e){goog.fx.Animation.call(this,b,c,d,e);this.element=a};goog.inherits(goog.fx.dom.PredefinedEffect,goog.fx.Animation);goog.fx.dom.PredefinedEffect.prototype.updateStyle=function(){};goog.fx.dom.PredefinedEffect.prototype.isRightToLeft=function(){this.rightToLeft_===void 0&&(this.rightToLeft_=goog.style.isRightToLeft(this.element));return this.rightToLeft_};goog.fx.dom.PredefinedEffect.prototype.onAnimate=function(){this.updateStyle();goog.fx.dom.PredefinedEffect.superClass_.onAnimate.call(this)}; goog.fx.dom.PredefinedEffect.prototype.onEnd=function(){this.updateStyle();goog.fx.dom.PredefinedEffect.superClass_.onEnd.call(this)};goog.fx.dom.PredefinedEffect.prototype.onBegin=function(){this.updateStyle();goog.fx.dom.PredefinedEffect.superClass_.onBegin.call(this)};goog.fx.dom.Slide=function(a,b,c,d,e){if(b.length!=2||c.length!=2)throw Error("Start and end points must be 2D");goog.fx.dom.PredefinedEffect.call(this,a,b,c,d,e)};goog.inherits(goog.fx.dom.Slide,goog.fx.dom.PredefinedEffect); goog.fx.dom.Slide.prototype.updateStyle=function(){var a=this.useRightPositioningForRtl_&&this.isRightToLeft()?"right":"left";this.element.style[a]=Math.round(this.coords[0])+"px";this.element.style.top=Math.round(this.coords[1])+"px"};goog.fx.dom.SlideFrom=function(a,b,c,d){var e=a.offsetLeft;e=[e,a.offsetTop];goog.fx.dom.Slide.call(this,a,e,b,c,d)};goog.inherits(goog.fx.dom.SlideFrom,goog.fx.dom.Slide); goog.fx.dom.SlideFrom.prototype.onBegin=function(){var a=this.useRightPositioningForRtl_?goog.style.bidi.getOffsetStart(this.element):this.element.offsetLeft;this.startPoint=[a,this.element.offsetTop];goog.fx.dom.SlideFrom.superClass_.onBegin.call(this)}; goog.fx.dom.Swipe=function(a,b,c,d,e){if(b.length!=2||c.length!=2)throw Error("Start and end points must be 2D");goog.fx.dom.PredefinedEffect.call(this,a,b,c,d,e);this.maxWidth_=Math.max(this.endPoint[0],this.startPoint[0]);this.maxHeight_=Math.max(this.endPoint[1],this.startPoint[1])};goog.inherits(goog.fx.dom.Swipe,goog.fx.dom.PredefinedEffect); goog.fx.dom.Swipe.prototype.updateStyle=function(){var a=this.coords[0],b=this.coords[1];this.clip_(Math.round(a),Math.round(b),this.maxWidth_,this.maxHeight_);this.element.style.width=Math.round(a)+"px";var c=this.useRightPositioningForRtl_&&this.isRightToLeft()?"marginRight":"marginLeft";this.element.style[c]=Math.round(a)-this.maxWidth_+"px";this.element.style.marginTop=Math.round(b)-this.maxHeight_+"px"}; goog.fx.dom.Swipe.prototype.clip_=function(a,b,c,d){this.element.style.clip="rect("+(d-b)+"px "+c+"px "+d+"px "+(c-a)+"px)"};goog.fx.dom.Scroll=function(a,b,c,d,e){if(b.length!=2||c.length!=2)throw Error("Start and end points must be 2D");goog.fx.dom.PredefinedEffect.call(this,a,b,c,d,e)};goog.inherits(goog.fx.dom.Scroll,goog.fx.dom.PredefinedEffect); goog.fx.dom.Scroll.prototype.updateStyle=function(){this.useRightPositioningForRtl_?goog.style.bidi.setScrollOffset(this.element,Math.round(this.coords[0])):this.element.scrollLeft=Math.round(this.coords[0]);this.element.scrollTop=Math.round(this.coords[1])};goog.fx.dom.Resize=function(a,b,c,d,e){if(b.length!=2||c.length!=2)throw Error("Start and end points must be 2D");goog.fx.dom.PredefinedEffect.call(this,a,b,c,d,e)};goog.inherits(goog.fx.dom.Resize,goog.fx.dom.PredefinedEffect); goog.fx.dom.Resize.prototype.updateStyle=function(){this.element.style.width=Math.round(this.coords[0])+"px";this.element.style.height=Math.round(this.coords[1])+"px"};goog.fx.dom.ResizeWidth=function(a,b,c,d,e){goog.fx.dom.PredefinedEffect.call(this,a,[b],[c],d,e)};goog.inherits(goog.fx.dom.ResizeWidth,goog.fx.dom.PredefinedEffect);goog.fx.dom.ResizeWidth.prototype.updateStyle=function(){this.element.style.width=Math.round(this.coords[0])+"px"}; goog.fx.dom.ResizeHeight=function(a,b,c,d,e){goog.fx.dom.PredefinedEffect.call(this,a,[b],[c],d,e)};goog.inherits(goog.fx.dom.ResizeHeight,goog.fx.dom.PredefinedEffect);goog.fx.dom.ResizeHeight.prototype.updateStyle=function(){this.element.style.height=Math.round(this.coords[0])+"px"}; goog.fx.dom.Fade=function(a,b,c,d,e){typeof b==="number"&&(b=[b]);typeof c==="number"&&(c=[c]);goog.fx.dom.PredefinedEffect.call(this,a,b,c,d,e);if(b.length!=1||c.length!=1)throw Error("Start and end points must be 1D");this.lastOpacityUpdate_=goog.fx.dom.Fade.OPACITY_UNSET_};goog.inherits(goog.fx.dom.Fade,goog.fx.dom.PredefinedEffect);goog.fx.dom.Fade.TOLERANCE_=1/1024;goog.fx.dom.Fade.OPACITY_UNSET_=-1; goog.fx.dom.Fade.prototype.updateStyle=function(){var a=this.coords[0],b=Math.abs(a-this.lastOpacityUpdate_);b>=goog.fx.dom.Fade.TOLERANCE_&&(goog.style.setOpacity(this.element,a),this.lastOpacityUpdate_=a)};goog.fx.dom.Fade.prototype.onBegin=function(){this.lastOpacityUpdate_=goog.fx.dom.Fade.OPACITY_UNSET_;goog.fx.dom.Fade.superClass_.onBegin.call(this)};goog.fx.dom.Fade.prototype.onEnd=function(){this.lastOpacityUpdate_=goog.fx.dom.Fade.OPACITY_UNSET_;goog.fx.dom.Fade.superClass_.onEnd.call(this)}; goog.fx.dom.Fade.prototype.show=function(){this.element.style.display=""};goog.fx.dom.Fade.prototype.hide=function(){this.element.style.display="none"};goog.fx.dom.FadeOut=function(a,b,c){goog.fx.dom.Fade.call(this,a,1,0,b,c)};goog.inherits(goog.fx.dom.FadeOut,goog.fx.dom.Fade);goog.fx.dom.FadeIn=function(a,b,c){goog.fx.dom.Fade.call(this,a,0,1,b,c)};goog.inherits(goog.fx.dom.FadeIn,goog.fx.dom.Fade);goog.fx.dom.FadeOutAndHide=function(a,b,c){goog.fx.dom.Fade.call(this,a,1,0,b,c)}; goog.inherits(goog.fx.dom.FadeOutAndHide,goog.fx.dom.Fade);goog.fx.dom.FadeOutAndHide.prototype.onBegin=function(){this.show();goog.fx.dom.FadeOutAndHide.superClass_.onBegin.call(this)};goog.fx.dom.FadeOutAndHide.prototype.onEnd=function(){this.hide();goog.fx.dom.FadeOutAndHide.superClass_.onEnd.call(this)};goog.fx.dom.FadeInAndShow=function(a,b,c){goog.fx.dom.Fade.call(this,a,0,1,b,c)};goog.inherits(goog.fx.dom.FadeInAndShow,goog.fx.dom.Fade); goog.fx.dom.FadeInAndShow.prototype.onBegin=function(){this.show();goog.fx.dom.FadeInAndShow.superClass_.onBegin.call(this)};goog.fx.dom.BgColorTransform=function(a,b,c,d,e){if(b.length!=3||c.length!=3)throw Error("Start and end points must be 3D");goog.fx.dom.PredefinedEffect.call(this,a,b,c,d,e)};goog.inherits(goog.fx.dom.BgColorTransform,goog.fx.dom.PredefinedEffect); goog.fx.dom.BgColorTransform.prototype.setColor=function(){for(var a=[],b=0;b<this.coords.length;b++)a[b]=Math.round(this.coords[b]);a="rgb("+a.join(",")+")";this.element.style.backgroundColor=a};goog.fx.dom.BgColorTransform.prototype.updateStyle=function(){this.setColor()}; goog.fx.dom.bgColorFadeIn=function(a,b,c,d){function e(){a.style.backgroundColor=f}var f=a.style.backgroundColor||"",g=goog.style.getBackgroundColor(a);g=g&&g!="transparent"&&g!="rgba(0, 0, 0, 0)"?goog.color.hexToRgb(goog.color.parse(g).hex):[255,255,255];b=new goog.fx.dom.BgColorTransform(a,b,g,c);d?d.listen(b,goog.fx.Transition.EventType.END,e):goog.events.listen(b,goog.fx.Transition.EventType.END,e);b.play()}; goog.fx.dom.ColorTransform=function(a,b,c,d,e){if(b.length!=3||c.length!=3)throw Error("Start and end points must be 3D");goog.fx.dom.PredefinedEffect.call(this,a,b,c,d,e)};goog.inherits(goog.fx.dom.ColorTransform,goog.fx.dom.PredefinedEffect);goog.fx.dom.ColorTransform.prototype.updateStyle=function(){for(var a=[],b=0;b<this.coords.length;b++)a[b]=Math.round(this.coords[b]);a="rgb("+a.join(",")+")";this.element.style.color=a};goog.collections.iters={};function module$contents$goog$collections$iters_getIterator(a){return a[goog.global.Symbol.iterator]()}goog.collections.iters.getIterator=module$contents$goog$collections$iters_getIterator;function module$contents$goog$collections$iters_forEach(a,b){for(var c;!(c=a.next()).done;)b(c.value)}goog.collections.iters.forEach=module$contents$goog$collections$iters_forEach; var module$contents$goog$collections$iters_MapIterator=function(a,b){this.childIterator_=module$contents$goog$collections$iters_getIterator(a);this.mapFn_=b};module$contents$goog$collections$iters_MapIterator.prototype[Symbol.iterator]=function(){return this};module$contents$goog$collections$iters_MapIterator.prototype.next=function(){var a=this.childIterator_.next();return{value:a.done?void 0:this.mapFn_.call(void 0,a.value),done:a.done}}; goog.collections.iters.map=function(a,b){return new module$contents$goog$collections$iters_MapIterator(a,b)};var module$contents$goog$collections$iters_FilterIterator=function(a,b){this.childIter_=module$contents$goog$collections$iters_getIterator(a);this.filterFn_=b};module$contents$goog$collections$iters_FilterIterator.prototype[Symbol.iterator]=function(){return this}; module$contents$goog$collections$iters_FilterIterator.prototype.next=function(){for(;;){var a=this.childIter_.next();if(a.done)return{done:!0,value:void 0};var b=this.filterFn_.call(void 0,a.value);if(b)return a}};goog.collections.iters.filter=function(a,b){return new module$contents$goog$collections$iters_FilterIterator(a,b)};var module$contents$goog$collections$iters_ConcatIterator=function(a){this.iterators_=a;this.iterIndex_=0}; module$contents$goog$collections$iters_ConcatIterator.prototype[Symbol.iterator]=function(){return this};module$contents$goog$collections$iters_ConcatIterator.prototype.next=function(){for(;this.iterIndex_<this.iterators_.length;){var a=this.iterators_[this.iterIndex_].next();if(!a.done)return a;this.iterIndex_++}return{done:!0}};goog.collections.iters.concat=function(){var a=$jscomp.getRestArguments.apply(0,arguments);return new module$contents$goog$collections$iters_ConcatIterator(a.map(module$contents$goog$collections$iters_getIterator))}; goog.collections.iters.toArray=function(a){var b=[];module$contents$goog$collections$iters_forEach(a,function(c){return b.push(c)});return b};goog.iter={};goog.iter.Iterable={};goog.iter.Iterator=function(){};goog.iter.Iterator.prototype.next=function(){return goog.iter.ES6_ITERATOR_DONE};goog.iter.ES6_ITERATOR_DONE=goog.debug.freeze({done:!0,value:void 0});goog.iter.createEs6IteratorYield=function(a){return{value:a,done:!1}};goog.iter.Iterator.prototype.__iterator__=function(){return this}; goog.iter.toIterator=function(a){if(a instanceof goog.iter.Iterator)return a;if(typeof a.__iterator__=="function")return a.__iterator__(!1);if(goog.isArrayLike(a)){var b=a,c=0;a=new goog.iter.Iterator;a.next=function(){for(;;){if(c>=b.length)return goog.iter.ES6_ITERATOR_DONE;if(c in b)return goog.iter.createEs6IteratorYield(b[c++]);c++}};return a}throw Error("Not implemented");}; goog.iter.forEach=function(a,b,c){if(goog.isArrayLike(a))module$contents$goog$array_forEach(a,b,c);else for(a=goog.iter.toIterator(a);;){var d=a.next(),e=d.done;d=d.value;if(e)break;b.call(c,d,void 0,a)}};goog.iter.filter=function(a,b,c){var d=goog.iter.toIterator(a);a=new goog.iter.Iterator;a.next=function(){for(;;){var e=d.next(),f=e.done;e=e.value;if(f)return goog.iter.ES6_ITERATOR_DONE;if(b.call(c,e,void 0,d))return goog.iter.createEs6IteratorYield(e)}};return a}; goog.iter.filterFalse=function(a,b,c){return goog.iter.filter(a,goog.functions.not(b),c)};goog.iter.range=function(a,b,c){var d=0,e=a,f=c||1;arguments.length>1&&(d=a,e=+b);if(f==0)throw Error("Range step argument must not be zero");var g=new goog.iter.Iterator;g.next=function(){if(f>0&&d>=e||f<0&&d<=e)return goog.iter.ES6_ITERATOR_DONE;var h=d;d+=f;return goog.iter.createEs6IteratorYield(h)};return g};goog.iter.join=function(a,b){return goog.iter.toArray(a).join(b)}; goog.iter.map=function(a,b,c){var d=goog.iter.toIterator(a);a=new goog.iter.Iterator;a.next=function(){var e=d.next(),f=e.done;e=e.value;if(f)return goog.iter.ES6_ITERATOR_DONE;f=b.call(c,e,void 0,d);return goog.iter.createEs6IteratorYield(f)};return a};goog.iter.reduce=function(a,b,c,d){var e=c;goog.iter.forEach(a,function(f){e=b.call(d,e,f)});return e};goog.iter.some=function(a,b,c){for(a=goog.iter.toIterator(a);;){var d=a.next(),e=d.done;d=d.value;if(e)return!1;if(b.call(c,d,void 0,a))return!0}}; goog.iter.every=function(a,b,c){for(a=goog.iter.toIterator(a);;){var d=a.next(),e=d.done;d=d.value;if(e)return!0;if(!b.call(c,d,void 0,a))return!1}};goog.iter.chain=function(a){return goog.iter.chainFromIterable(arguments)}; goog.iter.chainFromIterable=function(a){var b=goog.iter.toIterator(a);a=new goog.iter.Iterator;var c=null;a.next=function(){for(;;){if(c==null){var d=b.next();if(d.done)return goog.iter.ES6_ITERATOR_DONE;d=d.value;c=goog.iter.toIterator(d)}d=c.next();if(d.done)c=null;else return d=d.value,goog.iter.createEs6IteratorYield(d)}};return a}; goog.iter.dropWhile=function(a,b,c){var d=goog.iter.toIterator(a);a=new goog.iter.Iterator;var e=!0;a.next=function(){for(;;){var f=d.next(),g=f.done;f=f.value;if(g)return goog.iter.ES6_ITERATOR_DONE;if(!e||!b.call(c,f,void 0,d))return e=!1,goog.iter.createEs6IteratorYield(f)}};return a}; goog.iter.takeWhile=function(a,b,c){var d=goog.iter.toIterator(a);a=new goog.iter.Iterator;a.next=function(){var e=d.next(),f=e.done;e=e.value;return f?goog.iter.ES6_ITERATOR_DONE:b.call(c,e,void 0,d)?goog.iter.createEs6IteratorYield(e):goog.iter.ES6_ITERATOR_DONE};return a};goog.iter.toArray=function(a){if(goog.isArrayLike(a))return module$contents$goog$array_toArray(a);a=goog.iter.toIterator(a);var b=[];goog.iter.forEach(a,function(c){b.push(c)});return b}; goog.iter.equals=function(a,b,c){var d={};a=goog.iter.zipLongest(d,a,b);var e=c||module$contents$goog$array_defaultCompareEquality;return goog.iter.every(a,function(f){return e(f[0],f[1])})};goog.iter.nextOrValue=function(a,b){a=goog.iter.toIterator(a);var c=a.next();a=c.done;c=c.value;return a?b:c}; goog.iter.product=function(a){var b=Array.prototype.some.call(arguments,function(e){return!e.length});if(b||!arguments.length)return new goog.iter.Iterator;b=new goog.iter.Iterator;var c=arguments,d=module$contents$goog$array_repeat(0,c.length);b.next=function(){if(d){for(var e=module$contents$goog$array_map(d,function(g,h){return c[h][g]}),f=d.length-1;f>=0;f--){goog.asserts.assert(d);if(d[f]<c[f].length-1){d[f]++;break}if(f==0){d=null;break}d[f]=0}return goog.iter.createEs6IteratorYield(e)}return goog.iter.ES6_ITERATOR_DONE}; return b};goog.iter.cycle=function(a){var b=goog.iter.toIterator(a),c=[],d=0;a=new goog.iter.Iterator;var e=!1;a.next=function(){if(!e){var f=b.next();if(f.done){if(module$contents$goog$array_isEmpty(c))return goog.iter.ES6_ITERATOR_DONE;e=!0}else return c.push(f.value),f}f=c[d];d=(d+1)%c.length;return goog.iter.createEs6IteratorYield(f)};return a}; goog.iter.count=function(a,b){var c=a||0,d=b!==void 0?b:1;a=new goog.iter.Iterator;a.next=function(){var e=c;c+=d;return goog.iter.createEs6IteratorYield(e)};return a};goog.iter.repeat=function(a){var b=new goog.iter.Iterator;b.next=function(){return goog.iter.createEs6IteratorYield(a)};return b}; goog.iter.accumulate=function(a){var b=goog.iter.toIterator(a),c=0;a=new goog.iter.Iterator;a.next=function(){var d=b.next(),e=d.done;d=d.value;if(e)return goog.iter.ES6_ITERATOR_DONE;c+=d;return goog.iter.createEs6IteratorYield(c)};return a}; goog.iter.zip=function(a){var b=arguments,c=new goog.iter.Iterator;if(b.length>0){var d=module$contents$goog$array_map(b,goog.iter.toIterator),e=!1;c.next=function(){if(e)return goog.iter.ES6_ITERATOR_DONE;for(var f=[],g=0,h;h=d[g++];){h=h.next();if(h.done)return e=!0,goog.iter.ES6_ITERATOR_DONE;f.push(h.value)}return goog.iter.createEs6IteratorYield(f)}}return c}; goog.iter.zipLongest=function(a,b){var c=Array.prototype.slice.call(arguments,1),d=new goog.iter.Iterator;if(c.length>0){var e=module$contents$goog$array_map(c,goog.iter.toIterator),f=!1;d.next=function(){if(f)return goog.iter.ES6_ITERATOR_DONE;for(var g=!1,h=[],k=0,l;l=e[k++];)l=l.next(),l.done?h.push(a):(h.push(l.value),g=!0);return g?goog.iter.createEs6IteratorYield(h):(f=!0,goog.iter.ES6_ITERATOR_DONE)}}return d}; goog.iter.compress=function(a,b){var c=goog.iter.toIterator(a),d=goog.iter.toIterator(b);a=new goog.iter.Iterator;var e=!1;a.next=function(){if(e)return goog.iter.ES6_ITERATOR_DONE;for(;;){var f=c.next();if(f.done)return e=!0,goog.iter.ES6_ITERATOR_DONE;var g=d.next();if(g.done)return e=!0,goog.iter.ES6_ITERATOR_DONE;f=f.value;if(g=g.value)return goog.iter.createEs6IteratorYield(f)}};return a};goog.iter.GroupByIterator_=function(a,b){this.iterator=goog.iter.toIterator(a);this.keyFunc=b||goog.functions.identity}; goog.inherits(goog.iter.GroupByIterator_,goog.iter.Iterator);goog.iter.GroupByIterator_.prototype.next=function(){for(;this.currentKey==this.targetKey;){var a=this.iterator.next();if(a.done)return goog.iter.ES6_ITERATOR_DONE;this.currentValue=a.value;this.currentKey=this.keyFunc(this.currentValue)}this.targetKey=this.currentKey;return goog.iter.createEs6IteratorYield([this.currentKey,this.groupItems_(this.targetKey)])}; goog.iter.GroupByIterator_.prototype.groupItems_=function(a){for(var b=[];this.currentKey==a;){b.push(this.currentValue);var c=this.iterator.next();if(c.done)break;this.currentValue=c.value;this.currentKey=this.keyFunc(this.currentValue)}return b};goog.iter.groupBy=function(a,b){return new goog.iter.GroupByIterator_(a,b)}; goog.iter.starMap=function(a,b,c){var d=goog.iter.toIterator(a);a=new goog.iter.Iterator;a.next=function(){var e=d.next();if(e.done)return goog.iter.ES6_ITERATOR_DONE;e=goog.iter.toArray(e.value);e=b.apply(c,[].concat(e,void 0,d));return goog.iter.createEs6IteratorYield(e)};return a}; goog.iter.tee=function(a,b){function c(f){var g=new goog.iter.Iterator;g.next=function(){if(module$contents$goog$array_isEmpty(f)){var h=d.next();var k=h.done;h=h.value;if(k)h=!1;else{k=0;for(var l;l=e[k++];)l.push(h);h=!0}if(!h)return goog.iter.ES6_ITERATOR_DONE}goog.asserts.assert(!module$contents$goog$array_isEmpty(f));return goog.iter.createEs6IteratorYield(f.shift())};return g}var d=goog.iter.toIterator(a);a=typeof b==="number"?b:2;var e=module$contents$goog$array_map(module$contents$goog$array_range(a), function(){return[]});return module$contents$goog$array_map(e,c)};goog.iter.enumerate=function(a,b){return goog.iter.zip(goog.iter.count(b),a)};goog.iter.limit=function(a,b){goog.asserts.assert(goog.math.isInt(b)&&b>=0);var c=goog.iter.toIterator(a);a=new goog.iter.Iterator;var d=b;a.next=function(){return d-- >0?c.next():goog.iter.ES6_ITERATOR_DONE};return a}; goog.iter.consume=function(a,b){goog.asserts.assert(goog.math.isInt(b)&&b>=0);for(a=goog.iter.toIterator(a);b-- >0;)goog.iter.nextOrValue(a,null);return a};goog.iter.slice=function(a,b,c){goog.asserts.assert(goog.math.isInt(b)&&b>=0);a=goog.iter.consume(a,b);typeof c==="number"&&(goog.asserts.assert(goog.math.isInt(c)&&c>=b),a=goog.iter.limit(a,c-b));return a};goog.iter.hasDuplicates_=function(a){var b=[];module$contents$goog$array_removeDuplicates(a,b);return a.length!=b.length}; goog.iter.permutations=function(a,b){a=goog.iter.toArray(a);b=typeof b==="number"?b:a.length;b=module$contents$goog$array_repeat(a,b);b=goog.iter.product.apply(void 0,b);return goog.iter.filter(b,function(c){return!goog.iter.hasDuplicates_(c)})}; goog.iter.combinations=function(a,b){function c(f){return d[f]}var d=goog.iter.toArray(a);a=goog.iter.range(d.length);b=goog.iter.permutations(a,b);var e=goog.iter.filter(b,function(f){return module$contents$goog$array_isSorted(f)});b=new goog.iter.Iterator;b.next=function(){var f=e.next(),g=f.done;f=f.value;return g?goog.iter.ES6_ITERATOR_DONE:goog.iter.createEs6IteratorYield(module$contents$goog$array_map(f,c))};return b}; goog.iter.combinationsWithReplacement=function(a,b){function c(f){return d[f]}var d=goog.iter.toArray(a);a=module$contents$goog$array_range(d.length);b=module$contents$goog$array_repeat(a,b);b=goog.iter.product.apply(void 0,b);var e=goog.iter.filter(b,function(f){return module$contents$goog$array_isSorted(f)});b=new goog.iter.Iterator;b.next=function(){var f=e.next(),g=f.done;f=f.value;return g?goog.iter.ES6_ITERATOR_DONE:goog.iter.createEs6IteratorYield(module$contents$goog$array_map(f,c))};return b};goog.iter.es6={};var module$contents$goog$iter$es6_ShimIterable=function(){};module$contents$goog$iter$es6_ShimIterable.prototype.__iterator__=function(){};module$contents$goog$iter$es6_ShimIterable.prototype.toEs6=function(){}; module$contents$goog$iter$es6_ShimIterable.of=function(a){if(a instanceof module$contents$goog$iter$es6_ShimIterableImpl||a instanceof module$contents$goog$iter$es6_ShimGoogIterator||a instanceof module$contents$goog$iter$es6_ShimEs6Iterator)return a;if(typeof a.next=="function")return new module$contents$goog$iter$es6_ShimIterableImpl(function(){return a});if(typeof a[Symbol.iterator]=="function")return new module$contents$goog$iter$es6_ShimIterableImpl(function(){return a[Symbol.iterator]()});if(typeof a.__iterator__== "function")return new module$contents$goog$iter$es6_ShimIterableImpl(function(){return a.__iterator__()});throw Error("Not an iterator or iterable.");};var module$contents$goog$iter$es6_ShimIterableImpl=function(a){this.func_=a};module$contents$goog$iter$es6_ShimIterableImpl.prototype.__iterator__=function(){return new module$contents$goog$iter$es6_ShimGoogIterator(this.func_())};module$contents$goog$iter$es6_ShimIterableImpl.prototype[Symbol.iterator]=function(){return new module$contents$goog$iter$es6_ShimEs6Iterator(this.func_())}; module$contents$goog$iter$es6_ShimIterableImpl.prototype.toEs6=function(){return new module$contents$goog$iter$es6_ShimEs6Iterator(this.func_())};var module$contents$goog$iter$es6_ShimGoogIterator=function(a){goog.iter.Iterator.call(this);this.iter_=a};$jscomp.inherits(module$contents$goog$iter$es6_ShimGoogIterator,goog.iter.Iterator);module$contents$goog$iter$es6_ShimGoogIterator.prototype.next=function(){return this.iter_.next()}; module$contents$goog$iter$es6_ShimGoogIterator.prototype[Symbol.iterator]=function(){return new module$contents$goog$iter$es6_ShimEs6Iterator(this.iter_)};module$contents$goog$iter$es6_ShimGoogIterator.prototype.toEs6=function(){return new module$contents$goog$iter$es6_ShimEs6Iterator(this.iter_)};var module$contents$goog$iter$es6_ShimEs6Iterator=function(a){module$contents$goog$iter$es6_ShimIterableImpl.call(this,function(){return a});this.iter_=a}; $jscomp.inherits(module$contents$goog$iter$es6_ShimEs6Iterator,module$contents$goog$iter$es6_ShimIterableImpl);module$contents$goog$iter$es6_ShimEs6Iterator.prototype.next=function(){return this.iter_.next()};goog.iter.es6.ShimIterable=module$contents$goog$iter$es6_ShimIterable;goog.iter.es6.ShimEs6Iterator=module$contents$goog$iter$es6_ShimEs6Iterator;goog.iter.es6.ShimGoogIterator=module$contents$goog$iter$es6_ShimGoogIterator;goog.structs.Map=function(a,b){this.map_={};this.keys_=[];this.version_=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};goog.structs.Map.prototype.getCount=function(){return this.size};goog.structs.Map.prototype.getValues=function(){this.cleanupKeysArray_();for(var a=[],b=0;b<this.keys_.length;b++){var c=this.keys_[b];a.push(this.map_[c])}return a}; goog.structs.Map.prototype.getKeys=function(){this.cleanupKeysArray_();return this.keys_.concat()};goog.structs.Map.prototype.containsKey=function(a){return this.has(a)};goog.structs.Map.prototype.has=function(a){return goog.structs.Map.hasKey_(this.map_,a)};goog.structs.Map.prototype.containsValue=function(a){for(var b=0;b<this.keys_.length;b++){var c=this.keys_[b];if(goog.structs.Map.hasKey_(this.map_,c)&&this.map_[c]==a)return!0}return!1}; goog.structs.Map.prototype.equals=function(a,b){if(this===a)return!0;if(this.size!=a.getCount())return!1;b=b||goog.structs.Map.defaultEquals;this.cleanupKeysArray_();for(var c,d=0;c=this.keys_[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};goog.structs.Map.defaultEquals=function(a,b){return a===b};goog.structs.Map.prototype.isEmpty=function(){return this.size==0};goog.structs.Map.prototype.clear=function(){this.map_={};this.keys_.length=0;this.setSizeInternal_(0);this.version_=0}; goog.structs.Map.prototype.remove=function(a){return this.delete(a)};goog.structs.Map.prototype.delete=function(a){return goog.structs.Map.hasKey_(this.map_,a)?(delete this.map_[a],this.setSizeInternal_(this.size-1),this.version_++,this.keys_.length>2*this.size&&this.cleanupKeysArray_(),!0):!1}; goog.structs.Map.prototype.cleanupKeysArray_=function(){if(this.size!=this.keys_.length){for(var a=0,b=0;a<this.keys_.length;){var c=this.keys_[a];goog.structs.Map.hasKey_(this.map_,c)&&(this.keys_[b++]=c);a++}this.keys_.length=b}if(this.size!=this.keys_.length){a={};for(c=b=0;b<this.keys_.length;){var d=this.keys_[b];goog.structs.Map.hasKey_(a,d)||(this.keys_[c++]=d,a[d]=1);b++}this.keys_.length=c}}; goog.structs.Map.prototype.get=function(a,b){return goog.structs.Map.hasKey_(this.map_,a)?this.map_[a]:b};goog.structs.Map.prototype.set=function(a,b){goog.structs.Map.hasKey_(this.map_,a)||(this.setSizeInternal_(this.size+1),this.keys_.push(a),this.version_++);this.map_[a]=b};goog.structs.Map.prototype.addAll=function(a){if(a instanceof goog.structs.Map)for(var b=a.getKeys(),c=0;c<b.length;c++)this.set(b[c],a.get(b[c]));else for(b in a)this.set(b,a[b])}; goog.structs.Map.prototype.forEach=function(a,b){for(var c=this.getKeys(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};goog.structs.Map.prototype.clone=function(){return new goog.structs.Map(this)};goog.structs.Map.prototype.transpose=function(){for(var a=new goog.structs.Map,b=0;b<this.keys_.length;b++){var c=this.keys_[b],d=this.map_[c];a.set(d,c)}return a}; goog.structs.Map.prototype.toObject=function(){this.cleanupKeysArray_();for(var a={},b=0;b<this.keys_.length;b++){var c=this.keys_[b];a[c]=this.map_[c]}return a};goog.structs.Map.prototype.getKeyIterator=function(){return this.__iterator__(!0)};goog.structs.Map.prototype.keys=function(){return module$contents$goog$iter$es6_ShimIterable.of(this.getKeyIterator()).toEs6()};goog.structs.Map.prototype.getValueIterator=function(){return this.__iterator__(!1)};goog.structs.Map.prototype.values=function(){return module$contents$goog$iter$es6_ShimIterable.of(this.getValueIterator()).toEs6()}; goog.structs.Map.prototype.entries=function(){var a=this;return goog.collections.iters.map(this.keys(),function(b){return[b,a.get(b)]})}; goog.structs.Map.prototype.__iterator__=function(a){this.cleanupKeysArray_();var b=0,c=this.version_,d=this,e=new goog.iter.Iterator;e.next=function(){if(c!=d.version_)throw Error("The map has changed since the iterator was created");if(b>=d.keys_.length)return goog.iter.ES6_ITERATOR_DONE;var f=d.keys_[b++];return goog.iter.createEs6IteratorYield(a?f:d.map_[f])};return e};goog.structs.Map.prototype.setSizeInternal_=function(a){this.size=a}; goog.structs.Map.hasKey_=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};goog.structs.LinkedMap=function(a,b,c){this.maxCount_=a||null;this.cache_=!!b;this.evictionCallback_=c;this.map_=new goog.structs.Map;this.head_=new goog.structs.LinkedMap.Node_("",void 0);this.head_.next=this.head_.prev=this.head_};goog.structs.LinkedMap.prototype.findAndMoveToTop_=function(a){(a=this.map_.get(a))&&this.cache_&&(a.remove(),this.insert_(a));return a};goog.structs.LinkedMap.prototype.get=function(a,b){return(a=this.findAndMoveToTop_(a))?a.value:b}; goog.structs.LinkedMap.prototype.set=function(a,b){var c=this.findAndMoveToTop_(a);c?c.value=b:(c=new goog.structs.LinkedMap.Node_(a,b),this.map_.set(a,c),this.insert_(c))};goog.structs.LinkedMap.prototype.peek=function(){return this.head_.next.value};goog.structs.LinkedMap.prototype.shift=function(){return this.popNode_(this.head_.next)};goog.structs.LinkedMap.prototype.pop=function(){return this.popNode_(this.head_.prev)}; goog.structs.LinkedMap.prototype.remove=function(a){return(a=this.map_.get(a))?(this.removeNode(a),!0):!1};goog.structs.LinkedMap.prototype.removeNode=function(a){a.remove();this.map_.remove(a.key)};goog.structs.LinkedMap.prototype.getCount=function(){return this.map_.getCount()};goog.structs.LinkedMap.prototype.isEmpty=function(){return this.map_.isEmpty()};goog.structs.LinkedMap.prototype.getKeys=function(){return this.map(function(a,b){return b})};goog.structs.LinkedMap.prototype.getValues=function(){return this.map(function(a){return a})}; goog.structs.LinkedMap.prototype.contains=function(a){return this.some(function(b){return b==a})};goog.structs.LinkedMap.prototype.containsKey=function(a){return this.map_.containsKey(a)};goog.structs.LinkedMap.prototype.clear=function(){this.truncate_(0)};goog.structs.LinkedMap.prototype.forEach=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)a.call(b,c.value,c.key,this)}; goog.structs.LinkedMap.prototype.map=function(a,b){for(var c=[],d=this.head_.next;d!=this.head_;d=d.next)c.push(a.call(b,d.value,d.key,this));return c};goog.structs.LinkedMap.prototype.some=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)if(a.call(b,c.value,c.key,this))return!0;return!1};goog.structs.LinkedMap.prototype.every=function(a,b){for(var c=this.head_.next;c!=this.head_;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0}; goog.structs.LinkedMap.prototype.insert_=function(a){this.cache_?(a.next=this.head_.next,a.prev=this.head_,this.head_.next=a,a.next.prev=a):(a.prev=this.head_.prev,a.next=this.head_,this.head_.prev=a,a.prev.next=a);this.maxCount_!=null&&this.truncate_(this.maxCount_)};goog.structs.LinkedMap.prototype.truncate_=function(a){for(;this.getCount()>a;){var b=this.cache_?this.head_.prev:this.head_.next;this.removeNode(b);this.evictionCallback_&&this.evictionCallback_(b.key,b.value)}}; goog.structs.LinkedMap.prototype.popNode_=function(a){this.head_!=a&&this.removeNode(a);return a.value};goog.structs.LinkedMap.Node_=function(a,b){this.key=a;this.value=b};goog.structs.LinkedMap.Node_.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};ocean.info={};ocean.info.PageInfoSet=function(){goog.events.EventTarget.call(this);this.pageInfos_=new goog.structs.LinkedMap};goog.inherits(ocean.info.PageInfoSet,goog.events.EventTarget);ocean.info.PageInfoSet.prototype.setDefaultSize=function(a){this.defaultSize_=a}; ocean.info.PageInfoSet.prototype.setPageInfos=function(a){a.sort(ocean.info.PageInfoSet.orderSorter_);module$contents$goog$array_forEach(a,function(b){b.setParent(this)},this);this.pageInfos_=new goog.structs.LinkedMap;module$contents$goog$array_forEach(a,function(b){this.pageInfos_.set(b.getPageId(),b)},this);this.dispatchEvent(ocean.info.PageInfoSet.EventType.UPDATE)};ocean.info.PageInfoSet.orderSorter_=function(a,b){return a.getOrderId()-b.getOrderId()}; ocean.info.PageInfoSet.prototype.getPageInfoArray=function(){return this.pageInfos_.getValues()};ocean.info.PageInfoSet.prototype.getPageInfoByIndex=function(a){return this.pageInfos_.getValues()[a]};ocean.info.PageInfoSet.EventType={UPDATE:"update"};ocean.info.PageInfoSet.prototype.getPageInfoByOffset=function(a,b){for(var c=this.getPageInfoArray(),d=-1,e=0;e<c.length;e++)if(c[e].getPageId()==a){d=e;break}if(d>=0)return c[b+d]};ocean.info.PageInfoSet.prototype.getPageInfoByPid=function(a){return this.pageInfos_.get(a)}; ocean.info.PageInfoSet.prototype.getPageInfoByTitle=function(a){a=goog.string.trim(a);if(a.length!=0)return module$contents$goog$array_find(this.getPageInfoArray(),function(b){return b.getTitle()==a})};ocean.info.PageInfoSet.prototype.getPageInfoWithMaxOrderId=function(a){for(var b=this.getPageInfoArray(),c=b.length-1;c>=0;c--){var d=b[c];if(d.getOrderId()<=a)return d}return null};ocean.entitypage={}; var module$contents$ocean$entitypage$Constants_Constants={HANDSHAKE_RPC_METHOD:"handshake",CLOSE_VIEWPORT_RPC_METHOD:"closeViewportDialog",UPDATE_HISTORY_RPC_METHOD:"updateInViewportPage",FOCUS_SEARCH_RPC_METHOD:"focusSearch",UPDATE_SEARCH_RPC_METHOD:"updateSearch",GO_TO_PAGE_RPC_METHOD:"goToPage",DISMISS_COMPLETE_ONBOARDING_RPC_METHOD:"onboardingComplete",DISMISS_ONBOARDING_WITHOUT_PLAIN_TEXT_RPC_METHOD:"onboardingCompleteNoPlainText",LINK_TO_RESULT_ANALYTICS_LABEL:"Link to result",SELECT_A_CLIP_ANALYTICS_LABEL:"Select a clip", TOGGLE_VIEWPORT_MODE_ANALYTICS_LABEL:"Toggle to plain text",TEXT_VIEWPORT_NAVIGATION_ANALYTICS_LABEL:"Text viewport navigation"};ocean.entitypage.Constants=module$contents$ocean$entitypage$Constants_Constants;/* Copyright 2005, 2007 Bob Ippolito. All Rights Reserved. Copyright The Closure Library Authors. SPDX-License-Identifier: MIT */ goog.async.Deferred=function(a,b){this.sequence_=[];this.onCancelFunction_=a;this.defaultScope_=b||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0;goog.async.Deferred.LONG_STACK_TRACES&&(this.constructorStack_=null,Error.captureStackTrace&&(a={stack:""},Error.captureStackTrace(a,goog.async.Deferred),typeof a.stack=="string"&&(this.constructorStack_=a.stack.replace(/^[^\n]*\n/, ""))))};goog.async.Deferred.STRICT_ERRORS=!1;goog.async.Deferred.LONG_STACK_TRACES=!1;goog.async.Deferred.prototype.cancel=function(a){if(this.fired_)this.result_ instanceof goog.async.Deferred&&this.result_.cancel();else{if(this.parent_){var b=this.parent_;delete this.parent_;a?b.cancel(a):b.branchCancel_()}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new goog.async.Deferred.CanceledError(this))}}; goog.async.Deferred.prototype.branchCancel_=function(){this.branches_--;this.branches_<=0&&this.cancel()};goog.async.Deferred.prototype.continue_=function(a,b){this.blocked_=!1;this.updateResult_(a,b)};goog.async.Deferred.prototype.updateResult_=function(a,b){this.fired_=!0;this.result_=b;this.hadError_=!a;this.fire_()};goog.async.Deferred.prototype.check_=function(){if(this.fired_){if(!this.silentlyCanceled_)throw new goog.async.Deferred.AlreadyCalledError(this);this.silentlyCanceled_=!1}}; goog.async.Deferred.prototype.callback=function(a){this.check_();this.assertNotDeferred_(a);this.updateResult_(!0,a)};goog.async.Deferred.prototype.errback=function(a){this.check_();this.assertNotDeferred_(a);this.makeStackTraceLong_(a);this.updateResult_(!1,a)};goog.async.Deferred.unhandledErrorHandler_=function(a){throw a;};goog.async.Deferred.setUnhandledErrorHandler=function(a){goog.async.Deferred.unhandledErrorHandler_=a}; goog.async.Deferred.prototype.makeStackTraceLong_=function(a){goog.async.Deferred.LONG_STACK_TRACES&&this.constructorStack_&&goog.isObject(a)&&a.stack&&/^[^\n]+(\n [^\n]+)+/.test(a.stack)&&(a.stack=a.stack+"\nDEFERRED OPERATION:\n"+this.constructorStack_)};goog.async.Deferred.prototype.assertNotDeferred_=function(a){goog.asserts.assert(!(a instanceof goog.async.Deferred),"An execution sequence may not be initiated with a blocking Deferred.")}; goog.async.Deferred.prototype.addCallback=function(a,b){return this.addCallbacks(a,null,b)};goog.async.Deferred.prototype.addErrback=function(a,b){return this.addCallbacks(null,a,b)};goog.async.Deferred.prototype.addBoth=function(a,b){return this.addCallbacks(a,a,b)};goog.async.Deferred.prototype.addCallbacks=function(a,b,c){goog.asserts.assert(!this.blocking_,"Blocking Deferreds can not be re-used");this.sequence_.push([a,b,c]);this.fired_&&this.fire_();return this}; goog.async.Deferred.prototype.then=function(a,b,c){var d,e,f=new goog.Promise(function(g,h){e=g;d=h});this.addCallbacks(e,function(g){g instanceof goog.async.Deferred.CanceledError?f.cancel():d(g);return goog.async.Deferred.CONVERTED_TO_PROMISE_},this);return f.then(a,b,c)};module$contents$goog$Thenable_Thenable.addImplementation(goog.async.Deferred);goog.async.Deferred.prototype.chainDeferred=function(a){this.addCallbacks(a.callback,a.errback,a);return this}; goog.async.Deferred.prototype.branch=function(a){var b=new goog.async.Deferred;this.chainDeferred(b);a&&(b.parent_=this,this.branches_++);return b};goog.async.Deferred.prototype.isError=function(a){return a instanceof Error};goog.async.Deferred.prototype.hasErrback_=function(){return module$contents$goog$array_some(this.sequence_,function(a){return typeof a[1]==="function"})};goog.async.Deferred.CONVERTED_TO_PROMISE_={}; goog.async.Deferred.prototype.fire_=function(){this.unhandledErrorId_&&this.fired_&&this.hasErrback_()&&(goog.async.Deferred.unscheduleError_(this.unhandledErrorId_),this.unhandledErrorId_=0);this.parent_&&(this.parent_.branches_--,delete this.parent_);for(var a=this.result_,b=!1,c=!1,d=!1;this.sequence_.length&&!this.blocked_;){d=!1;var e=this.sequence_.shift(),f=e[0],g=e[1];e=e[2];if(f=this.hadError_?g:f)try{var h=f.call(e||this.defaultScope_,a);h===goog.async.Deferred.CONVERTED_TO_PROMISE_&&(d= !0,h=void 0);h!==void 0&&(this.hadError_=this.hadError_&&(h==a||this.isError(h)),this.result_=a=h);if(module$contents$goog$Thenable_Thenable.isImplementedBy(a)||typeof goog.global.Promise==="function"&&a instanceof goog.global.Promise)this.blocked_=c=!0}catch(k){a=k,this.hadError_=!0,this.makeStackTraceLong_(a),this.hasErrback_()||(b=!0)}}this.result_=a;c?(c=goog.bind(this.continue_,this,!0),d=goog.bind(this.continue_,this,!1),a instanceof goog.async.Deferred?(a.addCallbacks(c,d),a.blocking_=!0): a.then(c,d)):!goog.async.Deferred.STRICT_ERRORS||d||!this.isError(a)||a instanceof goog.async.Deferred.CanceledError||(b=this.hadError_=!0);b&&(this.unhandledErrorId_=goog.async.Deferred.scheduleError_(a))};goog.async.Deferred.succeed=function(a){var b=new goog.async.Deferred;b.callback(a);return b};goog.async.Deferred.fromPromise=function(a){var b=new goog.async.Deferred;a.then(function(c){b.callback(c)},function(c){b.errback(c)});return b}; goog.async.Deferred.fail=function(a){var b=new goog.async.Deferred;b.errback(a);return b};goog.async.Deferred.canceled=function(){var a=new goog.async.Deferred;a.cancel();return a};goog.async.Deferred.when=function(a,b,c){return a instanceof goog.async.Deferred?a.branch(!0).addCallback(b,c):goog.async.Deferred.succeed(a).addCallback(b,c)};goog.async.Deferred.AlreadyCalledError=function(){module$contents$goog$debug$Error_DebugError.call(this)};goog.inherits(goog.async.Deferred.AlreadyCalledError,module$contents$goog$debug$Error_DebugError); goog.async.Deferred.AlreadyCalledError.prototype.message="Deferred has already fired";goog.async.Deferred.AlreadyCalledError.prototype.name="AlreadyCalledError";goog.async.Deferred.CanceledError=function(){module$contents$goog$debug$Error_DebugError.call(this)};goog.inherits(goog.async.Deferred.CanceledError,module$contents$goog$debug$Error_DebugError);goog.async.Deferred.CanceledError.prototype.message="Deferred was canceled";goog.async.Deferred.CanceledError.prototype.name="CanceledError"; goog.async.Deferred.Error_=function(a){this.id_=goog.global.setTimeout(goog.bind(this.throwError,this),0);this.error_=a};goog.async.Deferred.Error_.prototype.throwError=function(){goog.asserts.assert(goog.async.Deferred.errorMap_[this.id_],"Cannot throw an error that is not scheduled.");delete goog.async.Deferred.errorMap_[this.id_];goog.async.Deferred.unhandledErrorHandler_(this.error_)};goog.async.Deferred.Error_.prototype.resetTimer=function(){goog.global.clearTimeout(this.id_)}; goog.async.Deferred.errorMap_={};goog.async.Deferred.scheduleError_=function(a){a=new goog.async.Deferred.Error_(a);goog.async.Deferred.errorMap_[a.id_]=a;return a.id_};goog.async.Deferred.unscheduleError_=function(a){var b=goog.async.Deferred.errorMap_[a];b&&(b.resetTimer(),delete goog.async.Deferred.errorMap_[a])};goog.async.Deferred.assertNoErrors=function(){var a=goog.async.Deferred.errorMap_,b;for(b in a){var c=a[b];c.resetTimer();c.throwError()}};goog.net.jsloader={};goog.net.jsloader.GLOBAL_VERIFY_OBJS_="closure_verification";goog.net.jsloader.DEFAULT_TIMEOUT=5E3;goog.net.jsloader.scriptsToLoad_=[]; goog.net.jsloader.safeLoadMany=function(a,b){if(!a.length)return goog.async.Deferred.succeed(null);var c=goog.net.jsloader.scriptsToLoad_.length;module$contents$goog$array_extend(goog.net.jsloader.scriptsToLoad_,a);if(c)return goog.net.jsloader.scriptLoadingDeferred_;a=goog.net.jsloader.scriptsToLoad_;var d=function(){var e=a.shift();e=goog.net.jsloader.safeLoad(e,b);a.length&&e.addBoth(d);return e};goog.net.jsloader.scriptLoadingDeferred_=d();return goog.net.jsloader.scriptLoadingDeferred_}; goog.net.jsloader.safeLoad=function(a,b){var c=b||{};b=c.document||document;var d=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(a).toString(),e=(new goog.dom.DomHelper(b)).createElement(goog.dom.TagName.SCRIPT),f={script_:e,timeout_:void 0},g=new goog.async.Deferred(goog.net.jsloader.cancel_,f),h=null,k=c.timeout!=null?c.timeout:goog.net.jsloader.DEFAULT_TIMEOUT;k>0&&(h=window.setTimeout(function(){goog.net.jsloader.cleanup_(e,!0);g.errback(new goog.net.jsloader.Error(goog.net.jsloader.ErrorCode.TIMEOUT, "Timeout reached for loading script "+d))},k),f.timeout_=h);e.onload=e.onreadystatechange=function(){if(!e.readyState||e.readyState=="loaded"||e.readyState=="complete"){var l=c.cleanupWhenDone||!1;goog.net.jsloader.cleanup_(e,l,h);g.callback(null)}};e.onerror=function(){goog.net.jsloader.cleanup_(e,!0,h);g.errback(new goog.net.jsloader.Error(goog.net.jsloader.ErrorCode.LOAD_ERROR,"Error while loading script "+d))};f=c.attributes||{};module$contents$goog$object_extend(f,{type:"text/javascript",charset:"UTF-8"}); goog.dom.setProperties(e,f);module$exports$google3$third_party$javascript$safevalues$dom$index.setScriptSrc(e,a);a=goog.net.jsloader.getScriptParentElement_(b);a.appendChild(e);return g}; goog.net.jsloader.safeLoadAndVerify=function(a,b,c){goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_]||(goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_]={});var d=goog.global[goog.net.jsloader.GLOBAL_VERIFY_OBJS_],e=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(a).toString();if(d[b]!==void 0)return goog.async.Deferred.fail(new goog.net.jsloader.Error(goog.net.jsloader.ErrorCode.VERIFY_OBJECT_ALREADY_EXISTS,"Verification object "+b+" already defined.")); a=goog.net.jsloader.safeLoad(a,c);var f=new goog.async.Deferred(goog.bind(a.cancel,a));a.addCallback(function(){var g=d[b];g!==void 0?(f.callback(g),delete d[b]):f.errback(new goog.net.jsloader.Error(goog.net.jsloader.ErrorCode.VERIFY_ERROR,"Script "+e+" loaded, but verification object "+b+" was not defined."))});a.addErrback(function(g){d[b]!==void 0&&delete d[b];f.errback(g)});return f}; goog.net.jsloader.getScriptParentElement_=function(a){var b=goog.dom.getElementsByTagName(goog.dom.TagName.HEAD,a);return b&&b.length!==0?b[0]:a.documentElement};goog.net.jsloader.cancel_=function(){var a=this;if(a&&a.script_){var b=a.script_;b&&b.tagName==goog.dom.TagName.SCRIPT&&goog.net.jsloader.cleanup_(b,!0,a.timeout_)}}; goog.net.jsloader.cleanup_=function(a,b,c){c!=null&&goog.global.clearTimeout(c);a.onload=function(){};a.onerror=function(){};a.onreadystatechange=function(){};b&&window.setTimeout(function(){goog.dom.removeNode(a)},0)};goog.net.jsloader.ErrorCode={LOAD_ERROR:0,TIMEOUT:1,VERIFY_ERROR:2,VERIFY_OBJECT_ALREADY_EXISTS:3};goog.net.jsloader.Error=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);module$contents$goog$debug$Error_DebugError.call(this,c);this.code=a}; goog.inherits(goog.net.jsloader.Error,module$contents$goog$debug$Error_DebugError);var $jscomp$templatelit$m765779727$9=$jscomp.createTemplateTagFirstArg(["//apis.google.com/js/api.js"]);ocean.entitypage.EntityPageCommunicationUtil={}; ocean.entitypage.EntityPageCommunicationUtil.setUpCommunicationWithParent=function(a,b,c){ocean.entitypage.EntityPageCommunicationUtil.isInIframe_()&&(goog.net.jsloader.safeLoad(ocean.entitypage.EntityPageCommunicationUtil.GAPI_JS_SRC_,{document:a}).then(function(){var d=goog.getObjectByName("gapi.load",b);d&&d("gapi.rpc",{callback:function(){return ocean.entitypage.EntityPageCommunicationUtil.registerCommunicationMethods_(c)},onerror:function(){return goog.log.warning(goog.log.getLogger("ocean.entitypage.EntityPageCommunicationUtil"), "Gapi loading has failed.")},timeout:ocean.entitypage.EntityPageCommunicationUtil.GAPI_LOAD_TIMEOUT_,ontimeout:function(){return goog.log.warning(goog.log.getLogger("ocean.entitypage.EntityPageCommunicationUtil"),"Gapi loading has timed out.")}})}),goog.Timer.callOnce(function(){ocean.entitypage.EntityPageCommunicationUtil.registerCommunicationMethods_(c)},ocean.entitypage.EntityPageCommunicationUtil.GAPI_LOAD_TIMEOUT_))}; ocean.entitypage.EntityPageCommunicationUtil.maybePropagateSearchQueryToParent=function(a){var b={};b.q=a;ocean.entitypage.EntityPageCommunicationUtil.gapiRpcCall_(module$contents$ocean$entitypage$Constants_Constants.UPDATE_HISTORY_RPC_METHOD,b)};ocean.entitypage.EntityPageCommunicationUtil.propagateOnboardingDismissedEventToParent=function(a){a?ocean.entitypage.EntityPageCommunicationUtil.gapiRpcCall_(module$contents$ocean$entitypage$Constants_Constants.DISMISS_COMPLETE_ONBOARDING_RPC_METHOD):ocean.entitypage.EntityPageCommunicationUtil.gapiRpcCall_(module$contents$ocean$entitypage$Constants_Constants.DISMISS_ONBOARDING_WITHOUT_PLAIN_TEXT_RPC_METHOD)}; ocean.entitypage.EntityPageCommunicationUtil.registerCommunicationMethods_=function(a){var b=goog.getObjectByName("gapi.rpc.register");typeof b==="function"&&(b(module$contents$ocean$entitypage$Constants_Constants.HANDSHAKE_RPC_METHOD,function(){}),ocean.entitypage.EntityPageCommunicationUtil.propagateCloseEventsToParent_(),ocean.entitypage.EntityPageCommunicationUtil.listenForMessagesFromParent_(a))}; ocean.entitypage.EntityPageCommunicationUtil.propagateCloseEventsToParent_=function(){goog.events.listen(document,goog.events.EventType.KEYDOWN,function(a){a.keyCode==goog.events.KeyCodes.ESC&&ocean.entitypage.EntityPageCommunicationUtil.gapiRpcCall_(module$contents$ocean$entitypage$Constants_Constants.CLOSE_VIEWPORT_RPC_METHOD)})}; ocean.entitypage.EntityPageCommunicationUtil.listenForMessagesFromParent_=function(a){var b=goog.getObjectByName("gapi.rpc.register");if(typeof b==="function")for(var c in a)b(c,a[c])};ocean.entitypage.EntityPageCommunicationUtil.gapiRpcCall_=function(a,b){if(ocean.entitypage.EntityPageCommunicationUtil.isInIframe_()){var c=goog.getObjectByName("gapi.rpc.call");typeof c==="function"&&c("..",a,null,b)}};ocean.entitypage.EntityPageCommunicationUtil.isInIframe_=function(){try{return window.self!==window.top}catch(a){return!0}}; ocean.entitypage.EntityPageCommunicationUtil.GAPI_JS_SRC_=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_trustedResourceUrl($jscomp$templatelit$m765779727$9);ocean.entitypage.EntityPageCommunicationUtil.GAPI_LOAD_TIMEOUT_=5E3;ocean.info.SearchState=function(a){goog.events.EventTarget.call(this);this.setQuery(a||"")};$jscomp.inherits(ocean.info.SearchState,goog.events.EventTarget);ocean.info.SearchState.prototype.getQuery=function(){return this.query_};ocean.info.SearchState.prototype.setQuery=function(a){this.query_!=a&&(this.query_=a,this.dispatchEvent(ocean.info.SearchState.EventType.CHANGE),ocean.entitypage.EntityPageCommunicationUtil.maybePropagateSearchQueryToParent(goog.asserts.assertExists(a)))}; ocean.info.SearchState.prototype.parseQueryFromPageUrl=function(){var a=ocean.info.SearchState.parseQueryFromPageUrl();a&&this.setQuery(a)};ocean.info.SearchState.parseQueryFromPageUrl=function(){return ocean.info.SearchState.parseQueryFromUrl(window.location.toString())};ocean.info.SearchState.parseQueryFromUrl=function(a){a=new goog.Uri(a);return a.getParameterValue("q")||a.getParameterValue("vq")||a.getParameterValue("dq")}; ocean.info.SearchState.parseUserQueryFromPageUrl=function(){var a=new goog.Uri(window.location.toString());return a.getParameterValue("q")};ocean.info.SearchState.EventType={CHANGE:"change"};ocean.viewport.ImageCache=function(a){this.images_={};this.viewer_=a};ocean.viewport.ImageCache.prototype.registerUrl=function(a,b,c){this.images_[a]=this.images_[a]||{};this.images_[a][b]=c};ocean.viewport.ImageCache.prototype.getAllImages=function(a){var b=[];if(this.images_[a]){var c=[],d;for(d in this.images_[a])c.push(d);module$contents$goog$array_sort(c);for(d=0;d<c.length;d++)b.push(this.images_[a][c[d]])}return b};ocean.info.FeedbackState=function(){};ocean.info.FeedbackState.Flag={BAD_PAGE:1,MISSING_PAGE:2};var module$contents$ocean$viewport$ViewportManager_ViewportManager=function(a){this.viewer_=a;this.viewportDiv_=a.viewportDiv_};module$contents$ocean$viewport$ViewportManager_ViewportManager.prototype.setViewportClass=function(a){this.viewport_&&(this.viewport_.dispose(),goog.dom.removeChildren(this.viewer_.getViewport().getCanvasDiv()));this.viewport_=new a(this.viewer_);this.viewport_.goToPage&&this.viewport_.goToPage(this.viewer_.getPageInfo());this.viewport_.handlePageChange&&this.viewport_.handlePageChange()}; module$contents$ocean$viewport$ViewportManager_ViewportManager.prototype.getViewport=function(){return this.viewport_};ocean.viewport.ViewportManager=module$contents$ocean$viewport$ViewportManager_ViewportManager;ocean.viewport.Viewer=function(a){module$contents$ocean$EventManager_EventManager.call(this);this.div_=a;goog.dom.removeChildren(a);goog.style.setStyle(a,"overflow","hidden");this.viewportDiv_=goog.dom.createElement("div");goog.style.setStyle(this.div_,{position:"relative",padding:"0px"});goog.dom.insertChildAt(this.div_,this.viewportDiv_,0);this.imageCache_=new ocean.viewport.ImageCache(this);this.commandQueue_=[];this.commandHandlers_=[];this.registerHandlers();this.pageMode_=OC_PAGE_IMAGE;this.viewportManager_= new module$contents$ocean$viewport$ViewportManager_ViewportManager(this);this.controlsDiv_=this.createOverlayDiv_();this.setSize(goog.style.getContentBoxSize(this.div_));ocean.viewport.Viewer.viewers_.push(this);this.searchState_=new ocean.info.SearchState;goog.events.listen(this.searchState_,ocean.info.SearchState.EventType.CHANGE,this.handleSearchUpdate_,!1,this)};goog.inherits(ocean.viewport.Viewer,module$contents$ocean$EventManager_EventManager);ocean.viewport.Viewer.viewers_=[]; ocean.viewport.Viewer.prototype.setSize=function(a){if(goog.DEBUG&&(a.width===void 0||a.width===void 0))throw"Both width and height must be defined";a.width=Math.max(a.width,0);a.height=Math.max(a.height,0);if(!this.size_||!goog.math.Size.equals(this.size_,a)){goog.style.setContentBoxSize(this.viewportDiv_,a);this.size_=a;var b=this.viewportManager_.getViewport();b&&b.setSize(a);this.dispatchEvent(ocean.viewport.Viewer.EventType.RESIZE)}};ocean.viewport.Viewer.prototype.getSize=function(){return this.size_}; ocean.viewport.Viewer.prototype.getWidth=function(){return this.size_.width};ocean.viewport.Viewer.prototype.getHeight=function(){return this.size_.height};ocean.viewport.Viewer.prototype.go=function(){this.dispatchEvent("load")};ocean.viewport.Viewer.prototype.createOverlayDiv_=function(){var a=goog.dom.createElement("div");ocean.style.clearExternalStyles(a,!0);goog.style.setStyle(a,{position:"absolute",left:"0px",top:"0px"});goog.dom.appendChild(this.div_,a);return a}; ocean.viewport.Viewer.prototype.setViewportClass=function(a){if(goog.DEBUG&&!this.getPageInfo())throw"Page info should be set before viewport class";this.viewportClass_!=a&&(this.viewportClass_=a,this.viewportManager_.setViewportClass(a),this.dispatchEvent(ocean.viewport.Viewer.EventType.VIEWPORTMODECHANGE))};ocean.viewport.Viewer.prototype.setVolumeInfo=function(a){this.volumeInfo_=a};ocean.viewport.Viewer.prototype.getViewport=function(){return this.viewportManager_.getViewport()}; ocean.viewport.Viewer.prototype.setPageMode=function(a){this.pageMode_=a;this.dispatchEvent(ocean.viewport.Viewer.EventType.PAGEMODECHANGE)};ocean.viewport.Viewer.prototype.togglePageMode=function(){this.setPageMode(this.pageMode_==OC_PAGE_IMAGE?OC_PAGE_TEXT:OC_PAGE_IMAGE)};ocean.viewport.Viewer.prototype.getViewportClass=function(){return this.viewportClass_};ocean.viewport.Viewer.prototype.getDiv=function(){return this.div_}; ocean.viewport.Viewer.prototype.setPageInfoSet=function(a){if(this.pageInfoSet_)throw"";this.pageInfoSet_=a;goog.events.listen(a,ocean.info.PageInfoSet.EventType.UPDATE,goog.bind(this.handlePageInfoSetUpdate_,this))};ocean.viewport.Viewer.prototype.handlePageInfoSetUpdate_=function(){this.dispatchEvent(ocean.viewport.Viewer.EventType.PAGESUPDATE)};ocean.viewport.Viewer.prototype.setPageId=function(a,b){return(a=this.pageInfoSet_.getPageInfoByPid(a))?(this.setPageInfo(a,b),a):null}; ocean.viewport.Viewer.prototype.setPageInfo=function(a,b){if(this.pageInfo_!=a||b)this.pageInfo_=a,this.dispatchEvent(ocean.viewport.Viewer.EventType.PAGECHANGE)};ocean.viewport.Viewer.prototype.goToPageLabel=function(a){return(a=this.pageInfoSet_.getPageInfoByTitle(a))?(this.setPageInfo(a),!0):!1};ocean.viewport.Viewer.prototype.goToPageUrl=function(a){var b=function(c){goog.Timer.callOnce(goog.bind(this.setPageInfo,this,c))};this.goToUrlHelper_(a,goog.bind(b,this))}; ocean.viewport.Viewer.prototype.goToSearchResultUrl=function(a,b){var c=function(d){goog.Timer.callOnce(goog.bind(this.goToSearchResult,this,d,b))};this.goToUrlHelper_(a,goog.bind(c,this))};ocean.viewport.Viewer.prototype.goToUrlHelper_=function(a,b){this.pageInfoSet_.fetchPageInfoFromUrl(a,b)}; ocean.viewport.Viewer.prototype.goToSearchResult=function(a,b){var c=this.viewportManager_.getViewport().layout_;if(c&&c.getLayoutPageByPageInfo&&(c=c.getLayoutPageByPageInfo(a))){b=b||new goog.math.Coordinate(40,80);var d=this.searchState_.getQuery();if(!d)return;var e=a.getSearchHighlightRects(d);if(e){this.goToSearchResultHelper_(c,b,e);return}a.fetchServerInfo(goog.bind(this.handleSearchResultRequest_,this,c,b,d))}this.setPageInfo(a)}; ocean.viewport.Viewer.prototype.handleSearchResultRequest_=function(a,b,c,d){(c=d.getSearchHighlightRects(c))&&this.goToSearchResultHelper_(a,b,c)}; ocean.viewport.Viewer.prototype.goToSearchResultHelper_=function(a,b,c){if(c&&c.length){b=c[0];for(var d=1;d<c.length;d++)b=goog.math.Rect.boundingRect(b,c[d]);c=a.getPageInfo().getPageWidth();c=a.getSize().width/c;b=new goog.math.Vec2(b.left,b.top);b.scale(c);b.x=Math.round(b.x);b.y=Math.round(b.y);a=goog.math.Vec2.fromCoordinate(a.getPosition());a.add(b);this.getViewport().panTo(a)}};ocean.viewport.Viewer.prototype.getPageId=function(){return this.pageInfo_.getPageId()}; ocean.viewport.Viewer.prototype.getPageInfo=function(){return this.pageInfo_};ocean.viewport.Viewer.prototype.queueCommand=function(a){for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c]);this.commandQueue_.push(b);this.commandQueue_.length==1&&this.startCommandQueue()};ocean.viewport.Viewer.prototype.registerCommand=function(a,b){this.commandHandlers_.push([a,b])}; ocean.viewport.Viewer.prototype.startCommandQueue=function(){var a=this.commandQueue_.shift();if(a){for(var b=a.shift(),c=0;c<this.commandHandlers_.length;c++)this.commandHandlers_[c][0]==b&&this.commandHandlers_[c][1].apply(this,a);this.startCommandQueue()}}; ocean.viewport.Viewer.prototype.registerHandlers=function(){var a=this;this.registerCommand(ocean.viewport.Viewer.Commands.NEXT,goog.bind(this.handleTurn_,this,1));this.registerCommand(ocean.viewport.Viewer.Commands.PREVIOUS,goog.bind(this.handleTurn_,this,-1));this.registerCommand(ocean.viewport.Viewer.Commands.TURN_TO_PAGE,goog.bind(this.handleTurnToPage_,this));this.registerCommand(ocean.viewport.Viewer.Commands.ZOOM_IN,goog.bind(this.handleZoomIn_,this));this.registerCommand(ocean.viewport.Viewer.Commands.ZOOM_OUT, goog.bind(this.handleZoomOut_,this));this.registerCommand(ocean.viewport.Viewer.Commands.SHOW_KEYBOARD_SHORTCUTS,function(){a.dispatchEvent(ocean.viewport.Viewer.EventType.KEYBOARDSHORTCUTSOPENED)})};ocean.viewport.Viewer.prototype.updateBoundingBoxHelper_=function(){var a=this.viewportManager_.getViewport();if(a.drawBoundingBoxes){var b=this.getPageInfo();a.drawBoundingBoxes(b)}};ocean.viewport.Viewer.prototype.updateBoundingBox=function(){this.updateBoundingBoxHelper_()}; ocean.viewport.Viewer.prototype.handleTurn_=function(a){var b=this.viewportManager_.getViewport();if(a=b.getPageInfoForTurn?b.getPageInfoForTurn(this.getPageInfo(),a):this.pageInfoSet_.getPageInfoByOffset(this.getPageInfo().getPageId(),a))this.setPageInfo(a),this.updateBoundingBox(),this.dispatchEvent(ocean.viewport.Viewer.EventType.PAGE_TURN)};ocean.viewport.Viewer.prototype.handleTurnToPage_=function(a){if(a=this.pageInfoSet_.getPageInfoByPid(a))this.setPageInfo(a),this.updateBoundingBox()}; ocean.viewport.Viewer.prototype.handleZoomIn_=function(){var a=this.viewportManager_.getViewport();a.zoomIn&&(a.zoomIn(),this.updateBoundingBox());this.dispatchEvent(ocean.viewport.Viewer.EventType.ZOOMCHANGE)};ocean.viewport.Viewer.prototype.handleZoomOut_=function(){var a=this.viewportManager_.getViewport();a.zoomOut&&(a.zoomOut(),this.updateBoundingBox());this.dispatchEvent(ocean.viewport.Viewer.EventType.ZOOMCHANGE)};ocean.viewport.Viewer.prototype.handleSearchUpdate_=function(){this.dispatchEvent(ocean.viewport.Viewer.EventType.SEARCHUPDATE)}; var OC_PAGE_IMAGE={},OC_PAGE_TEXT={};ocean.viewport.Viewer.Commands={NEXT:"next",PREVIOUS:"previous",TURN_TO_PAGE:"turntopage",ZOOM_IN:"zoomin",ZOOM_OUT:"zoomout",SHOW_KEYBOARD_SHORTCUTS:"showkeyboardshortcuts"}; ocean.viewport.Viewer.EventType={INTERACTIONMODECHANGE:"interactionmodechange",PAGECHANGE:"pagechange",PAGEMODECHANGE:"pagemodechange",PAGE_TURN:"pageturn",PAGESUPDATE:"pagesupdate",RESIZE:"resize",SEARCHUPDATE:"searchupdate",VIEWPORTMODECHANGE:"viewportmodechange",ZOOMCHANGE:"zoomchange",KEYBOARDSHORTCUTSOPENED:"keyboardshortcutsopened"};var module$contents$ocean$Flags_Flags={update:function(a){for(var b in a)module$contents$ocean$Flags_Flags[b]=a[b]},addFlags:function(a){if(typeof a==="string")try{a=JSON.parse(a)}catch(c){a=null}for(var b in a)module$contents$ocean$Flags_Flags.addFlag(b,a[b])},addFlag:function(a,b){module$contents$ocean$Flags_Flags[a]=b}};goog.exportSymbol("_OC_addFlags",module$contents$ocean$Flags_Flags.addFlags);ocean.Flags=module$contents$ocean$Flags_Flags;ocean.util={};ocean.util.Url={};ocean.util.Url.replaceUrlParameter=function(a,b,c){c=c.replace(/#.*/g,"");c=new goog.Uri(c);c.setParameterValue(a,b);return c.toString()};ocean.util.Url.getUrlOnDomain=function(a){if(ocean.util.Url.domain_){var b=new goog.Uri(ocean.util.Url.domain_);b.setPath(a);return b.toString()}return a};ocean.util.Url.setDomain=function(a){ocean.util.Url.domain_=new goog.Uri(a)}; ocean.util.Url.appendLanguagePreference=function(a,b){return b=b||"en",ocean.util.Url.replaceUrlParameter("hl",b,a)};ocean.util.Url.getVolumeId=function(a){a=new goog.Uri(a);var b=a.getPath().split("/");b[0]||b.shift();return b.length>3?b[3]:a.getParameterValue("id")||""};ocean.util.Url.getFirstPathComponent=function(){var a=window.location.pathname.split("/");return a.length<1?"":a[1]};ocean.info.PageInfo=function(a){goog.events.EventTarget.call(this);this.data_={};a&&this.setData(a)};goog.inherits(ocean.info.PageInfo,goog.events.EventTarget);ocean.info.PageInfo.EventType={UPDATE:"update"};ocean.info.PageInfo.prototype.getPageWidth=function(){return this.data_.w||this.getParent().defaultSize_.width};ocean.info.PageInfo.prototype.getPageHeight=function(){return this.data_.h||this.getParent().defaultSize_.height}; ocean.info.PageInfo.prototype.getRatio=function(){return this.getPageWidth()/this.getPageHeight()};ocean.info.PageInfo.prototype.getSize=function(){return new goog.math.Size(this.getPageWidth(),this.getPageHeight())};ocean.info.PageInfo.prototype.setData=function(a){for(var b in a)this.data_[b]=a[b];this.dispatchEvent(ocean.info.PageInfo.EventType.UPDATE)};ocean.info.PageInfo.prototype.setParent=function(a){this.pageInfoSet_=a};ocean.info.PageInfo.prototype.getParent=function(){return this.pageInfoSet_}; ocean.info.PageInfo.prototype.getTitle=function(){return this.data_.title};ocean.info.PageInfo.prototype.getLabel=function(){var a=this.getTitle();return a?module$contents$ocean$msg_getGooglePrintPageNumber(a):""};ocean.info.PageInfo.prototype.getOrderId=function(){return this.data_.order};ocean.info.PageInfo.prototype.getSrc=function(a){if(this.data_.src&&a){var b=new goog.Uri(this.data_.src);b.setParameterValue("w",a.width);return b.toString()}return this.data_.src}; ocean.info.PageInfo.prototype.getSnippetSrc=function(){return this.data_.snippetSrc};ocean.info.PageInfo.prototype.getPageId=function(){return this.data_.pid};ocean.util.Image={}; function module$contents$ocean$util$Image_onLoad(a,b,c){if(module$contents$goog$labs$userAgent$browser_isAtMost(module$contents$goog$labs$userAgent$browser_Brand.IE,8)){var d=[];d[0]=goog.events.listen(a,goog.events.EventType.READYSTATECHANGE,goog.partial(module$contents$ocean$util$Image_handleReadyStateChange,a,goog.partial(module$contents$ocean$util$Image_asynchronizeCall,b),d))}else goog.events.listenOnce(a,goog.events.EventType.LOAD,goog.partial(module$contents$ocean$util$Image_asynchronizeCall,b)); c&&goog.events.listenOnce(a,goog.events.EventType.ERROR,goog.partial(module$contents$ocean$util$Image_asynchronizeCall,c))}function module$contents$ocean$util$Image_asynchronizeCall(a){goog.Timer.callOnce(a)}function module$contents$ocean$util$Image_handleReadyStateChange(a,b,c){if(a.readyState!="complete")return!0;goog.events.unlistenByKey(c[0]);b();return!1}var module$contents$ocean$util$Image_imageDiv=goog.dom.createElement("div"); function module$contents$ocean$util$Image_dispose(a){var b=module$contents$goog$asserts$dom_assertIsHtmlImageElement(a);b&&(goog.userAgent.IE?(goog.dom.appendChild(module$contents$ocean$util$Image_imageDiv,a),a=goog.partial(goog.dom.removeNode,b),module$contents$ocean$util$Image_onLoad(b,a,a),b.src="//www.google.com/images/cleardot.gif"):(b.src="//www.google.com/images/cleardot.gif",goog.dom.removeNode(b)))}ocean.util.Image.dispose=module$contents$ocean$util$Image_dispose; ocean.util.Image.onLoad=module$contents$ocean$util$Image_onLoad;var module$contents$ocean$viewport$TileImageLayer_TileImageLayer=function(a,b,c,d,e,f,g){goog.events.EventTarget.call(this);this.div_=a;this.width_=b;this.height_=c;this.tileWidth_=d;this.tileHeight_=e;this.getUrl_=f;this.tileLoadAction_=g;this.xTiles_=Math.ceil(this.width_/this.tileWidth_);this.yTiles_=Math.ceil(this.height_/this.tileHeight_);this.tiles_=[];for(a=0;a<this.xTiles_;++a){b=[];for(c=0;c<this.yTiles_;++c)b.push(null);this.tiles_.push(b)}}; $jscomp.inherits(module$contents$ocean$viewport$TileImageLayer_TileImageLayer,goog.events.EventTarget);module$contents$ocean$viewport$TileImageLayer_TileImageLayer.prototype.empty=function(){for(var a;a=this.div_.firstChild;)module$contents$ocean$util$Image_dispose(a)}; module$contents$ocean$viewport$TileImageLayer_TileImageLayer.prototype.loadTiles=function(a){var b=Math.floor(a.left/this.tileWidth_),c=Math.floor(a.top/this.tileHeight_),d=Math.ceil((a.left+a.width)/this.tileWidth_),e=Math.ceil((a.top+a.height)/this.tileHeight_);d=Math.min(d,this.xTiles_);for(e=Math.min(e,this.yTiles_);b<d;b++)for(var f=c;f<e;f++)if(!this.isTilePlaced_(b,f)){var g=this.getTileImage_(b,f),h=this.getUrl_(b,f);module$contents$ocean$util$Image_onLoad(g,goog.bind(this.handleLoad_,this, g,h),goog.bind(this.handleErrorLoad_,this,g,h));g.src=h}for(c=0;c<this.xTiles_;++c)for(d=0;d<this.yTiles_;++d)this.isTilePlaced_(c,d)&&(e=new goog.math.Rect(c*this.tileWidth_,d*this.tileHeight_,(c+1)*this.tileWidth_,(d+1)*this.tileHeight_),e.intersects(a)||(module$contents$ocean$util$Image_dispose(this.tiles_[c][d]),this.tiles_[c][d]=null))};module$contents$ocean$viewport$TileImageLayer_TileImageLayer.prototype.isTilePlaced_=function(a,b){return!!this.tiles_[a][b]}; module$contents$ocean$viewport$TileImageLayer_TileImageLayer.prototype.getTileImage_=function(a,b){if(!this.isTilePlaced_(a,b)){var c=goog.dom.createElement(goog.dom.TagName.IMG);goog.style.setStyle(c,{position:"absolute",left:a*this.tileWidth_+"px",top:b*this.tileHeight_+"px",display:"none"});this.tiles_[a][b]=c;goog.dom.appendChild(this.div_,c)}return this.tiles_[a][b]}; module$contents$ocean$viewport$TileImageLayer_TileImageLayer.prototype.handleLoad_=function(a,b){goog.style.setStyle(a,{display:""});this.tileLoadAction_&&this.tileLoadAction_(b)};module$contents$ocean$viewport$TileImageLayer_TileImageLayer.prototype.handleErrorLoad_=function(){};ocean.viewport.TileImageLayer=module$contents$ocean$viewport$TileImageLayer_TileImageLayer;function module$contents$ocean$viewport$LayoutItemRenderer_LayoutItemRenderer(){}ocean.viewport.LayoutItemRenderer=module$contents$ocean$viewport$LayoutItemRenderer_LayoutItemRenderer;var module$contents$ocean$info$TilingPageParams_TilingPageParams=function(a){this.tileResolutions_={};for(var b=0;b<a.length;b++){var c=a[b];this.tileResolutions_[c.z]=new goog.math.Size(c.w,c.h)}};module$contents$ocean$info$TilingPageParams_TilingPageParams.prototype.getZoomLevelForPageHeight=function(a){var b=module$contents$goog$object_findKey(this.tileResolutions_,function(c){return c.height==a});return b?Number(b):null}; module$contents$ocean$info$TilingPageParams_TilingPageParams.prototype.getPageWidthForZoomLevel=function(a){return(a=this.tileResolutions_[a])?a.width:null};ocean.info.TilingPageParams=module$contents$ocean$info$TilingPageParams_TilingPageParams;ocean.entitypage.Util={};ocean.entitypage.Util.isSourceEntityPage=function(a){if(a)return a.isEntityPageViewport;a=new goog.Uri(window.location.href);a=a.getParameterValue(ocean.entitypage.Util.SOURCE_PARAM_);return a==ocean.entitypage.Util.ENTITY_PAGE_SOURCE_VALUE_||a==ocean.entitypage.Util.ENTITY_PAGE_SEARCH_WITHIN_VOLUME_SOURCE_VALUE_}; ocean.entitypage.Util.isOutputTextViewport=function(){var a=new goog.Uri(window.location.href);a=a.getParameterValue(ocean.entitypage.Util.OUTPUT_PARAM_);return(ocean.entitypage.Util.isSourceEntityPage()||goog.userAgent.MOBILE)&&a==ocean.entitypage.Util.TEXT_OUTPUT_VALUE_};ocean.entitypage.Util.pageLoadedAsToggledViewMode=function(){return(new goog.Uri(window.location.href)).getFragment()==="toggled"};ocean.entitypage.Util.SOURCE_PARAM_="source";ocean.entitypage.Util.ENTITY_PAGE_SOURCE_VALUE_="entity_page"; ocean.entitypage.Util.ENTITY_PAGE_SEARCH_WITHIN_VOLUME_SOURCE_VALUE_="entity_page_gbs_snippet";ocean.entitypage.Util.OUTPUT_PARAM_="output";ocean.entitypage.Util.TEXT_OUTPUT_VALUE_="text";ocean.info.ProtoPageInfo=function(a){ocean.info.PageInfo.call(this,a);this.serverParameters_={};this.searchHighlightsMap_={};this.callbackUrlMap_={};this.newspaperScanjobCoordinates_=this.tilingPageParams_=null};goog.inherits(ocean.info.ProtoPageInfo,ocean.info.PageInfo);ocean.info.ProtoPageInfo.JS_INFO_PARAM_="click3";ocean.info.ProtoPageInfo.SOURCE_PARAM_="source";ocean.info.ProtoPageInfo.ENTITY_PAGE_SOURCE_VALUE_="entity_page"; ocean.info.ProtoPageInfo.prototype.setData=function(a,b){ocean.info.ProtoPageInfo.superClass_.setData.call(this,a);b&&(this.lastFetchedUrl_=b)};ocean.info.ProtoPageInfo.prototype.fetchServerInfo=function(a){this.fetchServerInfoWithUri(this.getFetchUri(),a)}; ocean.info.ProtoPageInfo.prototype.getFetchUri=function(){var a=this.getPageUri_();a.setParameterValue("jscmd",ocean.info.ProtoPageInfo.JS_INFO_PARAM_);var b;this.searchState_&&(b=this.searchState_.getQuery());this.setServerParameter("vq",b);module$contents$goog$object_forEach(this.serverParameters_,function(c,d){a.setParameterValue(d,c)});return a}; ocean.info.ProtoPageInfo.prototype.fetchServerInfoWithUri=function(a,b){a=a.toString();if(a==this.lastFetchedUrl_)b&&b(this);else{if(b){var c=this.callbackUrlMap_[a]=this.callbackUrlMap_[a]||[];c.push(b)}if(a!=this.outstandingFetchedUrl_){this.outstandingFetchedUrl_=a;this.fetchTimeout_&&goog.global.clearTimeout(this.fetchTimeout_);this.fetchTimeout_=goog.global.setTimeout(goog.bind(this.handleFetchTimeout_,this,a),6E3);var d;this.searchState_&&(d=this.searchState_.getQuery());ocean.info.ProtoPageInfo.commChannel_(a, goog.bind(this.handleFetch_,this,a,d))}}};ocean.info.ProtoPageInfo.prototype.setServerParameter=function(a,b){b?this.serverParameters_[a]=b:delete this.serverParameters_[a]};ocean.info.ProtoPageInfo.prototype.serverParameters_=null;ocean.info.ProtoPageInfo.setCommChannel=function(a){ocean.info.ProtoPageInfo.commChannel_=a}; ocean.info.ProtoPageInfo.prototype.handleFetch_=function(a,b,c){this.outstandingFetchedUrl_==a&&(this.outstandingFetchedUrl_=null,this.fetchTimeout_&&(goog.global.clearTimeout(this.fetchTimeout_),this.fetchTimeout_=null),this.lastFetchedUrl_=a,b=c.page,this.setProtoData(b[0]),this.pageInfoSet_.importServerInfo(c),c=this.callbackUrlMap_[a])&&(module$contents$goog$array_forEach(c,function(d){d(this)},this),delete this.callbackUrlMap_[a])}; ocean.info.ProtoPageInfo.prototype.handleFetchTimeout_=function(a){this.fetchTimeout_=this.outstandingFetchedUrl_=null;delete this.callbackUrlMap_[a]}; ocean.info.ProtoPageInfo.prototype.getPageUri_=function(){var a=this.data_.url;a?a=new goog.Uri(a):(a=new goog.Uri(this.pageInfoSet_.prefix_),a.setParameterValue("pg",this.getPageId()),this.getSig()&&a.setParameterValue("sig",this.getSig()));ocean.entitypage.Util.isSourceEntityPage()&&a.setParameterValue(ocean.info.ProtoPageInfo.SOURCE_PARAM_,ocean.info.ProtoPageInfo.ENTITY_PAGE_SOURCE_VALUE_);return a}; ocean.info.ProtoPageInfo.prototype.getPageImageUri_=function(){var a=new goog.Uri(this.pageInfoSet_.image_prefix_);a.setParameterValue("pg",this.getPageId());this.getSig()&&a.setParameterValue("sig",this.getSig());return a};ocean.info.ProtoPageInfo.prototype.getPageUrl=function(){return this.getPageUri_().toString()};ocean.info.ProtoPageInfo.prototype.getPageImageUrl=function(){return this.getPageImageUri_().toString()}; ocean.info.ProtoPageInfo.prototype.getPageWidth=function(){return this.data_.w||this.getParent().defaultSize_.width};ocean.info.ProtoPageInfo.prototype.getPageHeight=function(){return this.data_.h||this.getParent().defaultSize_.height};ocean.info.ProtoPageInfo.prototype.getHighlightPageWidth=function(){return this.getParent().defaultSize_.width}; ocean.info.ProtoPageInfo.PROTO_TO_PAGEINFO_MAP_={additional_info:"additional_info",content:"content",feedbackUrl:"uf",flags:"flags",highlights:"highlights",links:"links",order:"order",pid:"pid",src:"src",snippetSrc:"snippet_src"}; ocean.info.ProtoPageInfo.prototype.setProtoData=function(a){var b={},c;for(c in ocean.info.ProtoPageInfo.PROTO_TO_PAGEINFO_MAP_){var d=ocean.info.ProtoPageInfo.PROTO_TO_PAGEINFO_MAP_[c],e=a[d];e!==void 0&&(d=="highlights"?(d=a.vq,this.searchHighlightsMap_[d]=e):b[c]=e)}b.additional_info&&(c=b.additional_info["[NewspaperJSONPageInfo]"])&&(this.tilingPageParams_=new module$contents$ocean$info$TilingPageParams_TilingPageParams(c.tileres),c=c.page_scanjob_coordinates)&&(this.newspaperScanjobCoordinates_= ""+c.x+","+c.y);a.vq&&!b.snippetSrc&&(b.snippetSrc="");this.setData(b)};ocean.info.ProtoPageInfo.prototype.setSrc=function(a){this.setData({src:a})};ocean.info.ProtoPageInfo.prototype.getSig=function(){return this.data_.sig};ocean.info.ProtoPageInfo.prototype.getContent=function(){return this.data_.content};ocean.info.ProtoPageInfo.prototype.getUserFeedbackUrl=function(){return this.data_.feedbackUrl}; ocean.info.ProtoPageInfo.FLAGS={EMPTY_OR_BAD:1,CACHABLE:2,LOGIN:4,RESTRICTED:8,LIMIT_REACHED:16,FRONT_PAGE:32,BACK_PAGE:64};ocean.info.ProtoPageInfo.prototype.isViewable=function(){return!this.hasSomeFlags([ocean.info.ProtoPageInfo.FLAGS.LOGIN,ocean.info.ProtoPageInfo.FLAGS.RESTRICTED,ocean.info.ProtoPageInfo.FLAGS.LIMIT_REACHED])};ocean.info.ProtoPageInfo.prototype.hasFlag=function(a){return!!(this.data_.flags&a)}; ocean.info.ProtoPageInfo.prototype.hasSomeFlags=function(a){return module$contents$goog$array_some(a,goog.bind(this.hasFlag,this))};ocean.info.ProtoPageInfo.prototype.getSearchHighlights_=function(a){a=goog.string.htmlEscape(a);a=a.replace(/'/g,"'");if(a=this.searchHighlightsMap_[a]){var b=[];module$contents$goog$array_forEach(a,function(c){b.push([c.X,c.Y,c.W,c.H])});return b}}; ocean.info.ProtoPageInfo.prototype.getSearchHighlightRects=function(a,b){if(a=this.getSearchHighlights_(a))return b=b||1,module$contents$goog$array_map(a,goog.partial(ocean.info.ProtoPageInfo.getScaledHighlightRect_,b))};ocean.info.ProtoPageInfo.getScaledHighlightRect_=function(a,b){b=module$contents$goog$array_map(b,function(c){return Math.round(c*a)});return new goog.math.Rect(b[0],b[1],b[2],b[3])}; ocean.info.ProtoPageInfo.prototype.getLinks=function(){if(this.data_.links)return module$contents$goog$array_map(this.data_.links,function(a){var b=a.region,c=a.target_pid;a=a.url;return[b.X,b.Y,b.W,b.H,c,a]})}; ocean.info.ProtoPageInfo.prototype.getClipHighlights=function(){if(this.data_.clip_highlight||this.data_.clip_highlights){var a=this.data_.clip_highlights||[this.data_.clip_highlight],b=[];module$contents$goog$array_forEach(a,function(c){var d=[];module$contents$goog$array_forEach(["X","Y","W","H"],function(e){d.push(c[e])});b.push(d)});return b}return null}; ocean.info.ProtoPageInfo.prototype.getSrc=function(a){if(this.data_.src&&a){var b=new goog.Uri(this.data_.src);a&&module$contents$goog$object_forEach(this.getDimensionMap(),function(c,d){d=="height"&&a.height?b.setParameterValue(c,a.height):d=="width"&&a.width&&b.setParameterValue(c,a.width)});return b.toString()}return this.data_.src};ocean.info.ProtoPageInfo.prototype.setSearchState=function(a){this.searchState_=a};ocean.info.ProtoPageInfo.prototype.getDimensionMap=function(){return{width:"w",height:"h"}};function module$contents$ocean$info$TilingParams_TilingParams(a,b,c,d){this.tileWidth_=a||module$contents$ocean$info$TilingParams_TilingParams.DEFAULT_TILE_DIMENSION_;this.tileHeight_=b||module$contents$ocean$info$TilingParams_TilingParams.DEFAULT_TILE_DIMENSION_;this.tileXWindow_=c||module$contents$ocean$info$TilingParams_TilingParams.DEFAULT_WINDOW_;this.tileYWindow_=d||module$contents$ocean$info$TilingParams_TilingParams.DEFAULT_WINDOW_;this.uriRewriter_=null} module$contents$ocean$info$TilingParams_TilingParams.DEFAULT_TILE_DIMENSION_=256;module$contents$ocean$info$TilingParams_TilingParams.DEFAULT_WINDOW_=3;module$contents$ocean$info$TilingParams_TilingParams.prototype.setUriRewriter=function(a){this.uriRewriter_=a}; module$contents$ocean$info$TilingParams_TilingParams.prototype.getTileNumber=function(a,b,c,d){var e=this.tileXWindow_,f=this.tileYWindow_;a=Math.ceil(a/this.tileWidth_);b=Math.ceil(b/this.tileHeight_);var g=Math.floor(d/e),h=Math.floor(c/f),k=e*a*g;b-=g*e;d-=g*e;e=Math.min(e,b);k+=e*f*h;a-=h*f;c-=h*f;f=Math.min(f,a);return k+=d*f+c}; module$contents$ocean$info$TilingParams_TilingParams.prototype.getTileUrl=function(a,b,c,d,e){b=this.getTileNumber(b,c,d,e);a=new goog.Uri(a);a.setParameterValue("tid",b);this.uriRewriter_&&(a=this.uriRewriter_(a,b));return a.toString()};ocean.info.TilingParams=module$contents$ocean$info$TilingParams_TilingParams;function module$contents$ocean$info$VolumeInfo_VolumeInfo(){}module$contents$ocean$info$VolumeInfo_VolumeInfo.prototype.getTitle=function(){return this.title_};var module$contents$ocean$viewport$DrawableManager_DrawableManager=function(){this.drawnItemsMap_=new Map};module$contents$ocean$viewport$DrawableManager_DrawableManager.prototype.add=function(a,b){this.drawnItemsMap_.set(goog.getUid(a),b)}; module$contents$ocean$viewport$DrawableManager_DrawableManager.prototype.cleanupItems=function(a){a=a===void 0?[]:a;a=new Set(a.map(function(e){return goog.getUid(e)}));for(var b=(0,$jscomp.makeIterator)(this.drawnItemsMap_.keys()),c=b.next();!c.done;c=b.next())if(c=c.value,!a.has(c)){var d=this.drawnItemsMap_.get(c);d&&d.cleanup();this.drawnItemsMap_.delete(c)}};module$contents$ocean$viewport$DrawableManager_DrawableManager.prototype.isDrawn=function(a){return this.drawnItemsMap_.has(goog.getUid(a))}; ocean.viewport.DrawableManager=module$contents$ocean$viewport$DrawableManager_DrawableManager;var module$contents$ocean$viewport$LayoutItemDispatcher_LayoutItemDispatcher=function(){this.renderers_={};this.drawableManager_=new module$contents$ocean$viewport$DrawableManager_DrawableManager};module$contents$ocean$viewport$LayoutItemDispatcher_LayoutItemDispatcher.prototype.addRenderer=function(a,b){this.renderers_[goog.getUid(a)]=b};module$contents$ocean$viewport$LayoutItemDispatcher_LayoutItemDispatcher.prototype.cleanup=function(){this.drawableManager_.cleanupItems()}; module$contents$ocean$viewport$LayoutItemDispatcher_LayoutItemDispatcher.prototype.renderItems=function(a){a=module$contents$goog$array_filter(a,function(b){return!!this.renderers_[goog.getUid(b.constructor)]},this);this.drawableManager_.cleanupItems(a);module$contents$goog$array_forEach(a,function(b){this.drawableManager_.isDrawn(b)||this.drawableManager_.add(b,this.renderers_[goog.getUid(b.constructor)].render(b))},this)};ocean.viewport.LayoutItemDispatcher=module$contents$ocean$viewport$LayoutItemDispatcher_LayoutItemDispatcher;var module$contents$ocean$viewport$ZoomStops_ZoomStops=function(a){this.zoomStops_=a};module$contents$ocean$viewport$ZoomStops_ZoomStops.prototype.getNewSize=function(a,b,c){c=this.getNewStops_(c);if(b>0)for(b=0;b<c.length;b++){if(c[b]>a)return c[b]}else for(b=c.length-1;b>=0;b--)if(c[b]<a)return c[b];return a}; module$contents$ocean$viewport$ZoomStops_ZoomStops.prototype.getNewStops_=function(a){var b=a||[];a=module$contents$goog$array_filter(this.zoomStops_,function(c){return!module$contents$goog$array_some(b,function(d){return Math.abs(d-c)<50})});a.push.apply(a,b);module$contents$goog$array_sort(a);return a};module$contents$ocean$viewport$ZoomStops_ZoomStops.prototype.getMax=function(){return module$contents$goog$array_peek(this.zoomStops_)};ocean.viewport.ZoomStops=module$contents$ocean$viewport$ZoomStops_ZoomStops;function module$contents$ocean$info$ProtoPageInfoSet_ProtoPageInfoSet(a,b){ocean.info.PageInfoSet.call(this);this.fetchedPageIds_={};a&&(this.setPrefix(a.prefix),this.setImagePrefix(a.image_prefix||a.prefix),a=module$contents$goog$array_map(a.page,function(c){c=new this.PAGE_INFO_CONSTRUCTOR(c);b&&c.setSearchState(b);return c},this),this.setPageInfos(a))}goog.inherits(module$contents$ocean$info$ProtoPageInfoSet_ProtoPageInfoSet,ocean.info.PageInfoSet); module$contents$ocean$info$ProtoPageInfoSet_ProtoPageInfoSet.prototype.importServerInfo=function(a){a=a.page;for(var b=0;b<a.length;b++){var c=a[b],d=this.getPageInfoByPid(c.pid);d&&d.setProtoData(c)}};module$contents$ocean$info$ProtoPageInfoSet_ProtoPageInfoSet.prototype.setPrefix=function(a){this.prefix_=a};module$contents$ocean$info$ProtoPageInfoSet_ProtoPageInfoSet.prototype.setImagePrefix=function(a){this.image_prefix_=a}; module$contents$ocean$info$ProtoPageInfoSet_ProtoPageInfoSet.prototype.PAGE_INFO_CONSTRUCTOR=ocean.info.ProtoPageInfo;module$contents$ocean$info$ProtoPageInfoSet_ProtoPageInfoSet.prototype.fetchPageInfoFromUrl=function(a,b){new goog.Uri(a);a=new this.PAGE_INFO_CONSTRUCTOR({url:a});a.setParent(this);a.fetchServerInfo(goog.bind(this.handleFetch_,this,b))}; module$contents$ocean$info$ProtoPageInfoSet_ProtoPageInfoSet.prototype.handleFetch_=function(a,b){if(!this.getPageInfoByPid(b.getPageId())){var c=module$contents$goog$array_toArray(this.getPageInfoArray());module$contents$goog$array_extend(c,b);this.setPageInfos(c)}this.fetchedPageIds_[b.getPageId()]=!0;a&&a(b)};module$contents$ocean$info$ProtoPageInfoSet_ProtoPageInfoSet.prototype.isFetchedPageInfo=function(a){return!!this.fetchedPageIds_[a.getPageId()]};function module$contents$ocean$xhr_getJsonObject(a,b,c){goog.net.XhrIo.send(a,goog.partial(module$contents$ocean$xhr_handleGetJsonObject,b,c))}function module$contents$ocean$xhr_handleGetJsonObject(a,b,c){c=c.target;c.isSuccess()?a(c.getResponseJson()):b&&b()};var jspb$e={engage$enums$uservoice$feedback$UserVoiceFeedbackConfigEnums$FeedbackConfigState:{FEEDBACK_CONFIG_STATE_UNKNOWN:0,FEEDBACK_CONFIG_STATE_DRAFT:1,FEEDBACK_CONFIG_STATE_PUBLISHED:2,FEEDBACK_CONFIG_STATE_EXPIRED:3}};jspb$e.engage$enums$uservoice$feedback$UserVoiceFeedbackConfigEnums$FeedbackConfigTemplate={FEEDBACK_CONFIG_TEMPLATE_UNKNOWN:0,FEEDBACK_CONFIG_TEMPLATE_COMMON_INTENT:1,FEEDBACK_CONFIG_TEMPLATE_INTENT_SELECTION:2};jspb$e.engage$enums$uservoice$feedback$UserVoiceFeedbackConfigEnums$FeedbackIntent={FEEDBACK_INTENT_UNKNOWN:0,FEEDBACK_INTENT_ISSUE:1,FEEDBACK_INTENT_SUGGESTION:2,FEEDBACK_INTENT_GENERIC:3,FEEDBACK_INTENT_INACCURATE:4,FEEDBACK_INTENT_HATE:5,FEEDBACK_INTENT_VIOLENCE:6,FEEDBACK_INTENT_FEATURE:7,FEEDBACK_INTENT_OTHER:8,FEEDBACK_INTENT_SEXUAL:9,FEEDBACK_INTENT_PII:10,FEEDBACK_INTENT_LEGAL:11,FEEDBACK_INTENT_IRRELEVANT:12};jspb$e.engage$enums$uservoice$feedback$UserVoiceFeedbackConfigEnums$FeedbackIntentType={FEEDBACK_INTENT_TYPE_UNKNOWN:0,FEEDBACK_INTENT_TYPE_PRODUCT:1,FEEDBACK_INTENT_TYPE_CONTENT:2,FEEDBACK_INTENT_TYPE_DEFLECTION:3};jspb$e.engage$enums$uservoice$feedback$UserVoiceFeedbackConfigEnums$FeedbackLocalizationTextType={FEEDBACK_LOCALIZATION_TEXT_TYPE_UNKNOWN:0,FEEDBACK_LOCALIZATION_TEXT_TYPE_CUJ_TEXT:1,FEEDBACK_LOCALIZATION_TEXT_TYPE_ANNOUNCEMENT_MESSAGE:2,FEEDBACK_LOCALIZATION_TEXT_TYPE_CATEGORY_TEXT:3,FEEDBACK_LOCALIZATION_TEXT_TYPE_DEFLECTION_DISPLAY_NAME:4,FEEDBACK_LOCALIZATION_TEXT_TYPE_DEFLECTION_CONTENT_TITLE:5,FEEDBACK_LOCALIZATION_TEXT_TYPE_DEFLECTION_CONTENT_BODY:6,FEEDBACK_LOCALIZATION_TEXT_TYPE_INTENT_TEXT:7};jspb$e.engage$enums$uservoice$feedback$UserVoiceFeedbackConfigEnums$FeedbackTranslationStatus={FEEDBACK_TRANSLATION_STATUS_UNKNOWN:0,FEEDBACK_TRANSLATION_STATUS_IN_PROGRESS:1,FEEDBACK_TRANSLATION_STATUS_READY:2,FEEDBACK_TRANSLATION_STATUS_NOT_STARTED:3};var module$exports$jspb$BinaryConstants={FieldType:{INVALID:-1,DOUBLE:1,FLOAT:2,INT64:3,UINT64:4,INT32:5,FIXED64:6,FIXED32:7,BOOL:8,STRING:9,GROUP:10,MESSAGE:11,BYTES:12,UINT32:13,ENUM:14,SFIXED32:15,SFIXED64:16,SINT32:17,SINT64:18},WireType:{INVALID:-1,VARINT:0,FIXED64:1,DELIMITED:2,START_GROUP:3,END_GROUP:4,FIXED32:5}};function module$contents$jspb$BinaryConstants_isValidWireType(a){return a>=0&&a<=5} function module$contents$jspb$BinaryConstants_FieldTypeToWireType(a){switch(a){case module$exports$jspb$BinaryConstants.FieldType.INT32:case module$exports$jspb$BinaryConstants.FieldType.INT64:case module$exports$jspb$BinaryConstants.FieldType.UINT32:case module$exports$jspb$BinaryConstants.FieldType.UINT64:case module$exports$jspb$BinaryConstants.FieldType.SINT32:case module$exports$jspb$BinaryConstants.FieldType.SINT64:case module$exports$jspb$BinaryConstants.FieldType.BOOL:case module$exports$jspb$BinaryConstants.FieldType.ENUM:return module$exports$jspb$BinaryConstants.WireType.VARINT;case module$exports$jspb$BinaryConstants.FieldType.DOUBLE:case module$exports$jspb$BinaryConstants.FieldType.FIXED64:case module$exports$jspb$BinaryConstants.FieldType.SFIXED64:return module$exports$jspb$BinaryConstants.WireType.FIXED64; case module$exports$jspb$BinaryConstants.FieldType.STRING:case module$exports$jspb$BinaryConstants.FieldType.MESSAGE:case module$exports$jspb$BinaryConstants.FieldType.BYTES:return module$exports$jspb$BinaryConstants.WireType.DELIMITED;case module$exports$jspb$BinaryConstants.FieldType.FLOAT:case module$exports$jspb$BinaryConstants.FieldType.FIXED32:case module$exports$jspb$BinaryConstants.FieldType.SFIXED32:return module$exports$jspb$BinaryConstants.WireType.FIXED32;default:return module$exports$jspb$BinaryConstants.WireType.INVALID}} module$exports$jspb$BinaryConstants.INVALID_FIELD_NUMBER=-1;module$exports$jspb$BinaryConstants.INVALID_TAG=-1;module$exports$jspb$BinaryConstants.FLOAT32_EPS=1.401298464324817E-45;module$exports$jspb$BinaryConstants.FLOAT32_MIN=1.1754943508222875E-38;module$exports$jspb$BinaryConstants.FLOAT32_MAX=3.4028234663852886E38;module$exports$jspb$BinaryConstants.FLOAT64_EPS=4.9E-324;module$exports$jspb$BinaryConstants.FLOAT64_MIN=2.2250738585072014E-308;module$exports$jspb$BinaryConstants.FLOAT64_MAX=1.7976931348623157E308; module$exports$jspb$BinaryConstants.TWO_TO_20=1048576;module$exports$jspb$BinaryConstants.TWO_TO_23=8388608;module$exports$jspb$BinaryConstants.TWO_TO_31=2147483648;module$exports$jspb$BinaryConstants.TWO_TO_32=4294967296;module$exports$jspb$BinaryConstants.TWO_TO_52=4503599627370496;module$exports$jspb$BinaryConstants.TWO_TO_63=0x7fffffffffffffff;module$exports$jspb$BinaryConstants.TWO_TO_64=1.8446744073709552E19;module$exports$jspb$BinaryConstants.ZERO_HASH="\x00\x00\x00\x00\x00\x00\x00\x00"; module$exports$jspb$BinaryConstants.MESSAGE_SET_GROUP_NUMBER=1;module$exports$jspb$BinaryConstants.MESSAGE_SET_TYPE_ID_FIELD_NUMBER=2;module$exports$jspb$BinaryConstants.MESSAGE_SET_MESSAGE_FIELD_NUMBER=3;module$exports$jspb$BinaryConstants.MESSAGE_SET_MAX_TYPE_ID=4294967294;module$exports$jspb$BinaryConstants.FieldTypeToWireType=module$contents$jspb$BinaryConstants_FieldTypeToWireType;module$exports$jspb$BinaryConstants.isValidWireType=module$contents$jspb$BinaryConstants_isValidWireType;function module$contents$jspb$binary$errors_invalidVarintError(){return Error("Failed to read varint, encoding is invalid.")};var module$contents$jspb$binary$utf8_ASSUME_TEXT_ENCODING_AVAILABLE=goog.FEATURESET_YEAR>=2020,module$contents$jspb$binary$utf8_textEncoderInstance,module$contents$jspb$binary$utf8_HAS_WELL_FORMED_METHOD=goog.FEATURESET_YEAR>2023||typeof String.prototype.isWellFormed==="function",module$contents$jspb$binary$utf8_useTextEncoderEncode=module$contents$jspb$binary$utf8_ASSUME_TEXT_ENCODING_AVAILABLE||typeof TextEncoder!=="undefined";goog.crypt={};goog.crypt.ASYNC_THROW_ON_UNICODE_TO_BYTE=goog.DEBUG;goog.crypt.TEST_ONLY={};goog.crypt.TEST_ONLY.throwException=module$contents$goog$async$throwException_throwException;goog.crypt.TEST_ONLY.alwaysThrowSynchronously=goog.DEBUG;goog.crypt.binaryStringToByteArray=function(a){return goog.crypt.stringToByteArray(a,!0)}; goog.crypt.stringToByteArray=function(a,b){for(var c=[],d=0,e=0;e<a.length;e++){var f=a.charCodeAt(e);if(f>255){var g=Error("go/unicode-to-byte-error");if(goog.crypt.TEST_ONLY.alwaysThrowSynchronously||b)throw g;goog.crypt.ASYNC_THROW_ON_UNICODE_TO_BYTE&&goog.crypt.TEST_ONLY.throwException(g);c[d++]=f&255;f>>=8}c[d++]=f}return c};goog.crypt.byteArrayToString=function(a){return goog.crypt.byteArrayToBinaryString(a)}; goog.crypt.byteArrayToBinaryString=function(a){if(a.length<=8192)return String.fromCharCode.apply(null,a);for(var b="",c=0;c<a.length;c+=8192){var d=Array.prototype.slice.call(a,c,c+8192);b+=String.fromCharCode.apply(null,d)}return b};goog.crypt.byteArrayToHex=function(a,b){return Array.prototype.map.call(a,function(c){c=c.toString(16);return c.length>1?c:"0"+c}).join(b||"")}; goog.crypt.hexToByteArray=function(a){goog.asserts.assert(a.length%2==0,"Key string length must be multiple of 2");for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};goog.crypt.stringToUtf8ByteArray=function(a){return goog.crypt.textToByteArray(a)}; goog.crypt.textToByteArray=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);e<128?b[c++]=e:(e<2048?b[c++]=e>>6|192:((e&64512)==55296&&d+1<a.length&&(a.charCodeAt(d+1)&64512)==56320?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};goog.crypt.utf8ByteArrayToString=function(a){return goog.crypt.byteArrayToText(a)}; goog.crypt.byteArrayToText=function(a){for(var b=[],c=0,d=0;c<a.length;){var e=a[c++];if(e<128)b[d++]=String.fromCharCode(e);else if(e>191&&e<224){var f=a[c++];b[d++]=String.fromCharCode((e&31)<<6|f&63)}else if(e>239&&e<365){f=a[c++];var g=a[c++],h=a[c++];e=((e&7)<<18|(f&63)<<12|(g&63)<<6|h&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else f=a[c++],g=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|g&63)}return b.join("")}; goog.crypt.xorByteArray=function(a,b){goog.asserts.assert(a.length==b.length,"XOR array lengths must match");for(var c=[],d=0;d<a.length;d++)c.push(a[d]^b[d]);return c};goog.crypt.base64={};goog.crypt.base64.DEFAULT_ALPHABET_COMMON_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";goog.crypt.base64.ENCODED_VALS=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"+/=";goog.crypt.base64.ENCODED_VALS_WEBSAFE=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_+"-_.";goog.crypt.base64.Alphabet={DEFAULT:0,NO_PADDING:1,WEBSAFE:2,WEBSAFE_DOT_PADDING:3,WEBSAFE_NO_PADDING:4};goog.crypt.base64.paddingChars_="=."; goog.crypt.base64.isPadding_=function(a){return goog.string.internal.contains(goog.crypt.base64.paddingChars_,a)};goog.crypt.base64.byteToCharMaps_={};goog.crypt.base64.charToByteMap_=null;goog.crypt.base64.ASSUME_NATIVE_SUPPORT_=goog.userAgent.GECKO||goog.userAgent.WEBKIT;goog.crypt.base64.HAS_NATIVE_ENCODE_=goog.FEATURESET_YEAR>=2018||goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||typeof goog.global.btoa=="function"; goog.crypt.base64.HAS_NATIVE_DECODE_=goog.FEATURESET_YEAR>=2018||goog.crypt.base64.ASSUME_NATIVE_SUPPORT_||!goog.userAgent.product.SAFARI&&typeof goog.global.atob=="function"; goog.crypt.base64.encodeByteArray=function(a,b){goog.asserts.assert(goog.isArrayLike(a),"encodeByteArray takes an array as a parameter");b===void 0&&(b=goog.crypt.base64.Alphabet.DEFAULT);goog.crypt.base64.init_();var c=goog.crypt.base64.byteToCharMaps_[b];b=Array(Math.floor(a.length/3));for(var d=c[64]||"",e=0,f=0;e<a.length-2;e+=3){var g=a[e],h=a[e+1],k=a[e+2],l=c[g>>2];g=c[(g&3)<<4|h>>4];h=c[(h&15)<<2|k>>6];k=c[k&63];b[f++]=""+l+g+h+k}k=0;l=d;switch(a.length-e){case 2:k=a[e+1],l=c[(k&15)<<2]|| d;case 1:e=a[e],a=c[e>>2],c=c[(e&3)<<4|k>>4],b[f]=""+a+c+l+d}return b.join("")};goog.crypt.base64.encodeBinaryString=function(a,b){return goog.crypt.base64.encodeString(a,b,!0)};goog.crypt.base64.encodeString=function(a,b,c){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!b?goog.global.btoa(a):goog.crypt.base64.encodeByteArray(goog.crypt.stringToByteArray(a,c),b)};goog.crypt.base64.encodeStringUtf8=function(a,b){return goog.crypt.base64.encodeText(a,b)}; goog.crypt.base64.encodeText=function(a,b){return goog.crypt.base64.HAS_NATIVE_ENCODE_&&!b?goog.global.btoa(unescape(encodeURIComponent(a))):goog.crypt.base64.encodeByteArray(goog.crypt.stringToUtf8ByteArray(a),b)};goog.crypt.base64.decodeToBinaryString=function(a,b){function c(e){d+=String.fromCharCode(e)}if(goog.crypt.base64.HAS_NATIVE_DECODE_&&!b)return goog.global.atob(a);var d="";goog.crypt.base64.decodeStringInternal_(a,c);return d};goog.crypt.base64.decodeString=goog.crypt.base64.decodeToBinaryString; goog.crypt.base64.decodeStringUtf8=function(a,b){return goog.crypt.base64.decodeToText(a,b)};goog.crypt.base64.decodeToText=function(a,b){return decodeURIComponent(escape(goog.crypt.base64.decodeString(a,b)))};goog.crypt.base64.decodeStringToByteArray=function(a){function b(d){c.push(d)}var c=[];goog.crypt.base64.decodeStringInternal_(a,b);return c}; goog.crypt.base64.decodeStringToUint8Array=function(a){function b(g){e[f++]=g}var c=a.length,d=c*3/4;d%3?d=Math.floor(d):goog.crypt.base64.isPadding_(a[c-1])&&(d=goog.crypt.base64.isPadding_(a[c-2])?d-2:d-1);var e=new Uint8Array(d),f=0;goog.crypt.base64.decodeStringInternal_(a,b);return f!==d?e.subarray(0,f):e}; goog.crypt.base64.decodeStringInternal_=function(a,b){function c(k){for(;d<a.length;){var l=a.charAt(d++),m=goog.crypt.base64.charToByteMap_[l];if(m!=null)return m;if(!goog.string.internal.isEmptyOrWhitespace(l))throw Error("Unknown base64 encoding at char: "+l);}return k}goog.crypt.base64.init_();for(var d=0;;){var e=c(-1),f=c(0),g=c(64),h=c(64);if(h===64&&e===-1)break;e=e<<2|f>>4;b(e);g!=64&&(f=f<<4&240|g>>2,b(f),h!=64&&(g=g<<6&192|h,b(g)))}}; goog.crypt.base64.init_=function(){if(!goog.crypt.base64.charToByteMap_){goog.crypt.base64.charToByteMap_={};for(var a=goog.crypt.base64.DEFAULT_ALPHABET_COMMON_.split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));goog.crypt.base64.byteToCharMaps_[c]=d;for(var e=0;e<d.length;e++){var f=d[e],g=goog.crypt.base64.charToByteMap_[f];g===void 0?goog.crypt.base64.charToByteMap_[f]=e:goog.asserts.assert(g===e)}}}};var module$exports$jspb$internal_bytes={};module$exports$jspb$internal_bytes.SUPPORTS_UINT8ARRAY=goog.FEATURESET_YEAR>=2018||typeof Uint8Array!=="undefined";var module$contents$jspb$internal_bytes_ALWAYS_USE_ATOB_AND_BTOA=goog.FEATURESET_YEAR>=2018;module$exports$jspb$internal_bytes.HAS_ATOB_BTOA=module$contents$jspb$internal_bytes_ALWAYS_USE_ATOB_AND_BTOA||!goog.userAgent.IE&&typeof btoa==="function"; function module$contents$jspb$internal_bytes_encodeByteArray(a){if(!module$exports$jspb$internal_bytes.HAS_ATOB_BTOA)return goog.crypt.base64.encodeByteArray(a);for(var b="",c=0,d=a.length-10240;c<d;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,c?a.subarray(c):a);return btoa(b)}var module$contents$jspb$internal_bytes_WEBSAFE_BASE64_CHARS=/[-_.]/g,module$contents$jspb$internal_bytes_websafeReplacer={"-":"+",_:"/",".":"="}; function module$contents$jspb$internal_bytes_replaceWebsafe(a){return module$contents$jspb$internal_bytes_websafeReplacer[a]||""} function module$contents$jspb$internal_bytes_decodeByteArray(a){if(!module$exports$jspb$internal_bytes.HAS_ATOB_BTOA)return goog.crypt.base64.decodeStringToUint8Array(a);var b=a;module$contents$jspb$internal_bytes_WEBSAFE_BASE64_CHARS.test(b)&&(b=b.replace(module$contents$jspb$internal_bytes_WEBSAFE_BASE64_CHARS,module$contents$jspb$internal_bytes_replaceWebsafe));if(goog.DEBUG)try{var c=atob(b)}catch(d){throw Error("invalid encoding '"+a+"': "+d);}else c=atob(b);a=new Uint8Array(c.length);for(b= 0;b<c.length;b++)a[b]=c.charCodeAt(b);return a}function module$contents$jspb$internal_bytes_dataAsU8(a){if(a==null||module$contents$jspb$internal_bytes_isU8(a))return a;if(typeof a==="string")return module$contents$jspb$internal_bytes_decodeByteArray(a);(0,goog.asserts.fail)("Cannot coerce to Uint8Array: "+goog.typeOf(a));return null}function module$contents$jspb$internal_bytes_isU8(a){return module$exports$jspb$internal_bytes.SUPPORTS_UINT8ARRAY&&a!=null&&a instanceof Uint8Array} function module$contents$jspb$internal_bytes_uint8ArrayEquals(a,b){var c=a.length;if(c!==b.length)return!1;for(var d=0;d<c;d++)if(a[d]!==b[d])return!1;return!0}module$exports$jspb$internal_bytes.I_AM_INTERNAL={};module$exports$jspb$internal_bytes.SUPPORTS_STRUCTURED_CLONE=goog.FEATURESET_YEAR>2022||typeof structuredClone!="undefined";module$exports$jspb$internal_bytes.encodeByteArray=module$contents$jspb$internal_bytes_encodeByteArray;module$exports$jspb$internal_bytes.decodeByteArray=module$contents$jspb$internal_bytes_decodeByteArray; module$exports$jspb$internal_bytes.dataAsU8=module$contents$jspb$internal_bytes_dataAsU8;module$exports$jspb$internal_bytes.isU8=module$contents$jspb$internal_bytes_isU8;module$exports$jspb$internal_bytes.uint8ArrayEquals=module$contents$jspb$internal_bytes_uint8ArrayEquals;var module$exports$jspb$bytestring={ByteString:function(a,b){module$contents$jspb$bytestring_checkAllowedCaller(b);this.value_=a;if(a!=null&&a.length===0)throw Error("ByteString should be constructed with non-empty values");goog.DEBUG&&(this.dontPassByteStringToStructuredClone=module$contents$jspb$bytestring_dontPassByteStringToStructuredClone)}}; module$exports$jspb$bytestring.ByteString.fromBase64=function(a){(0,goog.asserts.assertString)(a);return a?new module$exports$jspb$bytestring.ByteString(a,module$exports$jspb$internal_bytes.I_AM_INTERNAL):module$exports$jspb$bytestring.ByteString.empty()}; module$exports$jspb$bytestring.ByteString.fromUint8Array=function(a){(0,goog.asserts.assert)(a instanceof Uint8Array||Array.isArray(a));return a.length?new module$exports$jspb$bytestring.ByteString(new Uint8Array(a),module$exports$jspb$internal_bytes.I_AM_INTERNAL):module$exports$jspb$bytestring.ByteString.empty()}; module$exports$jspb$bytestring.ByteString.fromTransferredUint8Array=function(a){var b,c,d;return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(e){if(e.nextAddress==1){(0,goog.asserts.assertInstanceof)(a,Uint8Array);if(!a.length)return b=module$exports$jspb$bytestring.ByteString.empty(),e.jumpTo(2);d=c=module$exports$jspb$bytestring.ByteString;return e.yield(module$contents$jspb$bytestring_structuredClonePonyfill(a,[a.buffer]),3)}e.nextAddress!=2&&(b=new d(e.yieldResult,module$exports$jspb$internal_bytes.I_AM_INTERNAL)); return e.return(b)})}; module$exports$jspb$bytestring.ByteString.fromStringUtf8=function(a){(0,goog.asserts.assertString)(a);if(a.length){var b=module$exports$jspb$bytestring.ByteString;var c=!0;c=c===void 0?!1:c;(0,goog.asserts.assertString)(a);if(module$contents$jspb$binary$utf8_useTextEncoderEncode){if(c&&(c=a,module$contents$jspb$binary$utf8_HAS_WELL_FORMED_METHOD?!c.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(c)))throw Error("Found an unpaired surrogate");a=(module$contents$jspb$binary$utf8_textEncoderInstance|| (module$contents$jspb$binary$utf8_textEncoderInstance=new TextEncoder)).encode(a)}else{for(var d=0,e=new Uint8Array(3*a.length),f=0;f<a.length;f++){var g=a.charCodeAt(f);if(g<128)e[d++]=g;else{if(g<2048)e[d++]=g>>6|192;else{(0,goog.asserts.assert)(g<65536);if(g>=55296&&g<=57343){if(g<=56319&&f<a.length){var h=a.charCodeAt(++f);if(h>=56320&&h<=57343){g=(g-55296)*1024+h-56320+65536;e[d++]=g>>18|240;e[d++]=g>>12&63|128;e[d++]=g>>6&63|128;e[d++]=g&63|128;continue}else f--}if(c)throw Error("Found an unpaired surrogate"); g=65533}e[d++]=g>>12|224;e[d++]=g>>6&63|128}e[d++]=g&63|128}}a=d===e.length?e:e.subarray(0,d)}b=new b(a,module$exports$jspb$internal_bytes.I_AM_INTERNAL)}else b=module$exports$jspb$bytestring.ByteString.empty();return b}; module$exports$jspb$bytestring.ByteString.fromBlob=function(a){var b;return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(c){if(c.nextAddress==1)return(0,goog.asserts.assertInstanceof)(a,Blob),a.size===0?c.return(module$exports$jspb$bytestring.ByteString.empty()):c.yield(a.arrayBuffer(),2);b=c.yieldResult;return c.return(new module$exports$jspb$bytestring.ByteString(new Uint8Array(b),module$exports$jspb$internal_bytes.I_AM_INTERNAL))})}; module$exports$jspb$bytestring.ByteString.empty=function(){return module$contents$jspb$bytestring_emptyByteString||(module$contents$jspb$bytestring_emptyByteString=new module$exports$jspb$bytestring.ByteString(null,module$exports$jspb$internal_bytes.I_AM_INTERNAL))};module$exports$jspb$bytestring.ByteString.prototype.asBase64=function(){var a=this.value_;return a==null?"":typeof a==="string"?a:this.value_=module$contents$jspb$internal_bytes_encodeByteArray(a)}; module$exports$jspb$bytestring.ByteString.prototype.isEmpty=function(){return this.value_==null};module$exports$jspb$bytestring.ByteString.prototype.legacyUnwrap=function(){var a=this.value_||"";return typeof a==="string"?a:new Uint8Array(a)}; module$exports$jspb$bytestring.ByteString.prototype.equalsByteString=function(a){(0,goog.asserts.assertInstanceof)(a,module$exports$jspb$bytestring.ByteString);if(!this.value_||!a.value_||this.value_===a.value_)return this.value_===a.value_;if(typeof this.value_==="string"&&typeof a.value_==="string"){var b=this.value_,c=a.value_;a.value_.length>this.value_.length&&(c=this.value_,b=a.value_);if(b.lastIndexOf(c,0)!==0)return!1;for(a=c.length;a<b.length;a++)if(b[a]!=="=")return!1;return!0}b=(0,goog.asserts.assertExists)(this.internalBytesUnsafe(module$exports$jspb$internal_bytes.I_AM_INTERNAL)); a=(0,goog.asserts.assertExists)(a.internalBytesUnsafe(module$exports$jspb$internal_bytes.I_AM_INTERNAL));return module$contents$jspb$internal_bytes_uint8ArrayEquals(b,a)};module$exports$jspb$bytestring.ByteString.prototype.internalBytesUnsafe=function(a){module$contents$jspb$bytestring_checkAllowedCaller(a);a=module$contents$jspb$internal_bytes_dataAsU8(this.value_);return a==null?a:this.value_=a}; module$exports$jspb$bytestring.ByteString.prototype.internalUnwrap=function(a){module$contents$jspb$bytestring_checkAllowedCaller(a);return this.value_||""}; module$exports$jspb$bytestring.ByteString.prototype.internalCompareEqualsDoNotUse=function(a){if(typeof a==="string")a=module$exports$jspb$bytestring.ByteString.fromBase64(a);else if(a instanceof Uint8Array)a=new module$exports$jspb$bytestring.ByteString(a,module$exports$jspb$internal_bytes.I_AM_INTERNAL);else if(!(a instanceof module$exports$jspb$bytestring.ByteString))return!1;return this.equalsByteString(a)};var module$contents$jspb$bytestring_emptyByteString; function module$contents$jspb$bytestring_checkAllowedCaller(a){if(a!==module$exports$jspb$internal_bytes.I_AM_INTERNAL)throw Error("illegal external caller");}function module$contents$jspb$bytestring_structuredCloneBasedOnMessageChannel(a,b){return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(c){return c.return(new Promise(function(d,e){var f=new MessageChannel;f.port2.onmessage=function(g){d(g.data)};try{f.port1.postMessage(a,b)}catch(g){e(g)}}))})} var module$contents$jspb$bytestring_structuredClonePonyfill=module$exports$jspb$internal_bytes.SUPPORTS_STRUCTURED_CLONE?function(a,b){return Promise.resolve(structuredClone(a,{transfer:b}))}:module$contents$jspb$bytestring_structuredCloneBasedOnMessageChannel;function module$contents$jspb$bytestring_dontPassByteStringToStructuredClone(){};function module$contents$jspb$binary$internal_buffer_bufferFromSource(a){if(typeof a==="string")return{buffer:module$contents$jspb$internal_bytes_decodeByteArray(a),isImmutable:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),isImmutable:!1};if(a.constructor===Uint8Array)return{buffer:a,isImmutable:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),isImmutable:!1};if(a.constructor===module$exports$jspb$bytestring.ByteString)return(0,goog.asserts.assertInstanceof)(a,module$exports$jspb$bytestring.ByteString), a=a.internalBytesUnsafe(module$exports$jspb$internal_bytes.I_AM_INTERNAL)||new Uint8Array(0),{buffer:a,isImmutable:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),isImmutable:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers");};var module$exports$jspb$internal_options={};module$exports$jspb$internal_options.DISABLE_INDIRECT_BINARY_EXTENSIONS=goog.flags.JSPB_IGNORE_IMPLICIT_EXTENSION_DEPS;module$exports$jspb$internal_options.DISABLE_ES6_MAP_SUBCLASSES_FOR_TESTING=!1;function module$contents$jspb$internal_options_isBigIntAvailable(){return goog.FEATURESET_YEAR>=2021||typeof BigInt==="function"}function module$contents$jspb$internal_options_serializeBoolsAsTrueFalse(){return!1} var module$contents$jspb$internal_options_SHOULD_THROW_IN_ARRAY_CONSTRUCTOR_IF_ARRAY_IS_ALREADY_CONSTRUCTED=goog.DEBUG;function module$contents$jspb$internal_options_shouldThrowInArrayConstructorIfArrayIsAlreadyConstructed(){return module$contents$jspb$internal_options_SHOULD_THROW_IN_ARRAY_CONSTRUCTOR_IF_ARRAY_IS_ALREADY_CONSTRUCTED}module$exports$jspb$internal_options.CheckLevel={OFF:0,ASYNC_THROW:1,THROW:2};var module$contents$jspb$internal_options_typeCheck32BitIntFields=module$exports$jspb$internal_options.CheckLevel.THROW; function module$contents$jspb$internal_options_getTypeCheck32BitIntFields(){return module$contents$jspb$internal_options_typeCheck32BitIntFields}function module$contents$jspb$internal_options_setTypeCheck32BitIntFields(a){module$contents$jspb$internal_options_typeCheck32BitIntFields=a}var module$contents$jspb$internal_options_typeCheck64BitIntFields=goog.DEBUG; function module$contents$jspb$internal_options_getTypeCheck64BitIntFields(a){return a||module$contents$jspb$internal_options_typeCheck64BitIntFields}module$exports$jspb$internal_options.shouldCoerce64BitIntFieldsByJsType=module$contents$jspb$internal_options_getTypeCheck64BitIntFields;module$exports$jspb$internal_options.setShouldCoerce64BitIntFieldsByJsType=module$contents$jspb$internal_options_setTypeCheck64BitIntFields; function module$contents$jspb$internal_options_setTypeCheck64BitIntFields(a){(0,goog.asserts.assertBoolean)(a);module$contents$jspb$internal_options_typeCheck64BitIntFields=a}var module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange=!0;function module$contents$jspb$internal_options_getTypeCheck64BitIntFieldsAreInRange(a){return a||module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange} function module$contents$jspb$internal_options_setTypeCheck64BitIntFieldsAreInRange(a){(0,goog.asserts.assertBoolean)(a);module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange=a}var module$contents$jspb$internal_options_asyncThrowIf64BitIntReturnTypeMismatches=!1;function module$contents$jspb$internal_options_getAsyncThrowIf64BitIntReturnTypeMismatches(){return module$contents$jspb$internal_options_asyncThrowIf64BitIntReturnTypeMismatches} function module$contents$jspb$internal_options_setAsyncThrowIf64BitIntReturnTypeMismatches(a){module$contents$jspb$internal_options_asyncThrowIf64BitIntReturnTypeMismatches=a}var module$contents$jspb$internal_options_typeCheckStringFields=!0;function module$contents$jspb$internal_options_getTypeCheckStringFields(){return module$contents$jspb$internal_options_typeCheckStringFields} function module$contents$jspb$internal_options_setTypeCheckStringFields(a){(0,goog.asserts.assertBoolean)(a);module$contents$jspb$internal_options_typeCheckStringFields=a}var module$contents$jspb$internal_options_typeCheckEnumFields=module$exports$jspb$internal_options.CheckLevel.THROW;function module$contents$jspb$internal_options_getTypeCheckEnumFields(){return module$contents$jspb$internal_options_typeCheckEnumFields} function module$contents$jspb$internal_options_setTypeCheckEnumFields(a){module$contents$jspb$internal_options_typeCheckEnumFields=a}module$exports$jspb$internal_options.USE_DETAILED_MESSAGE_TYPE_HIERARCHY=goog.DEBUG&&!1;var module$contents$jspb$internal_options_unsafeDisableJspbAnyTypeChecks=module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS=!1; function module$contents$jspb$internal_options_getUnsafeDisableJspbAnyTypeChecks(){return module$contents$jspb$internal_options_unsafeDisableJspbAnyTypeChecks}function module$contents$jspb$internal_options_setUnsafeDisableJspbAnyTypeChecks(a){(0,goog.asserts.assertBoolean)(a);module$contents$jspb$internal_options_unsafeDisableJspbAnyTypeChecks=a}function module$contents$jspb$internal_options_getCheckEqualsConsistentWithHashCode(){return!1} function module$contents$jspb$internal_options_setCheckEqualsConsistentWithHashCode(){}module$exports$jspb$internal_options.GENERATE_TYPE_NAME_PROPERTIES=goog.DEBUG;var module$contents$jspb$internal_options_sortMaps=!1;function module$contents$jspb$internal_options_setSortMaps(a){module$contents$jspb$internal_options_sortMaps=a}function module$contents$jspb$internal_options_getSortMaps(){return module$contents$jspb$internal_options_sortMaps} var module$contents$jspb$internal_options_checkEqualsDoesNotChangeWithTypeInformation=goog.DEBUG;function module$contents$jspb$internal_options_getCheckEqualsDoesNotChangeWithTypeInformation(){return module$contents$jspb$internal_options_checkEqualsDoesNotChangeWithTypeInformation}function module$contents$jspb$internal_options_setCheckEqualsDoesNotChangeWithTypeInformation(a){module$contents$jspb$internal_options_checkEqualsDoesNotChangeWithTypeInformation=a} function module$contents$jspb$internal_options_withoutCheckingEqualsDoesNotChangeWithTypeInformation(a){var b=module$contents$jspb$internal_options_checkEqualsDoesNotChangeWithTypeInformation;module$contents$jspb$internal_options_checkEqualsDoesNotChangeWithTypeInformation=!1;try{a()}finally{module$contents$jspb$internal_options_checkEqualsDoesNotChangeWithTypeInformation=b}}function module$contents$jspb$internal_options_getReadonlyRepeatedArrays(a){return a||!0} function module$contents$jspb$internal_options_getAsyncThrowReadonlyRepeatedArrays(){return!0}module$exports$jspb$internal_options.STRICT_REPEATED_SETTER=goog.DEBUG;var module$contents$jspb$internal_options_asyncThrowIfStringTypedInt64FieldDowngrade=!0;function module$contents$jspb$internal_options_getAsyncThrowIfStringTypedInt64FieldDowngrade(){return module$contents$jspb$internal_options_asyncThrowIfStringTypedInt64FieldDowngrade} function module$contents$jspb$internal_options_setAsyncThrowIfStringTypedInt64FieldDowngrade(a){module$contents$jspb$internal_options_asyncThrowIfStringTypedInt64FieldDowngrade=a} function module$contents$jspb$internal_options_withoutAsyncThrowingIfStringTypedInt64FieldDowngrade(a){var b=module$contents$jspb$internal_options_asyncThrowIfStringTypedInt64FieldDowngrade;try{return module$contents$jspb$internal_options_asyncThrowIfStringTypedInt64FieldDowngrade=!1,a()}finally{module$contents$jspb$internal_options_asyncThrowIfStringTypedInt64FieldDowngrade=b}}var module$contents$jspb$internal_options_arrayCheckRepeatedFields=module$exports$jspb$internal_options.CheckLevel.THROW; function module$contents$jspb$internal_options_getArrayCheckRepeatedFields(){return module$contents$jspb$internal_options_arrayCheckRepeatedFields}var module$contents$jspb$internal_options_randomizeSerializationFormat=!1;function module$contents$jspb$internal_options_getRandomizeSerializationFormat(){return module$contents$jspb$internal_options_randomizeSerializationFormat&&!0} function module$contents$jspb$internal_options_setRandomizeSerializationFormat(a){module$contents$jspb$internal_options_randomizeSerializationFormat=a}function module$contents$jspb$internal_options_getDeserializeBinary64BitIntsAsGbigint(){return!1}module$exports$jspb$internal_options.getAsyncThrowIf64BitIntReturnTypeMismatches=module$contents$jspb$internal_options_getAsyncThrowIf64BitIntReturnTypeMismatches;module$exports$jspb$internal_options.getAsyncThrowIfStringTypedInt64FieldDowngrade=module$contents$jspb$internal_options_getAsyncThrowIfStringTypedInt64FieldDowngrade; module$exports$jspb$internal_options.getCheckEqualsDoesNotChangeWithTypeInformation=module$contents$jspb$internal_options_getCheckEqualsDoesNotChangeWithTypeInformation;module$exports$jspb$internal_options.setCheckEqualsDoesNotChangeWithTypeInformation=module$contents$jspb$internal_options_setCheckEqualsDoesNotChangeWithTypeInformation;module$exports$jspb$internal_options.getCheckEqualsConsistentWithHashCode=module$contents$jspb$internal_options_getCheckEqualsConsistentWithHashCode; module$exports$jspb$internal_options.getDeserializeBinary64BitIntsAsGbigint=module$contents$jspb$internal_options_getDeserializeBinary64BitIntsAsGbigint;module$exports$jspb$internal_options.getRandomizeSerializationFormat=module$contents$jspb$internal_options_getRandomizeSerializationFormat;module$exports$jspb$internal_options.getSortMaps=module$contents$jspb$internal_options_getSortMaps;module$exports$jspb$internal_options.getTypeCheck32BitIntFields=module$contents$jspb$internal_options_getTypeCheck32BitIntFields; module$exports$jspb$internal_options.getTypeCheck64BitIntFields=module$contents$jspb$internal_options_getTypeCheck64BitIntFields;module$exports$jspb$internal_options.getTypeCheck64BitIntFieldsAreInRange=module$contents$jspb$internal_options_getTypeCheck64BitIntFieldsAreInRange;module$exports$jspb$internal_options.getTypeCheckEnumFields=module$contents$jspb$internal_options_getTypeCheckEnumFields;module$exports$jspb$internal_options.getTypeCheckStringFields=module$contents$jspb$internal_options_getTypeCheckStringFields; module$exports$jspb$internal_options.getUnsafeDisableJspbAnyTypeChecks=module$contents$jspb$internal_options_getUnsafeDisableJspbAnyTypeChecks;module$exports$jspb$internal_options.isBigIntAvailable=module$contents$jspb$internal_options_isBigIntAvailable;module$exports$jspb$internal_options.serializeBoolsAsTrueFalse=module$contents$jspb$internal_options_serializeBoolsAsTrueFalse;module$exports$jspb$internal_options.setAsyncThrowIf64BitIntReturnTypeMismatches=module$contents$jspb$internal_options_setAsyncThrowIf64BitIntReturnTypeMismatches; module$exports$jspb$internal_options.setAsyncThrowIfStringTypedInt64FieldDowngrade=module$contents$jspb$internal_options_setAsyncThrowIfStringTypedInt64FieldDowngrade;module$exports$jspb$internal_options.setCheckEqualsConsistentWithHashCode=module$contents$jspb$internal_options_setCheckEqualsConsistentWithHashCode;module$exports$jspb$internal_options.setRandomizeSerializationFormat=module$contents$jspb$internal_options_setRandomizeSerializationFormat; module$exports$jspb$internal_options.setSortMaps=module$contents$jspb$internal_options_setSortMaps;module$exports$jspb$internal_options.setTypeCheck32BitIntFields=module$contents$jspb$internal_options_setTypeCheck32BitIntFields;module$exports$jspb$internal_options.setTypeCheck64BitIntFields=module$contents$jspb$internal_options_setTypeCheck64BitIntFields;module$exports$jspb$internal_options.setTypeCheck64BitIntFieldsAreInRange=module$contents$jspb$internal_options_setTypeCheck64BitIntFieldsAreInRange; module$exports$jspb$internal_options.setTypeCheckEnumFields=module$contents$jspb$internal_options_setTypeCheckEnumFields;module$exports$jspb$internal_options.setTypeCheckStringFields=module$contents$jspb$internal_options_setTypeCheckStringFields;module$exports$jspb$internal_options.setUnsafeDisableJspbAnyTypeChecks=module$contents$jspb$internal_options_setUnsafeDisableJspbAnyTypeChecks;module$exports$jspb$internal_options.shouldThrowInArrayConstructorIfArrayIsAlreadyConstructed=module$contents$jspb$internal_options_shouldThrowInArrayConstructorIfArrayIsAlreadyConstructed; module$exports$jspb$internal_options.withoutAsyncThrowingIfStringTypedInt64FieldDowngrade=module$contents$jspb$internal_options_withoutAsyncThrowingIfStringTypedInt64FieldDowngrade;module$exports$jspb$internal_options.withoutCheckingEqualsDoesNotChangeWithTypeInformation=module$contents$jspb$internal_options_withoutCheckingEqualsDoesNotChangeWithTypeInformation;module$exports$jspb$internal_options.getReadonlyRepeatedArrays=module$contents$jspb$internal_options_getReadonlyRepeatedArrays; module$exports$jspb$internal_options.getAsyncThrowReadonlyRepeatedArrays=module$contents$jspb$internal_options_getAsyncThrowReadonlyRepeatedArrays;module$exports$jspb$internal_options.getArrayCheckRepeatedFields=module$contents$jspb$internal_options_getArrayCheckRepeatedFields;var module$exports$google3$javascript$common$asserts$internal={};module$exports$google3$javascript$common$asserts$internal.ENABLE_ASSERTS=module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS;function module$contents$google3$javascript$common$asserts$internal_StateGuard(){}module$exports$google3$javascript$common$asserts$internal.StateGuard=module$contents$google3$javascript$common$asserts$internal_StateGuard; function module$contents$google3$javascript$common$asserts$internal_TypeGuard(){}module$exports$google3$javascript$common$asserts$internal.TypeGuard=module$contents$google3$javascript$common$asserts$internal_TypeGuard;function module$contents$google3$javascript$common$asserts$internal_Context(){}module$exports$google3$javascript$common$asserts$internal.Context=module$contents$google3$javascript$common$asserts$internal_Context; function module$contents$google3$javascript$common$asserts$internal_DebugGuard(){}module$exports$google3$javascript$common$asserts$internal.DebugGuard=module$contents$google3$javascript$common$asserts$internal_DebugGuard;function module$contents$google3$javascript$common$asserts$internal_BrandedGuard(){}module$exports$google3$javascript$common$asserts$internal.BrandedGuard=module$contents$google3$javascript$common$asserts$internal_BrandedGuard; function module$contents$google3$javascript$common$asserts$internal_basicPrettyPrint(a,b){b=b===void 0?new Set:b;if(!goog.DEBUG)throw Error("basicPrettyPrint should only be used in DEBUG mode");if(b.has(a))return"(Recursive reference)";switch(typeof a){case "object":if(a){var c=Object.getPrototypeOf(a);switch(c){case Map.prototype:case Set.prototype:case Array.prototype:b.add(a);var d="["+Array.from(a,function(e){return module$contents$google3$javascript$common$asserts$internal_basicPrettyPrint(e, b)}).join(", ")+"]";b.delete(a);c!==Array.prototype&&(a=module$contents$google3$javascript$common$asserts$internal_functionName(c.constructor),d=a+"("+d+")");return d;case Object.prototype:return b.add(a),c="{"+Object.entries(a).map(function(e){var f=(0,$jscomp.makeIterator)(e);e=f.next().value;f=f.next().value;return e+": "+module$contents$google3$javascript$common$asserts$internal_basicPrettyPrint(f,b)}).join(", ")+"}",b.delete(a),c;default:return d="Object",c&&c.constructor&&(d=module$contents$google3$javascript$common$asserts$internal_functionName(c.constructor)), typeof a.toString==="function"&&a.toString!==Object.prototype.toString?(a=String(a),d+"("+a+")"):"(object "+d+")"}}break;case "function":return a=module$contents$google3$javascript$common$asserts$internal_functionName(a),"function "+a;case "number":if(!Number.isFinite(a))return String(a);break;case "bigint":return a.toString(10)+"n";case "symbol":return a.toString()}return JSON.stringify(a)}module$exports$google3$javascript$common$asserts$internal.basicPrettyPrint=module$contents$google3$javascript$common$asserts$internal_basicPrettyPrint; function module$contents$google3$javascript$common$asserts$internal_functionName(a){var b=a.displayName;if(b&&typeof b==="string"||(b=a.name)&&typeof b==="string")return b;a=String(a);return(a=/function\s+([^\(]+)/m.exec(a))?a[1]:"(Anonymous)"}module$exports$google3$javascript$common$asserts$internal.functionName=module$contents$google3$javascript$common$asserts$internal_functionName;function module$contents$google3$javascript$common$asserts$internal_Result(){} module$exports$google3$javascript$common$asserts$internal.Result=module$contents$google3$javascript$common$asserts$internal_Result;function module$contents$google3$javascript$common$asserts$internal_isOptionalGuard(a){return a.isOptionalGuard_doNotManuallySetPrettyPlease===!0}module$exports$google3$javascript$common$asserts$internal.isOptionalGuard=module$contents$google3$javascript$common$asserts$internal_isOptionalGuard;function module$contents$google3$javascript$common$asserts$asserts_assert(a,b,c){if(module$exports$google3$javascript$common$asserts$internal.ENABLE_ASSERTS)a:{var d=module$contents$google3$javascript$common$asserts$asserts_maybeGetKeepInProdMsgFunc();if(!goog.DEBUG){if(b(a))break a;var e,f;b=(f=(e=module$contents$google3$javascript$common$asserts$asserts_formatLazyMsg(d))==null?void 0:e.concat("\n"))!=null?f:"";throw Error(b+String(a));}e=[];module$contents$google3$javascript$common$asserts$asserts_executeNestedGuard(b, a,e)||module$contents$google3$javascript$common$asserts$asserts_throwGuardFailure.apply(null,[c,d,"Guard "+module$contents$google3$javascript$common$asserts$asserts_guardName(b)+" failed:"].concat((0,$jscomp.arrayFromIterable)(e.reverse())))}}function module$contents$google3$javascript$common$asserts$asserts_cast(a,b,c){module$contents$google3$javascript$common$asserts$asserts_assert(a,b,c);return a} function module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(a,b){a.isGuard_doNotManuallySetPrettyPlease=!0;if(!goog.DEBUG)return a;a.guardName=typeof b==="function"?b:function(){return b};return a}function module$contents$google3$javascript$common$asserts$asserts_guardName(a){return goog.DEBUG?a.guardName().trim():""} function module$contents$google3$javascript$common$asserts$asserts_executeNestedGuard(a,b,c,d){if(!goog.DEBUG)return a(b);var e=a;(e=e(b,c))||module$contents$google3$javascript$common$asserts$asserts_addMessageToContext(c,function(){var f=d?(typeof d==="function"?d():d).trim():"";f.length>0&&(f+=": ");return f+"Expected "+module$contents$google3$javascript$common$asserts$asserts_guardName(a)+", got "+module$contents$google3$javascript$common$asserts$internal_basicPrettyPrint(b)});return e} function module$contents$google3$javascript$common$asserts$asserts_addMessageToContext(a,b){if(goog.DEBUG){var c;(c=a)==null||c.push((typeof b==="function"?b():b).trim())}}var module$contents$google3$javascript$common$asserts$asserts_keepInProdMsg=void 0;function module$contents$google3$javascript$common$asserts$asserts_maybeGetKeepInProdMsgFunc(){var a=module$contents$google3$javascript$common$asserts$asserts_keepInProdMsg;return a} function module$contents$google3$javascript$common$asserts$asserts_formatLazyMsg(a){return typeof a==="function"?a():a}function module$contents$google3$javascript$common$asserts$asserts_throwGuardFailure(){var a=$jscomp.getRestArguments.apply(0,arguments);throw Error(a.map(module$contents$google3$javascript$common$asserts$asserts_formatLazyMsg).filter(Boolean).join("\n").trim().replace(/:$/,""));} module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return a!==null&&a!==void 0},"exists");var module$exports$google3$javascript$common$asserts$guards={};module$exports$google3$javascript$common$asserts$guards.isNumber=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return typeof a==="number"},"number");module$exports$google3$javascript$common$asserts$guards.isZero=module$contents$google3$javascript$common$asserts$guards_isLiteral(0); module$exports$google3$javascript$common$asserts$guards.isSafeInteger=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return Number.isSafeInteger(a)},"isSafeInteger");module$exports$google3$javascript$common$asserts$guards.isInteger=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return Number.isInteger(a)},"isInteger"); module$exports$google3$javascript$common$asserts$guards.isFinite=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return Number.isFinite(a)},"isFinite");function module$contents$google3$javascript$common$asserts$guards_isGreaterThan(a){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b){return b>a},function(){return"isGreaterThan("+module$contents$google3$javascript$common$asserts$internal_basicPrettyPrint(a)+")"})} module$exports$google3$javascript$common$asserts$guards.isGreaterThan=module$contents$google3$javascript$common$asserts$guards_isGreaterThan;module$exports$google3$javascript$common$asserts$guards.isAtLeast=module$contents$google3$javascript$common$asserts$guards_isGte;module$exports$google3$javascript$common$asserts$guards.isGreaterThanOrEqualTo=module$contents$google3$javascript$common$asserts$guards_isGte; function module$contents$google3$javascript$common$asserts$guards_isGte(a){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b){return b>=a},function(){return"isGreaterThanOrEqualTo("+module$contents$google3$javascript$common$asserts$internal_basicPrettyPrint(a)+")"})} function module$contents$google3$javascript$common$asserts$guards_isLessThan(a){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b){return b<a},function(){return"isLessThan("+module$contents$google3$javascript$common$asserts$internal_basicPrettyPrint(a)+")"})}module$exports$google3$javascript$common$asserts$guards.isLessThan=module$contents$google3$javascript$common$asserts$guards_isLessThan; module$exports$google3$javascript$common$asserts$guards.isLessThanOrEqualTo=module$contents$google3$javascript$common$asserts$guards_isLte;module$exports$google3$javascript$common$asserts$guards.isAtMost=module$contents$google3$javascript$common$asserts$guards_isLte; function module$contents$google3$javascript$common$asserts$guards_isLte(a){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b){return b<=a},function(){return"isLessThanOrEqualTo("+module$contents$google3$javascript$common$asserts$internal_basicPrettyPrint(a)+")"})}module$exports$google3$javascript$common$asserts$guards.isString=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return typeof a==="string"},"string"); module$exports$google3$javascript$common$asserts$guards.isEmptyString=module$contents$google3$javascript$common$asserts$guards_isLiteral("");module$exports$google3$javascript$common$asserts$guards.isNotBlank=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return a.trim()!==""},"isNotBlank"); module$exports$google3$javascript$common$asserts$guards.isBlank=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return a.trim()===""},"isBlank");function module$contents$google3$javascript$common$asserts$guards_startsWith(a){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b){return b.startsWith(a)},function(){return"startsWith("+module$contents$google3$javascript$common$asserts$internal_basicPrettyPrint(a)+")"})} module$exports$google3$javascript$common$asserts$guards.startsWith=module$contents$google3$javascript$common$asserts$guards_startsWith;function module$contents$google3$javascript$common$asserts$guards_endsWith(a){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b){return b.endsWith(a)},function(){return"endsWith("+module$contents$google3$javascript$common$asserts$internal_basicPrettyPrint(a)+")"})} module$exports$google3$javascript$common$asserts$guards.endsWith=module$contents$google3$javascript$common$asserts$guards_endsWith;function module$contents$google3$javascript$common$asserts$guards_stringIncludes(a){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b){return b.includes(a)},function(){return"stringIncludes("+module$contents$google3$javascript$common$asserts$internal_basicPrettyPrint(a)+")"})} module$exports$google3$javascript$common$asserts$guards.stringIncludes=module$contents$google3$javascript$common$asserts$guards_stringIncludes; function module$contents$google3$javascript$common$asserts$guards_stringMatches(a){module$contents$google3$javascript$common$asserts$asserts_assert(a,module$contents$google3$javascript$common$asserts$guards_isAllOf(module$contents$google3$javascript$common$asserts$guards_isNot(module$contents$google3$javascript$common$asserts$guards_isGlobalRegExp),module$contents$google3$javascript$common$asserts$guards_isNot(module$contents$google3$javascript$common$asserts$guards_isStickyRegExp)),"stringMatches does not support global nor sticky regular expressions as they can make the returned state guard behave inconsistently"); return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b){return a.test(b)},function(){return"stringMatches("+a+")"})}module$exports$google3$javascript$common$asserts$guards.stringMatches=module$contents$google3$javascript$common$asserts$guards_stringMatches;module$exports$google3$javascript$common$asserts$guards.isBoolean=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return typeof a==="boolean"},"boolean"); module$exports$google3$javascript$common$asserts$guards.isBigInt=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return typeof a==="bigint"},"bigint");module$exports$google3$javascript$common$asserts$guards.isNull=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return a===null},"null"); module$exports$google3$javascript$common$asserts$guards.isUndefined=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return a===void 0},"undefined");module$exports$google3$javascript$common$asserts$guards.isNullish=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return a==null},"null | undefined"); function module$contents$google3$javascript$common$asserts$guards_isLiteral(a){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b){return b===a},function(){return module$contents$google3$javascript$common$asserts$internal_basicPrettyPrint(a)})}module$exports$google3$javascript$common$asserts$guards.isLiteral=module$contents$google3$javascript$common$asserts$guards_isLiteral; function module$contents$google3$javascript$common$asserts$guards_isAnyLiteralOf(){var a=$jscomp.getRestArguments.apply(0,arguments),b=new Set(a);return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(c){return b.has(c)},function(){return a.map(function(c){return module$contents$google3$javascript$common$asserts$internal_basicPrettyPrint(c)}).join("|")})}module$exports$google3$javascript$common$asserts$guards.isAnyLiteralOf=module$contents$google3$javascript$common$asserts$guards_isAnyLiteralOf; function module$contents$google3$javascript$common$asserts$guards_isEnumMemberOf(a,b){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(c){var d=a,e;for(e in d)if(c===d[e]&&!/^[0-9]+$/.test(e))return!0;return!1},function(){var c;return(c=b)!=null?c:"unknown enum"})}module$exports$google3$javascript$common$asserts$guards.isEnumMemberOf=module$contents$google3$javascript$common$asserts$guards_isEnumMemberOf; module$exports$google3$javascript$common$asserts$guards.isThenable=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return a!=null&&typeof a==="object"&&typeof a.then==="function"},"Thenable");module$exports$google3$javascript$common$asserts$guards.isFunction=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return typeof a==="function"},"Function"); module$exports$google3$javascript$common$asserts$guards.isGuard=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a,b){return module$contents$google3$javascript$common$asserts$asserts_executeNestedGuard(module$exports$google3$javascript$common$asserts$guards.isFunction,a,b)?a.isGuard_doNotManuallySetPrettyPlease===!0:!1},"isGuard");module$exports$google3$javascript$common$asserts$guards.isDate=module$contents$google3$javascript$common$asserts$guards_isInstanceOf(Date); module$exports$google3$javascript$common$asserts$guards.isValidDate=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return!isNaN(a)},"isValidDate"); var module$contents$google3$javascript$common$asserts$guards_isGlobalRegExp=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return a.global},"isGlobalRegExp"),module$contents$google3$javascript$common$asserts$guards_isStickyRegExp=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return a.sticky},"isStickyRegExp"); module$exports$google3$javascript$common$asserts$guards.isObject=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return!!a&&(typeof a==="object"||typeof a==="function")},"object"); function module$contents$google3$javascript$common$asserts$guards_isInstanceOf(a){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b){return b instanceof a},function(){return module$contents$google3$javascript$common$asserts$internal_functionName(a)})}module$exports$google3$javascript$common$asserts$guards.isInstanceOf=module$contents$google3$javascript$common$asserts$guards_isInstanceOf; function module$contents$google3$javascript$common$asserts$guards_isStruct(a,b){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(c,d){if(!(0,module$exports$google3$javascript$common$asserts$guards.isObject)(c))return!1;for(var e=(0,$jscomp.makeIterator)(Object.entries(a)),f=e.next();!f.done;f=e.next()){f=f.value;var g=(0,$jscomp.makeIterator)(f);f=g.next().value;g=g.next().value;if(!(f in c)){if(module$contents$google3$javascript$common$asserts$internal_isOptionalGuard(g))continue; module$contents$google3$javascript$common$asserts$asserts_addMessageToContext(d,"Missing required property "+f);return!1}var h=c[f];if(!module$contents$google3$javascript$common$asserts$asserts_executeNestedGuard(g,h,d,"For property "+f))return!1}return!0},b)}module$exports$google3$javascript$common$asserts$guards.isStruct=module$contents$google3$javascript$common$asserts$guards_isStruct; function module$contents$google3$javascript$common$asserts$guards_isOptional(a){return module$contents$google3$javascript$common$asserts$guards_markOptional(module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b,c){return b===void 0?!0:a(b,c)},function(){return"optional "+module$contents$google3$javascript$common$asserts$asserts_guardName(a)}))}module$exports$google3$javascript$common$asserts$guards.isOptional=module$contents$google3$javascript$common$asserts$guards_isOptional; function module$contents$google3$javascript$common$asserts$guards_markOptional(a){a.isOptionalGuard_doNotManuallySetPrettyPlease=!0;return a}module$exports$google3$javascript$common$asserts$guards.isUnknown=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(){return!0},"unknown");module$exports$google3$javascript$common$asserts$guards.isArray=module$contents$google3$javascript$common$asserts$guards_arrayGuardBase(); module$exports$google3$javascript$common$asserts$guards.isMutableArray=module$contents$google3$javascript$common$asserts$guards_arrayGuardBase();function module$contents$google3$javascript$common$asserts$guards_arrayGuardBase(){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return Array.isArray(a)},"Array<unknown>")} function module$contents$google3$javascript$common$asserts$guards_isArrayOf(a){return module$contents$google3$javascript$common$asserts$guards_mutableArrayGuard(a)}module$exports$google3$javascript$common$asserts$guards.isArrayOf=module$contents$google3$javascript$common$asserts$guards_isArrayOf;function module$contents$google3$javascript$common$asserts$guards_isMutableArrayOf(a){return module$contents$google3$javascript$common$asserts$guards_mutableArrayGuard(a)} module$exports$google3$javascript$common$asserts$guards.isMutableArrayOf=module$contents$google3$javascript$common$asserts$guards_isMutableArrayOf; function module$contents$google3$javascript$common$asserts$guards_mutableArrayGuard(a){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b,c){return module$contents$google3$javascript$common$asserts$asserts_executeNestedGuard(module$exports$google3$javascript$common$asserts$guards.isMutableArray,b,c)?b.every(function(d,e){return module$contents$google3$javascript$common$asserts$asserts_executeNestedGuard(a,d,c,"At index "+e)}):!1},function(){return"Array<"+ module$contents$google3$javascript$common$asserts$asserts_guardName(a)+">"})}function module$contents$google3$javascript$common$asserts$guards_isTupleOf(){var a=$jscomp.getRestArguments.apply(0,arguments);return module$contents$google3$javascript$common$asserts$guards_mutableTupleGuard(a)}module$exports$google3$javascript$common$asserts$guards.isTupleOf=module$contents$google3$javascript$common$asserts$guards_isTupleOf; function module$contents$google3$javascript$common$asserts$guards_isMutableTupleOf(){var a=$jscomp.getRestArguments.apply(0,arguments);return module$contents$google3$javascript$common$asserts$guards_mutableTupleGuard(a)}module$exports$google3$javascript$common$asserts$guards.isMutableTupleOf=module$contents$google3$javascript$common$asserts$guards_isMutableTupleOf; function module$contents$google3$javascript$common$asserts$guards_mutableTupleGuard(a){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b,c){if(!module$contents$google3$javascript$common$asserts$asserts_executeNestedGuard(module$exports$google3$javascript$common$asserts$guards.isArray,b,c))return!1;if(b.length!==a.length)return module$contents$google3$javascript$common$asserts$asserts_addMessageToContext(c,"Expected "+a.length+" elements; got "+b.length+" elements"), !1;for(var d=0;d<b.length;++d)if(!module$contents$google3$javascript$common$asserts$asserts_executeNestedGuard(a[d],b[d],c,"At index "+d))return!1;return!0},function(){return"["+a.map(module$contents$google3$javascript$common$asserts$asserts_guardName).join(", ")+"]"})}module$exports$google3$javascript$common$asserts$guards.isSet=module$contents$google3$javascript$common$asserts$guards_setGuardBase();module$exports$google3$javascript$common$asserts$guards.isMutableSet=module$contents$google3$javascript$common$asserts$guards_setGuardBase(); function module$contents$google3$javascript$common$asserts$guards_setGuardBase(){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return a instanceof Set},"Set<unknown>")}function module$contents$google3$javascript$common$asserts$guards_isSetOf(a){return module$contents$google3$javascript$common$asserts$guards_mutableSetGuard(a)}module$exports$google3$javascript$common$asserts$guards.isSetOf=module$contents$google3$javascript$common$asserts$guards_isSetOf; function module$contents$google3$javascript$common$asserts$guards_isMutableSetOf(a){return module$contents$google3$javascript$common$asserts$guards_mutableSetGuard(a)}module$exports$google3$javascript$common$asserts$guards.isMutableSetOf=module$contents$google3$javascript$common$asserts$guards_isMutableSetOf; function module$contents$google3$javascript$common$asserts$guards_mutableSetGuard(a){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b,c){if(!module$contents$google3$javascript$common$asserts$asserts_executeNestedGuard(module$exports$google3$javascript$common$asserts$guards.isMutableSet,b,c))return!1;b=(0,$jscomp.makeIterator)(b.entries());for(var d=b.next();!d.done;d=b.next())if(d=d.value,d=d[1],d=module$contents$google3$javascript$common$asserts$asserts_executeNestedGuard(a, d,c),!d)return!1;return!0},function(){return"Set<"+module$contents$google3$javascript$common$asserts$asserts_guardName(a)+">"})}module$exports$google3$javascript$common$asserts$guards.isMap=module$contents$google3$javascript$common$asserts$guards_mapGuardBase();module$exports$google3$javascript$common$asserts$guards.isMutableMap=module$contents$google3$javascript$common$asserts$guards_mapGuardBase(); function module$contents$google3$javascript$common$asserts$guards_mapGuardBase(){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return a instanceof Map},"Map<unknown, unknown>")}function module$contents$google3$javascript$common$asserts$guards_isMapOf(a,b){return module$contents$google3$javascript$common$asserts$guards_mutableMapGuard(a,b)}module$exports$google3$javascript$common$asserts$guards.isMapOf=module$contents$google3$javascript$common$asserts$guards_isMapOf; function module$contents$google3$javascript$common$asserts$guards_isMutableMapOf(a,b){return module$contents$google3$javascript$common$asserts$guards_mutableMapGuard(a,b)}module$exports$google3$javascript$common$asserts$guards.isMutableMapOf=module$contents$google3$javascript$common$asserts$guards_isMutableMapOf; function module$contents$google3$javascript$common$asserts$guards_mutableMapGuard(a,b){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(c,d){if(!module$contents$google3$javascript$common$asserts$asserts_executeNestedGuard(module$exports$google3$javascript$common$asserts$guards.isMutableMap,c,d))return!1;c=(0,$jscomp.makeIterator)(c.entries());for(var e=c.next(),f={};!e.done;f={key$jscomp$212:void 0},e=c.next()){e=e.value;var g=(0,$jscomp.makeIterator)(e); e=g.next().value;g=g.next().value;f.key$jscomp$212=e;e=g;g=module$contents$google3$javascript$common$asserts$asserts_executeNestedGuard(a,f.key$jscomp$212,d,function(h){return function(){return"For key "+h.key$jscomp$212}}(f));if(!g)return!1;f=module$contents$google3$javascript$common$asserts$asserts_executeNestedGuard(b,e,d,function(h){return function(){return"For key "+h.key$jscomp$212+", checking value"}}(f));if(!f)return!1}return!0},function(){return"Map<"+module$contents$google3$javascript$common$asserts$asserts_guardName(a)+ ", "+module$contents$google3$javascript$common$asserts$asserts_guardName(b)+">"})}function module$contents$google3$javascript$common$asserts$guards_isAnyOf(){var a=$jscomp.getRestArguments.apply(0,arguments);return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b){return a.some(function(c){return c(b)})},function(){return""+a.map(function(b){return module$contents$google3$javascript$common$asserts$asserts_guardName(b)}).join(" | ")})} module$exports$google3$javascript$common$asserts$guards.isAnyOf=module$contents$google3$javascript$common$asserts$guards_isAnyOf; function module$contents$google3$javascript$common$asserts$guards_isAllOf(){var a=$jscomp.getRestArguments.apply(0,arguments);return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b,c){return a.every(function(d,e){return module$contents$google3$javascript$common$asserts$asserts_executeNestedGuard(d,b,c,function(){return"At Guards index "+e})})},function(){return""+a.map(function(b){return module$contents$google3$javascript$common$asserts$asserts_guardName(b)}).join(" & ")})} module$exports$google3$javascript$common$asserts$guards.isAllOf=module$contents$google3$javascript$common$asserts$guards_isAllOf;function module$contents$google3$javascript$common$asserts$guards_isNot(a){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b){return!a(b)},"isNot("+module$contents$google3$javascript$common$asserts$asserts_guardName(a)+")")}module$exports$google3$javascript$common$asserts$guards.isNot=module$contents$google3$javascript$common$asserts$guards_isNot;var module$exports$google3$javascript$common$bigint$platform={},module$contents$google3$javascript$common$bigint$platform_ASSUME_NATIVE_BIGINT=goog.FEATURESET_YEAR>=2021;module$exports$google3$javascript$common$bigint$platform.NATIVE_BIGINT_AVAILABLE=module$contents$google3$javascript$common$bigint$platform_ASSUME_NATIVE_BIGINT||typeof goog.global.BigInt==="function"&&typeof goog.global.BigInt(0)==="bigint";module$exports$google3$javascript$common$bigint$platform.ODD_FORCED_STRING_IN_DEBUG=!1;var module$exports$google3$third_party$javascript$jsbi$g3_wrapper$debug_boxed_bigint={DebugBoxedBigInt:function(a){this.val=a}};module$exports$google3$third_party$javascript$jsbi$g3_wrapper$debug_boxed_bigint.DebugBoxedBigInt.prototype.toString=function(a){return this.val.toString(a)};module$exports$google3$third_party$javascript$jsbi$g3_wrapper$debug_boxed_bigint.DebugBoxedBigInt.prototype.valueOf=function(){throw Error("Convert JSBI instances to native numbers using `toNumber`.");}; module$exports$google3$third_party$javascript$jsbi$g3_wrapper$debug_boxed_bigint.DebugBoxedBigInt.prototype[Symbol.toPrimitive]=function(){return this.val};/* Copyright 2018 Google Inc SPDX-License-Identifier: Apache-2.0 */ var module$exports$google3$third_party$javascript$jsbi$lib$jsbi={default:function(a,b){var c=$jscomp.construct(Array,[a],this.constructor);c.sign=b;Object.setPrototypeOf(c,module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.prototype);if(a>module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded");return c}};$jscomp.inherits(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default,Array); module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.BigInt=function(a){if(typeof a==="number"){if(a===0)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__zero();if(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isOneDigitInt(a))return a<0?module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__oneDigit(-a,!0):module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__oneDigit(a,!1);if(!Number.isFinite(a)||Math.floor(a)!== a)throw new RangeError("The number "+a+" cannot be converted to BigInt because it is not an integer");return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__fromDouble(a)}if(typeof a==="string"){var b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__fromString(a);if(b===null)throw new SyntaxError("Cannot convert "+a+" to a BigInt");return b}if(typeof a==="boolean")return a===!0?module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__oneDigit(1, !1):module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__zero();if(typeof a==="object"){if(a.constructor===module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default)return a;a=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toPrimitive(a);return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.BigInt(a)}throw new TypeError("Cannot convert "+a+" to a BigInt");}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.prototype.toString=function(a){a=a===void 0?10:a;if(a<2||a>36)throw new RangeError("toString() radix argument must be between 2 and 36");return this.length===0?"0":(a&a-1)===0?module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toStringBasePowerOfTwo(this,a):module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toStringGeneric(this,a,!1)}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.prototype.valueOf=function(){throw Error("Convert JSBI instances to native numbers using `toNumber`.");}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.toNumber=function(a){var b=a.length;if(b===0)return 0;if(b===1){var c=a.__unsignedDigit(0);return a.sign?-c:c}var d=a.__digit(b-1),e=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__clz30(d);c=b*30-e;if(c>1024)return a.sign?-Infinity:Infinity;--c;var f=b-1,g=e+3;e=g===32?0:d<<g;e>>>=12;var h=g-12;b=g>=12?0:d<<20+g;g=20+g;h>0&&f>0&&(f--,d=a.__digit(f),e|=d>>>30-h,b=d<<h+2,g=h+2);for(;g>0&&f>0;)f--,d=a.__digit(f), b=g>=30?b|d<<g-30:b|d>>>30-g,g-=30;d=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__decideRounding(a,g,f,d);if(d===1||d===0&&(b&1)===1)if(b=b+1>>>0,b===0&&(e++,e>>>20!==0&&(e=0,c++,c>1023)))return a.sign?-Infinity:Infinity;a=a.sign?-2147483648:0;c=c+1023<<20;module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitConversionInts[1]=a|c|e;module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitConversionInts[0]=b;return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitConversionDouble[0]}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.unaryMinus=function(a){if(a.length===0)return a;var b=a.__copy();b.sign=!a.sign;return b};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.bitwiseNot=function(a){return a.sign?module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteSubOne(a).__trim():module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteAddOne(a,!0)}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.exponentiate=function(a,b){if(b.sign)throw new RangeError("Exponent must be positive");if(b.length===0)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__oneDigit(1,!1);if(a.length===0)return a;if(a.length===1&&a.__digit(0)===1)return a.sign&&(b.__digit(0)&1)===0?module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.unaryMinus(a):a;if(b.length>1)throw new RangeError("BigInt too big");b=b.__unsignedDigit(0); if(b===1)return a;if(b>=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kMaxLengthBits)throw new RangeError("BigInt too big");if(a.length===1&&a.__digit(0)===2){var c=1+(b/30|0);a=a.sign&&(b&1)!==0;a=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(c,a);a.__initializeDigits();b=1<<b%30;a.__setDigit(c-1,b);return a}c=null;var d=a;(b&1)!==0&&(c=a);for(b>>=1;b!==0;b>>=1)d=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.multiply(d,d),(b& 1)!==0&&(c=c===null?d:module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.multiply(c,d));return c}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.multiply=function(a,b){if(a.length===0)return a;if(b.length===0)return b;var c=a.length+b.length;a.__clzmsd()+b.__clzmsd()>=30&&c--;c=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(c,a.sign!==b.sign);c.__initializeDigits();for(var d=0;d<a.length;d++)module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__multiplyAccumulate(b,a.__digit(d),c,d);return c.__trim()}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.divide=function(a,b){if(b.length===0)throw new RangeError("Division by zero");if(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteCompare(a,b)<0)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__zero();var c=a.sign!==b.sign,d=b.__unsignedDigit(0);if(b.length===1&&d<=32767){if(d===1)return c===a.sign?a:module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.unaryMinus(a); a=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteDivSmall(a,d,null)}else a=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteDivLarge(a,b,!0,!1);a.sign=c;return a.__trim()}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.remainder=function(a,b){if(b.length===0)throw new RangeError("Division by zero");if(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteCompare(a,b)<0)return a;var c=b.__unsignedDigit(0);if(b.length===1&&c<=32767){if(c===1)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__zero();b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteModSmall(a,c);return b=== 0?module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__zero():module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__oneDigit(b,a.sign)}b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteDivLarge(a,b,!1,!0);b.sign=a.sign;return b.__trim()}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.add=function(a,b){var c=a.sign;return c===b.sign?module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteAdd(a,b,c):module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteCompare(a,b)>=0?module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteSub(a,b,c):module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteSub(b,a,!c)}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.subtract=function(a,b){var c=a.sign;return c!==b.sign?module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteAdd(a,b,c):module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteCompare(a,b)>=0?module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteSub(a,b,c):module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteSub(b,a,!c)}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.leftShift=function(a,b){return b.length===0||a.length===0?a:b.sign?module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__rightShiftByAbsolute(a,b):module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__leftShiftByAbsolute(a,b)}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.signedRightShift=function(a,b){return b.length===0||a.length===0?a:b.sign?module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__leftShiftByAbsolute(a,b):module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__rightShiftByAbsolute(a,b)}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.unsignedRightShift=function(){throw new TypeError("BigInts have no unsigned right shift; use >> instead");};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.lessThan=function(a,b){return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compareToBigInt(a,b)<0}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.lessThanOrEqual=function(a,b){return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compareToBigInt(a,b)<=0};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.greaterThan=function(a,b){return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compareToBigInt(a,b)>0}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.greaterThanOrEqual=function(a,b){return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compareToBigInt(a,b)>=0};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.equal=function(a,b){if(a.sign!==b.sign||a.length!==b.length)return!1;for(var c=0;c<a.length;c++)if(a.__digit(c)!==b.__digit(c))return!1;return!0}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.notEqual=function(a,b){return!module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.equal(a,b)}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.bitwiseAnd=function(a,b){if(!a.sign&&!b.sign)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteAnd(a,b).__trim();if(a.sign&&b.sign){var c=Math.max(a.length,b.length)+1;a=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteSubOne(a,c);b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteSubOne(b);a=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteOr(a, b,a);return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteAddOne(a,!0,a).__trim()}a.sign&&(b=(0,$jscomp.makeIterator)([b,a]),a=b.next().value,b=b.next().value);return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteAndNot(a,module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteSubOne(b)).__trim()}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.bitwiseXor=function(a,b){if(!a.sign&&!b.sign)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteXor(a,b).__trim();if(a.sign&&b.sign){var c=Math.max(a.length,b.length);a=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteSubOne(a,c);b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteSubOne(b);return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteXor(a, b,a).__trim()}c=Math.max(a.length,b.length)+1;a.sign&&(b=(0,$jscomp.makeIterator)([b,a]),a=b.next().value,b=b.next().value);b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteSubOne(b,c);b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteXor(b,a,b);return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteAddOne(b,!0,b).__trim()}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.bitwiseOr=function(a,b){var c=Math.max(a.length,b.length);if(!a.sign&&!b.sign)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteOr(a,b).__trim();if(a.sign&&b.sign)return a=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteSubOne(a,c),b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteSubOne(b),a=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteAnd(a, b,a),module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteAddOne(a,!0,a).__trim();a.sign&&(b=(0,$jscomp.makeIterator)([b,a]),a=b.next().value,b=b.next().value);b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteSubOne(b,c);b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteAndNot(b,a,b);return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteAddOne(b,!0,b).__trim()}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.asIntN=function(a,b){if(b.length===0)return b;a=Math.floor(a);if(a<0)throw new RangeError("Invalid value: not (convertible to) a safe integer");if(a===0)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__zero();if(a>=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kMaxLengthBits)return b;var c=(a+29)/30|0;if(b.length<c)return b;var d=b.__unsignedDigit(c-1),e=1<<(a-1)%30;if(b.length=== c&&d<e)return b;var f=(d&e)===e;if(!f)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__truncateToNBits(a,b);if(!b.sign)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__truncateAndSubFromPowerOfTwo(a,b,!0);if((d&e-1)===0){for(f=c-2;f>=0;f--)if(b.__digit(f)!==0)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__truncateAndSubFromPowerOfTwo(a,b,!1);return b.length===c&&d===e?b:module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__truncateToNBits(a, b)}return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__truncateAndSubFromPowerOfTwo(a,b,!1)}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.asUintN=function(a,b){if(b.length===0)return b;a=Math.floor(a);if(a<0)throw new RangeError("Invalid value: not (convertible to) a safe integer");if(a===0)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__zero();if(b.sign){if(a>module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kMaxLengthBits)throw new RangeError("BigInt too big");return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__truncateAndSubFromPowerOfTwo(a, b,!1)}if(a>=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kMaxLengthBits)return b;var c=(a+29)/30|0;if(b.length<c)return b;var d=a%30;if(b.length==c){if(d===0)return b;c=b.__digit(c-1);if(c>>>d===0)return b}return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__truncateToNBits(a,b)}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.ADD=function(a,b){a=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toPrimitive(a);b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toPrimitive(b);if(typeof a==="string")return typeof b!=="string"&&(b=b.toString()),a+b;if(typeof b==="string")return a.toString()+b;a=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toNumeric(a);b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toNumeric(b); if(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isBigInt(a)&&module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isBigInt(b))return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.add(a,b);if(typeof a==="number"&&typeof b==="number")return a+b;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions");}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.LT=function(a,b){return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compare(a,b,0)};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.LE=function(a,b){return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compare(a,b,1)}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.GT=function(a,b){return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compare(a,b,2)};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.GE=function(a,b){return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compare(a,b,3)}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.EQ=function(a,b){for(;;){if(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isBigInt(a))return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isBigInt(b)?module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.equal(a,b):module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.EQ(b,a);if(typeof a==="number"){if(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isBigInt(b))return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__equalToNumber(b, a);if(typeof b!=="object")return a==b;b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toPrimitive(b)}else if(typeof a==="string"){if(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isBigInt(b))return a=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__fromString(a),a===null?!1:module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.equal(a,b);if(typeof b!=="object")return a==b;b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toPrimitive(b)}else if(typeof a=== "boolean"){if(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isBigInt(b))return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__equalToNumber(b,+a);if(typeof b!=="object")return a==b;b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toPrimitive(b)}else if(typeof a==="symbol"){if(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isBigInt(b))return!1;if(typeof b!=="object")return a==b;b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toPrimitive(b)}else if(typeof a=== "object"){if(typeof b==="object"&&b.constructor!==module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default)return a==b;a=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toPrimitive(a)}else return a==b}};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.NE=function(a,b){return!module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.EQ(a,b)}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.DataViewGetBigInt64=function(a,b,c){c=c===void 0?!1:c;return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.asIntN(64,module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.DataViewGetBigUint64(a,b,c))}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.DataViewGetBigUint64=function(a,b,c){c=c===void 0?!1:c;var d=(0,$jscomp.makeIterator)(c?[4,0]:[0,4]),e=d.next().value;d=d.next().value;e=a.getUint32(b+e,c);a=a.getUint32(b+d,c);b=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(3,!1);b.__setDigit(0,a&1073741823);b.__setDigit(1,(e&268435455)<<2|a>>>30);b.__setDigit(2,e>>>28);return b.__trim()}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.DataViewSetBigInt64=function(a,b,c,d){d=d===void 0?!1:d;module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.DataViewSetBigUint64(a,b,c,d)}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.DataViewSetBigUint64=function(a,b,c,d){d=d===void 0?!1:d;c=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.asUintN(64,c);var e=0,f=0;c.length>0&&(f=c.__digit(0),c.length>1&&(e=c.__digit(1),f|=e<<30,e>>>=2,c.length>2&&(e|=c.__digit(2)<<28)));var g=(0,$jscomp.makeIterator)(d?[4,0]:[0,4]);c=g.next().value;g=g.next().value;a.setUint32(b+c,e,d);a.setUint32(b+g,f,d)}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__zero=function(){return new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(0,!1)};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__oneDigit=function(a,b){b=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(1,b);b.__setDigit(0,a);return b}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.prototype.__copy=function(){for(var a=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(this.length,this.sign),b=0;b<this.length;b++)a[b]=this[b];return a};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.prototype.__trim=function(){for(var a=this.length,b=this[a-1];b===0;)a--,b=this[a-1],this.pop();a===0&&(this.sign=!1);return this}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.prototype.__initializeDigits=function(){for(var a=0;a<this.length;a++)this[a]=0};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__decideRounding=function(a,b,c,d){if(b>0)return-1;if(b<0)b=-b-1;else{if(c===0)return-1;c--;d=a.__digit(c);b=29}b=1<<b;if((d&b)===0)return-1;--b;if((d&b)!==0)return 1;for(;c>0;)if(c--,a.__digit(c)!==0)return 1;return 0}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__fromDouble=function(a){var b=a<0;module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitConversionDouble[0]=a;a=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitConversionInts[1]>>>20&2047;var c=a-1023;a=(c/30|0)+1;b=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(a,b);var d=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitConversionInts[1]& 1048575|1048576,e=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitConversionInts[0];c%=30;if(c<20){var f=20-c;c=f+32;var g=d>>>f;d=d<<32-f|e>>>f;e<<=32-f}else c===20?(c=32,g=d,d=e):(f=c-20,c=32-f,g=d<<f|e>>>32-f,d=e<<f),e=0;b.__setDigit(a-1,g);for(a-=2;a>=0;a--)c>0?(c-=30,g=d>>>2,d=d<<30|e>>>2,e<<=30):g=0,b.__setDigit(a,g);return b.__trim()}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isWhitespace=function(a){return a<=13&&a>=9?!0:a<=159?a===32:a<=131071?a===160||a===5760:a<=196607?(a&=131071,a<=10||a===40||a===41||a===47||a===95||a===4096):a===65279}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__fromString=function(a,b){b=b===void 0?0:b;var c=0,d=a.length,e=0;if(e===d)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__zero();for(var f=a.charCodeAt(e);module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isWhitespace(f);){if(++e===d)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__zero();f=a.charCodeAt(e)}if(f===43){if(++e===d)return null;f=a.charCodeAt(e); c=1}else if(f===45){if(++e===d)return null;f=a.charCodeAt(e);c=-1}if(b===0){if(b=10,f===48){if(++e===d)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__zero();f=a.charCodeAt(e);if(f===88||f===120){b=16;if(++e===d)return null;f=a.charCodeAt(e)}else if(f===79||f===111){b=8;if(++e===d)return null;f=a.charCodeAt(e)}else if(f===66||f===98){b=2;if(++e===d)return null;f=a.charCodeAt(e)}}}else if(b===16&&f===48){if(++e===d)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__zero(); f=a.charCodeAt(e);if(f===88||f===120){if(++e===d)return null;f=a.charCodeAt(e)}}if(c!==0&&b!==10)return null;for(;f===48;){if(++e===d)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__zero();f=a.charCodeAt(e)}var g=d-e,h=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kMaxBitsPerChar[b],k=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitsPerCharTableMultiplier-1;if(g>1073741824/h)return null;g=h*g+k>>>module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitsPerCharTableShift; g=(g+29)/30|0;g=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(g,!1);var l=b<10?b:10,m=b>10?b-10:0;if((b&b-1)===0){h>>=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitsPerCharTableShift;b=[];var n=[],p=!1;do{for(var q=0,r=0;;){if(f-48>>>0<l)k=f-48;else if((f|32)-97>>>0<m)k=(f|32)-87;else{p=!0;break}r+=h;q=q<<h|k;if(++e===d){p=!0;break}f=a.charCodeAt(e);if(r+h>30)break}b.push(q);n.push(r)}while(!p);module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__fillFromParts(g, b,n)}else{g.__initializeDigits();n=!1;p=0;do{q=0;for(r=1;;){if(f-48>>>0<l)k=f-48;else if((f|32)-97>>>0<m)k=(f|32)-87;else{n=!0;break}var t=r*b;if(t>1073741823)break;r=t;q=q*b+k;p++;if(++e===d){n=!0;break}f=a.charCodeAt(e)}k=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitsPerCharTableMultiplier*30-1;k=(h*p+k>>>module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitsPerCharTableShift)/30|0;g.__inplaceMultiplyAdd(r,q,k)}while(!n)}if(e!==d){if(!module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isWhitespace(f))return null; for(e++;e<d;e++)if(f=a.charCodeAt(e),!module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isWhitespace(f))return null}g.sign=c===-1;return g.__trim()}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__fillFromParts=function(a,b,c){for(var d=0,e=0,f=0,g=b.length-1;g>=0;g--){var h=b[g],k=c[g];e|=h<<f;f+=k;f===30?(a.__setDigit(d++,e),e=f=0):f>30&&(a.__setDigit(d++,e&1073741823),f-=30,e=h>>>k-f)}if(e!==0){if(d>=a.length)throw Error("implementation bug");a.__setDigit(d++,e)}for(;d<a.length;d++)a.__setDigit(d,0)}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toStringBasePowerOfTwo=function(a,b){var c=a.length,d=b-1;d=(d>>>1&85)+(d&85);d=(d>>>2&51)+(d&51);d=(d>>>4&15)+(d&15);--b;var e=a.__digit(c-1),f=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__clz30(e);f=c*30-f;var g=(f+d-1)/d|0;a.sign&&g++;if(g>268435456)throw Error("string too long");f=Array(g);--g;for(var h=0,k=0,l=0;l<c-1;l++){var m=a.__digit(l);h=(h|m<<k)&b;f[g--]=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kConversionChars[h]; k=d-k;h=m>>>k;for(k=30-k;k>=d;)f[g--]=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kConversionChars[h&b],h>>>=d,k-=d}c=(h|e<<k)&b;f[g--]=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kConversionChars[c];for(h=e>>>d-k;h!==0;)f[g--]=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kConversionChars[h&b],h>>>=d;a.sign&&(f[g--]="-");if(g!==-1)throw Error("implementation bug");return f.join("")}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toStringGeneric=function(a,b,c){var d=a.length;if(d===0)return"";if(d===1)return b=a.__unsignedDigit(0).toString(b),c===!1&&a.sign&&(b="-"+b),b;d=d*30-module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__clz30(a.__digit(d-1));var e=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kMaxBitsPerChar[b];--e;d*=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitsPerCharTableMultiplier; d+=e-1;d=d/e|0;d=d+1>>1;e=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.exponentiate(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__oneDigit(b,!1),module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__oneDigit(d,!1));var f=e.__unsignedDigit(0);if(e.length===1&&f<=32767){e=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(a.length,!1);e.__initializeDigits();for(var g=0,h=a.length*2-1;h>=0;h--)g=g<<15|a.__halfDigit(h), e.__setHalfDigit(h,g/f|0),g=g%f|0;f=g.toString(b)}else f=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteDivLarge(a,e,!0,!0),e=f.quotient,f=f.remainder.__trim(),f=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toStringGeneric(f,b,!0);e.__trim();for(b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toStringGeneric(e,b,!0);f.length<d;)f="0"+f;c===!1&&a.sign&&(b="-"+b);return b+f}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__unequalSign=function(a){return a?-1:1};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteGreater=function(a){return a?-1:1};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteLess=function(a){return a?1:-1}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compareToBigInt=function(a,b){var c=a.sign;if(c!==b.sign)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__unequalSign(c);a=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteCompare(a,b);return a>0?module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteGreater(c):a<0?module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteLess(c): 0}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compareToNumber=function(a,b){if(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isOneDigitInt(b)){var c=a.sign,d=b<0;if(c!==d)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__unequalSign(c);if(a.length===0){if(d)throw Error("implementation bug");return b===0?0:-1}if(a.length>1)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteGreater(c);b=Math.abs(b);a= a.__unsignedDigit(0);return a>b?module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteGreater(c):a<b?module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteLess(c):0}return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compareToDouble(a,b)}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compareToDouble=function(a,b){if(b!==b)return b;if(b===Infinity)return-1;if(b===-Infinity)return 1;var c=a.sign,d=b<0;if(c!==d)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__unequalSign(c);if(b===0)throw Error("implementation bug: should be handled elsewhere");if(a.length===0)return-1;module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitConversionDouble[0]=b;b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitConversionInts[1]>>> 20&2047;if(b===2047)throw Error("implementation bug: handled elsewhere");var e=b-1023;if(e<0)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteGreater(c);b=a.length;d=a.__digit(b-1);var f=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__clz30(d),g=b*30-f;e+=1;if(g<e)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteLess(c);if(g>e)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteGreater(c); e=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitConversionInts[1]&1048575|1048576;var h=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitConversionInts[0];f=29-f;if(f!==((g-1)%30|0))throw Error("implementation bug");if(f<20){var k=20-f;f=k+32;g=e>>>k;e=e<<32-k|h>>>k;h<<=32-k}else f===20?(f=32,g=e,e=h):(k=f-20,f=32-k,g=e<<k|h>>>32-k,e=h<<k),h=0;d>>>=0;g>>>=0;if(d>g)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteGreater(c); if(d<g)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteLess(c);for(b-=2;b>=0;b--){f>0?(f-=30,g=e>>>2,e=e<<30|h>>>2,h<<=30):g=0;d=a.__unsignedDigit(b);if(d>g)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteGreater(c);if(d<g)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteLess(c)}if(e!==0||h!==0){if(f===0)throw Error("implementation bug");return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteLess(c)}return 0}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__equalToNumber=function(a,b){return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isOneDigitInt(b)?b===0?a.length===0:a.length===1&&a.sign===b<0&&a.__unsignedDigit(0)===Math.abs(b):module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compareToDouble(a,b)===0}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__comparisonResultToBool=function(a,b){switch(b){case 0:return a<0;case 1:return a<=0;case 2:return a>0;case 3:return a>=0}}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compare=function(a,b,c){a=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toPrimitive(a);b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toPrimitive(b);if(typeof a==="string"&&typeof b==="string")switch(c){case 0:return a<b;case 1:return a<=b;case 2:return a>b;case 3:return a>=b}if(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isBigInt(a)&&typeof b==="string")return b= module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__fromString(b),b===null?!1:module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__comparisonResultToBool(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compareToBigInt(a,b),c);if(typeof a==="string"&&module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isBigInt(b))return a=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__fromString(a),a===null?!1:module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__comparisonResultToBool(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compareToBigInt(a, b),c);a=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toNumeric(a);b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toNumeric(b);if(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isBigInt(a)){if(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isBigInt(b))return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__comparisonResultToBool(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compareToBigInt(a, b),c);if(typeof b!=="number")throw Error("implementation bug");return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__comparisonResultToBool(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compareToNumber(a,b),c)}if(typeof a!=="number")throw Error("implementation bug");if(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isBigInt(b))return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__comparisonResultToBool(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__compareToNumber(b, a),c^2);if(typeof b!=="number")throw Error("implementation bug");switch(c){case 0:return a<b;case 1:return a<=b;case 2:return a>b;case 3:return a>=b}};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.prototype.__clzmsd=function(){return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__clz30(this.__digit(this.length-1))}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteAdd=function(a,b,c){if(a.length<b.length)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteAdd(b,a,c);if(a.length===0)return a;if(b.length===0)return a.sign===c?a:module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.unaryMinus(a);var d=a.length;(a.__clzmsd()===0||b.length===a.length&&b.__clzmsd()===0)&&d++;c=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(d, c);for(var e=d=0;e<b.length;e++){var f=a.__digit(e)+b.__digit(e)+d;d=f>>>30;c.__setDigit(e,f&1073741823)}for(;e<a.length;e++)b=a.__digit(e)+d,d=b>>>30,c.__setDigit(e,b&1073741823);e<c.length&&c.__setDigit(e,d);return c.__trim()}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteSub=function(a,b,c){if(a.length===0)return a;if(b.length===0)return a.sign===c?a:module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.unaryMinus(a);c=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(a.length,c);for(var d=0,e=0;e<b.length;e++){var f=a.__digit(e)-b.__digit(e)-d;d=f>>>30&1;c.__setDigit(e,f&1073741823)}for(;e<a.length;e++)b=a.__digit(e)-d,d=b>>>30&1,c.__setDigit(e,b&1073741823); return c.__trim()};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteAddOne=function(a,b,c){c=c===void 0?null:c;var d=a.length;c===null?c=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(d,b):c.sign=b;b=1;for(var e=0;e<d;e++){var f=a.__digit(e)+b;b=f>>>30;c.__setDigit(e,f&1073741823)}b!==0&&c.__setDigitGrow(d,1);return c}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteSubOne=function(a,b){var c=a.length;b=b||c;for(var d=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(b,!1),e=1,f=0;f<c;f++){var g=a.__digit(f)-e;e=g>>>30&1;d.__setDigit(f,g&1073741823)}if(e!==0)throw Error("implementation bug");for(a=c;a<b;a++)d.__setDigit(a,0);return d}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteAnd=function(a,b,c){c=c===void 0?null:c;var d=a.length,e=b.length,f=e;d<e&&(f=d,d=a,a=b,b=d);d=f;c===null?c=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(d,!1):d=c.length;for(e=0;e<f;e++)c.__setDigit(e,a.__digit(e)&b.__digit(e));for(;e<d;e++)c.__setDigit(e,0);return c}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteAndNot=function(a,b,c){c=c===void 0?null:c;var d=a.length,e=b.length,f=e;d<e&&(f=d);e=d;c===null?c=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(e,!1):e=c.length;for(var g=0;g<f;g++)c.__setDigit(g,a.__digit(g)&~b.__digit(g));for(;g<d;g++)c.__setDigit(g,a.__digit(g));for(;g<e;g++)c.__setDigit(g,0);return c}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteOr=function(a,b,c){c=c===void 0?null:c;var d=a.length,e=b.length,f=e;if(d<e){f=d;var g=a;a=b;d=e;b=g}e=d;c===null?c=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(e,!1):e=c.length;for(g=0;g<f;g++)c.__setDigit(g,a.__digit(g)|b.__digit(g));for(;g<d;g++)c.__setDigit(g,a.__digit(g));for(;g<e;g++)c.__setDigit(g,0);return c}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteXor=function(a,b,c){c=c===void 0?null:c;var d=a.length,e=b.length,f=e;if(d<e){f=d;var g=a;a=b;d=e;b=g}e=d;c===null?c=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(e,!1):e=c.length;for(g=0;g<f;g++)c.__setDigit(g,a.__digit(g)^b.__digit(g));for(;g<d;g++)c.__setDigit(g,a.__digit(g));for(;g<e;g++)c.__setDigit(g,0);return c}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteCompare=function(a,b){var c=a.length-b.length;if(c!==0)return c;for(c=a.length-1;c>=0&&a.__digit(c)===b.__digit(c);)c--;return c<0?0:a.__unsignedDigit(c)>b.__unsignedDigit(c)?1:-1}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__multiplyAccumulate=function(a,b,c,d){if(b!==0){for(var e=b&32767,f=b>>>15,g=b=0,h=0;h<a.length;h++,d++){var k=c.__digit(d),l=a.__digit(h),m=l&32767,n=l>>>15;l=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__imul(m,e);m=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__imul(m,f);var p=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__imul(n,e);n=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__imul(n, f);k+=g+l+b;b=k>>>30;k&=1073741823;k+=((m&32767)<<15)+((p&32767)<<15);b+=k>>>30;g=n+(m>>>15)+(p>>>15);c.__setDigit(d,k&1073741823)}for(;b!==0||g!==0;d++)a=c.__digit(d),a+=b+g,g=0,b=a>>>30,c.__setDigit(d,a&1073741823)}}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__internalMultiplyAdd=function(a,b,c,d,e){for(var f=0,g=0;g<d;g++){var h=a.__digit(g),k=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__imul(h&32767,b);h=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__imul(h>>>15,b);k=k+((h&32767)<<15)+f+c;c=k>>>30;f=h>>>15;e.__setDigit(g,k&1073741823)}if(e.length>d)for(e.__setDigit(d++,c+f);d<e.length;)e.__setDigit(d++,0);else if(c+f!==0)throw Error("implementation bug"); }; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.prototype.__inplaceMultiplyAdd=function(a,b,c){c>this.length&&(c=this.length);var d=a&32767;a>>>=15;for(var e=0,f=0;f<c;f++){var g=this.__digit(f),h=g&32767,k=g>>>15;g=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__imul(h,d);h=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__imul(h,a);var l=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__imul(k,d);k=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__imul(k,a); g=b+g+e;e=g>>>30;g&=1073741823;g+=((h&32767)<<15)+((l&32767)<<15);e+=g>>>30;b=k+(h>>>15)+(l>>>15);this.__setDigit(f,g&1073741823)}if(e!==0||b!==0)throw Error("implementation bug");}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteDivSmall=function(a,b,c){c=c===void 0?null:c;c===null&&(c=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(a.length,!1));for(var d=0,e=a.length*2-1;e>=0;e-=2){d=(d<<15|a.__halfDigit(e))>>>0;var f=d/b|0;d=d%b|0;d=(d<<15|a.__halfDigit(e-1))>>>0;var g=d/b|0;d=d%b|0;c.__setDigit(e>>>1,f<<15|g)}return c}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteModSmall=function(a,b){for(var c=0,d=a.length*2-1;d>=0;d--)c=(c<<15|a.__halfDigit(d))>>>0,c=c%b|0;return c}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteDivLarge=function(a,b,c,d){var e=b.__halfDigitLength(),f=b.length,g=a.__halfDigitLength()-e,h=null;c&&(h=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(g+2>>>1,!1),h.__initializeDigits());var k=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(e+2>>>1,!1);k.__initializeDigits();var l=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__clz15(b.__halfDigit(e- 1));l>0&&(b=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__specialLeftShift(b,l,0));a=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__specialLeftShift(a,l,1);for(var m=b.__halfDigit(e-1),n=0;g>=0;g--){var p=32767,q=a.__halfDigit(g+e);if(q!==m){q=(q<<15|a.__halfDigit(g+e-1))>>>0;p=q/m|0;q=q%m|0;for(var r=b.__halfDigit(e-2),t=a.__halfDigit(g+e-2);module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__imul(p,r)>>>0>(q<<16|t)>>>0&&!(p--,q+=m, q>32767););}module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__internalMultiplyAdd(b,p,0,f,k);q=a.__inplaceSub(k,g,e+1);q!==0&&(q=a.__inplaceAdd(b,g,e),a.__setHalfDigit(g+e,a.__halfDigit(g+e)+q&32767),p--);c&&(g&1?n=p<<15:h.__setDigit(g>>>1,n|p))}if(d)return a.__inplaceRightShift(l),c?{quotient:h,remainder:a}:a;if(c)return h;throw Error("unreachable");}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__clz15=function(a){return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__clz30(a)-15};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.prototype.__inplaceAdd=function(a,b,c){for(var d=0,e=0;e<c;e++){var f=this.__halfDigit(b+e)+a.__halfDigit(e)+d;d=f>>>15;this.__setHalfDigit(b+e,f&32767)}return d}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.prototype.__inplaceSub=function(a,b,c){var d=c-1>>>1,e=0;if(b&1){b>>=1;for(var f=this.__digit(b),g=f&32767,h=0;h<d;h++){var k=a.__digit(h);f=(f>>>15)-(k&32767)-e;e=f>>>15&1;this.__setDigit(b+h,(f&32767)<<15|g&32767);f=this.__digit(b+h+1);g=(f&32767)-(k>>>15)-e;e=g>>>15&1}d=a.__digit(h);f=(f>>>15)-(d&32767)-e;e=f>>>15&1;this.__setDigit(b+h,(f&32767)<<15|g&32767);g=d>>>15;if(b+h+1>=this.length)throw new RangeError("out of bounds"); (c&1)===0&&(f=this.__digit(b+h+1),g=(f&32767)-g-e,e=g>>>15&1,this.__setDigit(b+a.length,f&1073709056|g&32767))}else{b>>=1;for(h=0;h<a.length-1;h++)f=this.__digit(b+h),d=a.__digit(h),g=(f&32767)-(d&32767)-e,e=g>>>15&1,f=(f>>>15)-(d>>>15)-e,e=f>>>15&1,this.__setDigit(b+h,(f&32767)<<15|g&32767);g=this.__digit(b+h);a=a.__digit(h);f=(g&32767)-(a&32767)-e;e=f>>>15&1;d=0;(c&1)===0&&(d=(g>>>15)-(a>>>15)-e,e=d>>>15&1);this.__setDigit(b+h,(d&32767)<<15|f&32767)}return e}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.prototype.__inplaceRightShift=function(a){if(a!==0){for(var b=this.__digit(0)>>>a,c=this.length-1,d=0;d<c;d++){var e=this.__digit(d+1);this.__setDigit(d,e<<30-a&1073741823|b);b=e>>>a}this.__setDigit(c,b)}}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__specialLeftShift=function(a,b,c){var d=a.length,e=d+c;e=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(e,!1);if(b===0){for(b=0;b<d;b++)e.__setDigit(b,a.__digit(b));c>0&&e.__setDigit(d,0);return e}for(var f=0,g=0;g<d;g++){var h=a.__digit(g);e.__setDigit(g,h<<b&1073741823|f);f=h>>>30-b}c>0&&e.__setDigit(d,f);return e}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__leftShiftByAbsolute=function(a,b){var c=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toShiftAmount(b);if(c<0)throw new RangeError("BigInt too big");b=c/30|0;var d=c%30,e=a.length,f=d!==0&&a.__digit(e-1)>>>30-d!==0,g=e+b+(f?1:0);c=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(g,a.sign);if(d===0){for(d=0;d<b;d++)c.__setDigit(d,0);for(;d<g;d++)c.__setDigit(d,a.__digit(d-b))}else{for(var h= g=0;h<b;h++)c.__setDigit(h,0);for(h=0;h<e;h++){var k=a.__digit(h);c.__setDigit(h+b,k<<d&1073741823|g);g=k>>>30-d}if(f)c.__setDigit(e+b,g);else if(g!==0)throw Error("implementation bug");}return c.__trim()}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__rightShiftByAbsolute=function(a,b){var c=a.length,d=a.sign,e=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toShiftAmount(b);if(e<0)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__rightShiftByMaximum(d);b=e/30|0;var f=e%30,g=c-b;if(g<=0)return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__rightShiftByMaximum(d);e=!1;if(d){var h=(1<<f)-1;if((a.__digit(b)& h)!==0)e=!0;else for(h=0;h<b;h++)if(a.__digit(h)!==0){e=!0;break}}e&&f===0&&(h=a.__digit(c-1),(h=~h===0)&&g++);d=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(g,d);if(f===0)for(d.__setDigit(g-1,0),f=b;f<c;f++)d.__setDigit(f-b,a.__digit(f));else{g=a.__digit(b)>>>f;c=c-b-1;for(h=0;h<c;h++){var k=a.__digit(h+b+1);d.__setDigit(h,k<<30-f&1073741823|g);g=k>>>f}d.__setDigit(c,g)}e&&(d=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__absoluteAddOne(d,!0,d)); return d.__trim()};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__rightShiftByMaximum=function(a){return a?module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__oneDigit(1,!0):module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__zero()}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toShiftAmount=function(a){if(a.length>1)return-1;a=a.__unsignedDigit(0);return a>module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kMaxLengthBits?-1:a}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toPrimitive=function(a,b){b=b===void 0?"default":b;if(typeof a!=="object"||a.constructor===module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default)return a;if(typeof Symbol!=="undefined"&&typeof Symbol.toPrimitive==="symbol"){var c=a[Symbol.toPrimitive];if(c){a=c(b);if(typeof a!=="object")return a;throw new TypeError("Cannot convert object to primitive value");}}if(b=a.valueOf)if(b=b.call(a),typeof b!=="object")return b; if(b=a.toString)if(a=b.call(a),typeof a!=="object")return a;throw new TypeError("Cannot convert object to primitive value");};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__toNumeric=function(a){return module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isBigInt(a)?a:+a};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isBigInt=function(a){return typeof a==="object"&&a!==null&&a.constructor===module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__truncateToNBits=function(a,b){var c=(a+29)/30|0,d=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(c,b.sign);--c;for(var e=0;e<c;e++)d.__setDigit(e,b.__digit(e));b=b.__digit(c);a%30!==0&&(a=32-a%30,b=b<<a>>>a);d.__setDigit(c,b);return d.__trim()}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__truncateAndSubFromPowerOfTwo=function(a,b,c){var d=(a+29)/30|0;c=new module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default(d,c);var e=0;--d;for(var f=0,g=Math.min(d,b.length);e<g;e++){var h=0-b.__digit(e)-f;f=h>>>30&1;c.__setDigit(e,h&1073741823)}for(;e<d;e++)c.__setDigit(e,-f&1073741823|0);b=d<b.length?b.__digit(d):0;a%=30;a===0?(f=0-b-f,f&=1073741823):(a=32-a,b=b<<a>>>a,a=1<<32-a,f=a-b-f,f&=a-1);c.__setDigit(d,f); return c.__trim()};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.prototype.__digit=function(a){return this[a]};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.prototype.__unsignedDigit=function(a){return this[a]>>>0};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.prototype.__setDigit=function(a,b){this[a]=b|0};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.prototype.__setDigitGrow=function(a,b){this[a]=b|0}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.prototype.__halfDigitLength=function(){var a=this.length;return this.__unsignedDigit(a-1)<=32767?a*2-1:a*2};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.prototype.__halfDigit=function(a){return this[a>>>1]>>>(a&1)*15&32767}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.prototype.__setHalfDigit=function(a,b){var c=a>>>1,d=this.__digit(c);a=a&1?d&32767|b<<15:d&1073709056|b&32767;this.__setDigit(c,a)};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__digitPow=function(a,b){for(var c=1;b>0;)b&1&&(c*=a),b>>>=1,a*=a;return c};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__isOneDigitInt=function(a){return(a&1073741823)===a}; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kMaxLength=33554432;module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kMaxLengthBits=module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kMaxLength<<5;module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166]; module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitsPerCharTableShift=5;module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitsPerCharTableMultiplier=1<<module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitsPerCharTableShift;module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kConversionChars="0123456789abcdefghijklmnopqrstuvwxyz".split(""); module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitConversionBuffer=new ArrayBuffer(8);module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitConversionDouble=new Float64Array(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitConversionBuffer);module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitConversionInts=new Int32Array(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__kBitConversionBuffer); module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__clz30=Math.clz32?function(a){return Math.clz32(a)-2}:function(a){return a===0?30:29-(Math.log(a>>>0)/Math.LN2|0)|0};module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default.__imul=Math.imul||function(a,b){return a*b|0};var module$exports$google3$third_party$javascript$jsbi$g3_wrapper$guards={};module$exports$google3$third_party$javascript$jsbi$g3_wrapper$guards.isNativeBigInt=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return typeof a==="bigint"},"bigint");module$exports$google3$third_party$javascript$jsbi$g3_wrapper$guards.isJsbiOss=module$contents$google3$javascript$common$asserts$guards_isInstanceOf(module$exports$google3$third_party$javascript$jsbi$lib$jsbi.default); module$exports$google3$third_party$javascript$jsbi$g3_wrapper$guards.isDebugBoxedBigInt=module$contents$google3$javascript$common$asserts$guards_isInstanceOf(module$exports$google3$third_party$javascript$jsbi$g3_wrapper$debug_boxed_bigint.DebugBoxedBigInt);var module$exports$google3$third_party$javascript$jsbi$g3_wrapper$bigint_helpers={}; function module$contents$google3$third_party$javascript$jsbi$g3_wrapper$bigint_helpers_unwrapJSBI(a){if(!module$exports$google3$javascript$common$bigint$platform.NATIVE_BIGINT_AVAILABLE)throw Error("This platform does not use BigInt.");return goog.DEBUG?module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$third_party$javascript$jsbi$g3_wrapper$guards.isDebugBoxedBigInt).val:module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$third_party$javascript$jsbi$g3_wrapper$guards.isNativeBigInt)} module$exports$google3$third_party$javascript$jsbi$g3_wrapper$bigint_helpers.unwrapJSBI=module$contents$google3$third_party$javascript$jsbi$g3_wrapper$bigint_helpers_unwrapJSBI; module$exports$google3$third_party$javascript$jsbi$g3_wrapper$bigint_helpers.isJSBI=module$exports$google3$javascript$common$bigint$platform.NATIVE_BIGINT_AVAILABLE?goog.DEBUG?module$exports$google3$third_party$javascript$jsbi$g3_wrapper$guards.isDebugBoxedBigInt:module$exports$google3$third_party$javascript$jsbi$g3_wrapper$guards.isNativeBigInt:module$exports$google3$third_party$javascript$jsbi$g3_wrapper$guards.isJsbiOss;var module$exports$google3$javascript$common$bigint$index={}; function module$contents$google3$javascript$common$bigint$index_toGbigint(a){var b=a;if((0,module$exports$google3$javascript$common$asserts$guards.isString)(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(goog.DEBUG?"Invalid string for toGbigint: "+b:String(b));}else if((0,module$exports$google3$javascript$common$asserts$guards.isNumber)(b)&&!Number.isSafeInteger(b))throw Error(goog.DEBUG?"Invalid number for toGbigint: "+b:String(b));return module$exports$google3$javascript$common$bigint$platform.NATIVE_BIGINT_AVAILABLE? goog.DEBUG?((0,module$exports$google3$third_party$javascript$jsbi$g3_wrapper$bigint_helpers.isJSBI)(a)?a=module$contents$google3$third_party$javascript$jsbi$g3_wrapper$bigint_helpers_unwrapJSBI(a):(0,module$exports$google3$javascript$common$asserts$guards.isBigInt)(a)||(module$contents$google3$javascript$common$asserts$asserts_assert(a,module$contents$google3$javascript$common$asserts$guards_isAnyOf(module$exports$google3$javascript$common$asserts$guards.isString,module$exports$google3$javascript$common$asserts$guards.isBoolean, module$exports$google3$javascript$common$asserts$guards.isNumber)),a=BigInt(a)),a=a%BigInt(2)===BigInt(module$contents$google3$javascript$common$bigint$index_getGBigIntUseStrInDebugToggleVal())?a.toString():a,a):BigInt(a):a=(0,module$exports$google3$javascript$common$asserts$guards.isBoolean)(a)?a?"1":"0":(0,module$exports$google3$javascript$common$asserts$guards.isString)(a)?a.trim()||"0":String(a)}module$exports$google3$javascript$common$bigint$index.toGbigint=module$contents$google3$javascript$common$bigint$index_toGbigint; module$exports$google3$javascript$common$bigint$index.isGbigint=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){return module$exports$google3$javascript$common$bigint$platform.NATIVE_BIGINT_AVAILABLE?goog.DEBUG?module$contents$google3$javascript$common$bigint$index_isGbigintForcedAsStringHalfTheTime(a):(0,module$exports$google3$javascript$common$asserts$guards.isBigInt)(a):(0,module$exports$google3$javascript$common$asserts$guards.isString)(a)&&/^(?:-?[1-9]\d*|0)$/.test(a)}, "gbigint"); module$exports$google3$javascript$common$bigint$index.isSafeInt52=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){if(module$exports$google3$javascript$common$bigint$platform.NATIVE_BIGINT_AVAILABLE)return module$contents$google3$javascript$common$asserts$asserts_assert(module$contents$google3$javascript$common$bigint$index_MIN_SAFE_INT52_BIGINT,module$exports$google3$javascript$common$asserts$guards.isBigInt),module$contents$google3$javascript$common$asserts$asserts_assert(module$contents$google3$javascript$common$bigint$index_MAX_SAFE_INT52_BIGINT,module$exports$google3$javascript$common$asserts$guards.isBigInt), a=goog.DEBUG?BigInt(a):module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isBigInt),a>=module$contents$google3$javascript$common$bigint$index_MIN_SAFE_INT52_BIGINT&&a<=module$contents$google3$javascript$common$bigint$index_MAX_SAFE_INT52_BIGINT;a=module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isString);return a[0]==="-"?module$contents$google3$javascript$common$bigint$index_isInRange(a, module$contents$google3$javascript$common$bigint$index_MIN_SAFE_INT52_STR):module$contents$google3$javascript$common$bigint$index_isInRange(a,module$contents$google3$javascript$common$bigint$index_MAX_SAFE_INT52_STR)},"isSafeInt52"); var module$contents$google3$javascript$common$bigint$index_MIN_SAFE_INT52_STR=Number.MIN_SAFE_INTEGER.toString(),module$contents$google3$javascript$common$bigint$index_MIN_SAFE_INT52_BIGINT=module$exports$google3$javascript$common$bigint$platform.NATIVE_BIGINT_AVAILABLE?BigInt(Number.MIN_SAFE_INTEGER):void 0,module$contents$google3$javascript$common$bigint$index_MAX_SAFE_INT52_STR=Number.MAX_SAFE_INTEGER.toString(),module$contents$google3$javascript$common$bigint$index_MAX_SAFE_INT52_BIGINT=module$exports$google3$javascript$common$bigint$platform.NATIVE_BIGINT_AVAILABLE? BigInt(Number.MAX_SAFE_INTEGER):void 0; module$exports$google3$javascript$common$bigint$index.isValidSignedInt64=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){if(module$exports$google3$javascript$common$bigint$platform.NATIVE_BIGINT_AVAILABLE)return module$contents$google3$javascript$common$asserts$asserts_assert(module$contents$google3$javascript$common$bigint$index_MIN_SIGNED_INT64_BIGINT,module$exports$google3$javascript$common$asserts$guards.isBigInt),module$contents$google3$javascript$common$asserts$asserts_assert(module$contents$google3$javascript$common$bigint$index_MAX_SIGNED_INT64_BIGINT,module$exports$google3$javascript$common$asserts$guards.isBigInt), a=goog.DEBUG?BigInt(a):module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isBigInt),a>=module$contents$google3$javascript$common$bigint$index_MIN_SIGNED_INT64_BIGINT&&a<=module$contents$google3$javascript$common$bigint$index_MAX_SIGNED_INT64_BIGINT;a=module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isString);return a[0]==="-"?module$contents$google3$javascript$common$bigint$index_isInRange(a, "-9223372036854775808"):module$contents$google3$javascript$common$bigint$index_isInRange(a,"9223372036854775807")},"isValidSignedInt64"); var module$contents$google3$javascript$common$bigint$index_MIN_SIGNED_INT64_BIGINT=module$exports$google3$javascript$common$bigint$platform.NATIVE_BIGINT_AVAILABLE?BigInt("-9223372036854775808"):void 0,module$contents$google3$javascript$common$bigint$index_MAX_SIGNED_INT64_BIGINT=module$exports$google3$javascript$common$bigint$platform.NATIVE_BIGINT_AVAILABLE?BigInt("9223372036854775807"):void 0; module$exports$google3$javascript$common$bigint$index.isValidUnsignedInt64=module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(a){if(module$exports$google3$javascript$common$bigint$platform.NATIVE_BIGINT_AVAILABLE)return module$contents$google3$javascript$common$asserts$asserts_assert(module$contents$google3$javascript$common$bigint$index_MIN_UNSIGNED_INT64_BIGINT,module$exports$google3$javascript$common$asserts$guards.isBigInt),module$contents$google3$javascript$common$asserts$asserts_assert(module$contents$google3$javascript$common$bigint$index_MAX_UNSIGNED_INT64_BIGINT, module$exports$google3$javascript$common$asserts$guards.isBigInt),a=goog.DEBUG?BigInt(a):module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isBigInt),a>=module$contents$google3$javascript$common$bigint$index_MIN_UNSIGNED_INT64_BIGINT&&a<=module$contents$google3$javascript$common$bigint$index_MAX_UNSIGNED_INT64_BIGINT;a=module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isString); if(a[0]==="-")return!1;module$contents$google3$javascript$common$asserts$asserts_assert("18446744073709551615",module$exports$google3$javascript$common$asserts$guards.isString);return module$contents$google3$javascript$common$bigint$index_isInRange(a,"18446744073709551615")},"isValidUnsignedInt64"); var module$contents$google3$javascript$common$bigint$index_MIN_UNSIGNED_INT64_BIGINT=module$exports$google3$javascript$common$bigint$platform.NATIVE_BIGINT_AVAILABLE?BigInt(0):void 0,module$contents$google3$javascript$common$bigint$index_MAX_UNSIGNED_INT64_BIGINT=module$exports$google3$javascript$common$bigint$platform.NATIVE_BIGINT_AVAILABLE?BigInt("18446744073709551615"):void 0; function module$contents$google3$javascript$common$bigint$index_gbigintToBoolean(a){if(module$exports$google3$javascript$common$bigint$platform.NATIVE_BIGINT_AVAILABLE)return module$contents$google3$javascript$common$asserts$asserts_assert(module$contents$google3$javascript$common$bigint$index_ZERO_BIGINT,module$exports$google3$javascript$common$asserts$guards.isBigInt),a=goog.DEBUG?BigInt(a):module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isBigInt), a!==module$contents$google3$javascript$common$bigint$index_ZERO_BIGINT;a=module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isString);return a!=="0"}module$exports$google3$javascript$common$bigint$index.gbigintToBoolean=module$contents$google3$javascript$common$bigint$index_gbigintToBoolean; function module$contents$google3$javascript$common$bigint$index_compareBigInt(a,b){if(module$exports$google3$javascript$common$bigint$platform.NATIVE_BIGINT_AVAILABLE)return a=goog.DEBUG?BigInt(a):module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isBigInt),b=goog.DEBUG?BigInt(b):module$contents$google3$javascript$common$asserts$asserts_cast(b,module$exports$google3$javascript$common$asserts$guards.isBigInt),a>b?1:a===b?0:-1;a= module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isString);b=module$contents$google3$javascript$common$asserts$asserts_cast(b,module$exports$google3$javascript$common$asserts$guards.isString);var c=a.length&&a[0]==="-",d=b.length&&b[0]==="-",e=c?-1:1;return c!==d?e:a.length!==b.length?a.length>b.length?e:-e:e*a.localeCompare(b)}module$exports$google3$javascript$common$bigint$index.compareBigInt=module$contents$google3$javascript$common$bigint$index_compareBigInt; function module$contents$google3$javascript$common$bigint$index_isInRange(a,b){if(a.length>b.length)return!1;if(a.length<b.length||a===b)return!0;for(var c=0;c<a.length;c++){var d=a[c],e=b[c];if(d>e)return!1;if(d<e)return!0}if(module$exports$google3$javascript$common$asserts$internal.ENABLE_ASSERTS){a="isInRange weird case. Value was: "+a+". Boundary was: "+b+".";b=module$contents$google3$javascript$common$asserts$asserts_maybeGetKeepInProdMsgFunc();if(!goog.DEBUG)throw Error(module$contents$google3$javascript$common$asserts$asserts_formatLazyMsg(b)); module$contents$google3$javascript$common$asserts$asserts_throwGuardFailure("Assertion fail:",a||b)}}var module$contents$google3$javascript$common$bigint$index_ZERO_BIGINT=module$exports$google3$javascript$common$bigint$platform.NATIVE_BIGINT_AVAILABLE?BigInt(0):void 0; function module$contents$google3$javascript$common$bigint$index_isGbigintForcedAsStringHalfTheTime(a){if(typeof a==="bigint")return a%BigInt(2)===BigInt(module$contents$google3$javascript$common$bigint$index_getGBigIntUseStrInDebugToggleVal())?(console.error("isGbigint: got a `bigint` when we were expecting a `string`. Make sure to call `toGbigint()` when creating `gbigint` instances!"),!1):!0;if((0,module$exports$google3$javascript$common$asserts$guards.isString)(a)){if(!/^(?:-?[1-9]\d*|0)$/.test(a))return!1; if(Number(a[a.length-1])%2===module$contents$google3$javascript$common$bigint$index_getGBigIntUseStrInDebugToggleVal())return!0;console.error("isGbigint: got a `string` when we were expecting a `bigint`. Make sure to call `toGbigint()` when creating `gbigint` instances!")}return!1} function module$contents$google3$javascript$common$bigint$index_getGBigIntUseStrInDebugToggleVal(){if(!goog.DEBUG||!module$exports$google3$javascript$common$bigint$platform.NATIVE_BIGINT_AVAILABLE||module$exports$google3$javascript$common$bigint$platform.ODD_FORCED_STRING_IN_DEBUG)return 1;var a=typeof Window==="function"&&globalThis.top instanceof Window?globalThis.top:globalThis;a.gbigintUseStrInDebugToggleVal!==0&&a.gbigintUseStrInDebugToggleVal!==1&&(a.gbigintUseStrInDebugToggleVal=Math.round(Math.random())); return a=a.gbigintUseStrInDebugToggleVal};var module$contents$jspb$utils_split64Low=0,module$contents$jspb$utils_split64High=0;function module$contents$jspb$utils_splitUint64(a){var b=a>>>0;a=(a-b)/module$exports$jspb$BinaryConstants.TWO_TO_32>>>0;module$contents$jspb$utils_split64Low=b;module$contents$jspb$utils_split64High=a} function module$contents$jspb$utils_splitInt64(a){if(a<0){module$contents$jspb$utils_splitUint64(0-a);var b=(0,$jscomp.makeIterator)(module$contents$jspb$utils_negate(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High));a=b.next().value;b=b.next().value;module$contents$jspb$utils_split64Low=a>>>0;module$contents$jspb$utils_split64High=b>>>0}else module$contents$jspb$utils_splitUint64(a)} function module$contents$jspb$utils_joinUint64(a,b){var c=b*module$exports$jspb$BinaryConstants.TWO_TO_32+(a>>>0);return Number.isSafeInteger(c)?c:module$contents$jspb$utils_joinUnsignedDecimalString(a,b)} function module$contents$jspb$utils_joinUint64Gbigint(a,b){return module$contents$google3$javascript$common$bigint$index_toGbigint(module$contents$jspb$internal_options_isBigIntAvailable()?BigInt.asUintN(64,(BigInt(b>>>0)<<BigInt(32))+BigInt(a>>>0)):module$contents$jspb$utils_joinUnsignedDecimalString(a,b))} function module$contents$jspb$utils_joinInt64(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,a==0&&(b=b+1>>>0));a=module$contents$jspb$utils_joinUint64(a,b);return typeof a==="number"?c?-a:a:c?"-"+a:a} function module$contents$jspb$utils_joinInt64Gbigint(a,b){if(!module$contents$jspb$internal_options_isBigIntAvailable())return module$contents$google3$javascript$common$bigint$index_toGbigint(module$contents$jspb$utils_joinSignedDecimalString(a,b));a=BigInt.asUintN(32,BigInt(a));b=BigInt.asUintN(32,BigInt(b));return module$contents$google3$javascript$common$bigint$index_toGbigint(BigInt.asIntN(64,(b<<BigInt(32))+a))} function module$contents$jspb$utils_joinZigzag64(a,b){return module$contents$jspb$utils_fromZigzag64(a,b,module$contents$jspb$utils_joinInt64)}function module$contents$jspb$utils_fromZigzag64(a,b,c){var d=-(a&1);a=(a>>>1|b<<31)^d;b=b>>>1^d;return c(a,b)} function module$contents$jspb$utils_joinUnsignedDecimalString(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(module$exports$jspb$BinaryConstants.TWO_TO_32*b+a);else module$contents$jspb$internal_options_isBigIntAvailable()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=a&16777215,a=(a>>>24|b<<8)&16777215,b=b>>16&65535,c=c+a*6777216+b*6710656,a+=b*8147497,b*=2,c>=1E7&&(a+=c/1E7>>>0,c%=1E7),a>=1E7&&(b+=a/1E7>>>0,a%=1E7),(0,goog.asserts.assert)(b),c=b+module$contents$jspb$utils_decimalFrom1e7WithLeadingZeros(a)+ module$contents$jspb$utils_decimalFrom1e7WithLeadingZeros(c));return c}function module$contents$jspb$utils_decimalFrom1e7WithLeadingZeros(a){a=String(a);return"0000000".slice(a.length)+a} function module$contents$jspb$utils_joinSignedDecimalString(a,b){var c=b&2147483648;c?module$contents$jspb$internal_options_isBigIntAvailable()?b=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(a=(0,$jscomp.makeIterator)(module$contents$jspb$utils_negate(a,b)),b=a.next().value,c=a.next().value,a=b,b=c,b="-"+module$contents$jspb$utils_joinUnsignedDecimalString(a,b)):b=module$contents$jspb$utils_joinUnsignedDecimalString(a,b);return b} function module$contents$jspb$utils_joinSignedNumberOrDecimalString(a,b){var c=module$contents$jspb$utils_joinInt64(a,b);return Number.isSafeInteger(c)?c:module$contents$jspb$utils_joinSignedDecimalString(a,b)}function module$contents$jspb$utils_joinUnsignedNumberOrDecimalString(a,b){b>>>=0;var c=module$contents$jspb$utils_joinUint64(a,b);return Number.isSafeInteger(c)?c:module$contents$jspb$utils_joinUnsignedDecimalString(a,b)} function module$contents$jspb$utils_splitDecimalString(a){(0,goog.asserts.assert)(a.length>0);if(a.length<16)module$contents$jspb$utils_splitInt64(Number(a));else if(module$contents$jspb$internal_options_isBigIntAvailable())a=BigInt(a),module$contents$jspb$utils_split64Low=Number(a&BigInt(4294967295))>>>0,module$contents$jspb$utils_split64High=Number(a>>BigInt(32)&BigInt(4294967295));else{(0,goog.asserts.assert)(a.length>0);var b=+(a[0]==="-");module$contents$jspb$utils_split64High=module$contents$jspb$utils_split64Low= 0;for(var c=a.length,d=0+b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),module$contents$jspb$utils_split64High*=1E6,module$contents$jspb$utils_split64Low=module$contents$jspb$utils_split64Low*1E6+d,module$contents$jspb$utils_split64Low>=module$exports$jspb$BinaryConstants.TWO_TO_32&&(module$contents$jspb$utils_split64High+=Math.trunc(module$contents$jspb$utils_split64Low/module$exports$jspb$BinaryConstants.TWO_TO_32),module$contents$jspb$utils_split64High>>>=0,module$contents$jspb$utils_split64Low>>>= 0);b&&(b=(0,$jscomp.makeIterator)(module$contents$jspb$utils_negate(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High)),a=b.next().value,b=b.next().value,module$contents$jspb$utils_split64Low=a,module$contents$jspb$utils_split64High=b)}}function module$contents$jspb$utils_negate(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};var module$exports$jspb$binary$decoder={BinaryDecoder:function(a,b,c,d){this.bytes_=null;module$contents$jspb$binary$decoder_ASSUME_DATAVIEW_IS_FAST&&(this.dataView_=null);this.cursor_=this.end_=this.start_=0;this.init(a,b,c,d)}};module$exports$jspb$binary$decoder.BinaryDecoder.prototype.init=function(a,b,c){a&&this.setBlock(a,b,c)}; module$exports$jspb$binary$decoder.BinaryDecoder.alloc=function(a,b,c,d){if(module$exports$jspb$binary$decoder.BinaryDecoder.instanceCache_.length){var e=module$exports$jspb$binary$decoder.BinaryDecoder.instanceCache_.pop();e.init(a,b,c,d);return e}return new module$exports$jspb$binary$decoder.BinaryDecoder(a,b,c,d)}; module$exports$jspb$binary$decoder.BinaryDecoder.prototype.clear=function(){this.bytes_=null;module$contents$jspb$binary$decoder_ASSUME_DATAVIEW_IS_FAST&&(this.dataView_=null);this.cursor_=this.end_=this.start_=0}; module$exports$jspb$binary$decoder.BinaryDecoder.prototype.setBlock=function(a,b,c){a=module$contents$jspb$binary$internal_buffer_bufferFromSource(a);this.bytes_=a.buffer;module$contents$jspb$binary$decoder_ASSUME_DATAVIEW_IS_FAST&&(this.dataView_=null);this.start_=b||0;this.end_=c!==void 0?this.start_+c:this.bytes_.length;this.cursor_=this.start_};module$exports$jspb$binary$decoder.BinaryDecoder.prototype.getEnd=function(){return this.end_}; module$exports$jspb$binary$decoder.BinaryDecoder.prototype.setEnd=function(a){this.end_=a};module$exports$jspb$binary$decoder.BinaryDecoder.prototype.reset=function(){this.cursor_=this.start_};module$exports$jspb$binary$decoder.BinaryDecoder.prototype.getCursor=function(){return this.cursor_};module$exports$jspb$binary$decoder.BinaryDecoder.prototype.setCursor=function(a){this.cursor_=a};module$exports$jspb$binary$decoder.BinaryDecoder.prototype.advance=function(a){a=this.cursor_+a;this.setCursorAndCheck(a)}; module$exports$jspb$binary$decoder.BinaryDecoder.readSplitVarint64=function(a,b){var c=0,d=0,e=0,f=a.bytes_,g=a.cursor_;do{var h=f[g++];c|=(h&127)<<e;e+=7}while(e<32&&h&128);e>32&&(d|=(h&127)>>4);for(e=3;e<32&&h&128;e+=7)h=f[g++],d|=(h&127)<<e;a.setCursorAndCheck(g);if(h<128)return b(c>>>0,d>>>0);throw module$contents$jspb$binary$errors_invalidVarintError();}; module$exports$jspb$binary$decoder.BinaryDecoder.readSplitZigzagVarint64=function(a,b){return module$exports$jspb$binary$decoder.BinaryDecoder.readSplitVarint64(a,function(c,d){return module$contents$jspb$utils_fromZigzag64(c,d,b)})};module$exports$jspb$binary$decoder.BinaryDecoder.readSplitFixed64=function(a,b){var c=a.bytes_,d=a.cursor_;a.advance(8);for(var e=a=0,f=d+7;f>=d;f--)a=a<<8|c[f],e=e<<8|c[f+4];return b(a,e)}; module$exports$jspb$binary$decoder.BinaryDecoder.prototype.setCursorAndCheck=function(a){this.cursor_=a;if(a>this.end_)throw Error("Tried to read past the end of the data "+a+" > "+this.end_);}; module$exports$jspb$binary$decoder.BinaryDecoder.readSignedVarint32=function(a){var b=a.bytes_,c=a.cursor_,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw module$contents$jspb$binary$errors_invalidVarintError();a.setCursorAndCheck(c);return e}; module$exports$jspb$binary$decoder.BinaryDecoder.readUnsignedVarint32=function(a){return module$exports$jspb$binary$decoder.BinaryDecoder.readSignedVarint32(a)>>>0};module$exports$jspb$binary$decoder.BinaryDecoder.readZigzagVarint32=function(a){a=module$exports$jspb$binary$decoder.BinaryDecoder.readUnsignedVarint32(a);var b=-(a&1);return a=a>>>1^b}; module$exports$jspb$binary$decoder.BinaryDecoder.readUnsignedVarint64=function(a){return module$exports$jspb$binary$decoder.BinaryDecoder.readSplitVarint64(a,module$contents$jspb$utils_joinUint64)};module$exports$jspb$binary$decoder.BinaryDecoder.readUnsignedVarint64String=function(a){return module$exports$jspb$binary$decoder.BinaryDecoder.readSplitVarint64(a,module$contents$jspb$utils_joinUnsignedDecimalString)}; module$exports$jspb$binary$decoder.BinaryDecoder.readUnsignedVarint64Gbigint=function(a){return module$exports$jspb$binary$decoder.BinaryDecoder.readSplitVarint64(a,module$contents$jspb$utils_joinUint64Gbigint)};module$exports$jspb$binary$decoder.BinaryDecoder.readUnsignedVarint64NumberOrString=function(a){return module$exports$jspb$binary$decoder.BinaryDecoder.readSplitVarint64(a,module$contents$jspb$utils_joinUnsignedNumberOrDecimalString)}; module$exports$jspb$binary$decoder.BinaryDecoder.readSignedVarint64=function(a){return module$exports$jspb$binary$decoder.BinaryDecoder.readSplitVarint64(a,module$contents$jspb$utils_joinInt64)};module$exports$jspb$binary$decoder.BinaryDecoder.readSignedVarint64String=function(a){return module$exports$jspb$binary$decoder.BinaryDecoder.readSplitVarint64(a,module$contents$jspb$utils_joinSignedDecimalString)}; module$exports$jspb$binary$decoder.BinaryDecoder.readSignedVarint64Gbigint=function(a){return module$exports$jspb$binary$decoder.BinaryDecoder.readSplitVarint64(a,module$contents$jspb$utils_joinInt64Gbigint)};module$exports$jspb$binary$decoder.BinaryDecoder.readSignedVarint64NumberOrString=function(a){return module$exports$jspb$binary$decoder.BinaryDecoder.readSplitVarint64(a,module$contents$jspb$utils_joinSignedNumberOrDecimalString)}; module$exports$jspb$binary$decoder.BinaryDecoder.readZigzagVarint64=function(a){return module$exports$jspb$binary$decoder.BinaryDecoder.readSplitVarint64(a,module$contents$jspb$utils_joinZigzag64)};module$exports$jspb$binary$decoder.BinaryDecoder.readZigzagVarint64String=function(a){return module$exports$jspb$binary$decoder.BinaryDecoder.readSplitZigzagVarint64(a,module$contents$jspb$utils_joinSignedDecimalString)}; module$exports$jspb$binary$decoder.BinaryDecoder.readZigzagVarint64Gbigint=function(a){return module$exports$jspb$binary$decoder.BinaryDecoder.readSplitZigzagVarint64(a,module$contents$jspb$utils_joinInt64Gbigint)};module$exports$jspb$binary$decoder.BinaryDecoder.readZigzagVarint64NumberOrString=function(a){return module$exports$jspb$binary$decoder.BinaryDecoder.readSplitZigzagVarint64(a,module$contents$jspb$utils_joinSignedNumberOrDecimalString)}; module$exports$jspb$binary$decoder.BinaryDecoder.readUint8=function(a){var b=a.bytes_[a.cursor_+0];a.advance(1);return b};module$exports$jspb$binary$decoder.BinaryDecoder.readUint16=function(a){var b=a.bytes_[a.cursor_+0],c=a.bytes_[a.cursor_+1];a.advance(2);return b<<0|c<<8};module$exports$jspb$binary$decoder.BinaryDecoder.readUint32=function(a){var b=a.bytes_,c=a.cursor_,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];a.advance(4);return(d<<0|e<<8|f<<16|b<<24)>>>0}; module$exports$jspb$binary$decoder.BinaryDecoder.readUint64=function(a){var b=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);a=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);return module$contents$jspb$utils_joinUint64(b,a)}; module$exports$jspb$binary$decoder.BinaryDecoder.readUint64String=function(a){var b=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);a=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);return module$contents$jspb$utils_joinUnsignedDecimalString(b,a)}; module$exports$jspb$binary$decoder.BinaryDecoder.readUint64Gbigint=function(a){var b=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);a=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);return module$contents$jspb$utils_joinUint64Gbigint(b,a)}; module$exports$jspb$binary$decoder.BinaryDecoder.readUint64NumberOrString=function(a){var b=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);a=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);return module$contents$jspb$utils_joinUnsignedNumberOrDecimalString(b,a)};module$exports$jspb$binary$decoder.BinaryDecoder.readInt8=function(a){var b=a.bytes_[a.cursor_+0];a.advance(1);return b<<24>>24}; module$exports$jspb$binary$decoder.BinaryDecoder.readInt16=function(a){var b=a.bytes_[a.cursor_+0],c=a.bytes_[a.cursor_+1];a.advance(2);return(b<<0|c<<8)<<16>>16};module$exports$jspb$binary$decoder.BinaryDecoder.readInt32=function(a){var b=a.bytes_,c=a.cursor_,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];a.advance(4);return d<<0|e<<8|f<<16|b<<24}; module$exports$jspb$binary$decoder.BinaryDecoder.readInt64=function(a){var b=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);a=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);return module$contents$jspb$utils_joinInt64(b,a)}; module$exports$jspb$binary$decoder.BinaryDecoder.readInt64String=function(a){var b=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);a=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);return module$contents$jspb$utils_joinSignedDecimalString(b,a)}; module$exports$jspb$binary$decoder.BinaryDecoder.readInt64NumberOrString=function(a){var b=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);a=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);return module$contents$jspb$utils_joinSignedNumberOrDecimalString(b,a)}; module$exports$jspb$binary$decoder.BinaryDecoder.readInt64Gbigint=function(a){var b=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);a=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);return module$contents$jspb$utils_joinInt64Gbigint(b,a)}; module$exports$jspb$binary$decoder.BinaryDecoder.readFloat=function(a){var b=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);a=(b>>31)*2+1;var c=b>>>23&255;b&=8388607;return a=c==255?b?NaN:a*Infinity:c==0?a*1.401298464324817E-45*b:a*Math.pow(2,c-150)*(b+8388608)}; module$exports$jspb$binary$decoder.BinaryDecoder.readDouble=function(a){if(module$contents$jspb$binary$decoder_ASSUME_DATAVIEW_IS_FAST){var b=a.getDataView().getFloat64(a.cursor_,!0);a.advance(8);return b}b=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);var c=module$exports$jspb$binary$decoder.BinaryDecoder.readUint32(a);a=(c>>31)*2+1;var d=c>>>20&2047;b=module$exports$jspb$BinaryConstants.TWO_TO_32*(c&1048575)+b;return b=d==2047?b?NaN:a*Infinity:d==0?a*4.9E-324*b:a*Math.pow(2,d-1075)* (b+module$exports$jspb$BinaryConstants.TWO_TO_52)};module$exports$jspb$binary$decoder.BinaryDecoder.readBool=function(a){for(var b=0,c=a.cursor_,d=c+10,e=a.bytes_;c<d;){var f=e[c++];b|=f;if((f&128)===0)return a.setCursorAndCheck(c),!!(b&127)}throw module$contents$jspb$binary$errors_invalidVarintError();};module$exports$jspb$binary$decoder.BinaryDecoder.readEnum=function(a){return module$exports$jspb$binary$decoder.BinaryDecoder.readSignedVarint32(a)}; module$exports$jspb$binary$decoder.BinaryDecoder.prototype.getDataView=function(){var a=this.dataView_;a||(a=this.bytes_,a=this.dataView_=new DataView(a.buffer,a.byteOffset,a.byteLength));return a};module$exports$jspb$binary$decoder.BinaryDecoder.resetInstanceCache=function(){module$exports$jspb$binary$decoder.BinaryDecoder.instanceCache_=[]};module$exports$jspb$binary$decoder.BinaryDecoder.getInstanceCache=function(){return module$exports$jspb$binary$decoder.BinaryDecoder.instanceCache_}; module$exports$jspb$binary$decoder.BinaryDecoder.instanceCache_=[];var module$contents$jspb$binary$decoder_ASSUME_DATAVIEW_IS_FAST=goog.FEATURESET_YEAR>=2019;var module$exports$jspb$binary$reader={};goog.asserts.assert(!0);module$exports$jspb$binary$reader.UTF8_PARSING_ERRORS_ARE_FATAL=!0;module$exports$jspb$binary$reader.BinaryReaderOptions=function(){};module$exports$jspb$binary$reader.BinaryReader=function(a,b,c,d){this.decoder_=module$exports$jspb$binary$decoder.BinaryDecoder.alloc(a,b,c,d);this.nextWireType_=module$exports$jspb$BinaryConstants.WireType.INVALID}; module$exports$jspb$binary$reader.BinaryReader.alloc=function(a,b,c,d){if(module$exports$jspb$binary$reader.BinaryReader.instanceCache_.length){var e=module$exports$jspb$binary$reader.BinaryReader.instanceCache_.pop();e.decoder_.init(a,b,c,d);return e}return new module$exports$jspb$binary$reader.BinaryReader(a,b,c,d)};module$exports$jspb$binary$reader.BinaryReader.prototype.getCursor=function(){return this.decoder_.getCursor()}; module$exports$jspb$binary$reader.BinaryReader.prototype.reset=function(){this.decoder_.reset();this.nextWireType_=module$exports$jspb$BinaryConstants.WireType.INVALID};module$exports$jspb$binary$reader.BinaryReader.prototype.advance=function(a){this.decoder_.advance(a)}; module$exports$jspb$binary$reader.BinaryReader.prototype.readMessage=function(a,b,c,d,e){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.DELIMITED);var f=this.decoder_.getEnd(),g=module$exports$jspb$binary$decoder.BinaryDecoder.readUnsignedVarint32(this.decoder_),h=this.decoder_.getCursor()+g,k=h-f;k<=0&&(this.decoder_.setEnd(h),b(a,this,c,d,e),k=h-this.decoder_.getCursor());if(k)throw Error("Message parsing ended unexpectedly. Expected to read "+(g+" bytes, instead read "+ (g-k)+" bytes, either the data ended unexpectedly or the message misreported its own length"));this.decoder_.setCursor(h);this.decoder_.setEnd(f);return a};module$exports$jspb$binary$reader.BinaryReader.prototype.readInt32=function(){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT);return module$exports$jspb$binary$decoder.BinaryDecoder.readSignedVarint32(this.decoder_)}; module$exports$jspb$binary$reader.BinaryReader.prototype.readInt64=function(){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT);return module$exports$jspb$binary$decoder.BinaryDecoder.readSignedVarint64(this.decoder_)};module$exports$jspb$binary$reader.BinaryReader.prototype.readInt64String=function(){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT);return module$exports$jspb$binary$decoder.BinaryDecoder.readSignedVarint64String(this.decoder_)}; module$exports$jspb$binary$reader.BinaryReader.prototype.readInt64Gbigint=function(){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT);return module$exports$jspb$binary$decoder.BinaryDecoder.readSignedVarint64Gbigint(this.decoder_)};module$exports$jspb$binary$reader.BinaryReader.prototype.readInt64NumberOrString=function(){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT);return module$exports$jspb$binary$decoder.BinaryDecoder.readSignedVarint64NumberOrString(this.decoder_)}; module$exports$jspb$binary$reader.BinaryReader.prototype.readUint32=function(){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT);return module$exports$jspb$binary$decoder.BinaryDecoder.readUnsignedVarint32(this.decoder_)};module$exports$jspb$binary$reader.BinaryReader.prototype.readUint64=function(){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT);return module$exports$jspb$binary$decoder.BinaryDecoder.readUnsignedVarint64(this.decoder_)}; module$exports$jspb$binary$reader.BinaryReader.prototype.readUint64String=function(){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT);return module$exports$jspb$binary$decoder.BinaryDecoder.readUnsignedVarint64String(this.decoder_)};module$exports$jspb$binary$reader.BinaryReader.prototype.readUint64Gbigint=function(){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT);return module$exports$jspb$binary$decoder.BinaryDecoder.readUnsignedVarint64Gbigint(this.decoder_)}; module$exports$jspb$binary$reader.BinaryReader.prototype.readUint64NumberOrString=function(){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT);return module$exports$jspb$binary$decoder.BinaryDecoder.readUnsignedVarint64NumberOrString(this.decoder_)};module$exports$jspb$binary$reader.BinaryReader.prototype.readFloat=function(){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.FIXED32);return module$exports$jspb$binary$decoder.BinaryDecoder.readFloat(this.decoder_)}; module$exports$jspb$binary$reader.BinaryReader.prototype.readDouble=function(){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.FIXED64);return module$exports$jspb$binary$decoder.BinaryDecoder.readDouble(this.decoder_)};module$exports$jspb$binary$reader.BinaryReader.prototype.readBool=function(){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT);return module$exports$jspb$binary$decoder.BinaryDecoder.readBool(this.decoder_)}; module$exports$jspb$binary$reader.BinaryReader.prototype.readEnum=function(){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT);return module$exports$jspb$binary$decoder.BinaryDecoder.readSignedVarint32(this.decoder_)}; module$exports$jspb$binary$reader.BinaryReader.prototype.readSplitVarint64=function(a){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT);return module$exports$jspb$binary$decoder.BinaryDecoder.readSplitVarint64(this.decoder_,a)}; module$exports$jspb$binary$reader.BinaryReader.prototype.readSplitZigzagVarint64=function(a){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.VARINT);return module$exports$jspb$binary$decoder.BinaryDecoder.readSplitVarint64(this.decoder_,function(b,c){return module$contents$jspb$utils_fromZigzag64(b,c,a)})}; module$exports$jspb$binary$reader.BinaryReader.prototype.readSplitFixed64=function(a){goog.asserts.assert(this.nextWireType_==module$exports$jspb$BinaryConstants.WireType.FIXED64);return module$exports$jspb$binary$decoder.BinaryDecoder.readSplitFixed64(this.decoder_,a)};module$exports$jspb$binary$reader.BinaryReader.resetInstanceCache=function(){module$exports$jspb$binary$reader.BinaryReader.instanceCache_=[]};module$exports$jspb$binary$reader.BinaryReader.getInstanceCache=function(){return module$exports$jspb$binary$reader.BinaryReader.instanceCache_}; module$exports$jspb$binary$reader.BinaryReader.instanceCache_=[];var JSCompiler_temp$jscomp$668;if(module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS){if(!module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS)throw Error();JSCompiler_temp$jscomp$668={newArray:0,slice:0,getField:0,setField:0,constructMessage:0,constructMap:0,copyMessageWithImmutableFields:0,internalCompareFields:0}}else JSCompiler_temp$jscomp$668=void 0; var module$contents$jspb$internal_operations_currentLog=JSCompiler_temp$jscomp$668,module$contents$jspb$internal_operations_shouldLogOperations=!0;function module$contents$jspb$internal_operations_logOperation(a){if(module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&module$contents$jspb$internal_operations_shouldLogOperations)for(var b in a)module$contents$jspb$internal_operations_currentLog[b]+=(0,goog.asserts.assertNumber)(a[b])} function module$contents$jspb$internal_operations_slice(a){module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&module$contents$jspb$internal_operations_logOperation({slice:1});return Array.prototype.slice.call(a)}function module$contents$jspb$internal_operations_sliceWithLength(a,b,c){module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&module$contents$jspb$internal_operations_logOperation({slice:1});return Array.prototype.slice.call(a,b,c)} function module$contents$jspb$internal_operations_logNewArray(a){module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&module$contents$jspb$internal_operations_logOperation({newArray:1});return a} function module$contents$jspb$internal_operations_withoutLogging(a){if(!module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS)return a();var b=!!module$contents$jspb$internal_operations_shouldLogOperations;try{return module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&(module$contents$jspb$internal_operations_shouldLogOperations=!1),a()}finally{module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&(module$contents$jspb$internal_operations_shouldLogOperations=b)}};var module$exports$jspb$internal_symbols={};module$exports$jspb$internal_symbols.HAS_NATIVE_SYMBOL=goog.FEATURESET_YEAR>=2018||typeof Symbol==="function"&&typeof Symbol()==="symbol";function module$contents$jspb$internal_symbols_createSymbol(a,b){return goog.FEATURESET_YEAR>=2018||typeof Symbol==="function"&&typeof Symbol()==="symbol"?goog.DEBUG?Symbol(a):Symbol():b}module$exports$jspb$internal_symbols.ARRAY_STATE_SYMBOL=module$contents$jspb$internal_symbols_createSymbol("INTERNAL_ARRAY_STATE",void 0); module$exports$jspb$internal_symbols.DEFAULT_IMMUTABLE_INSTANCE_SYMBOL=module$contents$jspb$internal_symbols_createSymbol("defaultInstance","0di");module$exports$jspb$internal_symbols.DUPLICATED_EXTENSION_SYMBOL=module$contents$jspb$internal_symbols_createSymbol("DUPLICATED_EXTENSION_SYMBOL","2ex");module$exports$jspb$internal_symbols.ONEOF_ARRAY_SYMBOL=module$contents$jspb$internal_symbols_createSymbol("oneofCases","1oa"); module$exports$jspb$internal_symbols.RETURNED_64BIT_INT_VALUE_MISMATCH_SYMBOL=module$contents$jspb$internal_symbols_createSymbol("RETURNED_64BIT_INT_VALUE_MISMATCH","64im");module$exports$jspb$internal_symbols.STRING_TYPE_DOWNGRADES_SYMBOL=module$contents$jspb$internal_symbols_createSymbol("STRING_TYPE_DOWNGRADES","0dg");var module$exports$jspb$internal_array_state={DEFAULT_ARRAY_STATE:0,ArrayStateFlags:{IS_REPEATED_FIELD:1,IS_IMMUTABLE_ARRAY:2,IS_API_FORMATTED:4,ONLY_MUTABLE_VALUES:8,ONLY_IMMUTABLE_VALUES_IF_OWNED:16,MUTABLE_REFERENCES_ARE_OWNED:32,CONSTRUCTED:64,TRANSFERRED:128,HAS_SPARSE_OBJECT:256,HAS_MESSAGE_ID:512,IS_IMMUTABLE_JS_REPEATED_FIELD_COERCED_FROM_WIRE:1024,FROZEN_ARRAY:2048,STRING_FORMATTED:4096,GBIGINT_FORMATTED:8192,DESERIALIZED_FROM_BINARY:16384}}; goog.asserts.assert(Math.round(Math.log2(Math.max.apply(Math,(0,$jscomp.arrayFromIterable)(Object.values(module$exports$jspb$internal_array_state.ArrayStateFlags)))))===14);module$exports$jspb$internal_array_state.PIVOT_LIMIT=1024; var module$contents$jspb$internal_array_state_PIVOT_MASK=module$exports$jspb$internal_array_state.PIVOT_LIMIT-1,module$contents$jspb$internal_array_state_ALL_FLAGS=module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED|module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES|module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_IMMUTABLE_VALUES_IF_OWNED| module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED|module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED|module$exports$jspb$internal_array_state.ArrayStateFlags.TRANSFERRED|module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_SPARSE_OBJECT|module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_MESSAGE_ID|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_JS_REPEATED_FIELD_COERCED_FROM_WIRE|module$exports$jspb$internal_array_state.ArrayStateFlags.STRING_FORMATTED| module$exports$jspb$internal_array_state.ArrayStateFlags.GBIGINT_FORMATTED|module$exports$jspb$internal_array_state.ArrayStateFlags.FROZEN_ARRAY|module$exports$jspb$internal_array_state.ArrayStateFlags.DESERIALIZED_FROM_BINARY|module$contents$jspb$internal_array_state_PIVOT_MASK<<15;function module$contents$jspb$internal_array_state_assertValidFlags(a){goog.asserts.assert((a&module$contents$jspb$internal_array_state_ALL_FLAGS)==a)} module$exports$jspb$internal_array_state.addArrayStateFlags=module$exports$jspb$internal_symbols.HAS_NATIVE_SYMBOL?function(a,b){module$contents$jspb$internal_array_state_assertValidFlags(b);goog.asserts.assertArray(a,"state is only maintained on arrays.");return a[module$exports$jspb$internal_symbols.ARRAY_STATE_SYMBOL]|=b}:function(a,b){module$contents$jspb$internal_array_state_assertValidFlags(b);goog.asserts.assertArray(a,"state is only maintained on arrays.");var c=a;if(c.internalArrayState!== void 0)return c.internalArrayState|=b;Object.defineProperties(a,{internalArrayState:{value:b,configurable:!0,writable:!0,enumerable:!1}});return b};function module$contents$jspb$internal_array_state_addFlagsOnPossiblyFrozenArray(a,b){var c=(0,module$exports$jspb$internal_array_state.getArrayState)(a);(c&b)!==b&&(Object.isFrozen(a)&&(a=module$contents$jspb$internal_operations_slice(a)),(0,module$exports$jspb$internal_array_state.setArrayState)(a,c|b));return a} module$exports$jspb$internal_array_state.clearFlags=module$exports$jspb$internal_symbols.HAS_NATIVE_SYMBOL?function(a,b){module$contents$jspb$internal_array_state_assertValidFlags(b);goog.asserts.assertArray(a,"state is only maintained on arrays.");return a[module$exports$jspb$internal_symbols.ARRAY_STATE_SYMBOL]&=~b}:function(a,b){module$contents$jspb$internal_array_state_assertValidFlags(b);goog.asserts.assertArray(a,"state is only maintained on arrays.");return a.internalArrayState!==void 0?a.internalArrayState&= ~b:0};function module$contents$jspb$internal_array_state_hasFlagBit(a,b){return!!(b&a)}function module$contents$jspb$internal_array_state_setFlagBitTo(a,b,c){return c?a|b:a&~b}function module$contents$jspb$internal_array_state_setFlagBit(a,b){return a|b}function module$contents$jspb$internal_array_state_clearFlagBit(a,b){return a&~b} if(goog.DEBUG){var prev$jscomp$1=Object.getOwnPropertyDescriptor(Array.prototype,"jspbArrayState");Object.defineProperties(Array.prototype,{jspbArrayState:{get:function(){function a(e,f){e&b&&c.push(f)}var b=(0,module$exports$jspb$internal_array_state.getArrayState)(this),c=[];a(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD,"IS_REPEATED_FIELD");a(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY,"IS_IMMUTABLE_ARRAY");a(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED, "IS_API_FORMATTED");a(module$exports$jspb$internal_array_state.ArrayStateFlags.STRING_FORMATTED,"STRING_FORMATTED");a(module$exports$jspb$internal_array_state.ArrayStateFlags.GBIGINT_FORMATTED,"GBIGINT_FORMATTED");a(module$exports$jspb$internal_array_state.ArrayStateFlags.GBIGINT_FORMATTED,"BINARY");a(module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES,"ONLY_MUTABLE_VALUES");a(module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED,"MUTABLE_REFERENCES_ARE_OWNED"); a(module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED,"CONSTRUCTED");a(module$exports$jspb$internal_array_state.ArrayStateFlags.TRANSFERRED,"TRANSFERRED");a(module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_SPARSE_OBJECT,"HAS_SPARSE_OBJECT");a(module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_MESSAGE_ID,"HAS_MESSAGE_ID");a(module$exports$jspb$internal_array_state.ArrayStateFlags.FROZEN_ARRAY,"FROZEN_ARRAY");a(module$exports$jspb$internal_array_state.ArrayStateFlags.DESERIALIZED_FROM_BINARY, "DESERIALIZED_FROM_BINARY");var d=module$contents$jspb$internal_array_state_getPivot(b);d!==module$exports$jspb$internal_array_state.NO_PIVOT&&c.push("pivot: "+d);d=c.join(",");return prev$jscomp$1?prev$jscomp$1.get.call(this)+"|"+d:d},configurable:!0,enumerable:!1}})} module$exports$jspb$internal_array_state.getArrayState=module$exports$jspb$internal_symbols.HAS_NATIVE_SYMBOL?function(a){goog.asserts.assertArray(a,"state is only maintained on arrays.");return a[module$exports$jspb$internal_symbols.ARRAY_STATE_SYMBOL]|0}:function(a){goog.asserts.assertArray(a,"state is only maintained on arrays.");return a.internalArrayState|0}; function module$contents$jspb$internal_array_state_checkMessageStateInvariants(a,b,c){(c=c===void 0?!1:c)||goog.asserts.assert(b&module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED,"state for messages must be constructed");goog.asserts.assert((b&(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED))===0,"state for messages should not contain repeated field state");var d=module$contents$jspb$internal_array_state_getPivot(b), e=module$contents$jspb$internal_array_state_getArrayIndexOffset(b);c=a.length;goog.asserts.assert(d+e>=c-1,"pivot %s is pointing at an index earlier than the last index of the array, length: %s",d,c);b&module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_MESSAGE_ID&&goog.asserts.assert(typeof a[0]==="string","arrays with a message_id bit must have a string in the first position, got: %s",a[0]);b=!!(b&module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_SPARSE_OBJECT);a=c?a[c-1]:void 0; a=a!=null&&typeof a==="object"&&a.constructor===Object;goog.asserts.assert(a===b,"arraystate and array disagree on sparseObject presence")} module$exports$jspb$internal_array_state.getMessageArrayState=module$exports$jspb$internal_symbols.HAS_NATIVE_SYMBOL?function(a,b){b=b===void 0?!1:b;goog.asserts.assertArray(a,"state is only maintained on arrays.");var c=a[module$exports$jspb$internal_symbols.ARRAY_STATE_SYMBOL];module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&module$contents$jspb$internal_array_state_checkMessageStateInvariants(a,c,b);return c}:function(a,b){b=b===void 0?!1:b;goog.asserts.assertArray(a, "state is only maintained on arrays.");var c=a.internalArrayState;module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&module$contents$jspb$internal_array_state_checkMessageStateInvariants(a,c,b);return c};function module$contents$jspb$internal_array_state_getPossiblyUnconstructedMessageArrayState(a){return(0,module$exports$jspb$internal_array_state.getMessageArrayState)(a,!0)} module$exports$jspb$internal_array_state.setArrayState=module$exports$jspb$internal_symbols.HAS_NATIVE_SYMBOL?function(a,b){goog.asserts.assertArray(a,"state is only maintained on arrays.");module$contents$jspb$internal_array_state_assertValidFlags(b);a[module$exports$jspb$internal_symbols.ARRAY_STATE_SYMBOL]=b}:function(a,b){goog.asserts.assertArray(a,"state is only maintained on arrays.");module$contents$jspb$internal_array_state_assertValidFlags(b);var c=a;c.internalArrayState!==void 0?c.internalArrayState= b:Object.defineProperties(a,{internalArrayState:{value:b,configurable:!0,writable:!0,enumerable:!1}})};function module$contents$jspb$internal_array_state_setStateOnPossiblyFrozenArray(a,b){Object.isFrozen(a)&&(a=module$contents$jspb$internal_operations_slice(a));(0,module$exports$jspb$internal_array_state.setArrayState)(a,b);return a} function module$contents$jspb$internal_array_state_isRepeatedField(a){a=(0,module$exports$jspb$internal_array_state.getArrayState)(a);return!!(a&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD)}function module$contents$jspb$internal_array_state_markRepeatedField(a){(0,module$exports$jspb$internal_array_state.addArrayStateFlags)(a,module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD);return a} module$exports$jspb$internal_array_state.TypeSpecificApiFormat={LEGACY:0,STRING:module$exports$jspb$internal_array_state.ArrayStateFlags.STRING_FORMATTED,GBIGINT:module$exports$jspb$internal_array_state.ArrayStateFlags.GBIGINT_FORMATTED}; function module$contents$jspb$internal_array_state_markApiFormattedField(a){(0,module$exports$jspb$internal_array_state.addArrayStateFlags)(a,module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD);return a} function module$contents$jspb$internal_array_state_getTypeSpecificApiFormat(a){if(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED&a)return module$exports$jspb$internal_array_state.ArrayStateFlags.STRING_FORMATTED&a?module$exports$jspb$internal_array_state.TypeSpecificApiFormat.STRING:module$exports$jspb$internal_array_state.ArrayStateFlags.GBIGINT_FORMATTED&a?module$exports$jspb$internal_array_state.TypeSpecificApiFormat.GBIGINT:module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY} function module$contents$jspb$internal_array_state_clearTypeSpecificFormattedFlagBits(a){a&=~module$exports$jspb$internal_array_state.ArrayStateFlags.STRING_FORMATTED;return a&=~module$exports$jspb$internal_array_state.ArrayStateFlags.GBIGINT_FORMATTED}function module$contents$jspb$internal_array_state_isApiFormattedField(a){a=(0,module$exports$jspb$internal_array_state.getArrayState)(a);return!!(a&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED)} function module$contents$jspb$internal_array_state_isImmutableArray(a){a=(0,module$exports$jspb$internal_array_state.getArrayState)(a);return!!(a&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY)} function module$contents$jspb$internal_array_state_markArrayImmutable(a){(0,module$exports$jspb$internal_array_state.addArrayStateFlags)(a,module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY|module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED);return a} function module$contents$jspb$internal_array_state_markMutableReferencesAreOwned(a){(0,module$exports$jspb$internal_array_state.addArrayStateFlags)(a,module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED);return a}function module$contents$jspb$internal_array_state_markShared(a){(0,module$exports$jspb$internal_array_state.clearFlags)(a,module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED);return a} function module$contents$jspb$internal_array_state_areMutableReferencesOwned(a){a=(0,module$exports$jspb$internal_array_state.getArrayState)(a);return!!(a&module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED)}function module$contents$jspb$internal_array_state_markConstructed(a){(0,module$exports$jspb$internal_array_state.addArrayStateFlags)(a,module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED);return a} function module$contents$jspb$internal_array_state_isConstructed(a){a=(0,module$exports$jspb$internal_array_state.getArrayState)(a);return!!(a&module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED)}function module$contents$jspb$internal_array_state_hasOnlyMutableValues(a){a=(0,module$exports$jspb$internal_array_state.getArrayState)(a);return!!(a&module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES)} function module$contents$jspb$internal_array_state_markOnlyMutableValues(a,b){b?(0,module$exports$jspb$internal_array_state.addArrayStateFlags)(a,module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES):(0,module$exports$jspb$internal_array_state.clearFlags)(a,module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES);return a} function module$contents$jspb$internal_array_state_isImmutableJsRepeatedFieldCoercedFromWire(a){a=(0,module$exports$jspb$internal_array_state.getArrayState)(a);return!!(a&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_JS_REPEATED_FIELD_COERCED_FROM_WIRE)} function module$contents$jspb$internal_array_state_markImmutableJsRepeatedFieldCoercedFromWire(a){(0,module$exports$jspb$internal_array_state.addArrayStateFlags)(a,module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_JS_REPEATED_FIELD_COERCED_FROM_WIRE);return a} function module$contents$jspb$internal_array_state_copyArrayBitsForClone(a,b){(0,module$exports$jspb$internal_array_state.setArrayState)(b,(a|0)&~(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY|module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED|module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED|module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES|module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_IMMUTABLE_VALUES_IF_OWNED| module$exports$jspb$internal_array_state.ArrayStateFlags.TRANSFERRED|module$exports$jspb$internal_array_state.ArrayStateFlags.FROZEN_ARRAY|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED|module$exports$jspb$internal_array_state.ArrayStateFlags.STRING_FORMATTED|module$exports$jspb$internal_array_state.ArrayStateFlags.GBIGINT_FORMATTED|module$exports$jspb$internal_array_state.ArrayStateFlags.DESERIALIZED_FROM_BINARY))} function module$contents$jspb$internal_array_state_copyArrayBitsAndMaybeFreezeForCloneImmutable(a,b){(0,module$exports$jspb$internal_array_state.setArrayState)(b,(a|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY|module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED)&~(module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED|module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES|module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_IMMUTABLE_VALUES_IF_OWNED| module$exports$jspb$internal_array_state.ArrayStateFlags.TRANSFERRED|module$exports$jspb$internal_array_state.ArrayStateFlags.FROZEN_ARRAY|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED|module$exports$jspb$internal_array_state.ArrayStateFlags.STRING_FORMATTED|module$exports$jspb$internal_array_state.ArrayStateFlags.GBIGINT_FORMATTED|module$exports$jspb$internal_array_state.ArrayStateFlags.DESERIALIZED_FROM_BINARY))} function module$contents$jspb$internal_array_state_markArrayTransferred(a){(0,module$exports$jspb$internal_array_state.addArrayStateFlags)(a,module$exports$jspb$internal_array_state.ArrayStateFlags.TRANSFERRED)}module$exports$jspb$internal_array_state.NO_PIVOT=536870912; function module$contents$jspb$internal_array_state_setPivot(a,b){goog.asserts.assertNumber(b);goog.asserts.assert(b>0&&b<=module$contents$jspb$internal_array_state_PIVOT_MASK||module$exports$jspb$internal_array_state.NO_PIVOT===b);return a&~(module$contents$jspb$internal_array_state_PIVOT_MASK<<15)|(b&module$contents$jspb$internal_array_state_PIVOT_MASK)<<15} function module$contents$jspb$internal_array_state_getPivot(a){return a>>15&module$contents$jspb$internal_array_state_PIVOT_MASK||module$exports$jspb$internal_array_state.NO_PIVOT}function module$contents$jspb$internal_array_state_getArrayIndexOffset(a){return+!!(a&module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_MESSAGE_ID)-1}module$exports$jspb$internal_array_state.getArrayIndexOffset=module$contents$jspb$internal_array_state_getArrayIndexOffset; module$exports$jspb$internal_array_state.getPivot=module$contents$jspb$internal_array_state_getPivot;module$exports$jspb$internal_array_state.setPivot=module$contents$jspb$internal_array_state_setPivot;module$exports$jspb$internal_array_state.getPossiblyUnconstructedMessageArrayState=module$contents$jspb$internal_array_state_getPossiblyUnconstructedMessageArrayState;module$exports$jspb$internal_array_state.checkMessageStateInvariants=module$contents$jspb$internal_array_state_checkMessageStateInvariants; module$exports$jspb$internal_array_state.areMutableReferencesOwned=module$contents$jspb$internal_array_state_areMutableReferencesOwned;module$exports$jspb$internal_array_state.clearFlagBit=module$contents$jspb$internal_array_state_clearFlagBit;module$exports$jspb$internal_array_state.clearTypeSpecificFormattedFlagBits=module$contents$jspb$internal_array_state_clearTypeSpecificFormattedFlagBits;module$exports$jspb$internal_array_state.copyArrayBitsAndMaybeFreezeForCloneImmutable=module$contents$jspb$internal_array_state_copyArrayBitsAndMaybeFreezeForCloneImmutable; module$exports$jspb$internal_array_state.copyArrayBitsForClone=module$contents$jspb$internal_array_state_copyArrayBitsForClone;module$exports$jspb$internal_array_state.addFlagsOnPossiblyFrozenArray=module$contents$jspb$internal_array_state_addFlagsOnPossiblyFrozenArray;module$exports$jspb$internal_array_state.getTypeSpecificApiFormat=module$contents$jspb$internal_array_state_getTypeSpecificApiFormat;module$exports$jspb$internal_array_state.hasFlagBit=module$contents$jspb$internal_array_state_hasFlagBit; module$exports$jspb$internal_array_state.hasOnlyMutableValues=module$contents$jspb$internal_array_state_hasOnlyMutableValues;module$exports$jspb$internal_array_state.isApiFormattedField=module$contents$jspb$internal_array_state_isApiFormattedField;module$exports$jspb$internal_array_state.isConstructed=module$contents$jspb$internal_array_state_isConstructed;module$exports$jspb$internal_array_state.isImmutableArray=module$contents$jspb$internal_array_state_isImmutableArray; module$exports$jspb$internal_array_state.isRepeatedField=module$contents$jspb$internal_array_state_isRepeatedField;module$exports$jspb$internal_array_state.isImmutableJsRepeatedFieldCoercedFromWire=module$contents$jspb$internal_array_state_isImmutableJsRepeatedFieldCoercedFromWire;module$exports$jspb$internal_array_state.markApiFormattedField=module$contents$jspb$internal_array_state_markApiFormattedField;module$exports$jspb$internal_array_state.markArrayImmutable=module$contents$jspb$internal_array_state_markArrayImmutable; module$exports$jspb$internal_array_state.markArrayTransferred=module$contents$jspb$internal_array_state_markArrayTransferred;module$exports$jspb$internal_array_state.markConstructed=module$contents$jspb$internal_array_state_markConstructed;module$exports$jspb$internal_array_state.markMutableReferencesAreOwned=module$contents$jspb$internal_array_state_markMutableReferencesAreOwned;module$exports$jspb$internal_array_state.markOnlyMutableValues=module$contents$jspb$internal_array_state_markOnlyMutableValues; module$exports$jspb$internal_array_state.markRepeatedField=module$contents$jspb$internal_array_state_markRepeatedField;module$exports$jspb$internal_array_state.markImmutableJsRepeatedFieldCoercedFromWire=module$contents$jspb$internal_array_state_markImmutableJsRepeatedFieldCoercedFromWire;module$exports$jspb$internal_array_state.markShared=module$contents$jspb$internal_array_state_markShared;module$exports$jspb$internal_array_state.setFlagBit=module$contents$jspb$internal_array_state_setFlagBit; module$exports$jspb$internal_array_state.setFlagBitTo=module$contents$jspb$internal_array_state_setFlagBitTo;module$exports$jspb$internal_array_state.setStateOnPossiblyFrozenArray=module$contents$jspb$internal_array_state_setStateOnPossiblyFrozenArray;var module$exports$jspb$internal={InternalMessage:function(){}};module$exports$jspb$internal.InternalMessage.prototype.isImmutable=function(){};module$exports$jspb$internal.InternalMessage.prototype.toStructuredCloneableValue=function(){};module$exports$jspb$internal.InternalMessage.prototype.getJsPbMessageId=function(){};module$exports$jspb$internal.InternalMessage.prototype.getExtension=function(){};module$exports$jspb$internal.InternalMessage.prototype.hasExtension=function(){}; function module$contents$jspb$internal_getInternalArray(a){(0,goog.asserts.assert)(a.messagePrototypeMarker===module$exports$jspb$internal.MESSAGE_PROTOTYPE_MARKER_VALUE);return a.internalArrayDoNotAccessOrElse} function module$contents$jspb$internal_setInternalArray(a,b){(0,goog.asserts.assert)(a.messagePrototypeMarker===module$exports$jspb$internal.MESSAGE_PROTOTYPE_MARKER_VALUE);(0,goog.asserts.assertArray)(b);(0,goog.asserts.assert)(a.internalArrayDoNotAccessOrElse==null);a.internalArrayDoNotAccessOrElse=b}module$exports$jspb$internal.InternalImmutableMessage=function(){};module$exports$jspb$internal.InternalImmutableMessage.prototype.toMutable=function(){}; module$exports$jspb$internal.InternalExtensionFieldInfo=function(){};var module$contents$jspb$internal_messageCtor;function module$contents$jspb$internal_setMessageCtorInDebug(a){goog.DEBUG&&(module$contents$jspb$internal_messageCtor=a)}module$exports$jspb$internal.MESSAGE_PROTOTYPE_MARKER_VALUE={}; function module$contents$jspb$internal_isMessage(a){var b=a.messagePrototypeMarker===module$exports$jspb$internal.MESSAGE_PROTOTYPE_MARKER_VALUE;(0,goog.asserts.assert)(!module$contents$jspb$internal_messageCtor||b===a instanceof module$contents$jspb$internal_messageCtor);return b}module$exports$jspb$internal.ANY_PROTOTYPE_MARKER_VALUE={}; function module$contents$jspb$internal_isAny(a){a=a.jspbInternalDoNotUseAnyMarker;return typeof a==="function"?a()===module$exports$jspb$internal.ANY_PROTOTYPE_MARKER_VALUE:!1}module$exports$jspb$internal.InternalMap=function(){};module$exports$jspb$internal.SerializeBinaryFnHolder=function(){};module$exports$jspb$internal.MAP_PROTOTYPE_MARKER_VALUE={}; function module$contents$jspb$internal_isMap(a){var b=!(!a||typeof a!=="object"||a.mapPrototypeMarker!==module$exports$jspb$internal.MAP_PROTOTYPE_MARKER_VALUE);(0,goog.asserts.assert)(b===a instanceof Map);return b}function module$contents$jspb$internal_isEmptyMap(a){return module$contents$jspb$internal_isMap(a)&&(0,goog.asserts.assertInstanceof)(a,Map).size===0} function module$contents$jspb$internal_indexFromFieldNumber(a,b){(0,goog.asserts.assertNumber)(a);(0,goog.asserts.assert)(a>0);(0,goog.asserts.assert)(b===0||b===-1);return a+b}function module$contents$jspb$internal_fieldNumberFromIndex(a,b){(0,goog.asserts.assertNumber)(a);(0,goog.asserts.assert)(a>=0);(0,goog.asserts.assert)(b===0||b===-1);return a-b} function module$contents$jspb$internal_isImmutableMessage(a){return module$contents$jspb$internal_array_state_isImmutableArray(module$contents$jspb$internal_getInternalArray(a))}function module$contents$jspb$internal_internalMarkMessageImmutable(a){module$contents$jspb$internal_array_state_markArrayImmutable(module$contents$jspb$internal_getInternalArray(a))}function module$contents$jspb$internal_isSparseObject(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object} function module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(a,b){return goog.TRUSTED_SITE||Object.prototype.hasOwnProperty.call(a,b)}function module$contents$jspb$internal_newRepeatedField(){return module$contents$jspb$internal_array_state_markRepeatedField([])}module$exports$jspb$internal.EXEMPTED_SUBCLASS_MARKER=module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS?Symbol(goog.DEBUG?"exempted jspb subclass":void 0):void 0; module$exports$jspb$internal.GENERATED_SUBCLASS_MARKER=module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS?Symbol(goog.DEBUG?"generated by jspb":void 0):void 0;function module$contents$jspb$internal_bytesAsU8(a){return module$contents$jspb$internal_bytes_dataAsU8(module$contents$jspb$internal_maybeUnsafeUnwrapByteString(a))} function module$contents$jspb$internal_invalidBytes(a){throw goog.DEBUG?Error("cannot coerce "+a+" to a ByteString, expected a uint8Array, a base64 encoded string or a ByteString"):Error();} function module$contents$jspb$internal_bytesAsByteString(a,b,c,d){return a==null?c?a:module$contents$jspb$internal_invalidBytes(a):typeof a==="string"?module$exports$jspb$bytestring.ByteString.fromBase64(a):a.constructor===module$exports$jspb$bytestring.ByteString?a:module$contents$jspb$internal_bytes_isU8(a)?a.length?new module$exports$jspb$bytestring.ByteString(d?a:new Uint8Array(a),module$exports$jspb$internal_bytes.I_AM_INTERNAL):module$exports$jspb$bytestring.ByteString.empty():b?void 0:module$contents$jspb$internal_invalidBytes(a)} function module$contents$jspb$internal_maybeUnsafeUnwrapByteString(a){a instanceof module$exports$jspb$bytestring.ByteString&&((0,goog.asserts.assertInstanceof)(a,module$exports$jspb$bytestring.ByteString),a=a.internalUnwrap(module$exports$jspb$internal_bytes.I_AM_INTERNAL));return a}function module$contents$jspb$internal_isRepeatedFieldInSet(a,b){return!!a&&(Array.isArray(a)?a.includes(b):a.has(b))} function module$contents$jspb$internal_isEmptyRepeatedField(a,b,c){if(!Array.isArray(a)||a.length)return!1;var d=(0,module$exports$jspb$internal_array_state.getArrayState)(a);if(d&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD)return!0;if(!module$contents$jspb$internal_isRepeatedFieldInSet(b,c))return!1;(0,module$exports$jspb$internal_array_state.setArrayState)(a,d|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD);return!0} var JSCompiler_inline_result$jscomp$669,array$jscomp$inline_759=[];(0,module$exports$jspb$internal_array_state.setArrayState)(array$jscomp$inline_759,module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED|module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED|module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_IMMUTABLE_VALUES_IF_OWNED); JSCompiler_inline_result$jscomp$669=Object.freeze(array$jscomp$inline_759);module$exports$jspb$internal.EMPTY_LIST_SENTINEL=JSCompiler_inline_result$jscomp$669;function module$contents$jspb$internal_checkNotImmutable(a){module$contents$jspb$internal_checkNotImmutableState((0,module$exports$jspb$internal_array_state.getMessageArrayState)(module$contents$jspb$internal_getInternalArray(a)))} function module$contents$jspb$internal_checkNotImmutableState(a){if(a&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY){if(goog.DEBUG)throw Error("Cannot mutate an immutable Message");throw Error();}}function module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,b){if(typeof b!=="number"||b<0||b>=a.length){if(goog.DEBUG)throw Error("Index "+b+" out of range for field of length "+a.length+".");throw Error();}} function module$contents$jspb$internal_checkRepeatedIndexInRangeForSet(a,b){if(typeof b!=="number"||b<0||b>a.length){if(goog.DEBUG)throw Error("Index "+b+" out of range for field of length "+a.length+".");throw Error();}}module$exports$jspb$internal.SUPPORTS_HAS_INSTANCE=goog.FEATURESET_YEAR>=2018||typeof Symbol!="undefined"&&typeof Symbol.hasInstance!="undefined";function module$contents$jspb$internal_invisiblePropValue(a){return{value:a,configurable:!1,writable:!1,enumerable:!1}} function module$contents$jspb$internal_disallowPassingToStructuredClone(a){goog.DEBUG&&(a.preventPassingToStructuredClone=module$contents$jspb$internal_dontPassJspbTypeToStructuredClone)}function module$contents$jspb$internal_dontPassJspbTypeToStructuredClone(){}var module$contents$jspb$internal_ArrayIteratorIterable=function(a,b,c){this.idx_=0;this.arr_=a;this.mapper=b;this.thisArg=c}; module$contents$jspb$internal_ArrayIteratorIterable.prototype.next=function(){if(this.idx_<this.arr_.length){var a=this.arr_[this.idx_++];return{done:!1,value:this.mapper?this.mapper.call(this.thisArg,a):a}}return{done:!0,value:void 0}};module$contents$jspb$internal_ArrayIteratorIterable.prototype[Symbol.iterator]=function(){return new module$contents$jspb$internal_ArrayIteratorIterable(this.arr_,this.mapper,this.thisArg)}; function module$contents$jspb$internal_newArrayIteratorIterable(a){return new module$contents$jspb$internal_ArrayIteratorIterable(a)}function module$contents$jspb$internal_newTransformingIteratorIterable(a,b,c){return new module$contents$jspb$internal_ArrayIteratorIterable(a,b,c)}var module$contents$jspb$internal_unknownBinaryFields; function module$contents$jspb$internal_getUnknownFields(a){return module$contents$jspb$internal_unknownBinaryFields?(0,goog.asserts.assertArray)(a)[module$contents$jspb$internal_unknownBinaryFields]:void 0} function module$contents$jspb$internal_addUnknownField(a,b){(0,goog.asserts.assertArray)(a);if(b){module$contents$jspb$internal_unknownBinaryFields||(module$contents$jspb$internal_unknownBinaryFields=goog.DEBUG?Symbol("unknownBinaryFields"):Symbol());var c=a[module$contents$jspb$internal_unknownBinaryFields];c?c.push(b):a[module$contents$jspb$internal_unknownBinaryFields]=[b]}} function module$contents$jspb$internal_clearUnknownFields(a){(0,goog.asserts.assertArray)(a);module$contents$jspb$internal_unknownBinaryFields&&module$contents$jspb$internal_unknownBinaryFields in a&&(a[module$contents$jspb$internal_unknownBinaryFields]=void 0)} function module$contents$jspb$internal_copyUnknownFields(a,b,c){(0,goog.asserts.assertArray)(a);(0,goog.asserts.assertArray)(b);(b=module$contents$jspb$internal_getUnknownFields(b))?a[module$contents$jspb$internal_unknownBinaryFields]=module$contents$jspb$internal_operations_slice(b):c&&module$contents$jspb$internal_clearUnknownFields(a)}module$exports$jspb$internal.ComparisonTypeInfo=function(){};module$exports$jspb$internal.ComparisonTypeInfo.prototype.getFieldComparisonTypeInfo=function(){}; module$exports$jspb$internal.ComparisonTypeInfo.prototype.getRepeatedFields=function(){};module$exports$jspb$internal.ComparisonTypeInfo.prototype.getMapFields=function(){};var module$contents$jspb$internal_comparisonTypeInfoSymbol;function module$contents$jspb$internal_getComparisonTypeInfoArraySymbol(){return module$contents$jspb$internal_comparisonTypeInfoSymbol||(module$contents$jspb$internal_comparisonTypeInfoSymbol=goog.DEBUG?Symbol("JSPB_COMPARISON_TYPE_INFO"):Symbol())} function module$contents$jspb$internal_assertArrayInvariants(a,b){if(goog.DEBUG){var c=(0,module$exports$jspb$internal_array_state.getArrayState)((0,goog.asserts.assertArray)(a));b||(b=c&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY&&c&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED||c&module$exports$jspb$internal_array_state.ArrayStateFlags.FROZEN_ARRAY,(0,goog.asserts.assert)(!b||Object.isFrozen(a)));b=!!(c&module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES); c=!!(c&module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_IMMUTABLE_VALUES_IF_OWNED&&c&module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED);if(b||c){var d,e,f;a.forEach(function(g){Array.isArray(g)?f=!0:g&&module$contents$jspb$internal_isMessage(g)&&(module$contents$jspb$internal_isImmutableMessage(g)?e=!0:d=!0)});f&&(0,goog.asserts.assert)(!e&&!d);c&&(0,goog.asserts.assert)(!f&&!d);b&&(0,goog.asserts.assert)(!f&&!e)}module$contents$jspb$internal_assertRepeated64BitIntegerFieldApiFormattingInvariants(a)}} function module$contents$jspb$internal_assertRepeated64BitIntegerFieldApiFormattingInvariants(a){if(module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS){var b=(0,module$exports$jspb$internal_array_state.getArrayState)(a),c=b&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED,d=(module$exports$jspb$internal_array_state.ArrayStateFlags.STRING_FORMATTED&b?1:0)+(module$exports$jspb$internal_array_state.ArrayStateFlags.GBIGINT_FORMATTED&b?1:0); (0,goog.asserts.assert)(c&&d<=1||!c&&d===0,"Expected at most 1 type-specific formatting bit, but got "+d+" with state: "+b);if(module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&(b=(0,module$exports$jspb$internal_array_state.getArrayState)(a),module$exports$jspb$internal_array_state.ArrayStateFlags.STRING_FORMATTED&b))for(b=0;b<a.length;b++)typeof a[b]!=="string"&&(0,goog.asserts.fail)("Unexpected element of type "+typeof a[b]+" in string formatted repeated 64-bit int field")}} module$exports$jspb$internal.DO_NOT_FREEZE__LEGACY_OPTION=Object.freeze({});module$exports$jspb$internal.DESCRIPTOR_TYPE_REFERENCE_INTERNAL_ARG={};var module$contents$jspb$internal_DEBUG_EXTENSIONS=goog.DEBUG?Symbol("debugExtensions"):void 0;function module$contents$jspb$internal_getExtensionRegistryForDebugging(a){return a[module$contents$jspb$internal_DEBUG_EXTENSIONS]} function module$contents$jspb$internal_registerExtensionsForDebugging(a,b){a[module$contents$jspb$internal_DEBUG_EXTENSIONS]=b}function module$contents$jspb$internal_startsWith(a,b){return a.indexOf(b)===0}function module$contents$jspb$internal_endsWith(a,b){return a.lastIndexOf(b)===Math.max(0,a.length-b.length)} function module$contents$jspb$internal_iterateFields(a,b,c){var d=module$contents$jspb$internal_array_state_getArrayIndexOffset(b),e=a.length;b=b===0?!!e&&module$contents$jspb$internal_isSparseObject(a[e-1]):b&module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_SPARSE_OBJECT;var f=e+(b?-1:0);(0,goog.asserts.assert)(!!b===module$contents$jspb$internal_isSparseObject(a[e-1]));for(var g=0;g<f;g++){var h=a[g];c(module$contents$jspb$internal_fieldNumberFromIndex(g,d),h)}if(b){a=a[e-1];for(var k in a)module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(a, k)&&!isNaN(k)&&c(+k,a[k])}}module$exports$jspb$internal.addUnknownField=module$contents$jspb$internal_addUnknownField;module$exports$jspb$internal.assertArrayInvariants=module$contents$jspb$internal_assertArrayInvariants;module$exports$jspb$internal.assertRepeated64BitIntegerFieldApiFormattingInvariants=module$contents$jspb$internal_assertRepeated64BitIntegerFieldApiFormattingInvariants;module$exports$jspb$internal.bytesAsByteString=module$contents$jspb$internal_bytesAsByteString; module$exports$jspb$internal.bytesAsU8=module$contents$jspb$internal_bytesAsU8;module$exports$jspb$internal.checkNotImmutable=module$contents$jspb$internal_checkNotImmutable;module$exports$jspb$internal.checkNotImmutableState=module$contents$jspb$internal_checkNotImmutableState;module$exports$jspb$internal.checkRepeatedIndexInRangeForGet=module$contents$jspb$internal_checkRepeatedIndexInRangeForGet;module$exports$jspb$internal.checkRepeatedIndexInRangeForSet=module$contents$jspb$internal_checkRepeatedIndexInRangeForSet; module$exports$jspb$internal.clearUnknownFields=module$contents$jspb$internal_clearUnknownFields;module$exports$jspb$internal.copyUnknownFields=module$contents$jspb$internal_copyUnknownFields;module$exports$jspb$internal.disallowPassingToStructuredClone=module$contents$jspb$internal_disallowPassingToStructuredClone;module$exports$jspb$internal.endsWith=module$contents$jspb$internal_endsWith;module$exports$jspb$internal.fieldNumberFromIndex=module$contents$jspb$internal_fieldNumberFromIndex; module$exports$jspb$internal.getComparisonTypeInfoArraySymbol=module$contents$jspb$internal_getComparisonTypeInfoArraySymbol;module$exports$jspb$internal.getExtensionRegistryForDebugging=module$contents$jspb$internal_getExtensionRegistryForDebugging;module$exports$jspb$internal.getUnknownFields=module$contents$jspb$internal_getUnknownFields;module$exports$jspb$internal.hasOwnPropertyIfNotTrusted=module$contents$jspb$internal_hasOwnPropertyIfNotTrusted; module$exports$jspb$internal.indexFromFieldNumber=module$contents$jspb$internal_indexFromFieldNumber;module$exports$jspb$internal.internalMarkMessageImmutable=module$contents$jspb$internal_internalMarkMessageImmutable;module$exports$jspb$internal.invisiblePropValue=module$contents$jspb$internal_invisiblePropValue;module$exports$jspb$internal.isAny=module$contents$jspb$internal_isAny;module$exports$jspb$internal.isEmptyMap=module$contents$jspb$internal_isEmptyMap; module$exports$jspb$internal.isEmptyRepeatedField=module$contents$jspb$internal_isEmptyRepeatedField;module$exports$jspb$internal.isImmutableMessage=module$contents$jspb$internal_isImmutableMessage;module$exports$jspb$internal.isMap=module$contents$jspb$internal_isMap;module$exports$jspb$internal.isMessage=module$contents$jspb$internal_isMessage;module$exports$jspb$internal.isRepeatedFieldInSet=module$contents$jspb$internal_isRepeatedFieldInSet;module$exports$jspb$internal.isSparseObject=module$contents$jspb$internal_isSparseObject; module$exports$jspb$internal.iterateFields=module$contents$jspb$internal_iterateFields;module$exports$jspb$internal.maybeUnsafeUnwrapByteString=module$contents$jspb$internal_maybeUnsafeUnwrapByteString;module$exports$jspb$internal.newArrayIteratorIterable=module$contents$jspb$internal_newArrayIteratorIterable;module$exports$jspb$internal.newRepeatedField=module$contents$jspb$internal_newRepeatedField;module$exports$jspb$internal.newTransformingIteratorIterable=module$contents$jspb$internal_newTransformingIteratorIterable; module$exports$jspb$internal.registerExtensionsForDebugging=module$contents$jspb$internal_registerExtensionsForDebugging;module$exports$jspb$internal.setMessageCtorInDebug=module$contents$jspb$internal_setMessageCtorInDebug;module$exports$jspb$internal.startsWith=module$contents$jspb$internal_startsWith;module$exports$jspb$internal.getInternalArray=module$contents$jspb$internal_getInternalArray;module$exports$jspb$internal.setInternalArray=module$contents$jspb$internal_setInternalArray;var module$exports$google3$javascript$apps$jspb$descriptor={DescriptorTypeReference:function(a){module$contents$google3$javascript$apps$jspb$descriptor_assertInternalArg(a)},EnumDescriptorTypeReference:function(a){module$contents$google3$javascript$apps$jspb$descriptor_assertInternalArg(a)}}; function module$contents$google3$javascript$apps$jspb$descriptor_assertInternalArg(a){if(a!==module$exports$jspb$internal.DESCRIPTOR_TYPE_REFERENCE_INTERNAL_ARG)throw goog.DEBUG?Error("do not construct your own descriptors"):Error();};var module$contents$jspb$exceptions_globalThrottles,module$contents$jspb$exceptions_errorHandler;function module$contents$jspb$exceptions_runErrorHandler(a){if(module$contents$jspb$exceptions_errorHandler)try{module$contents$jspb$exceptions_errorHandler(a)}catch(b){throw b.cause=a,b;}} function module$contents$jspb$exceptions_asyncThrowWarning(a){a=goog.DEBUG?Error(a):Error();goog.debug.errorcontext.addErrorContext(a,"severity","incident");module$contents$jspb$exceptions_errorHandler?module$contents$jspb$exceptions_runErrorHandler(a):module$contents$goog$async$throwException_throwException(a)} function module$contents$jspb$exceptions_makeTypeError(a){a=Error(a);goog.debug.errorcontext.addErrorContext(a,"severity","warning");module$contents$jspb$exceptions_runErrorHandler(a);return a} function module$contents$jspb$exceptions_throttledAsyncThrowWarning(a,b,c,d){if(b!=null){if(a==null){var e;a=(e=module$contents$jspb$exceptions_globalThrottles)!=null?e:module$contents$jspb$exceptions_globalThrottles={}}else a=a.constructor;e=a[b]||0;e>=c||(a[b]=e+1,module$contents$jspb$exceptions_asyncThrowWarning(d))}};function module$contents$jspb$internal_accessor_helpers_checkFloatingPoint(a){if(typeof a!=="number")throw Error("Value of float/double field must be a number, found "+typeof a+": "+a);return a}function module$contents$jspb$internal_accessor_helpers_coerceToNullishFloatingPoint(a){if(a==null||typeof a==="number")return a;if(a==="NaN"||a==="Infinity"||a==="-Infinity")return Number(a)} function module$contents$jspb$internal_accessor_helpers_ctorName(a){return a.displayName||a.name||"unknown type name"}function module$contents$jspb$internal_accessor_helpers_checkBoolean(a){if(typeof a!=="boolean")throw Error("Expected boolean but got "+goog.typeOf(a)+": "+a);return a}function module$contents$jspb$internal_accessor_helpers_coerceToNullishBoolean(a){if(a==null||typeof a==="boolean")return a;if(typeof a==="number")return!!a} var module$contents$jspb$internal_accessor_helpers_NUMBER_SHAPED_CHECK=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;function module$contents$jspb$internal_accessor_helpers_isNumberShaped(a,b){var c=typeof a;switch(c){case "bigint":return!0;case "number":return Number.isFinite(a)}return c!=="string"?!1:b||module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange?module$contents$jspb$internal_accessor_helpers_NUMBER_SHAPED_CHECK.test(a):!!a&&isFinite(a)} function module$contents$jspb$internal_accessor_helpers_getEnumErrorMessage(a){return goog.DEBUG?"Expected enum as finite number but got "+goog.typeOf(a)+": "+a:"enum"} function module$contents$jspb$internal_accessor_helpers_checkEnum(a){if(!Number.isFinite(a))switch(module$contents$jspb$internal_options_typeCheckEnumFields){case module$exports$jspb$internal_options.CheckLevel.THROW:throw module$contents$jspb$exceptions_makeTypeError(module$contents$jspb$internal_accessor_helpers_getEnumErrorMessage(a));case module$exports$jspb$internal_options.CheckLevel.ASYNC_THROW:module$contents$jspb$exceptions_asyncThrowWarning(module$contents$jspb$internal_accessor_helpers_getEnumErrorMessage(a))}return module$contents$jspb$internal_options_typeCheckEnumFields=== module$exports$jspb$internal_options.CheckLevel.THROW?a|0:a}function module$contents$jspb$internal_accessor_helpers_coerceToNullishEnum(a){return a==null?a:module$contents$jspb$internal_options_typeCheckEnumFields===module$exports$jspb$internal_options.CheckLevel.THROW?Number.isFinite(a)?a|0:void 0:a}function module$contents$jspb$internal_accessor_helpers_getInt32ErrorMessage(a){return goog.DEBUG?"Expected int32 as finite number but got "+goog.typeOf(a)+": "+a:"int32"} function module$contents$jspb$internal_accessor_helpers_checkInt32(a){if(typeof a!=="number")throw module$contents$jspb$exceptions_makeTypeError(module$contents$jspb$internal_accessor_helpers_getInt32ErrorMessage(a));if(!Number.isFinite(a))switch(module$contents$jspb$internal_options_typeCheck32BitIntFields){case module$exports$jspb$internal_options.CheckLevel.THROW:throw module$contents$jspb$exceptions_makeTypeError(module$contents$jspb$internal_accessor_helpers_getInt32ErrorMessage(a));case module$exports$jspb$internal_options.CheckLevel.ASYNC_THROW:module$contents$jspb$exceptions_asyncThrowWarning(module$contents$jspb$internal_accessor_helpers_getInt32ErrorMessage(a))}return module$contents$jspb$internal_options_typeCheck32BitIntFields=== module$exports$jspb$internal_options.CheckLevel.THROW?a|0:a}function module$contents$jspb$internal_accessor_helpers_coerceToNullishInt32(a){if(a==null)return a;if(typeof a==="string"){if(!a)return;a=+a}if(typeof a==="number")return module$contents$jspb$internal_options_typeCheck32BitIntFields===module$exports$jspb$internal_options.CheckLevel.THROW?Number.isFinite(a)?a|0:void 0:a} function module$contents$jspb$internal_accessor_helpers_getUint32ErrorMessage(a){return goog.DEBUG?"Expected uint32 as finite number but got "+goog.typeOf(a)+": "+a:"uint32"} function module$contents$jspb$internal_accessor_helpers_checkUint32(a){if(typeof a!=="number")throw module$contents$jspb$exceptions_makeTypeError(module$contents$jspb$internal_accessor_helpers_getUint32ErrorMessage(a));if(!Number.isFinite(a))switch(module$contents$jspb$internal_options_typeCheck32BitIntFields){case module$exports$jspb$internal_options.CheckLevel.THROW:throw module$contents$jspb$exceptions_makeTypeError(module$contents$jspb$internal_accessor_helpers_getUint32ErrorMessage(a));case module$exports$jspb$internal_options.CheckLevel.ASYNC_THROW:module$contents$jspb$exceptions_asyncThrowWarning(module$contents$jspb$internal_accessor_helpers_getUint32ErrorMessage(a))}return module$contents$jspb$internal_options_typeCheck32BitIntFields=== module$exports$jspb$internal_options.CheckLevel.THROW?a>>>0:a}function module$contents$jspb$internal_accessor_helpers_coerceToNullishUint32(a){if(a==null)return a;if(typeof a==="string"){if(!a)return;a=+a}if(typeof a==="number")return module$contents$jspb$internal_options_typeCheck32BitIntFields===module$exports$jspb$internal_options.CheckLevel.THROW?Number.isFinite(a)?a>>>0:void 0:a} function module$contents$jspb$internal_accessor_helpers_checkInt64(a,b){b=b===void 0?module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY:b;var c=b!==module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY;if(!c&&!module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange)return a;if(!module$contents$jspb$internal_accessor_helpers_isNumberShaped(a,c))throw a=goog.DEBUG?"Expected an int64 value encoded as a number or a string but got "+goog.typeOf(a)+": "+ a:"int64",module$contents$jspb$exceptions_makeTypeError(a);c=typeof a;switch(b){case module$exports$jspb$internal_array_state.TypeSpecificApiFormat.STRING:switch(c){case "string":return module$contents$jspb$internal_accessor_helpers_convertStringToInt64String(a,!0);case "bigint":return String(BigInt.asIntN(64,a));default:return module$contents$jspb$internal_accessor_helpers_convertNumberToInt64String(module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isNumber), !0)}case module$exports$jspb$internal_array_state.TypeSpecificApiFormat.GBIGINT:switch(c){case "string":return module$contents$jspb$internal_accessor_helpers_convertStringToInt64Gbigint(a);case "bigint":return module$contents$jspb$internal_accessor_helpers_convertBigintToInt64Gbigint(a);default:return module$contents$jspb$internal_accessor_helpers_convertNumberToInt64Gbigint(module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isNumber))}case module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY:switch(c){case "string":return module$contents$jspb$internal_accessor_helpers_convertStringToInt64String(a, !1);case "bigint":return module$contents$jspb$internal_accessor_helpers_convertBigintToInt64Gbigint(a);default:return module$contents$jspb$internal_accessor_helpers_convertNumberToInt64Number(module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isNumber),!1)}default:return module$contents$google3$javascript$typescript$contrib$check_checkExhaustiveAllowing(b,"Unknown format requested type for int64")}} function module$contents$jspb$internal_accessor_helpers_checkNullishInt64(a,b){b=b===void 0?module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY:b;return a==null?a:module$contents$jspb$internal_accessor_helpers_checkInt64(a,b)}function module$contents$jspb$internal_accessor_helpers_onFastPathToTruncateUint64RangeString(a){return a[0]==="-"?!1:a.length<20?!0:a.length===20&&Number(a.substring(0,6))<184467} function module$contents$jspb$internal_accessor_helpers_onFastPathToTruncateInt64RangeString(a){return a[0]==="-"?a.length<20?!0:a.length===20&&Number(a.substring(0,7))>-922337:a.length<19?!0:a.length===19&&Number(a.substring(0,6))<922337} function module$contents$jspb$internal_accessor_helpers_truncateNumberToUint64RangeNumber(a){goog.asserts.assert(a<0||!(0<a&&a<Number.MAX_SAFE_INTEGER));goog.asserts.assert(Number.isInteger(a));if(a<0){module$contents$jspb$utils_splitInt64(a);var b=module$contents$jspb$utils_joinUnsignedDecimalString(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High);a=Number(b);return Number.isSafeInteger(a)?a:b}b=String(a);if(module$contents$jspb$internal_accessor_helpers_onFastPathToTruncateUint64RangeString(b))return b; module$contents$jspb$utils_splitInt64(a);return module$contents$jspb$utils_joinUint64(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High)} function module$contents$jspb$internal_accessor_helpers_truncateStringToInt64RangeString(a){goog.asserts.assert(a.indexOf(".")===-1);if(module$contents$jspb$internal_accessor_helpers_onFastPathToTruncateInt64RangeString(a))return a;module$contents$jspb$utils_splitDecimalString(a);return module$contents$jspb$utils_joinSignedDecimalString(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High)} function module$contents$jspb$internal_accessor_helpers_truncateStringToUint64RangeString(a){goog.asserts.assert(a.indexOf(".")===-1);if(module$contents$jspb$internal_accessor_helpers_onFastPathToTruncateUint64RangeString(a))return a;module$contents$jspb$utils_splitDecimalString(a);return module$contents$jspb$utils_joinUnsignedDecimalString(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High)} function module$contents$jspb$internal_accessor_helpers_convertNumberToInt64Number(a,b){goog.asserts.assert(module$contents$jspb$internal_accessor_helpers_isNumberShaped(a,b));goog.asserts.assert(b||module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange);a=Math.trunc(a);if(!b&&!module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange||Number.isSafeInteger(a))return a;goog.asserts.assert(!Number.isSafeInteger(a));goog.asserts.assert(Number.isInteger(a));module$contents$jspb$utils_splitInt64(a); return a=module$contents$jspb$utils_joinInt64(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High)} function module$contents$jspb$internal_accessor_helpers_convertNumberToUint64Number(a,b){goog.asserts.assert(module$contents$jspb$internal_accessor_helpers_isNumberShaped(a,b));goog.asserts.assert(b||module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange);a=Math.trunc(a);return!b&&!module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange||a>=0&&Number.isSafeInteger(a)?a:module$contents$jspb$internal_accessor_helpers_truncateNumberToUint64RangeNumber(a)} function module$contents$jspb$internal_accessor_helpers_convertNumberToInt64String(a,b){goog.asserts.assert(module$contents$jspb$internal_accessor_helpers_isNumberShaped(a,b));goog.asserts.assert(b||module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange);a=Math.trunc(a);if(!b&&!module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange||Number.isSafeInteger(a))return String(a);goog.asserts.assert(!Number.isSafeInteger(a));goog.asserts.assert(Number.isInteger(a));b=String(a); module$contents$jspb$internal_accessor_helpers_onFastPathToTruncateInt64RangeString(b)?a=b:(module$contents$jspb$utils_splitInt64(a),a=module$contents$jspb$utils_joinSignedDecimalString(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High));return a} function module$contents$jspb$internal_accessor_helpers_convertNumberToUint64String(a,b){goog.asserts.assert(module$contents$jspb$internal_accessor_helpers_isNumberShaped(a,b));goog.asserts.assert(b||module$contents$jspb$internal_options_typeCheck64BitIntFields);a=Math.trunc(a);if(!b&&!module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange||a>=0&&Number.isSafeInteger(a))return String(a);goog.asserts.assert(a<0||!(0<a&&a<Number.MAX_SAFE_INTEGER));goog.asserts.assert(Number.isInteger(a)); b=String(a);module$contents$jspb$internal_accessor_helpers_onFastPathToTruncateUint64RangeString(b)?a=b:(module$contents$jspb$utils_splitInt64(a),a=module$contents$jspb$utils_joinUnsignedDecimalString(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High));return a} function module$contents$jspb$internal_accessor_helpers_convertStringToInt64String(a,b){goog.asserts.assert(module$contents$jspb$internal_accessor_helpers_isNumberShaped(a,b));goog.asserts.assert(b||module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange);var c=Math.trunc(Number(a));if(Number.isSafeInteger(c))return String(c);c=a.indexOf(".");c!==-1&&(a=a.substring(0,c));return b||module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange?module$contents$jspb$internal_accessor_helpers_truncateStringToInt64RangeString(a): a} function module$contents$jspb$internal_accessor_helpers_convertStringToInt64Gbigint(a){var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return module$contents$google3$javascript$common$bigint$index_toGbigint(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return module$contents$jspb$internal_options_isBigIntAvailable()?module$contents$jspb$internal_accessor_helpers_convertBigintToInt64Gbigint(BigInt(a)):module$contents$google3$javascript$common$bigint$index_toGbigint(module$contents$jspb$internal_accessor_helpers_truncateStringToInt64RangeString(a))} function module$contents$jspb$internal_accessor_helpers_convertNumberToInt64Gbigint(a){return Number.isSafeInteger(a)?module$contents$google3$javascript$common$bigint$index_toGbigint(module$contents$jspb$internal_accessor_helpers_convertNumberToInt64Number(a,!0)):module$contents$google3$javascript$common$bigint$index_toGbigint(module$contents$jspb$internal_accessor_helpers_convertNumberToInt64String(a,!0))} function module$contents$jspb$internal_accessor_helpers_convertNumberToUint64Gbigint(a){return Number.isSafeInteger(a)?module$contents$google3$javascript$common$bigint$index_toGbigint(module$contents$jspb$internal_accessor_helpers_convertNumberToUint64Number(a,!0)):module$contents$google3$javascript$common$bigint$index_toGbigint(module$contents$jspb$internal_accessor_helpers_convertNumberToUint64String(a,!0))} function module$contents$jspb$internal_accessor_helpers_convertStringToUint64String(a,b){goog.asserts.assert(module$contents$jspb$internal_accessor_helpers_isNumberShaped(a,b));goog.asserts.assert(b||module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange);var c=Math.trunc(Number(a));if(Number.isSafeInteger(c)&&(!b&&!module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange||c>=0))return String(c);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return module$contents$jspb$internal_accessor_helpers_truncateStringToUint64RangeString(a)} function module$contents$jspb$internal_accessor_helpers_convertStringToUint64Gbigint(a){var b=Math.trunc(Number(a));if(Number.isSafeInteger(b)&&b>=0)return module$contents$google3$javascript$common$bigint$index_toGbigint(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return module$contents$jspb$internal_options_isBigIntAvailable()?module$contents$jspb$internal_accessor_helpers_convertBigintToUint64Gbigint(BigInt(a)):module$contents$google3$javascript$common$bigint$index_toGbigint(module$contents$jspb$internal_accessor_helpers_truncateStringToUint64RangeString(a))} function module$contents$jspb$internal_accessor_helpers_convertBigintToInt64Gbigint(a){goog.asserts.assert(typeof a==="bigint");return module$contents$google3$javascript$common$bigint$index_toGbigint(BigInt.asIntN(64,a))}function module$contents$jspb$internal_accessor_helpers_convertBigintToUint64Gbigint(a){goog.asserts.assert(typeof a==="bigint");return module$contents$google3$javascript$common$bigint$index_toGbigint(BigInt.asUintN(64,a))} function module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64(a){if(a==null)return a;if(typeof a==="bigint")return(0,module$exports$google3$javascript$common$bigint$index.isSafeInt52)(a)?a=Number(a):(a=BigInt.asIntN(64,a),a=(0,module$exports$google3$javascript$common$bigint$index.isSafeInt52)(a)?Number(a):String(a)),a;if(!module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange)return a;if(module$contents$jspb$internal_accessor_helpers_isNumberShaped(a,!1)){if(typeof a=== "number")return module$contents$jspb$internal_accessor_helpers_convertNumberToInt64Number(a,!1);a=module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isString);if(module$contents$jspb$internal_options_typeCheck64BitIntFields){goog.asserts.assert(module$contents$jspb$internal_accessor_helpers_isNumberShaped(a,!1));goog.asserts.assert(module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange);goog.asserts.assert(module$contents$jspb$internal_options_typeCheck64BitIntFields); var b=Number(a);b=Math.trunc(b);Number.isSafeInteger(b)?a=b:(a=module$contents$jspb$internal_accessor_helpers_convertStringToInt64String(a,!1),b=Number(a),a=Number.isSafeInteger(b)?b:a);return a}return module$contents$jspb$internal_accessor_helpers_convertStringToInt64String(a,!1)}} function module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64String(a,b){b=b===void 0?!1:b;var c=typeof a;if(a==null)return a;if(c==="bigint")return String(BigInt.asIntN(64,a));if(!b&&!module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange)return a;if(module$contents$jspb$internal_accessor_helpers_isNumberShaped(a,b)){if(c==="string")return module$contents$jspb$internal_accessor_helpers_convertStringToInt64String(a,b);a=module$contents$google3$javascript$common$asserts$asserts_cast(a, module$exports$google3$javascript$common$asserts$guards.isNumber);return b||module$contents$jspb$internal_options_typeCheck64BitIntFields?module$contents$jspb$internal_accessor_helpers_convertNumberToInt64String(a,b):module$contents$jspb$internal_accessor_helpers_convertNumberToInt64Number(a,b)}} function module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64Gbigint(a){var b=typeof a;if(a==null)return a;if(b==="bigint")return module$contents$jspb$internal_accessor_helpers_convertBigintToInt64Gbigint(a);if(module$contents$jspb$internal_accessor_helpers_isNumberShaped(a,!0)){if(b==="string")return module$contents$jspb$internal_accessor_helpers_convertStringToInt64Gbigint(a);a=module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isNumber); return module$contents$jspb$internal_accessor_helpers_convertNumberToInt64Gbigint(a)}} function module$contents$jspb$internal_accessor_helpers_checkUint64(a,b){b=b===void 0?module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY:b;var c=b!==module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY;if(!c&&!module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange)return a;if(!module$contents$jspb$internal_accessor_helpers_isNumberShaped(a,c))throw a=goog.DEBUG?"Expected an uint64 value encoded as a number or a string but got "+goog.typeOf(a)+": "+ a:"uint64",module$contents$jspb$exceptions_makeTypeError(a);c=typeof a;switch(b){case module$exports$jspb$internal_array_state.TypeSpecificApiFormat.STRING:switch(c){case "string":return module$contents$jspb$internal_accessor_helpers_convertStringToUint64String(a,!0);case "bigint":return String(BigInt.asUintN(64,a));default:return module$contents$jspb$internal_accessor_helpers_convertNumberToUint64String(module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isNumber), !0)}case module$exports$jspb$internal_array_state.TypeSpecificApiFormat.GBIGINT:switch(c){case "string":return module$contents$jspb$internal_accessor_helpers_convertStringToUint64Gbigint(a);case "bigint":return module$contents$jspb$internal_accessor_helpers_convertBigintToUint64Gbigint(a);default:return module$contents$jspb$internal_accessor_helpers_convertNumberToUint64Gbigint(module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isNumber))}case module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY:switch(c){case "string":return module$contents$jspb$internal_accessor_helpers_convertStringToUint64String(a, !1);case "bigint":return module$contents$jspb$internal_accessor_helpers_convertBigintToUint64Gbigint(a);default:return module$contents$jspb$internal_accessor_helpers_convertNumberToUint64Number(module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isNumber),!1)}default:return module$contents$google3$javascript$typescript$contrib$check_checkExhaustiveAllowing(b,"Unknown format requested type for int64")}} function module$contents$jspb$internal_accessor_helpers_checkNullishUint64(a,b){b=b===void 0?module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY:b;return a==null?a:module$contents$jspb$internal_accessor_helpers_checkUint64(a,b)} function module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64(a){if(a==null)return a;if(typeof a==="bigint")return a>=0&&(0,module$exports$google3$javascript$common$bigint$index.isSafeInt52)(a)?a=Number(a):(a=BigInt.asUintN(64,a),a=(0,module$exports$google3$javascript$common$bigint$index.isSafeInt52)(a)?Number(a):String(a)),a;if(!module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange)return a;if(module$contents$jspb$internal_accessor_helpers_isNumberShaped(a,!1)){if(typeof a=== "number")return module$contents$jspb$internal_accessor_helpers_convertNumberToUint64Number(a,!1);a=module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isString);if(module$contents$jspb$internal_options_typeCheck64BitIntFields){goog.asserts.assert(module$contents$jspb$internal_accessor_helpers_isNumberShaped(a,!1));goog.asserts.assert(module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange);goog.asserts.assert(module$contents$jspb$internal_options_typeCheck64BitIntFields); var b=Number(a);b=Math.trunc(b);module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange?0<=b&&b<=Number.MAX_SAFE_INTEGER?a=b:(a=module$contents$jspb$internal_accessor_helpers_convertStringToUint64String(a,!1),b=Number(a),a=Number.isSafeInteger(b)?b:a):a=Number.isSafeInteger(b)?b:module$contents$jspb$internal_accessor_helpers_convertStringToUint64String(a,!1)}else a=module$contents$jspb$internal_accessor_helpers_convertStringToUint64String(a,!1);return a}} function module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64String(a,b){b=b===void 0?!1:b;var c=typeof a;if(a==null)return a;if(c==="bigint")return String(BigInt.asUintN(64,a));if(!b&&!module$contents$jspb$internal_options_typeCheck64BitIntFieldsAreInRange)return a;if(module$contents$jspb$internal_accessor_helpers_isNumberShaped(a,b)){if(c==="string")return module$contents$jspb$internal_accessor_helpers_convertStringToUint64String(a,b);a=module$contents$google3$javascript$common$asserts$asserts_cast(a, module$exports$google3$javascript$common$asserts$guards.isNumber);return b||module$contents$jspb$internal_options_typeCheck64BitIntFields?module$contents$jspb$internal_accessor_helpers_convertNumberToUint64String(a,b):module$contents$jspb$internal_accessor_helpers_convertNumberToUint64Number(a,b)}} function module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64Gbigint(a){var b=typeof a;if(a==null)return a;if(b==="bigint")return module$contents$jspb$internal_accessor_helpers_convertBigintToUint64Gbigint(a);if(module$contents$jspb$internal_accessor_helpers_isNumberShaped(a,!0)){if(b==="string")return module$contents$jspb$internal_accessor_helpers_convertStringToUint64Gbigint(a);a=module$contents$google3$javascript$common$asserts$asserts_cast(a,module$exports$google3$javascript$common$asserts$guards.isNumber); return module$contents$jspb$internal_accessor_helpers_convertNumberToUint64Gbigint(a)}}function module$contents$jspb$internal_accessor_helpers_checkString(a){if(module$contents$jspb$internal_options_typeCheckStringFields&&typeof a!=="string")throw goog.DEBUG?Error("Expected a string but got "+a+" a "+goog.typeOf(a)):Error();return a} function module$contents$jspb$internal_accessor_helpers_checkNullishString(a){if(module$contents$jspb$internal_options_typeCheckStringFields&&a!=null&&typeof a!=="string")throw goog.DEBUG?Error("Expected a string or null or undefined but got "+a+" a "+goog.typeOf(a)):Error();return a}function module$contents$jspb$internal_accessor_helpers_coerceToNullishString(a){return module$contents$jspb$internal_options_typeCheckStringFields?a==null||typeof a==="string"?a:void 0:a} function module$contents$jspb$internal_accessor_helpers_checkMessageType(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+module$contents$jspb$internal_accessor_helpers_ctorName(b)+" but got "+(a&&module$contents$jspb$internal_accessor_helpers_ctorName(a.constructor)));return a} function module$contents$jspb$internal_accessor_helpers_messageFromInlineStorage(a,b,c,d){if(a!=null&&typeof a==="object"&&module$contents$jspb$internal_isMessage(a))return a;if(!Array.isArray(a))return c?d&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY?module$contents$jspb$internal_accessor_helpers_getDefaultImmutableInstance(b):new b:void 0;c=a;var e=(0,module$exports$jspb$internal_array_state.getArrayState)(c),f=e;f===0&&(f|=d&module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED); f|=d&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY;f!==e&&(0,module$exports$jspb$internal_array_state.setArrayState)(c,f);return new b(a)}function module$contents$jspb$internal_accessor_helpers_getArrayErrorMessage(a){return goog.DEBUG?"Expected array but got "+goog.typeOf(a)+": "+a:void 0} function module$contents$jspb$internal_accessor_helpers_checkRepeatedFieldIsArray(a){if(!Array.isArray(a))switch(module$contents$jspb$internal_options_arrayCheckRepeatedFields){case module$exports$jspb$internal_options.CheckLevel.THROW:throw module$contents$jspb$exceptions_makeTypeError(module$contents$jspb$internal_accessor_helpers_getArrayErrorMessage(a));case module$exports$jspb$internal_options.CheckLevel.ASYNC_THROW:module$contents$jspb$exceptions_asyncThrowWarning(module$contents$jspb$internal_accessor_helpers_getArrayErrorMessage(a))}return a} function module$contents$jspb$internal_accessor_helpers_getDefaultImmutableInstance(a){return module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS?module$contents$jspb$internal_operations_withoutLogging(function(){return module$contents$jspb$internal_accessor_helpers_getDefaultImmutableInstanceInternal(a)}):module$contents$jspb$internal_accessor_helpers_getDefaultImmutableInstanceInternal(a)} function module$contents$jspb$internal_accessor_helpers_getDefaultImmutableInstanceInternal(a){var b=a[module$exports$jspb$internal_symbols.DEFAULT_IMMUTABLE_INSTANCE_SYMBOL];if(b)return b;b=new a;module$contents$jspb$internal_array_state_markArrayImmutable(module$contents$jspb$internal_getInternalArray(b));return a[module$exports$jspb$internal_symbols.DEFAULT_IMMUTABLE_INSTANCE_SYMBOL]=b} function module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps(a,b,c){if(b)return module$contents$jspb$internal_accessor_helpers_checkBoolean(a);a=module$contents$jspb$internal_accessor_helpers_coerceToNullishBoolean(a);var d;return(d=a)!=null?d:c?!1:void 0} function module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps(a,b,c){a=b?module$contents$jspb$internal_accessor_helpers_checkInt32(a):module$contents$jspb$internal_accessor_helpers_coerceToNullishInt32(a);return a==null?c?0:void 0:a|0}function module$contents$jspb$internal_accessor_helpers_uint32ToApiForMaps(a,b,c){a=b?module$contents$jspb$internal_accessor_helpers_checkUint32(a):module$contents$jspb$internal_accessor_helpers_coerceToNullishUint32(a);return a==null?c?0:void 0:a>>>0} function module$contents$jspb$internal_accessor_helpers_uint32KeyToApiForMaps(a,b,c){a=module$contents$jspb$internal_accessor_helpers_uint32ToApiForMaps(a,b,c);return typeof a==="number"?a>>>0:a}function module$contents$jspb$internal_accessor_helpers_int64ToApiForMaps(a,b,c){a=b?module$contents$jspb$internal_accessor_helpers_checkInt64(a):module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64(a);return a==null?c?0:void 0:a} function module$contents$jspb$internal_accessor_helpers_int64KeyToApiForMaps(a,b,c){a=module$contents$jspb$internal_accessor_helpers_int64ToApiForMaps(a,b,c);return typeof a==="string"&&(b=+a,Number.isSafeInteger(b))?b:a} function module$contents$jspb$internal_accessor_helpers_int64GbigintToApiForMaps(a,b,c){a=b?module$contents$jspb$internal_accessor_helpers_checkInt64(a,module$exports$jspb$internal_array_state.TypeSpecificApiFormat.GBIGINT):module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64Gbigint(a);return a==null?c?module$contents$google3$javascript$common$bigint$index_toGbigint(0):void 0:a} function module$contents$jspb$internal_accessor_helpers_int64GbigintKeyToApiForMaps(a,b,c){return module$contents$jspb$internal_accessor_helpers_int64GbigintToApiForMaps(a,b,c)}function module$contents$jspb$internal_accessor_helpers_uint64ToApiForMaps(a,b,c){a=b?module$contents$jspb$internal_accessor_helpers_checkUint64(a):module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64(a);return a==null?c?0:void 0:a} function module$contents$jspb$internal_accessor_helpers_uint64KeyToApiForMaps(a,b,c){a=module$contents$jspb$internal_accessor_helpers_uint64ToApiForMaps(a,b,c);return typeof a==="string"&&(b=+a,Number.isSafeInteger(b))?b:a} function module$contents$jspb$internal_accessor_helpers_uint64GbigintToApiForMaps(a,b,c){a=b?module$contents$jspb$internal_accessor_helpers_checkUint64(a,module$exports$jspb$internal_array_state.TypeSpecificApiFormat.GBIGINT):module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64Gbigint(a);return a==null?c?module$contents$google3$javascript$common$bigint$index_toGbigint(0):void 0:a} function module$contents$jspb$internal_accessor_helpers_uint64GbigintKeyToApiForMaps(a,b,c){return module$contents$jspb$internal_accessor_helpers_uint64GbigintToApiForMaps(a,b,c)}function module$contents$jspb$internal_accessor_helpers_floatToApiForMaps(a,b,c){if(b)return module$contents$jspb$internal_accessor_helpers_checkFloatingPoint(a);a=module$contents$jspb$internal_accessor_helpers_coerceToNullishFloatingPoint(a);var d;return(d=a)!=null?d:c?0:void 0} function module$contents$jspb$internal_accessor_helpers_stringToApiForMaps(a,b,c){if(b)return module$contents$jspb$internal_accessor_helpers_checkString(a);a=module$contents$jspb$internal_accessor_helpers_coerceToNullishString(a);var d;return(d=a)!=null?d:c?"":void 0} function module$contents$jspb$internal_accessor_helpers_bytesToApiForMaps(a,b,c){if(b){c=a;if(!(c instanceof module$exports$jspb$bytestring.ByteString))throw goog.DEBUG?Error("Expected ByteString but got "+goog.typeOf(c)+": "+c):Error();return c}a=a==null||a instanceof module$exports$jspb$bytestring.ByteString?a:typeof a==="string"?module$exports$jspb$bytestring.ByteString.fromBase64(a):module$contents$jspb$internal_bytes_isU8(a)?module$exports$jspb$bytestring.ByteString.fromUint8Array(a):void 0; var d;return(d=a)!=null?d:c?module$exports$jspb$bytestring.ByteString.empty():void 0}function module$contents$jspb$internal_accessor_helpers_enumToApiForMaps(a,b,c){a=b?module$contents$jspb$internal_accessor_helpers_checkEnum(a):module$contents$jspb$internal_accessor_helpers_coerceToNullishEnum(a);return a==null?c?0:void 0:a};function module$contents$jspb$internal_pivot_selectors_defaultPivotSelector(a){return goog.DEBUG&&module$contents$jspb$internal_options_getRandomizeSerializationFormat()&&Math.random()<.5?0:a}function module$contents$jspb$internal_pivot_selectors_noChangePivotSelector(a){return a} function module$contents$jspb$internal_pivot_selectors_memoryCostPivotSelector(a,b,c,d){return module$contents$jspb$internal_pivot_selectors_costPivotSelector(a,b,c,d,module$contents$jspb$internal_pivot_selectors_arrayMemoryCost,module$contents$jspb$internal_pivot_selectors_objectMemoryCost)} function module$contents$jspb$internal_pivot_selectors_wireCostPivotSelector(a,b,c,d){return module$contents$jspb$internal_pivot_selectors_costPivotSelector(a,b,c,d,module$contents$jspb$internal_pivot_selectors_arrayWireCost,module$contents$jspb$internal_pivot_selectors_objectWireCost)} function module$contents$jspb$internal_pivot_selectors_costPivotSelector(a,b,c,d,e,f){if(!c.length&&!d)return 0;for(var g=0,h=0,k=0,l=0,m=0,n=c.length-1;n>=0;n--){var p=c[n];d&&n===c.length-1&&p===d||(l++,p!=null&&k++)}if(d)for(var q in d)n=+q,isNaN(n)||(m+=module$contents$jspb$internal_pivot_selectors_keyBytes(n),h++,n>g&&(g=n));l=e(l,k)+f(h,g,m);q=k;n=h;p=g;for(var r=m,t=c.length-1;t>=0;t--){var u=c[t];if(!(u==null||d&&t===c.length-1&&u===d)){var w=u=module$contents$jspb$internal_fieldNumberFromIndex(t, b);w=e(w,q)+f(n,p,r);w<l&&(a=1+u,l=w);n++;q--;r+=module$contents$jspb$internal_pivot_selectors_keyBytes(u);p=Math.max(p,u)}}b=e(0,0)+f(n,p,r);b<l&&(a=0,l=b);if(d){n=h;p=g;r=m;q=k;for(var v in d)d=+v,isNaN(d)||d>=1024||(n--,q++,r-=v.length,g=e(d,q)+f(n,p,r),g<l&&(a=1+d,l=g))}return a}function module$contents$jspb$internal_pivot_selectors_objectWireCost(a,b,c){b=a>1?a-1:0;return c+a*3+b}function module$contents$jspb$internal_pivot_selectors_arrayWireCost(a,b){var c=a>1?a-1:0;a-=b;return c+a*4} function module$contents$jspb$internal_pivot_selectors_objectMemoryCost(a,b){if(a==0)return 0;var c=a+a/2;c=9*Math.max(1<<32-Math.clz32(c-1),4);return c<=b?a==0?0:a<4?100+(a-1)*16:a<6?148+(a-4)*16:a<12?244+(a-6)*16:a<22?436+(a-12)*19:a<44?820+(a-22)*17:52+32*a:40+4*b}function module$contents$jspb$internal_pivot_selectors_arrayMemoryCost(a){return 40+4*a}function module$contents$jspb$internal_pivot_selectors_keyBytes(a){return a>=100?a>=1E4?Math.ceil(Math.log10(1+a)):a<1E3?3:4:a<10?1:2} var module$contents$jspb$internal_pivot_selectors_checkPivotSelectorInstances=!0; function module$contents$jspb$internal_pivot_selectors_assertValidPivotSelector(a){return a===module$contents$jspb$internal_pivot_selectors_noChangePivotSelector?module$contents$jspb$internal_pivot_selectors_noChangePivotSelector:module$contents$jspb$internal_pivot_selectors_checkPivotSelectorInstances&&a!==module$contents$jspb$internal_pivot_selectors_defaultPivotSelector&&a!==module$contents$jspb$internal_pivot_selectors_memoryCostPivotSelector&&a!==module$contents$jspb$internal_pivot_selectors_wireCostPivotSelector? ((0,goog.asserts.fail)("Invalid pivot selector"),module$contents$jspb$internal_pivot_selectors_noChangePivotSelector):a};function module$contents$jspb$internal_compare_maybeCompareUint8Arrays(a,b){if(typeof b==="string")try{b=module$contents$jspb$internal_bytes_decodeByteArray(b)}catch(c){return!1}return module$contents$jspb$internal_bytes_isU8(b)&&module$contents$jspb$internal_bytes_uint8ArrayEquals(a,b)}function module$contents$jspb$internal_compare_bigintOrStringOrNumber(a){switch(a){case "bigint":case "string":case "number":return!0;default:return!1}} var module$contents$jspb$internal_compare_ValueType={UNKNOWN:0,REPEATED_ARRAY:1,MESSAGE_ARRAY:2}; function module$contents$jspb$internal_compare_compareMessages(a,b){var c=module$contents$jspb$internal_getComparisonTypeInfoArraySymbol(),d;if(module$contents$jspb$internal_isMessage(a))a=module$contents$jspb$internal_getInternalArray(a),d!=null||(d=a[c]);else if(!Array.isArray(a))return!1;if(module$contents$jspb$internal_isMessage(b))b=module$contents$jspb$internal_getInternalArray(b),d!=null||(d=b[c]);else if(!Array.isArray(b))return!1;return module$contents$jspb$internal_compare_compareFieldsInternal(a, b,d,module$contents$jspb$internal_compare_ValueType.MESSAGE_ARRAY)}function module$contents$jspb$internal_compare_compareFields(a,b,c){return module$contents$jspb$internal_compare_compareFieldsInternal(a,b,c,module$contents$jspb$internal_compare_ValueType.UNKNOWN)} function module$contents$jspb$internal_compare_compareFieldsInternal(a,b,c,d){module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&module$contents$jspb$internal_operations_logOperation({internalCompareFields:1});if(a===b||a==null&&b==null)return!0;if(a instanceof Map)return a.internalMapComparator(b,c);if(b instanceof Map)return b.internalMapComparator(a,c);if(a==null||b==null)return!1;if(a instanceof module$exports$jspb$bytestring.ByteString)return a.internalCompareEqualsDoNotUse(b);if(b instanceof module$exports$jspb$bytestring.ByteString)return b.internalCompareEqualsDoNotUse(a);if(module$contents$jspb$internal_bytes_isU8(a))return module$contents$jspb$internal_compare_maybeCompareUint8Arrays(a,b);if(module$contents$jspb$internal_bytes_isU8(b))return module$contents$jspb$internal_compare_maybeCompareUint8Arrays(b,a);var e=typeof a,f=typeof b;if(e!=="object"||f!=="object")return Number.isNaN(a)||Number.isNaN(b)?String(a)===String(b):module$contents$jspb$internal_compare_bigintOrStringOrNumber(e)&& module$contents$jspb$internal_compare_bigintOrStringOrNumber(f)?""+a===""+b:e==="boolean"&&f==="number"||e==="number"&&f==="boolean"?!a===!b:!1;if(module$contents$jspb$internal_isMessage(a)||module$contents$jspb$internal_isMessage(b))return module$contents$jspb$internal_compare_compareMessages(a,b);if(a.constructor!=b.constructor)return!1;if(a.constructor===Array){var g=(0,module$exports$jspb$internal_array_state.getArrayState)(a),h=(0,module$exports$jspb$internal_array_state.getArrayState)(b),k= a.length,l=b.length;e=Math.max(k,l);f=module$contents$jspb$internal_array_state_getArrayIndexOffset(g|h);if(g=d===module$contents$jspb$internal_compare_ValueType.REPEATED_ARRAY||!!((g|h)&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD))(0,goog.asserts.assert)(d!==module$contents$jspb$internal_compare_ValueType.MESSAGE_ARRAY),d=module$contents$jspb$internal_compare_ValueType.REPEATED_ARRAY;if(!g){g=module$contents$jspb$internal_getComparisonTypeInfoArraySymbol();var m;c!= null||(c=(m=a[g])!=null?m:b[g]);if(c!=null){var n=c.getRepeatedFields();var p=c.getMapFields()}}m=k&&a[k-1];g=l&&b[l-1];module$contents$jspb$internal_isSparseObject(m)||(m=null);module$contents$jspb$internal_isSparseObject(g)||(g=null);k=k-f-+!!m;l=l-f-+!!g;for(h=0;h<e;h++)if(!module$contents$jspb$internal_compare_compareFieldsInternalIter(module$contents$jspb$internal_fieldNumberFromIndex(h,f),a,m,k,b,g,l,f,n,p,c,d))return!1;if(m)for(var q in m)if(!module$contents$jspb$internal_compare_compareFieldsInternalObjIter(m, q,a,m,k,b,g,l,f,n,p,c))return!1;if(g)for(var r in g)if(!(m&&r in m||module$contents$jspb$internal_compare_compareFieldsInternalObjIter(g,r,a,m,k,b,g,l,f,n,p,c)))return!1;return!0}if(a.constructor===Object){if(module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS)throw Error("bad object comparison");return module$contents$jspb$internal_compare_compareFields([a],[b])}if(goog.DEBUG)throw Error("Invalid type in JSPB array: "+JSON.stringify(a)+" vs "+JSON.stringify(b));throw Error();} function module$contents$jspb$internal_compare_compareFieldsInternalObjIter(a,b,c,d,e,f,g,h,k,l,m,n){if(!module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(a,b))return!0;a=+b;return!Number.isFinite(a)||a<e||a<h?!0:module$contents$jspb$internal_compare_compareFieldsInternalIter(a,c,d,e,f,g,h,k,l,m,n,module$contents$jspb$internal_compare_ValueType.MESSAGE_ARRAY)} function module$contents$jspb$internal_compare_compareFieldsInternalIter(a,b,c,d,e,f,g,h,k,l,m,n){b=module$contents$jspb$internal_compare_getField(a,b,c,d,h);e=module$contents$jspb$internal_compare_getField(a,e,f,g,h);n=n===module$contents$jspb$internal_compare_ValueType.REPEATED_ARRAY;if(e==null&&module$contents$jspb$internal_isEmptyRepeatedField(b,k,a)||b==null&&module$contents$jspb$internal_isEmptyRepeatedField(e,k,a))return!0;var p;m=n?m:(p=m)==null?void 0:p.getFieldComparisonTypeInfo(a);var q; if(l=(q=l)==null?void 0:q.has(a)){if(b==null&&Array.isArray(e))return e.length===0;if(e==null&&Array.isArray(b))return b.length===0;if(Array.isArray(b)&&Array.isArray(e))return module$contents$jspb$internal_map_compareMapArrays(b,e,m)}return module$contents$jspb$internal_compare_compareFieldsInternal(b,e,m,l||module$contents$jspb$internal_isRepeatedFieldInSet(k,a)?module$contents$jspb$internal_compare_ValueType.REPEATED_ARRAY:module$contents$jspb$internal_compare_ValueType.UNKNOWN)} function module$contents$jspb$internal_compare_getField(a,b,c,d,e){var f,g;return(g=a<d?b[a+e]:void 0)!=null?g:(f=c)==null?void 0:f[a]};var module$exports$jspb$internal_construct={},module$contents$jspb$internal_construct_alternateDataPayload;function module$contents$jspb$internal_construct_internalConstructFromOwnedArray(a,b){(0,goog.asserts.assert)(module$contents$jspb$internal_array_state_areMutableReferencesOwned(b));module$contents$jspb$internal_construct_alternateDataPayload=b;a=new a(b);module$contents$jspb$internal_construct_alternateDataPayload=void 0;return a}module$exports$jspb$internal_construct.ENCODED_MAP_META=!0; var module$contents$jspb$internal_construct_mapEntryMessageMeta,module$contents$jspb$internal_construct_noPivotNoMessageIdMessageMeta; function module$contents$jspb$internal_construct_tryParseMessageMeta(a){switch(typeof a){case "boolean":return module$contents$jspb$internal_construct_mapEntryMessageMeta||(module$contents$jspb$internal_construct_mapEntryMessageMeta=[0,void 0,!0]);case "number":return a>0?void 0:a===0?module$contents$jspb$internal_construct_noPivotNoMessageIdMessageMeta||(module$contents$jspb$internal_construct_noPivotNoMessageIdMessageMeta=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return(0,goog.asserts.assertArray)(a), (0,goog.asserts.assert)(a.length===2||a.length===3&&a[2]===!0),(0,goog.asserts.assert)(a[0]==null||typeof a[0]==="number"&&a[0]>=0),(0,goog.asserts.assert)(a[1]==null||typeof a[1]==="string"),a}} function module$contents$jspb$internal_construct_constructMessageArrayFromMetaForBinary(a,b,c){(0,goog.asserts.assertArray)(b);var d=b,e=d[0];d=d[1];a=module$contents$jspb$internal_construct_constructMessageArray(a,e,d,c?module$contents$jspb$internal_construct_ArrayConstructionMode.BINARY_DESERIALIZATION:module$contents$jspb$internal_construct_ArrayConstructionMode.BINARY_SERIALIZATION);!module$contents$jspb$internal_construct_isMapEntryMessageMeta(b)&&c&&(0,module$exports$jspb$internal_array_state.addArrayStateFlags)(a, module$exports$jspb$internal_array_state.ArrayStateFlags.DESERIALIZED_FROM_BINARY);return a}function module$contents$jspb$internal_construct_arrayIndexOffsetForMeta(a){(0,goog.asserts.assertArray)(a);return a[1]?0:-1}var module$contents$jspb$internal_construct_ArrayConstructionMode={NORMAL:0,BINARY_DESERIALIZATION:1,BINARY_SERIALIZATION:2}; function module$contents$jspb$internal_construct_constructMessageArray(a,b,c,d){var e;d=(e=d)!=null?e:module$contents$jspb$internal_construct_ArrayConstructionMode.NORMAL;a==null&&(a=module$contents$jspb$internal_construct_alternateDataPayload);module$contents$jspb$internal_construct_alternateDataPayload=void 0;if(goog.DEBUG&&module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&a!=null)for(e=0;e<a.length;e++){var f=a[e];Array.isArray(f)&&module$contents$jspb$internal_assertArrayInvariants(f)}if(a== null)f=module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED|module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED,c?(a=module$contents$jspb$internal_operations_logNewArray([c]),f|=module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_MESSAGE_ID):a=module$contents$jspb$internal_operations_logNewArray([]),b&&(f=module$contents$jspb$internal_array_state_setPivot(f,b));else{if(!Array.isArray(a)){if(goog.DEBUG)throw Error("data passed to JSPB constructors must be an Array, got '"+ JSON.stringify(a)+"' a "+goog.typeOf(a));throw Error("narr");}f=(0,module$exports$jspb$internal_array_state.getArrayState)(a);if(module$contents$jspb$internal_options_SHOULD_THROW_IN_ARRAY_CONSTRUCTOR_IF_ARRAY_IS_ALREADY_CONSTRUCTED){if(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD&f){if(goog.DEBUG)throw Error("Array passed to JSPB constructor is a repeated field array that belongs to another proto instance.");throw Error("rfarr");}e=module$exports$jspb$internal_array_state.ArrayStateFlags.DESERIALIZED_FROM_BINARY& f?!1:module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED&f?!(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY&f):!1;if(e){if(goog.DEBUG)throw Error("Array passed to JSPB constructor already belongs to another JSPB proto instance");throw Error("carr");}}if(goog.DEBUG&&(Object.isFrozen(a)||!Object.isExtensible(a)||Object.isSealed(a)))throw Error("data passed to JSPB constructors must be mutable");if(f&module$exports$jspb$internal_array_state.ArrayStateFlags.FROZEN_ARRAY)throw Error("farr"); if(f&module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED)return module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&(module$contents$jspb$internal_array_state_checkMessageStateInvariants(a,f),d!==module$contents$jspb$internal_construct_ArrayConstructionMode.BINARY_DESERIALIZATION&&f&module$exports$jspb$internal_array_state.ArrayStateFlags.DESERIALIZED_FROM_BINARY&&(0,goog.asserts.assert)(f&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY, "state from binary must be immutable")),a;d!==module$contents$jspb$internal_construct_ArrayConstructionMode.BINARY_DESERIALIZATION&&d!==module$contents$jspb$internal_construct_ArrayConstructionMode.BINARY_SERIALIZATION&&(f|=module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED);if(c&&(f|=module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_MESSAGE_ID,c!==a[0])){if(goog.DEBUG)throw Error('Expected message to have a message id: "'+c+'" in the array, got: '+JSON.stringify(a[0])+ " a "+goog.typeOf(a[0])+", are you parsing with the wrong proto?");throw Error("mid");}a:{e=a;c=f;f=b;if(b=e.length){var g=b-1;e=e[g];if(module$contents$jspb$internal_isSparseObject(e)){c|=module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_SPARSE_OBJECT;b=module$contents$jspb$internal_array_state_getArrayIndexOffset(c);b=module$contents$jspb$internal_fieldNumberFromIndex(g,b);if(b>=module$exports$jspb$internal_array_state.PIVOT_LIMIT){if(goog.DEBUG)throw Error("Found a message with a sparse object at fieldNumber "+ b+" is >= the limit "+module$exports$jspb$internal_array_state.PIVOT_LIMIT);throw Error("pvtlmt");}f=module$contents$jspb$internal_array_state_setPivot(c,b);break a}}if(f){e=module$contents$jspb$internal_array_state_getArrayIndexOffset(c);e=Math.max(f,module$contents$jspb$internal_fieldNumberFromIndex(b,e));if(e>module$exports$jspb$internal_array_state.PIVOT_LIMIT){if(goog.DEBUG)throw Error("a message was constructed with an array of length "+b+" which is longer than "+module$exports$jspb$internal_array_state.PIVOT_LIMIT+ ", are you using a supported serializer?");throw Error("spvt");}f=module$contents$jspb$internal_array_state_setPivot(c,e)}else f=c}}(0,module$exports$jspb$internal_array_state.setArrayState)(a,f);d!==module$contents$jspb$internal_construct_ArrayConstructionMode.BINARY_DESERIALIZATION&&d!==module$contents$jspb$internal_construct_ArrayConstructionMode.BINARY_SERIALIZATION&&(0,goog.asserts.assert)(f&module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED);return a} function module$contents$jspb$internal_construct_isMapEntryMessageMeta(a){return a===module$contents$jspb$internal_construct_mapEntryMessageMeta}module$exports$jspb$internal_construct.arrayIndexOffsetForMeta=module$contents$jspb$internal_construct_arrayIndexOffsetForMeta;module$exports$jspb$internal_construct.constructMessageArray=module$contents$jspb$internal_construct_constructMessageArray;module$exports$jspb$internal_construct.constructMessageArrayFromMetaForBinary=module$contents$jspb$internal_construct_constructMessageArrayFromMetaForBinary; module$exports$jspb$internal_construct.internalConstructFromOwnedArray=module$contents$jspb$internal_construct_internalConstructFromOwnedArray;module$exports$jspb$internal_construct.isMapEntryMessageMeta=module$contents$jspb$internal_construct_isMapEntryMessageMeta;module$exports$jspb$internal_construct.tryParseMessageMeta=module$contents$jspb$internal_construct_tryParseMessageMeta;var module$exports$jspb$internal_map={},module$contents$jspb$internal_map_EMPTY_MAP_TOKEN={};function module$contents$jspb$internal_map_constructingMapSubclassFails(){try{var a=function(){return $jscomp.construct(Map,[],this.constructor)};$jscomp.inherits(a,Map);(0,goog.reflect.sinkValue)(new a);return!1}catch(b){return!0}} var module$contents$jspb$internal_map_USE_DELEGATING_MAPS=goog.FEATURESET_YEAR<=2017&&(module$exports$jspb$internal_options.DISABLE_ES6_MAP_SUBCLASSES_FOR_TESTING||module$contents$jspb$internal_map_constructingMapSubclassFails()),module$contents$jspb$internal_map_DelegatingMapForPseudoEs6Systems=function(){this.map_=new Map};module$contents$jspb$internal_map_DelegatingMapForPseudoEs6Systems.prototype.get=function(a){(0,goog.asserts.assert)(this.size===this.map_.size);return this.map_.get(a)}; module$contents$jspb$internal_map_DelegatingMapForPseudoEs6Systems.prototype.set=function(a,b){(0,goog.asserts.assert)(this.size===this.map_.size);this.map_.set(a,b);this.updateSize_();return this};module$contents$jspb$internal_map_DelegatingMapForPseudoEs6Systems.prototype.delete=function(a){(0,goog.asserts.assert)(this.size===this.map_.size);a=this.map_.delete(a);this.updateSize_();return a}; module$contents$jspb$internal_map_DelegatingMapForPseudoEs6Systems.prototype.clear=function(){(0,goog.asserts.assert)(this.size===this.map_.size);this.map_.clear();this.updateSize_()};module$contents$jspb$internal_map_DelegatingMapForPseudoEs6Systems.prototype.has=function(a){(0,goog.asserts.assert)(this.size===this.map_.size);return this.map_.has(a)}; module$contents$jspb$internal_map_DelegatingMapForPseudoEs6Systems.prototype.entries=function(){(0,goog.asserts.assert)(this.size===this.map_.size);return this.map_.entries()};module$contents$jspb$internal_map_DelegatingMapForPseudoEs6Systems.prototype.keys=function(){(0,goog.asserts.assert)(this.size===this.map_.size);return this.map_.keys()};module$contents$jspb$internal_map_DelegatingMapForPseudoEs6Systems.prototype.values=function(){(0,goog.asserts.assert)(this.size===this.map_.size);return this.map_.values()}; module$contents$jspb$internal_map_DelegatingMapForPseudoEs6Systems.prototype.forEach=function(a,b){(0,goog.asserts.assert)(this.size===this.map_.size);return this.map_.forEach(a,b)};module$contents$jspb$internal_map_DelegatingMapForPseudoEs6Systems.prototype[Symbol.iterator]=function(){(0,goog.asserts.assert)(this.size===this.map_.size);return this.entries()};module$contents$jspb$internal_map_DelegatingMapForPseudoEs6Systems.prototype.updateSize_=function(){this.size=this.map_.size}; var module$contents$jspb$internal_map_MapBase=function(){if(module$contents$jspb$internal_map_USE_DELEGATING_MAPS)return Object.setPrototypeOf(module$contents$jspb$internal_map_DelegatingMapForPseudoEs6Systems.prototype,Map.prototype),Object.defineProperties(module$contents$jspb$internal_map_DelegatingMapForPseudoEs6Systems.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),module$contents$jspb$internal_map_DelegatingMapForPseudoEs6Systems;var a=function(){return $jscomp.construct(Map, [],this.constructor)};$jscomp.inherits(a,Map);return a}();function module$contents$jspb$internal_map_noopToApi(a){return a} module$exports$jspb$internal_map.JspbMap=function(a,b,c,d,e){c=c===void 0?module$contents$jspb$internal_map_noopToApi:c;d=d===void 0?module$contents$jspb$internal_map_noopToApi:d;var f=module$contents$jspb$internal_map_MapBase.call(this)||this;module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&module$contents$jspb$internal_operations_logOperation({constructMap:1});(0,goog.asserts.assert)(!module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS||e===module$contents$jspb$internal_map_EMPTY_MAP_TOKEN|| c!==module$contents$jspb$internal_map_noopToApi);(0,goog.asserts.assert)(!module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS||e===module$contents$jspb$internal_map_EMPTY_MAP_TOKEN||b!==void 0||d!==module$contents$jspb$internal_map_noopToApi);e=(0,module$exports$jspb$internal_array_state.getArrayState)(a);(0,goog.asserts.assert)(e&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY||(e&(module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED| module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED))!==(module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED|module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED),"owned maps should not be constructed twice");e|=module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED;(0,module$exports$jspb$internal_array_state.setArrayState)(a,e);f.arrayState=e;f.valueCtor=b;f.keyToApi=c;f.valueToApi=f.valueCtor?module$contents$jspb$internal_map_messageToApi: d;for(var g=0;g<a.length;g++){var h=a[g],k=c(h[0],!1,!0),l=h[1];b?l===void 0&&(l=null):l=d(h[1],!1,!0,void 0,void 0,e);module$contents$jspb$internal_map_MapBase.prototype.set.call(f,k,l)}return f};$jscomp.inherits(module$exports$jspb$internal_map.JspbMap,module$contents$jspb$internal_map_MapBase); module$exports$jspb$internal_map.JspbMap.prototype.checkNotImmutable_=function(){if(this.arrayState&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY)throw Error("Cannot mutate an immutable Map");};module$exports$jspb$internal_map.JspbMap.prototype.buildNewFromArray=function(a){return new module$exports$jspb$internal_map.JspbMap(a,this.valueCtor,this.keyToApi,this.valueToApi)}; module$exports$jspb$internal_map.JspbMap.prototype.toArrayOrUndefinedInternal=function(a){a=a===void 0?module$contents$jspb$internal_map_identity:a;if(this.size!==0){if(!module$contents$jspb$internal_options_sortMaps)return this.toArrayInternalUnsorted(a);for(var b=this.keyArray_(),c=0;c<b.length;c++){var d=b[c],e=module$contents$jspb$internal_map_MapBase.prototype.get.call(this,b[c]);b[c]=module$contents$jspb$internal_operations_logNewArray([a(d),a(e)])}return b}}; module$exports$jspb$internal_map.JspbMap.prototype.toArrayInternalUnsorted=function(a){a=a===void 0?module$contents$jspb$internal_map_identity:a;for(var b=module$contents$jspb$internal_operations_logNewArray([]),c=module$contents$jspb$internal_map_MapBase.prototype.entries.call(this),d;!(d=c.next()).done;)d=d.value,d[0]=a(d[0]),d[1]=a(d[1]),b.push(d);return b};module$exports$jspb$internal_map.JspbMap.prototype.clear=function(){this.checkNotImmutable_();module$contents$jspb$internal_map_MapBase.prototype.clear.call(this)}; module$exports$jspb$internal_map.JspbMap.prototype.delete=function(a){this.checkNotImmutable_();return module$contents$jspb$internal_map_MapBase.prototype.delete.call(this,this.keyToApi(a,!0,!1))};module$exports$jspb$internal_map.JspbMap.prototype.entries=function(){return module$contents$jspb$internal_newTransformingIteratorIterable(this.keyArray_(),module$contents$jspb$internal_map_getEntryFromMap,this)}; module$exports$jspb$internal_map.JspbMap.prototype.keys=function(){return module$contents$jspb$internal_options_sortMaps?module$contents$jspb$internal_newArrayIteratorIterable(this.keyArray_()):this.keysInternal_()};module$exports$jspb$internal_map.JspbMap.prototype.values=function(){return module$contents$jspb$internal_newTransformingIteratorIterable(this.keyArray_(),module$exports$jspb$internal_map.JspbMap.prototype.get,this)}; module$exports$jspb$internal_map.JspbMap.prototype.forEach=function(a,b){var c=this;if(module$contents$jspb$internal_options_sortMaps)for(var d=this.keyArray_(),e=0;e<d.length;e++){var f=d[e];a.call(b,(0,goog.asserts.assertExists)(this.get(f)),f,this)}else module$contents$jspb$internal_map_MapBase.prototype.forEach.call(this,function(g,h){a.call(b,(0,goog.asserts.assertExists)(c.get(h)),h,c)})}; module$exports$jspb$internal_map.JspbMap.prototype.set=function(a,b){this.checkNotImmutable_();a=this.keyToApi(a,!0,!1);return a==null?this:b==null?(module$contents$jspb$internal_map_MapBase.prototype.delete.call(this,a),this):module$contents$jspb$internal_map_MapBase.prototype.set.call(this,a,this.valueToApi(b,!0,!0,this.valueCtor,!1,this.arrayState))}; module$exports$jspb$internal_map.JspbMap.prototype.setWireEntry=function(a){var b=this.keyToApi(a[0],!1,!0);a=a[1];a=this.valueCtor?a===void 0?null:a:this.valueToApi(a,!1,!0,void 0,!1,this.arrayState);module$contents$jspb$internal_map_MapBase.prototype.set.call(this,b,a)};module$exports$jspb$internal_map.JspbMap.prototype.has=function(a){return module$contents$jspb$internal_map_MapBase.prototype.has.call(this,this.keyToApi(a,!1,!1))}; module$exports$jspb$internal_map.JspbMap.prototype.get=function(a){a=this.keyToApi(a,!1,!1);var b=module$contents$jspb$internal_map_MapBase.prototype.get.call(this,a);if(b!==void 0){var c=this.valueCtor;return c?(c=this.valueToApi(b,!1,!0,c,this.callToMutableOnAccess,this.arrayState),c!==b&&module$contents$jspb$internal_map_MapBase.prototype.set.call(this,a,c),c):b}}; module$exports$jspb$internal_map.JspbMap.prototype.keyArray_=function(){var a=module$contents$jspb$internal_operations_logNewArray(Array.from(module$contents$jspb$internal_map_MapBase.prototype.keys.call(this)));return module$contents$jspb$internal_options_sortMaps?a.sort(module$contents$jspb$internal_map_legacySortFunction):a}; module$exports$jspb$internal_map.JspbMap.prototype.keysInternal_=function(){return module$contents$jspb$internal_options_sortMaps?module$contents$jspb$internal_newArrayIteratorIterable(this.keyArray_()):module$contents$jspb$internal_map_MapBase.prototype.keys.call(this)}; module$exports$jspb$internal_map.JspbMap.prototype.internalMapComparator=function(a,b){if(a instanceof module$exports$jspb$internal_map.JspbMap){var c=this;var d=a,e=b;b=module$contents$jspb$internal_map_compareMapToMapInternal(c,d,e);module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&((0,goog.asserts.assert)(b===module$contents$jspb$internal_map_compareMapArraysInternal([].concat((0,$jscomp.arrayFromIterable)(c.entries())),[].concat((0,$jscomp.arrayFromIterable)(d.entries())),e)),(0,goog.asserts.assert)(b=== module$contents$jspb$internal_map_compareMapToMaybeArrayInternal(d,[].concat((0,$jscomp.arrayFromIterable)(c.entries())),e)));c=b}else{c=this;var f=module$contents$jspb$internal_map_compareMapToMaybeArrayInternal(c,a,b);if(module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS){var g=Array.isArray(a)?JSON.parse(JSON.stringify(a,module$contents$jspb$internal_json_jspbJsonStringifyReplacer)):[];(0,goog.asserts.assert)(f===module$contents$jspb$internal_map_compareMapToMapInternal(c,new module$exports$jspb$internal_map.JspbMap(g, c.valueCtor,(d=c.keyToApi)!=null?d:module$contents$jspb$internal_map_noopToApi,(e=c.valueToApi)!=null?e:module$contents$jspb$internal_map_noopToApi),b));(0,goog.asserts.assert)(f===module$contents$jspb$internal_map_compareMapArraysInternal([].concat((0,$jscomp.arrayFromIterable)(c.entries())),Array.isArray(a)?a.slice():[],b))}c=f}return c};module$exports$jspb$internal_map.JspbMap.prototype[Symbol.iterator]=function(){return this.entries()}; module$exports$jspb$internal_map.JspbMap.prototype.rawValuesInternal_=function(){return module$contents$jspb$internal_map_MapBase.prototype.values.call(this)};module$exports$jspb$internal_map.JspbMap.prototype.toJSON=void 0;module$exports$jspb$internal_map.JspbMap.prototype.mapPrototypeMarker=module$exports$jspb$internal.MAP_PROTOTYPE_MARKER_VALUE;function module$contents$jspb$internal_map_legacySortFunction(a,b){a=""+a;b=""+b;return a>b?1:a<b?-1:0} module$exports$jspb$internal_map.ImmutableMap=function(){throw Error("please construct maps as mutable then call toImmutable");}; if(module$exports$jspb$internal.SUPPORTS_HAS_INSTANCE){var rejectInstanceof=function(){throw Error(goog.DEBUG?"Cannot perform instanceof checks on ImmutableMap: please use isImmutableMap or isMutableMap to assert on the mutability of a map. See go/jspb-api-gotchas#immutable-classes for more information":void 0);},$jscomp$compprop53={};Object.defineProperties(module$exports$jspb$internal_map.ImmutableMap,($jscomp$compprop53[Symbol.hasInstance]=module$contents$jspb$internal_invisiblePropValue(rejectInstanceof), $jscomp$compprop53));(0,goog.asserts.assert)(module$exports$jspb$internal_map.ImmutableMap[Symbol.hasInstance]===rejectInstanceof,"defineProperties did not work: was it monkey-patched?")}function module$contents$jspb$internal_map_isImmutableMap(a){return a instanceof module$exports$jspb$internal_map.JspbMap&&!!(a.arrayState&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY)} function module$contents$jspb$internal_map_isMutableMap(a){return a instanceof module$exports$jspb$internal_map.JspbMap&&!(a.arrayState&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY)} function module$contents$jspb$internal_map_messageToApi(a,b,c,d,e,f){b&&module$contents$jspb$internal_accessor_helpers_checkMessageType(a,d);a=module$contents$jspb$internal_accessor_helpers_messageFromInlineStorage(a,d,c,f);e&&(a=a.toMutable());(0,goog.asserts.assert)(!(f&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY)||module$contents$jspb$internal_isImmutableMessage(a));return a}function module$contents$jspb$internal_map_identity(a){return a} function module$contents$jspb$internal_map_compareMapToMapInternal(a,b,c){if(a.size!=b.size)return!1;var d=!0;a.forEach(function(e,f){var g;module$contents$jspb$internal_compare_compareFields(e,b.get(f),(g=c)==null?void 0:g.getFieldComparisonTypeInfo(2))||(d=!1)});return d}function module$contents$jspb$internal_map_compareEntryKeys(a,b){if(!Array.isArray(a)||!Array.isArray(b))return 0;a=a[0];b=b[0];return a===b?0:a<b?-1:1} function module$contents$jspb$internal_map_compareMapToMaybeArrayInternal(a,b,c){if(b==null)return a.size===0;if(!Array.isArray(b)||a.size>b.length)return!1;b=Array.prototype.slice.call(b);b.sort(module$contents$jspb$internal_map_compareEntryKeys);for(var d=0,e=void 0,f=b.length-1;f>=0;f--){var g=b[f];if(!g||!Array.isArray(g)||g.length!==2)return!1;var h=g[0];if(h!==e){e=void 0;if(!module$contents$jspb$internal_compare_compareFields(a.get(h),g[1],(e=c)==null?void 0:e.getFieldComparisonTypeInfo(2)))return!1; e=h;d++}}return d===a.size} function module$contents$jspb$internal_map_compareMapArraysInternal(a,b,c){if(!Array.isArray(a)||!Array.isArray(b))return!1;a=Array.prototype.slice.call(a);b=Array.prototype.slice.call(b);a.sort(module$contents$jspb$internal_map_compareEntryKeys);b.sort(module$contents$jspb$internal_map_compareEntryKeys);var d=a.length,e=b.length;if(d===0&&e===0)return!0;for(var f=0,g=0;f<d&&g<e;){var h=void 0,k=a[f];if(!Array.isArray(k))return!1;for(var l=k[0];f<d-1&&(h=a[f+1])[0]===l;)f++,k=h;var m=void 0;h=b[g]; if(!Array.isArray(h))return!1;for(var n=h[0];g<e-1&&(m=b[g+1])[0]===n;)g++,h=m;if(!module$contents$jspb$internal_compare_compareFields(l,n))return!1;l=void 0;if(!module$contents$jspb$internal_compare_compareFields(k[1],h[1],(l=c)==null?void 0:l.getFieldComparisonTypeInfo(2)))return!1;f++;g++}return f>=d&&g>=e} function module$contents$jspb$internal_map_compareMapArrays(a,b,c){var d=module$contents$jspb$internal_map_compareMapArraysInternal(a,b);module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&(0,goog.asserts.assert)(d===module$contents$jspb$internal_map_compareMapToMapInternal(new Map(b),new Map(a),c));return d}function module$contents$jspb$internal_map_getEntryFromMap(a){return[a,(0,goog.asserts.assertExists)(this.get(a))]}var module$contents$jspb$internal_map_immutableEmptyMap; function module$contents$jspb$internal_map_getImmutableEmptyMap(){return module$contents$jspb$internal_map_immutableEmptyMap||(module$contents$jspb$internal_map_immutableEmptyMap=new module$exports$jspb$internal_map.JspbMap(module$contents$jspb$internal_array_state_markArrayImmutable(module$contents$jspb$internal_operations_logNewArray([])),void 0,void 0,void 0,module$contents$jspb$internal_map_EMPTY_MAP_TOKEN))}module$exports$jspb$internal_map.getImmutableEmptyMap=module$contents$jspb$internal_map_getImmutableEmptyMap; module$exports$jspb$internal_map.isImmutableMap=module$contents$jspb$internal_map_isImmutableMap;module$exports$jspb$internal_map.isMutableMap=module$contents$jspb$internal_map_isMutableMap;module$exports$jspb$internal_map.compareMapArrays=module$contents$jspb$internal_map_compareMapArrays;function module$contents$jspb$internal_json_jspbJsonStringifyReplacer(a,b){return module$contents$jspb$internal_json_convertToJsonFormat(b)} function module$contents$jspb$internal_json_convertToJsonFormat(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "bigint":return(0,module$exports$google3$javascript$common$bigint$index.isSafeInt52)(a)?Number(a):String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(module$contents$jspb$internal_isEmptyRepeatedField(a,void 0,0))return}else{if(module$contents$jspb$internal_bytes_isU8(a))return module$contents$jspb$internal_bytes_encodeByteArray(a);if(a instanceof module$exports$jspb$bytestring.ByteString)return a.asBase64();if(a instanceof module$exports$jspb$internal_map.JspbMap)return a.toArrayOrUndefinedInternal()}}return a};var module$exports$jspb$internal_copy={}; function module$contents$jspb$internal_copy_copyProtoArray(a,b,c){var d=module$contents$jspb$internal_operations_slice(a),e=d.length,f=b&module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_SPARSE_OBJECT?d[e-1]:void 0;e+=f?-1:0;for(b=b&module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_MESSAGE_ID?1:0;b<e;b++)d[b]=c(d[b]);if(f){b=d[b]={};for(var g in f)module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(f,g)&&((0,goog.asserts.assert)(!isNaN(g),"should not have non-numeric keys in sparse objects after a constructor is called."), b[g]=c(f[g]))}module$contents$jspb$internal_copyUnknownFields(d,a,!1);return d} function module$contents$jspb$internal_copy_cloneJspbFieldInternal(a,b,c,d,e){if(a!=null){if(Array.isArray(a))return module$contents$jspb$internal_isEmptyRepeatedField(a,void 0,0)?void 0:e&&(0,module$exports$jspb$internal_array_state.getArrayState)(a)&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY?a:module$contents$jspb$internal_copy_cloneJspbArray(a,b,c,d!==void 0,e);if(module$contents$jspb$internal_isSparseObject(a)){var f,g={};for(f in a)module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(a, f)&&(g[f]=module$contents$jspb$internal_copy_cloneJspbFieldInternal(a[f],b,c,d,e));return f=g}return b(a,d)}} function module$contents$jspb$internal_copy_cloneJspbArray(a,b,c,d,e){var f=d||c?(0,module$exports$jspb$internal_array_state.getArrayState)(a):0;d=d?!!(f&module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED):void 0;for(var g=module$contents$jspb$internal_operations_slice(a),h=0;h<g.length;h++)g[h]=module$contents$jspb$internal_copy_cloneJspbFieldInternal(g[h],b,c,d,e);c&&(module$contents$jspb$internal_copyUnknownFields(g,a,!1),c(f,g));return g} function module$contents$jspb$internal_copy_convertMapValuesToStructuredCloneableFormat(a){return module$contents$jspb$internal_copy_cloneJspbFieldInternal(a,module$contents$jspb$internal_copy_convertToStructuredCloneableFormat,void 0,void 0,!1)} function module$contents$jspb$internal_copy_convertToStructuredCloneableFormat(a){return module$contents$jspb$internal_isMessage(a)?a.toJSON():a instanceof module$exports$jspb$bytestring.ByteString?a.legacyUnwrap():module$contents$jspb$internal_bytes_isU8(a)?new Uint8Array(a):a instanceof module$exports$jspb$internal_map.JspbMap?a.toArrayOrUndefinedInternal(module$contents$jspb$internal_copy_convertMapValuesToStructuredCloneableFormat):a} function module$contents$jspb$internal_copy_convertMapValueToJsonFormat(a){return module$contents$jspb$internal_copy_cloneJspbFieldInternal(a,module$contents$jspb$internal_copy_convertToJsonFormat,void 0,void 0,!1)} function module$contents$jspb$internal_copy_convertToJsonFormat(a){return module$contents$jspb$internal_isMessage(a)?a.toJSON():a instanceof module$exports$jspb$internal_map.JspbMap?a.toArrayOrUndefinedInternal(module$contents$jspb$internal_copy_convertMapValueToJsonFormat):module$contents$jspb$internal_json_convertToJsonFormat(a)} function module$contents$jspb$internal_copy_cloneToJsonFormat(a){(0,goog.asserts.assertArray)(a);return module$contents$jspb$internal_copy_cloneJspbArray(a,module$contents$jspb$internal_copy_convertToJsonFormat,void 0,void 0,!1)}function module$contents$jspb$internal_copy_cloneToStructuredCloneableFormat(a){(0,goog.asserts.assertArray)(a);return module$contents$jspb$internal_copy_cloneJspbArray(a,module$contents$jspb$internal_copy_convertToStructuredCloneableFormat,void 0,void 0,!1)} module$exports$jspb$internal_copy.cloneRaw=module$exports$jspb$internal_bytes.SUPPORTS_STRUCTURED_CLONE?structuredClone:function(a){return module$contents$jspb$internal_copy_cloneToStructuredCloneableFormat(a)};module$exports$jspb$internal_copy.cloneJspbArray=module$contents$jspb$internal_copy_cloneJspbArray;module$exports$jspb$internal_copy.cloneToJsonFormat=module$contents$jspb$internal_copy_cloneToJsonFormat;module$exports$jspb$internal_copy.cloneToStructuredCloneableFormat=module$contents$jspb$internal_copy_cloneToStructuredCloneableFormat; module$exports$jspb$internal_copy.copyProtoArray=module$contents$jspb$internal_copy_copyProtoArray;var module$exports$jspb$internal_array_proxy={setupAsyncThrowingArray:function(a){module$contents$jspb$internal_array_proxy_nativeProxy===void 0&&(module$contents$jspb$internal_array_proxy_nativeProxy=typeof Proxy==="function"?module$contents$jspb$internal_array_proxy_nativeFunction(Proxy):null);var b=module$contents$jspb$internal_array_proxy_nativeProxy;(b=!b)||(module$contents$jspb$internal_array_proxy_nativeWeakMap===void 0&&(module$contents$jspb$internal_array_proxy_nativeWeakMap=typeof WeakMap=== "function"?module$contents$jspb$internal_array_proxy_nativeFunction(WeakMap):null),b=module$contents$jspb$internal_array_proxy_nativeWeakMap,b=!b);if(b)return a;if(b=module$exports$jspb$internal_array_proxy.getArrayProxy(a))return b;if(!goog.DEBUG&&Math.random()>.01)return a;var c=goog.DEBUG&&Error().stack;module$contents$jspb$internal_array_proxy_maybeFixConcat(a);b=new module$contents$jspb$internal_array_proxy_nativeProxy(a,{set:function(d,e,f){module$contents$jspb$internal_array_proxy_arrayMutationWarning(c); d[e]=f;return!0}});module$contents$jspb$internal_array_proxy_registerArrayProxy(a,b);return b}};function module$contents$jspb$internal_array_proxy_arrayMutationWarning(a){a=goog.DEBUG?"Warning: Forbidden array mutation. This will be a hard error in the future, please fix. See go/jspb-api-gotchas#readonly-repeated-fields.\nArray origin at "+a+"\nMutation at "+Error().stack+"\n...":"fm";module$contents$jspb$exceptions_asyncThrowWarning(a)} var module$contents$jspb$internal_array_proxy_arrayToProxyMap=void 0,module$contents$jspb$internal_array_proxy_proxyToArrayMap=void 0;module$exports$jspb$internal_array_proxy.getArrayProxy=function(a){var b;return(b=module$contents$jspb$internal_array_proxy_arrayToProxyMap)==null?void 0:b.get(a)};module$exports$jspb$internal_array_proxy.getTargetArray=function(a){var b;return((b=module$contents$jspb$internal_array_proxy_proxyToArrayMap)==null?void 0:b.get(a))||a}; function module$contents$jspb$internal_array_proxy_registerArrayProxy(a,b){(module$contents$jspb$internal_array_proxy_arrayToProxyMap||(module$contents$jspb$internal_array_proxy_arrayToProxyMap=new module$contents$jspb$internal_array_proxy_nativeWeakMap)).set(a,b);(module$contents$jspb$internal_array_proxy_proxyToArrayMap||(module$contents$jspb$internal_array_proxy_proxyToArrayMap=new module$contents$jspb$internal_array_proxy_nativeWeakMap)).set(b,a)} module$exports$jspb$internal_array_proxy.clearArrayProxy=function(a){var b;(b=module$contents$jspb$internal_array_proxy_arrayToProxyMap)==null||b.delete(a)};var module$contents$jspb$internal_array_proxy_nativeProxy=void 0,module$contents$jspb$internal_array_proxy_nativeWeakMap=void 0;function module$contents$jspb$internal_array_proxy_nativeFunction(a){try{return a.toString().indexOf("[native code]")!==-1?a:null}catch(b){return null}}var module$contents$jspb$internal_array_proxy_needConcatFix=void 0; function module$contents$jspb$internal_array_proxy_maybeFixConcat(a){if(module$contents$jspb$internal_array_proxy_needConcatFix===void 0){var b=new module$contents$jspb$internal_array_proxy_nativeProxy([],{});module$contents$jspb$internal_array_proxy_needConcatFix=Array.prototype.concat.call([],b).length===1}(b=module$contents$jspb$internal_array_proxy_needConcatFix)&&typeof Symbol==="function"&&Symbol.isConcatSpreadable&&(a[Symbol.isConcatSpreadable]=!0)};function module$contents$jspb$internal_immutability_copyImmutableFieldValue(a,b,c){c=c===void 0?module$contents$jspb$internal_array_state_copyArrayBitsAndMaybeFreezeForCloneImmutable:c;if(a!=null){if(module$exports$jspb$internal_bytes.SUPPORTS_UINT8ARRAY&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=(0,module$exports$jspb$internal_array_state.getArrayState)(a);if(d&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY)return a;module$contents$jspb$internal_assertArrayInvariants(a); if(b){b=d===module$exports$jspb$internal_array_state.DEFAULT_ARRAY_STATE;var e=!!(d&module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED),f=!!(d&module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED)||!(d&module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_IMMUTABLE_VALUES_IF_OWNED);b=b||e&&!f}return b?((0,module$exports$jspb$internal_array_state.setArrayState)(a,(d|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY| module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED)&~(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED|module$exports$jspb$internal_array_state.ArrayStateFlags.STRING_FORMATTED|module$exports$jspb$internal_array_state.ArrayStateFlags.GBIGINT_FORMATTED)),a):module$contents$jspb$internal_copy_cloneJspbArray(a,module$contents$jspb$internal_immutability_copyImmutableFieldValue,d&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED? module$contents$jspb$internal_array_state_copyArrayBitsAndMaybeFreezeForCloneImmutable:c,!0,!0)}return module$contents$jspb$internal_isMessage(a)?(goog.asserts.assert(module$contents$jspb$internal_isMessage(a)),c=module$contents$jspb$internal_getInternalArray(a),d=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(c),a=d&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY?a:module$contents$jspb$internal_construct_internalConstructFromOwnedArray(a.constructor, module$contents$jspb$internal_immutability_copyArrayWithImmutableFields(c,d,!0)),a):a instanceof module$exports$jspb$internal_map.JspbMap?a.arrayState&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY?a:a.buildNewFromArray(module$contents$jspb$internal_array_state_markArrayImmutable(a.toArrayInternalUnsorted(module$contents$jspb$internal_immutability_copyImmutableFieldValue))):a}} function module$contents$jspb$internal_immutability_copyMutableWithImmutableFields(a){goog.asserts.assert(module$contents$jspb$internal_isMessage(a));var b=module$contents$jspb$internal_getInternalArray(a),c=b;b=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(b);return b=module$contents$jspb$internal_construct_internalConstructFromOwnedArray(a.constructor,module$contents$jspb$internal_immutability_copyArrayWithImmutableFields(c,b,!1))} function module$contents$jspb$internal_immutability_copyArrayWithImmutableFields(a,b,c){module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&module$contents$jspb$internal_operations_logOperation({copyMessageWithImmutableFields:1});var d=c||b&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY?module$contents$jspb$internal_array_state_copyArrayBitsAndMaybeFreezeForCloneImmutable:module$contents$jspb$internal_array_state_copyArrayBitsForClone,e=!!(b&module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED); a=module$contents$jspb$internal_copy_copyProtoArray(a,b,function(f){return module$contents$jspb$internal_immutability_copyImmutableFieldValue(f,e,d)});(0,module$exports$jspb$internal_array_state.addArrayStateFlags)(a,module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED|(c?module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY:0));return a} function module$contents$jspb$internal_immutability_messageToMutable(a){var b=module$contents$jspb$internal_getInternalArray(a),c=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(b);return c&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY?module$contents$jspb$internal_construct_internalConstructFromOwnedArray(a.constructor,module$contents$jspb$internal_immutability_copyArrayWithImmutableFields(b,c,!1)):a};var jspb_internal_adapters={},module$contents$jspb_internal_adapters_GBIGINT_ZERO=module$contents$google3$javascript$common$bigint$index_toGbigint(0); function module$contents$jspb_internal_adapters_asyncThrowIf64BitIntReturnTypeMismatches(a,b,c){b!=null&&module$contents$jspb$internal_options_asyncThrowIf64BitIntReturnTypeMismatches&&(c=c?"string":"number",typeof b===c||c==="number"&&!Number.isSafeInteger(Number(b))||(b=goog.DEBUG?"Expected a "+c+"-typed 64-bit int value, but got "+goog.typeOf(b)+": "+b:"64birm",module$contents$jspb$exceptions_throttledAsyncThrowWarning(a,module$exports$jspb$internal_symbols.RETURNED_64BIT_INT_VALUE_MISMATCH_SYMBOL, 4,b)))}function module$contents$jspb_internal_adapters_asyncThrowIfRepeated64BitIntReturnTypeMismatches(a,b,c){b.length!==0&&module$contents$jspb_internal_adapters_asyncThrowIf64BitIntReturnTypeMismatches(a,b[0],c)}jspb_internal_adapters.getFieldNullable=function(a,b,c){a=module$contents$jspb$internal_getInternalArray(a);return jspb_internal_adapters.getFieldNullableInternal(a,(0,module$exports$jspb$internal_array_state.getMessageArrayState)(a),b,c)}; function module$contents$jspb_internal_adapters_getDenseArrayValueForFieldNumber(a,b,c,d){b=module$contents$jspb$internal_indexFromFieldNumber(d,module$contents$jspb$internal_array_state_getArrayIndexOffset(b));if(!(b<0||b>=a.length||b>=c))return a[b]} jspb_internal_adapters.getFieldNullableInternal=function(a,b,c,d){module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&module$contents$jspb$internal_operations_logOperation({getField:1});if(c===-1)return null;var e=module$contents$jspb$internal_array_state_getPivot(b);if(c>=e){if(b&module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_SPARSE_OBJECT)return a[a.length-1][c]}else{var f=a.length;if(d&&b&module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_SPARSE_OBJECT&&(d=a[f-1][c], d!=null)){if(module$contents$jspb_internal_adapters_getDenseArrayValueForFieldNumber(a,b,e,c)){if(goog.DEBUG)throw Error("b/316921031: message had field number "+c+" in both the sparse object and the array portion.");module$contents$jspb$exceptions_throttledAsyncThrowWarning(void 0,module$exports$jspb$internal_symbols.DUPLICATED_EXTENSION_SYMBOL,4,"dubext")}return d}return module$contents$jspb_internal_adapters_getDenseArrayValueForFieldNumber(a,b,e,c)}}; jspb_internal_adapters.setField=function(a,b,c,d){var e=module$contents$jspb$internal_getInternalArray(a),f=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(e);module$contents$jspb$internal_checkNotImmutableState(f);module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(e,f,b,c,d);return a};jspb_internal_adapters.setFieldIgnoringImmutability=module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal; function module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(a,b,c,d){module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&module$contents$jspb$internal_operations_logOperation({setField:1});(0,goog.asserts.assert)(!module$contents$jspb$internal_isSparseObject(d),"Invalid object passed to a setter");var e=module$contents$jspb$internal_array_state_getPivot(b);if(c>=e){(0,goog.asserts.assert)(e!==module$exports$jspb$internal_array_state.NO_PIVOT);var f=b;if(b&module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_SPARSE_OBJECT)var g= a[a.length-1];else{if(d==null)return f;g=a;var h=module$contents$jspb$internal_indexFromFieldNumber(e,module$contents$jspb$internal_array_state_getArrayIndexOffset(b));(0,goog.asserts.assert)(h>=g.length&&Number.isInteger(h)&&h<4294967295,"Expected sparseObjectIndex (%s) to be >= %s and a valid array index",h,g.length);g=g[h]={};f|=module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_SPARSE_OBJECT}g[c]=d;c<e&&(a[module$contents$jspb$internal_indexFromFieldNumber(c,module$contents$jspb$internal_array_state_getArrayIndexOffset(b))]= void 0);f!==b&&(0,module$exports$jspb$internal_array_state.setArrayState)(a,f);return f}a[module$contents$jspb$internal_indexFromFieldNumber(c,module$contents$jspb$internal_array_state_getArrayIndexOffset(b))]=d;b&module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_SPARSE_OBJECT&&(a=a[a.length-1],c in a&&delete a[c]);return b}jspb_internal_adapters.hasField=function(a,b,c){c=c===void 0?!1:c;return jspb_internal_adapters.getFieldNullable(a,b,c)!=null}; jspb_internal_adapters.hasWrapperField=function(a,b,c,d){d=d===void 0?!1:d;return module$contents$jspb_internal_adapters_getReadonlyWrapperFieldOrUndefined(a,b,c,d)!==void 0};var module$contents$jspb_internal_adapters_RepeatedArrayReturnType={FROZEN:1,UNFROZEN:2,EITHER_FROZEN_OR_UNFROZEN:3,FROZEN_IF_OWNED:4,ASYNC_THROW_WHEN_MUTATED_IF_OWNED:5};jspb_internal_adapters.RepeatedArrayReturnType=module$contents$jspb_internal_adapters_RepeatedArrayReturnType; function module$contents$jspb_internal_adapters_assertMessageReturnedSafely(a,b,c){if(!goog.DEBUG||!a)return a;(0,goog.asserts.assert)(module$contents$jspb$internal_array_state_isImmutableArray(b)?module$contents$jspb$internal_isImmutableMessage(a):!0);module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&((0,goog.asserts.assert)((0,module$exports$jspb$internal_array_state.getMessageArrayState)(module$contents$jspb$internal_getInternalArray(a))&module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED), (0,goog.asserts.assert)(!((0,module$exports$jspb$internal_array_state.getMessageArrayState)(b)&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY)||(0,module$exports$jspb$internal_array_state.getMessageArrayState)(module$contents$jspb$internal_getInternalArray(a))&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY),c&&(0,module$exports$jspb$internal_array_state.getMessageArrayState)(b)&module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED&& (0,goog.asserts.assert)((0,module$exports$jspb$internal_array_state.getMessageArrayState)(module$contents$jspb$internal_getInternalArray(a))&(module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY),"Array must be either owned or immutable."));return a} function module$contents$jspb_internal_adapters_assertMapReturnedSafely(a,b){(0,goog.asserts.assert)(a.arrayState&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY||a.arrayState&module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED||!(a.arrayState&module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED));(0,goog.asserts.assert)(module$contents$jspb$internal_map_isImmutableMap(a)===module$contents$jspb$internal_array_state_isImmutableArray(b)); if(module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&a.valueCtor)for(var c=(0,$jscomp.makeIterator)(a.rawValuesInternal_()),d=c.next();!d.done;d=c.next())if((d=d.value)&&typeof d=="object"&&module$contents$jspb$internal_isMessage(d)&&module$contents$jspb_internal_adapters_assertMessageReturnedSafely(d,b,void 0),Array.isArray(d)){var e=(0,module$exports$jspb$internal_array_state.getArrayState)(d);e&module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED&&module$contents$jspb$internal_array_state_checkMessageStateInvariants(d, e)}return a} function module$contents$jspb_internal_adapters_assertArrayReturnedSafely(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;module$contents$jspb$internal_assertArrayInvariants(a,c);(0,goog.asserts.assert)(module$contents$jspb$internal_array_state_isRepeatedField(a));var e=(0,module$exports$jspb$internal_array_state.getArrayState)(a);e&module$exports$jspb$internal_array_state.ArrayStateFlags.DESERIALIZED_FROM_BINARY&&(0,goog.asserts.assert)(e&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY,"state from binary must be immutable"); c||(d||(0,goog.asserts.assert)(Object.isFrozen(a)||!module$contents$jspb$internal_array_state_areMutableReferencesOwned(a)),(0,goog.asserts.assert)(module$contents$jspb$internal_array_state_isImmutableArray(b)?Object.isFrozen(a):!0));return a}jspb_internal_adapters.hasOneofWrapperField=function(a,b,c,d){return module$contents$jspb_internal_adapters_getReadonlyWrapperFieldOrUndefined(a,b,jspb_internal_adapters.isOneofCase(a,d,c))!==void 0}; jspb_internal_adapters.getRepeatedField=function(a,b,c){c=c===void 0?!1:c;a=module$contents$jspb$internal_getInternalArray(a);var d=a;var e=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(a),f=e&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY,g=jspb_internal_adapters.getFieldNullableInternal(d,e,b,c);Array.isArray(g)||(g=module$exports$jspb$internal.EMPTY_LIST_SENTINEL);var h=(0,module$exports$jspb$internal_array_state.getArrayState)(g);h&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD|| (h|=module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD,(0,module$exports$jspb$internal_array_state.setArrayState)(g,h));f?(h&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY||module$contents$jspb$internal_array_state_markArrayImmutable(g),Object.freeze(g)):(f=!!(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY&h)||!!(module$exports$jspb$internal_array_state.ArrayStateFlags.FROZEN_ARRAY&h))?(g=module$contents$jspb$internal_operations_slice(g), h=module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD,(0,module$exports$jspb$internal_array_state.setArrayState)(g,h),module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(d,e,b,g,c)):h&module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED&&!f&&module$contents$jspb$internal_array_state_markShared(g);d=g;return module$contents$jspb_internal_adapters_assertArrayReturnedSafely(d,a)}; jspb_internal_adapters.getRepeatedFieldForBinary=function(a,b,c){c=c===void 0?!1:c;var d=module$contents$jspb$internal_array_state_getPossiblyUnconstructedMessageArrayState(a);return module$contents$jspb_internal_adapters_getRepeatedFieldInternalForBinary(a,d,b,!1,c)}; jspb_internal_adapters.getRepeatedWrapperCount=function(a,b,c,d){d=d===void 0?!1:d;var e=module$contents$jspb$internal_getInternalArray(a);a=module$contents$jspb_internal_adapters_getRepeatedWrapperFieldInternal(a,(0,module$exports$jspb$internal_array_state.getMessageArrayState)(e),b,c,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,d,!0);return a.length}; jspb_internal_adapters.getRepeatedIndexedReadonlyWrapper=function(a,b,c,d,e){e=e===void 0?!1:e;var f=module$contents$jspb$internal_getInternalArray(a);a=module$contents$jspb_internal_adapters_getRepeatedWrapperFieldInternal(a,(0,module$exports$jspb$internal_array_state.getMessageArrayState)(f),c,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,e,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,d);return a[d]}; jspb_internal_adapters.getRepeatedIndexedWrapper=function(a,b,c,d,e){e=e===void 0?!1:e;a=jspb_internal_adapters.getRepeatedWrapperField(a,c,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,e);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,d);return a[d]}; jspb_internal_adapters.getRepeatedIndexedMutableWrapper=function(a,b,c,d,e){e=e===void 0?!1:e;var f=module$contents$jspb$internal_getInternalArray(a);f=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(f);module$contents$jspb$internal_checkNotImmutableState(f);a=module$contents$jspb_internal_adapters_getRepeatedWrapperFieldInternal(a,f,c,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.UNFROZEN,e,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,d); c=a[d];b=module$contents$jspb$internal_immutability_messageToMutable(c);c!==b&&(a[d]=b,d=(0,module$exports$jspb$internal_array_state.getArrayState)(a),module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_IMMUTABLE_VALUES_IF_OWNED&d&&(d&=~module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_IMMUTABLE_VALUES_IF_OWNED,(0,module$exports$jspb$internal_array_state.setArrayState)(a,d)));return b}; jspb_internal_adapters.setRepeatedIndexedWrapper=function(a,b,c,d,e,f){f=f===void 0?!1:f;var g=a;module$contents$jspb_internal_adapters_spliceRepeatedWrapperField(g,b,c,e,d,f,1);return a}; jspb_internal_adapters.getFloatingPointFieldNullable=function(a,b,c){a=module$contents$jspb$internal_getInternalArray(a);var d=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(a),e=jspb_internal_adapters.getFieldNullableInternal(a,d,b,c),f=module$contents$jspb$internal_accessor_helpers_coerceToNullishFloatingPoint(e);f!=null&&f!==e&&module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(a,d,b,f,c);return f}; jspb_internal_adapters.getBytesFieldNullable=function(a,b,c){a=module$contents$jspb$internal_getInternalArray(a);var d=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(a),e=jspb_internal_adapters.getFieldNullableInternal(a,d,b,c),f=module$contents$jspb_internal_adapters_coerceToNullishBytes(e);f!=null&&f!==e&&module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(a,d,b,f,c);return f}; jspb_internal_adapters.getRepeatedFieldReturnType=function(a){return a===module$exports$jspb$internal.DO_NOT_FREEZE__LEGACY_OPTION?module$contents$jspb_internal_adapters_RepeatedArrayReturnType.UNFROZEN:module$contents$jspb_internal_adapters_RepeatedArrayReturnType.FROZEN_IF_OWNED}; function module$contents$jspb_internal_adapters_getApiFormattedRepeatedField(a,b,c,d,e,f,g){var h=module$contents$jspb$internal_getInternalArray(a),k=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(h),l=!!(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY&k),m=l?module$contents$jspb_internal_adapters_RepeatedArrayReturnType.FROZEN:d;f=!!f;d=module$contents$jspb_internal_adapters_getRawRepeatedFieldWithDefault(h,k,b,e);l=(0,module$exports$jspb$internal_array_state.getArrayState)(d); module$contents$jspb$internal_assertRepeated64BitIntegerFieldApiFormattingInvariants(d);var n=l,p=g,q=f;module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED&n?p==null?a=!1:((0,goog.asserts.assert)(p===module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY||p===module$exports$jspb$internal_array_state.ArrayStateFlags.STRING_FORMATTED||p===module$exports$jspb$internal_array_state.ArrayStateFlags.GBIGINT_FORMATTED,"Expected format type to be one of legacy, string, or gbigint, but got "+ p),!q&&p===module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY&&(module$exports$jspb$internal_array_state.ArrayStateFlags.STRING_FORMATTED&n||module$exports$jspb$internal_array_state.ArrayStateFlags.GBIGINT_FORMATTED&n)&&module$contents$jspb$internal_options_asyncThrowIfStringTypedInt64FieldDowngrade&&(a.constructor[module$exports$jspb$internal_symbols.STRING_TYPE_DOWNGRADES_SYMBOL]=(a.constructor[module$exports$jspb$internal_symbols.STRING_TYPE_DOWNGRADES_SYMBOL]|0)+1)<5&&module$contents$jspb$exceptions_asyncThrowWarning(goog.DEBUG? "an _asLegacyNumberOrString accessor was called after an _asString accessor: this can cause type errors when numeric values are expected -- we recommend standardizing your whole application on the _asString version. See go/jspb-gencode?polyglot=typescript#int64-string-accessors for more information.":"int64 downgrade"),a=p===module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY?!1:!(p&n)):a=!0;if(a){module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED&l&&(d=module$contents$jspb$internal_operations_slice(d), l=module$contents$jspb_internal_adapters_setFlagsForSlicedArray(l,k),k=module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(h,k,b,d,e));for(n=a=0;a<d.length;a++)p=c(d[a]),p!=null&&(d[n++]=p);n<a&&(d.length=n);l=module$contents$jspb_internal_adapters_setFlagsForRepeatedField(l,k);l|=module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED|module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_IMMUTABLE_VALUES_IF_OWNED;l=module$contents$jspb$internal_array_state_clearTypeSpecificFormattedFlagBits(l); g&&(l|=g);(0,module$exports$jspb$internal_array_state.setArrayState)(d,l);module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY&l&&Object.freeze(d)}var r;module$contents$jspb_internal_adapters_shouldReturnFrozen(m,l)?module$contents$jspb_internal_adapters_isFrozenByFlags(l,d)||(k=l,l|=module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY,l!==k&&(0,module$exports$jspb$internal_array_state.setArrayState)(d,l),Object.freeze(d)):(c=module$contents$jspb_internal_adapters_shouldAsyncThrowOnMutation(m, l,d),(m===module$contents$jspb_internal_adapters_RepeatedArrayReturnType.UNFROZEN||c)&&module$contents$jspb_internal_adapters_isFrozenByFlags(l,d)&&(d=module$contents$jspb$internal_operations_slice(d),l=module$contents$jspb_internal_adapters_setFlagsForSlicedArray(l,k),l=module$contents$jspb_internal_adapters_updateOwnedState(l,k,f),(0,module$exports$jspb$internal_array_state.setArrayState)(d,l),k=module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(h,k,b,d,e)),module$contents$jspb_internal_adapters_isFrozenByFlags(l, d)||(b=l,l=module$contents$jspb_internal_adapters_updateOwnedState(l,k,f),l!==b&&(0,module$exports$jspb$internal_array_state.setArrayState)(d,l)),c?r=(0,module$exports$jspb$internal_array_proxy.setupAsyncThrowingArray)(d):m!==module$contents$jspb_internal_adapters_RepeatedArrayReturnType.UNFROZEN||f||(0,module$exports$jspb$internal_array_proxy.clearArrayProxy)(d));module$contents$jspb$internal_assertRepeated64BitIntegerFieldApiFormattingInvariants(d);f||module$contents$jspb_internal_adapters_assertArrayReturnedSafely(d, h,!1,f);return r||d}function module$contents$jspb_internal_adapters_getRawRepeatedFieldWithDefault(a,b,c,d){a=jspb_internal_adapters.getFieldNullableInternal(a,b,c,d);return Array.isArray(a)?a:module$exports$jspb$internal.EMPTY_LIST_SENTINEL} function module$contents$jspb_internal_adapters_setFlagsForRepeatedField(a,b){a===module$exports$jspb$internal_array_state.DEFAULT_ARRAY_STATE&&(a=module$contents$jspb_internal_adapters_setFlagsForSlicedArray(a,b));return a|=module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD} function module$contents$jspb_internal_adapters_isFrozenByFlags(a,b){a=!!(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY&a)&&!!(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED&a)||!!(module$exports$jspb$internal_array_state.ArrayStateFlags.FROZEN_ARRAY&a);module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&a&&(0,goog.asserts.assert)(Object.isFrozen(b));return a} function module$contents$jspb_internal_adapters_shouldReturnFrozen(a,b){return a===module$contents$jspb_internal_adapters_RepeatedArrayReturnType.FROZEN||a===module$contents$jspb_internal_adapters_RepeatedArrayReturnType.FROZEN_IF_OWNED&&!!(module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED&b)} function module$contents$jspb_internal_adapters_shouldAsyncThrowOnMutation(a,b,c){return a!==module$contents$jspb_internal_adapters_RepeatedArrayReturnType.ASYNC_THROW_WHEN_MUTATED_IF_OWNED?!1:!!(module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED&b)||module$contents$jspb_internal_adapters_isFrozenByFlags(b,c)||!!(0,module$exports$jspb$internal_array_proxy.getArrayProxy)(c)} function module$contents$jspb_internal_adapters_coerceToNullishBytes(a){return module$contents$jspb$internal_bytesAsByteString(a,!0,!0,!1)}jspb_internal_adapters.getFieldWithDefault=function(a,b,c,d){return module$contents$jspb_internal_adapters_orDefault(jspb_internal_adapters.getFieldNullable(a,b,d),c)}; jspb_internal_adapters.getBytesFieldWithDefault=function(a,b,c,d){a=jspb_internal_adapters.getBytesFieldNullable(a,b,d);return a==null?c===null?c:c===void 0?module$exports$jspb$bytestring.ByteString.empty():module$exports$jspb$bytestring.ByteString.fromBase64(c):a}; function module$contents$jspb_internal_adapters_shallowCopyMapEntryArray(a){a=module$contents$jspb$internal_operations_slice(a);for(var b=0;b<a.length;b++){var c=a[b]=module$contents$jspb$internal_operations_slice(a[b]);Array.isArray(c[1])&&(c[1]=module$contents$jspb$internal_array_state_markArrayImmutable(c[1]))}return a} function module$contents$jspb_internal_adapters_getReadonlyMapFieldInternal(a,b,c,d,e,f,g){var h=b&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY,k=!1;if(c==null){if(h)return module$contents$jspb_internal_adapters_assertMapReturnedSafely(module$contents$jspb$internal_map_getImmutableEmptyMap(),a);c=module$contents$jspb$internal_operations_logNewArray([])}else if(c.constructor===module$exports$jspb$internal_map.JspbMap){var l=(c.arrayState&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY)!= 0;if(l&&!h)c=c.toArrayInternalUnsorted();else return module$contents$jspb_internal_adapters_assertMapReturnedSafely(c,a)}else Array.isArray(c)?k=module$contents$jspb$internal_array_state_isImmutableArray(c):c=module$contents$jspb$internal_operations_logNewArray([]);if(h){if(!c.length)return module$contents$jspb$internal_map_getImmutableEmptyMap();k||(k=!0,module$contents$jspb$internal_array_state_markArrayImmutable(c))}else k&&(k=!1,c=module$contents$jspb_internal_adapters_shallowCopyMapEntryArray(c)); k||(module$contents$jspb$internal_array_state_isConstructed(c)?module$contents$jspb$internal_array_state_markShared(c):module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED&b&&module$contents$jspb$internal_array_state_markMutableReferencesAreOwned(c));e=new module$exports$jspb$internal_map.JspbMap(c,e,f,g);module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(a,b,d,e,!1);return module$contents$jspb_internal_adapters_assertMapReturnedSafely(e,a)} function module$contents$jspb_internal_adapters_getReadonlyMapField(a,b,c,d,e){a=module$contents$jspb$internal_getInternalArray(a);var f=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(a);return module$contents$jspb_internal_adapters_getReadonlyMapFieldInternal(a,f,jspb_internal_adapters.getFieldNullableInternal(a,f,b),b,c,d,e)} function module$contents$jspb_internal_adapters_getMapFieldInternal(a,b,c,d,e,f,g){var h=b&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY;a=module$contents$jspb_internal_adapters_getReadonlyMapFieldInternal(a,b,c,d,e,f,g);!h&&e&&(a.callToMutableOnAccess=!0);return a} jspb_internal_adapters.putIntoMapForBinary=function(a,b,c){var d=module$contents$jspb$internal_array_state_getPossiblyUnconstructedMessageArrayState(a);module$contents$jspb$internal_checkNotImmutableState(d);var e=jspb_internal_adapters.getFieldNullableInternal(a,d,b);if(e instanceof module$exports$jspb$internal_map.JspbMap){var f=(e.arrayState&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY)!=0;f?(e=e.toArrayInternalUnsorted(),e.push(c),module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(a, d,b,e)):e.setWireEntry(c)}else Array.isArray(e)?(module$contents$jspb$internal_array_state_isImmutableArray(e)&&(e=module$contents$jspb_internal_adapters_shallowCopyMapEntryArray(e),module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(a,d,b,e)),e.push(c)):module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(a,d,b,[c])}; jspb_internal_adapters.getMapField=function(a,b,c,d,e){a=module$contents$jspb$internal_getInternalArray(a);var f=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(a);return module$contents$jspb_internal_adapters_assertMapReturnedSafely(module$contents$jspb_internal_adapters_getMapFieldInternal(a,f,jspb_internal_adapters.getFieldNullableInternal(a,f,b),b,c,d,e),a)}; function module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,c,d){a=module$contents$jspb$internal_getInternalArray(a);var e=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(a);return module$contents$jspb_internal_adapters_assertMapReturnedSafely(module$contents$jspb_internal_adapters_getMapFieldInternal(a,e,jspb_internal_adapters.getFieldNullableInternal(a,e,b),b,void 0,c,d),a)} function module$contents$jspb_internal_adapters_getMessageValuedMapField(a,b,c,d){a=module$contents$jspb$internal_getInternalArray(a);var e=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(a);return module$contents$jspb_internal_adapters_assertMapReturnedSafely(module$contents$jspb_internal_adapters_getMapFieldInternal(a,e,jspb_internal_adapters.getFieldNullableInternal(a,e,b),b,c,d),a)} jspb_internal_adapters.clearMapField=function(a,b){var c=module$contents$jspb$internal_getInternalArray(a),d=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(c);module$contents$jspb$internal_checkNotImmutableState(d);var e=jspb_internal_adapters.getFieldNullableInternal(c,d,b);e instanceof module$exports$jspb$internal_map.JspbMap&&!module$contents$jspb$internal_map_isImmutableMap(e)?e.clear():module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(c,d,b,void 0); return a};function module$contents$jspb_internal_adapters_mapSetter(a,b){this.set(b,a)} function module$contents$jspb_internal_adapters_setRepeatedPrimitiveField(a,b,c,d,e){var f=module$contents$jspb$internal_getInternalArray(a),g=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(f);module$contents$jspb$internal_checkNotImmutableState(g);if(c==null)return module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(f,g,b,void 0,e),a;c=(0,module$exports$jspb$internal_array_proxy.getTargetArray)(c);module$contents$jspb$internal_accessor_helpers_checkRepeatedFieldIsArray(c); var h=(0,module$exports$jspb$internal_array_state.getArrayState)(c),k=h,l=!!(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED&h),m=module$contents$jspb_internal_adapters_isFrozenByFlags(h,c),n=m||Object.isFrozen(c);m||(h=0);n||(c=module$contents$jspb$internal_operations_slice(c),k=0,h=module$contents$jspb_internal_adapters_setFlagsForSlicedArray(h,g),h=module$contents$jspb_internal_adapters_updateOwnedState(h,g,!0),n=!1);h|=module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD| module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED|module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_IMMUTABLE_VALUES_IF_OWNED;var p;m=(p=module$contents$jspb$internal_array_state_getTypeSpecificApiFormat(h))!=null?p:module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY;if(module$exports$jspb$internal_options.STRICT_REPEATED_SETTER||!l)for(l=0;l<c.length;l++){p=c[l];var q=d(p,m);Object.is(p,q)||(n&&(c=module$contents$jspb$internal_operations_slice(c), k=0,h=module$contents$jspb_internal_adapters_setFlagsForSlicedArray(h,g),h=module$contents$jspb_internal_adapters_updateOwnedState(h,g,!0),n=!1),c[l]=q)}h!==k&&(n&&(c=module$contents$jspb$internal_operations_slice(c),h=module$contents$jspb_internal_adapters_setFlagsForSlicedArray(h,g),h=module$contents$jspb_internal_adapters_updateOwnedState(h,g,!0)),(0,module$exports$jspb$internal_array_state.setArrayState)(c,h));module$contents$jspb$internal_assertArrayInvariants(c);module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(f, g,b,c,e);return a} jspb_internal_adapters.setRepeatedField=function(a,b,c,d){var e=a;e=module$contents$jspb$internal_getInternalArray(e);var f=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(e);module$contents$jspb$internal_checkNotImmutableState(f);c==null?c=module$exports$jspb$internal.EMPTY_LIST_SENTINEL:(module$contents$jspb$internal_accessor_helpers_checkRepeatedFieldIsArray(c),c=module$contents$jspb$internal_array_state_addFlagsOnPossiblyFrozenArray(c,module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD));module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(e, f,b,c,d);return a}; jspb_internal_adapters.setRepeatedFieldIgnoringImmutability=function(a,b,c,d){c==null?c=void 0:(module$contents$jspb$internal_accessor_helpers_checkRepeatedFieldIsArray(c),c=module$contents$jspb$internal_array_state_addFlagsOnPossiblyFrozenArray(c,module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD));var e=module$contents$jspb$internal_getInternalArray(a);module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(e,(0,module$exports$jspb$internal_array_state.getMessageArrayState)(e),b, c,d);return a};jspb_internal_adapters.clearField=function(a,b,c){return jspb_internal_adapters.setField(a,b,void 0,c)};jspb_internal_adapters.clearOneofField=function(a,b,c){return jspb_internal_adapters.setOneofField(a,b,c,void 0)}; function module$contents$jspb_internal_adapters_setFieldIgnoringDefault(a,b,c,d){var e=a;e=module$contents$jspb$internal_getInternalArray(e);var f=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(e);module$contents$jspb$internal_checkNotImmutableState(f);d=d==="0"?Number(c)===0:c===d;module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(e,f,b,d?void 0:c);return a} function module$contents$jspb_internal_adapters_addAllToRepeatedFieldImpl(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,c,d,void 0,e,void 0,void 0,!0)} function module$contents$jspb_internal_adapters_getRepeatedFieldInternalForBinary(a,b,c,d,e){module$contents$jspb$internal_checkNotImmutableState(b);var f=!!(module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED&b)||!(module$exports$jspb$internal_array_state.ArrayStateFlags.DESERIALIZED_FROM_BINARY&b),g=module$contents$jspb_internal_adapters_getRawRepeatedFieldWithDefault(a,b,c,e),h=g!==module$exports$jspb$internal.EMPTY_LIST_SENTINEL;if(f||!h){var k=f=h?(0,module$exports$jspb$internal_array_state.getArrayState)(g): 0;if(!h||module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY&k||module$contents$jspb_internal_adapters_isFrozenByFlags(k,g)||module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED&k&&!(module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED&k))g=module$contents$jspb$internal_operations_slice(g),k=module$contents$jspb_internal_adapters_setFlagsForSlicedArray(k,b),b=module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(a, b,c,g,e);k=module$contents$jspb_internal_adapters_setFlagsForRepeatedField(k,b)&~(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED|module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES);k=module$contents$jspb$internal_array_state_setFlagBitTo(k,module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_IMMUTABLE_VALUES_IF_OWNED,!d);k=module$contents$jspb_internal_adapters_updateOwnedState(k,b,!0);k!==f&&(0,module$exports$jspb$internal_array_state.setArrayState)(g, k)}module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&((0,goog.asserts.assert)((0,module$exports$jspb$internal_array_state.getArrayState)(g)&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD),(0,goog.asserts.assert)(!((0,module$exports$jspb$internal_array_state.getArrayState)(g)&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY)),(0,goog.asserts.assert)(!((0,module$exports$jspb$internal_array_state.getArrayState)(g)&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED))); return g}jspb_internal_adapters.addToRepeatedFieldForBinary=function(a,b,c,d){var e=module$contents$jspb$internal_array_state_getPossiblyUnconstructedMessageArrayState(a);module$contents$jspb_internal_adapters_getRepeatedFieldInternalForBinary(a,e,b,!1,d).push(c)}; jspb_internal_adapters.setOneofField=function(a,b,c,d){var e=a,f=module$contents$jspb$internal_getInternalArray(e),g=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(f);module$contents$jspb$internal_checkNotImmutableState(g);if(d==null){var h=module$contents$jspb_internal_adapters_getOneofsCaseMap(f),k=module$contents$jspb_internal_adapters_computeOneofCaseInternal(h,f,g,c);if(k===b)h.set(c,0);else return e}else g=module$contents$jspb_internal_adapters_setOneofCaseNumber(f,g,c,b); module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(f,g,b,d);return a};jspb_internal_adapters.setOneofFieldForBinary=function(a,b,c,d){(0,goog.asserts.assertExists)(d);var e=module$contents$jspb$internal_array_state_getPossiblyUnconstructedMessageArrayState(a);e=module$contents$jspb_internal_adapters_setOneofCaseNumber(a,e,c,b);module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(a,e,b,d)}; jspb_internal_adapters.isOneofCase=function(a,b,c){return jspb_internal_adapters.computeOneofCase(a,b)===c?c:-1};jspb_internal_adapters.computeOneofCase=function(a,b){a=module$contents$jspb$internal_getInternalArray(a);return module$contents$jspb_internal_adapters_computeOneofCaseInternal(module$contents$jspb_internal_adapters_getOneofsCaseMap(a),a,(0,module$exports$jspb$internal_array_state.getMessageArrayState)(a),b)}; function module$contents$jspb_internal_adapters_getOneofsCaseMap(a){var b=a;if(module$exports$jspb$internal_symbols.HAS_NATIVE_SYMBOL){var c,d,e;return(e=(c=b)[d=module$exports$jspb$internal_symbols.ONEOF_ARRAY_SYMBOL])!=null?e:c[d]=new Map}if(module$exports$jspb$internal_symbols.ONEOF_ARRAY_SYMBOL in a)return(0,goog.asserts.assertInstanceof)(b[module$exports$jspb$internal_symbols.ONEOF_ARRAY_SYMBOL],Map);a=new Map;Object.defineProperty(b,module$exports$jspb$internal_symbols.ONEOF_ARRAY_SYMBOL,{value:a}); return a}function module$contents$jspb_internal_adapters_setOneofCaseNumber(a,b,c,d){(0,goog.asserts.assert)(c.includes(d));var e=module$contents$jspb_internal_adapters_getOneofsCaseMap(a),f=module$contents$jspb_internal_adapters_computeOneofCaseInternal(e,a,b,c);f!==d&&(f&&(b=module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(a,b,f,void 0)),e.set(c,d));return b} function module$contents$jspb_internal_adapters_computeOneofCaseInternal(a,b,c,d){var e=a.get(d);if(e!=null)return e;for(var f=e=0;f<d.length;f++){var g=d[f];jspb_internal_adapters.getFieldNullableInternal(b,c,g)!=null&&(e!==0&&(c=module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(b,c,e,void 0)),e=g)}a.set(d,e);return e} jspb_internal_adapters.getMutableOneofWrapperField=function(a,b,c,d){var e=module$contents$jspb$internal_getInternalArray(a);module$contents$jspb_internal_adapters_setOneofCaseNumber(e,(0,module$exports$jspb$internal_array_state.getMessageArrayState)(e),d,c);return jspb_internal_adapters.getMutableWrapperField(a,b,c)}; jspb_internal_adapters.getMutableWrapperField=function(a,b,c,d){a=module$contents$jspb$internal_getInternalArray(a);var e=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(a);module$contents$jspb$internal_checkNotImmutableState(e);var f=jspb_internal_adapters.getFieldNullableInternal(a,e,c,d);b=module$contents$jspb$internal_immutability_messageToMutable(module$contents$jspb$internal_accessor_helpers_messageFromInlineStorage(f,b,!0,e));f!==b&&module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(a, e,c,b,d);return b};jspb_internal_adapters.getMutableOneofWrapperArrayForBinary=function(a,b,c,d){var e=(0,module$exports$jspb$internal_array_state.getArrayState)(a);module$contents$jspb_internal_adapters_setOneofCaseNumber(a,e,d,c);return jspb_internal_adapters.getMutableWrapperArrayForBinary(a,b,c)}; jspb_internal_adapters.getMutableWrapperArrayForBinary=function(a,b,c,d){var e=module$contents$jspb$internal_array_state_getPossiblyUnconstructedMessageArrayState(a),f=jspb_internal_adapters.getFieldNullableInternal(a,e,c,d);if(f!=null&&module$contents$jspb$internal_isMessage(f))return b=f,f=module$contents$jspb$internal_immutability_messageToMutable(b),f!==b&&module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(a,e,c,f,d),module$contents$jspb$internal_getInternalArray(f);if(Array.isArray(f)){var g= (0,module$exports$jspb$internal_array_state.getArrayState)(f);var h=g&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY?module$contents$jspb$internal_construct_constructMessageArrayFromMetaForBinary(module$contents$jspb$internal_immutability_copyArrayWithImmutableFields(f,g,!1),b,!0):g&module$exports$jspb$internal_array_state.ArrayStateFlags.CONSTRUCTED?f:module$contents$jspb$internal_construct_constructMessageArrayFromMetaForBinary(h,b,!0)}else h=module$contents$jspb$internal_construct_constructMessageArrayFromMetaForBinary(void 0, b,!0);h!==f&&module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(a,e,c,h,d);return h}; function module$contents$jspb_internal_adapters_getReadonlyWrapperFieldOrUndefined(a,b,c,d){a=module$contents$jspb$internal_getInternalArray(a);var e=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(a),f=jspb_internal_adapters.getFieldNullableInternal(a,e,c,d);b=module$contents$jspb$internal_accessor_helpers_messageFromInlineStorage(f,b,!1,e);(f=b!==f&&b!=null)&&module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(a,e,c,b,d);return module$contents$jspb_internal_adapters_assertMessageReturnedSafely(b, a,f)}jspb_internal_adapters.getReadonlyWrapperField=function(a,b,c,d){d=d===void 0?!1:d;return(a=module$contents$jspb_internal_adapters_getReadonlyWrapperFieldOrUndefined(a,b,c,d))?a:module$contents$jspb$internal_accessor_helpers_getDefaultImmutableInstance(b)}; jspb_internal_adapters.getWrapperFieldOrUndefined=function(a,b,c,d){d=d===void 0?!1:d;b=module$contents$jspb_internal_adapters_getReadonlyWrapperFieldOrUndefined(a,b,c,d);if(b==null)return b;a=module$contents$jspb$internal_getInternalArray(a);var e=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(a);if(!(e&module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY)){var f=module$contents$jspb$internal_immutability_messageToMutable(b);f!==b&&(b=f,module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(a, e,c,b,d))}return module$contents$jspb_internal_adapters_assertMessageReturnedSafely(b,a,void 0)};jspb_internal_adapters.getReadonlyRepeatedWrapperField=function(a,b,c,d){var e=module$contents$jspb$internal_getInternalArray(a);return module$contents$jspb_internal_adapters_getRepeatedWrapperFieldInternal(a,(0,module$exports$jspb$internal_array_state.getMessageArrayState)(e),b,c,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.FROZEN,d)}; function module$contents$jspb_internal_adapters_getRepeatedWrapperFieldInternal(a,b,c,d,e,f,g,h){var k=module$contents$jspb$internal_getInternalArray(a),l=!!(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY&b);a=l?module$contents$jspb_internal_adapters_RepeatedArrayReturnType.FROZEN:e;g=!!g;h&&(h=!l);e=module$contents$jspb_internal_adapters_getRawRepeatedFieldWithDefault(k,b,d,f);var m=(0,module$exports$jspb$internal_array_state.getArrayState)(e);l=!!(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED& m);if(!l){m=module$contents$jspb_internal_adapters_setFlagsForRepeatedField(m,b);var n=e,p=b,q=!!(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY&m);q&&(p|=module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY);for(var r=!q,t=!0,u=0,w=0;u<n.length;u++){var v=n[u];v=module$contents$jspb$internal_accessor_helpers_messageFromInlineStorage(v,c,!1,p);if(v instanceof c){if(!q){var x=module$contents$jspb$internal_isImmutableMessage(v);r&&(r=!x);t&&(t=x)}n[w++]= v}}w<u&&(n.length=w);m|=module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED;m=module$contents$jspb$internal_array_state_setFlagBitTo(m,module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_IMMUTABLE_VALUES_IF_OWNED,t);m=module$contents$jspb$internal_array_state_setFlagBitTo(m,module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES,r);(0,module$exports$jspb$internal_array_state.setArrayState)(n,m);q&&Object.freeze(n)}if(h&&(h=!!(module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES& m)||!e.length&&module$contents$jspb_internal_adapters_shouldReturnFrozen(a,m),!h)){module$contents$jspb_internal_adapters_isFrozenByFlags(m,e)&&(e=module$contents$jspb$internal_operations_slice(e),m=module$contents$jspb_internal_adapters_setFlagsForSlicedArray(m,b),b=module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(k,b,d,e,f));h=e;n=m;for(c=0;c<h.length;c++)m=h[c],p=module$contents$jspb$internal_immutability_messageToMutable(m),m!==p&&(h[c]=p);n|=module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES; n=module$contents$jspb$internal_array_state_setFlagBitTo(n,module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_IMMUTABLE_VALUES_IF_OWNED,!h.length);(0,module$exports$jspb$internal_array_state.setArrayState)(h,n);m=n}var A;module$contents$jspb_internal_adapters_shouldReturnFrozen(a,m)?module$contents$jspb_internal_adapters_isFrozenByFlags(m,e)||(b=m,d=!!(module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED&m),d=!e.length||!!(module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_IMMUTABLE_VALUES_IF_OWNED& m)&&(!l||d),m|=d?module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY:module$exports$jspb$internal_array_state.ArrayStateFlags.FROZEN_ARRAY,m!==b&&(0,module$exports$jspb$internal_array_state.setArrayState)(e,m),Object.freeze(e)):(h=module$contents$jspb_internal_adapters_shouldAsyncThrowOnMutation(a,m,e),(a===module$contents$jspb_internal_adapters_RepeatedArrayReturnType.UNFROZEN||h)&&module$contents$jspb_internal_adapters_isFrozenByFlags(m,e)&&(e=module$contents$jspb$internal_operations_slice(e), m=module$contents$jspb_internal_adapters_setFlagsForSlicedArray(m,b),m=module$contents$jspb_internal_adapters_updateOwnedState(m,b,g),(0,module$exports$jspb$internal_array_state.setArrayState)(e,m),b=module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(k,b,d,e,f)),module$contents$jspb_internal_adapters_isFrozenByFlags(m,e)||(d=m,m=module$contents$jspb_internal_adapters_updateOwnedState(m,b,g),m!==d&&(0,module$exports$jspb$internal_array_state.setArrayState)(e,m)),h?A=(0,module$exports$jspb$internal_array_proxy.setupAsyncThrowingArray)(e): a!==module$contents$jspb_internal_adapters_RepeatedArrayReturnType.UNFROZEN||g||(0,module$exports$jspb$internal_array_proxy.clearArrayProxy)(e));if(!g&&(g=e,l=!l,a=a===module$contents$jspb_internal_adapters_RepeatedArrayReturnType.UNFROZEN,a=a===void 0?!1:a,module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS)){b=module$contents$jspb$internal_array_state_isImmutableArray(k);d=module$contents$jspb$internal_array_state_isImmutableArray(g);f=(f=Object.isFrozen(g))&& d;module$contents$jspb_internal_adapters_assertArrayReturnedSafely(g,k,a);if(b||d)a?(0,goog.asserts.assert)(d):(0,goog.asserts.assert)(f);(0,goog.asserts.assert)(module$contents$jspb$internal_array_state_isApiFormattedField(g));if(d&&g.length)for(a=1,module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&(a=g.length),b=0;b<a;b++)module$contents$jspb_internal_adapters_assertMessageReturnedSafely(g[b],k,l)}return A||e} jspb_internal_adapters.getReadonlyOneofWrapperField=function(a,b,c,d){return jspb_internal_adapters.getReadonlyWrapperField(a,b,jspb_internal_adapters.isOneofCase(a,d,c))}; jspb_internal_adapters.getRepeatedWrapperField=function(a,b,c,d,e){var f=module$contents$jspb$internal_getInternalArray(a);f=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(f);var g=!!(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY&f);return module$contents$jspb_internal_adapters_getRepeatedWrapperFieldInternal(a,f,b,c,d,e,!1,!g)}; jspb_internal_adapters.setWrapperField=function(a,b,c,d,e){d!=null?module$contents$jspb$internal_accessor_helpers_checkMessageType(d,(0,goog.asserts.assertExists)(b)):d=void 0;return jspb_internal_adapters.setField(a,c,d,e)};jspb_internal_adapters.setOneofWrapperField=function(a,b,c,d,e){e!=null?module$contents$jspb$internal_accessor_helpers_checkMessageType(e,(0,goog.asserts.assertExists)(b)):e=void 0;return jspb_internal_adapters.setOneofField(a,c,d,e)}; jspb_internal_adapters.setRepeatedWrapperField=function(a,b,c,d,e){var f=a;f=module$contents$jspb$internal_getInternalArray(f);var g=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(f);module$contents$jspb$internal_checkNotImmutableState(g);if(d==null)return module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(f,g,c,void 0,e),a;d=(0,module$exports$jspb$internal_array_proxy.getTargetArray)(d);module$contents$jspb$internal_accessor_helpers_checkRepeatedFieldIsArray(d); for(var h=(0,module$exports$jspb$internal_array_state.getArrayState)(d),k=h,l=module$contents$jspb_internal_adapters_isFrozenByFlags(h,d),m=l||Object.isFrozen(d),n=!0,p=!0,q=0;q<d.length;q++){var r=d[q];module$contents$jspb$internal_accessor_helpers_checkMessageType(r,(0,goog.asserts.assertExists)(b));l||(r=module$contents$jspb$internal_isImmutableMessage(r),n&&(n=!r),p&&(p=r))}l||(h=module$exports$jspb$internal_array_state.ArrayStateFlags.IS_REPEATED_FIELD|module$exports$jspb$internal_array_state.ArrayStateFlags.IS_API_FORMATTED, h=module$contents$jspb$internal_array_state_setFlagBitTo(h,module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES,n),h=module$contents$jspb$internal_array_state_setFlagBitTo(h,module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_IMMUTABLE_VALUES_IF_OWNED,p));m&&h===k||(d=module$contents$jspb$internal_operations_slice(d),k=0,h=module$contents$jspb_internal_adapters_setFlagsForSlicedArray(h,g),h=module$contents$jspb_internal_adapters_updateOwnedState(h,g,!0));h!==k&&(0,module$exports$jspb$internal_array_state.setArrayState)(d, h);module$contents$jspb$internal_assertArrayInvariants(d);module$contents$jspb_internal_adapters_setFieldIgnoringImmutabilityInternal(f,g,c,d,e);return a}; function module$contents$jspb_internal_adapters_setFlagsForSlicedArray(a,b){b=!!(module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY&b);a=module$contents$jspb$internal_array_state_setFlagBitTo(a,module$exports$jspb$internal_array_state.ArrayStateFlags.IS_IMMUTABLE_ARRAY,b);a|=module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED;return a&=~module$exports$jspb$internal_array_state.ArrayStateFlags.FROZEN_ARRAY} function module$contents$jspb_internal_adapters_updateOwnedState(a,b,c){(b=!!(module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED&b))&&c||(a&=~module$exports$jspb$internal_array_state.ArrayStateFlags.MUTABLE_REFERENCES_ARE_OWNED);return a} function module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,c,d,e,f,g,h,k,l){var m=a,n=module$contents$jspb$internal_getInternalArray(m);n=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(n);module$contents$jspb$internal_checkNotImmutableState(n);b=module$contents$jspb_internal_adapters_getApiFormattedRepeatedField(m,b,f,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.UNFROZEN,g,!0);f=(0,module$exports$jspb$internal_array_state.getArrayState)(b); var p;f=(p=module$contents$jspb$internal_array_state_getTypeSpecificApiFormat(f))!=null?p:module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY;if(k)if(Array.isArray(d))for(d=(0,module$exports$jspb$internal_array_proxy.getTargetArray)(d),e=d.length,h=0;h<e;h++)b.push(c(d[h],f));else for(d=(0,$jscomp.makeIterator)(d),e=d.next();!e.done;e=d.next())e=e.value,b.push(c(e,f));else h&&(0,goog.asserts.assert)(h===1),h&&l?(e!=null||(e=b.length-1),module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(b, e),b.splice(e,h)):(h&&module$contents$jspb$internal_checkRepeatedIndexInRangeForSet(b,e),e!=void 0?b.splice(e,h,c(d,f)):b.push(c(d,f)));module$contents$jspb$internal_assertRepeated64BitIntegerFieldApiFormattingInvariants(b);return a} function module$contents$jspb_internal_adapters_spliceRepeatedWrapperField(a,b,c,d,e,f,g,h){var k=module$contents$jspb$internal_getInternalArray(a);k=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(k);module$contents$jspb$internal_checkNotImmutableState(k);a=module$contents$jspb_internal_adapters_getRepeatedWrapperFieldInternal(a,k,c,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.UNFROZEN,f,!0);g&&(0,goog.asserts.assert)(g===1);if(g&&h)e!=null||(e=a.length-1),module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a, e),a.splice(e,g);else return g?(module$contents$jspb$internal_checkRepeatedIndexInRangeForSet(a,e),module$contents$jspb$internal_accessor_helpers_checkMessageType(d,c)):d=d!=null?module$contents$jspb$internal_accessor_helpers_checkMessageType(d,c):new c,e!=void 0?a.splice(e,g,d):a.push(d),module$contents$jspb$internal_isImmutableMessage(d)?(0,module$exports$jspb$internal_array_state.clearFlags)(a,module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES):(0,module$exports$jspb$internal_array_state.clearFlags)(a, module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_IMMUTABLE_VALUES_IF_OWNED),d}jspb_internal_adapters.addRepeatedWrapperArrayForBinary=function(a,b,c,d){var e=module$contents$jspb$internal_array_state_getPossiblyUnconstructedMessageArrayState(a);module$contents$jspb_internal_adapters_getRepeatedFieldInternalForBinary(a,e,b,!0,d).push(c)}; jspb_internal_adapters.addAndReturnRepeatedWrapperField=function(a,b,c,d,e,f){return module$contents$jspb_internal_adapters_spliceRepeatedWrapperField(a,b,c,d,e,f)};jspb_internal_adapters.addToRepeatedWrapperField=function(a,b,c,d,e,f){jspb_internal_adapters.addAndReturnRepeatedWrapperField(a,b,c,d,e,f);return a};jspb_internal_adapters.removeFromRepeatedWrapperField=function(a,b,c,d,e){module$contents$jspb_internal_adapters_spliceRepeatedWrapperField(a,b,c,void 0,d,e,1,!0);return a}; jspb_internal_adapters.addAllToRepeatedWrapperField=function(a,b,c,d){var e=module$contents$jspb$internal_getInternalArray(a);e=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(e);module$contents$jspb$internal_checkNotImmutableState(e);e=b=module$contents$jspb_internal_adapters_getRepeatedWrapperFieldInternal(a,e,c,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.UNFROZEN,!1,!0);var f=0,g=0;if(Array.isArray(d)){d=(0,module$exports$jspb$internal_array_proxy.getTargetArray)(d); for(var h=d.length,k=0;k<h;k++){var l=module$contents$jspb$internal_accessor_helpers_checkMessageType(d[k],c);b.push(l);(l=module$contents$jspb$internal_isImmutableMessage(l))&&!f++&&(0,module$exports$jspb$internal_array_state.clearFlags)(e,module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES);l||g++||(0,module$exports$jspb$internal_array_state.clearFlags)(e,module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_IMMUTABLE_VALUES_IF_OWNED)}}else for(d=(0,$jscomp.makeIterator)(d), h=d.next();!h.done;h=d.next())h=h.value,h=module$contents$jspb$internal_accessor_helpers_checkMessageType(h,c),b.push(h),(h=module$contents$jspb$internal_isImmutableMessage(h))&&!f++&&(0,module$exports$jspb$internal_array_state.clearFlags)(e,module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_MUTABLE_VALUES),h||g++||(0,module$exports$jspb$internal_array_state.clearFlags)(e,module$exports$jspb$internal_array_state.ArrayStateFlags.ONLY_IMMUTABLE_VALUES_IF_OWNED);return a}; jspb_internal_adapters.getInt64FieldNullable=function(a,b,c){b=module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64(jspb_internal_adapters.getFieldNullable(a,b,c));module$contents$jspb_internal_adapters_asyncThrowIf64BitIntReturnTypeMismatches(a,b,!1);return b};jspb_internal_adapters.getInt64FieldNullable_asString=function(a,b,c){return module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64String(jspb_internal_adapters.getFieldNullable(a,b,c),!0)}; jspb_internal_adapters.getInt64StringFieldNullable=function(a,b,c){b=module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64String(jspb_internal_adapters.getFieldNullable(a,b,c));module$contents$jspb_internal_adapters_asyncThrowIf64BitIntReturnTypeMismatches(a,b,!0);return b};jspb_internal_adapters.getInt64GbigintFieldNullable=function(a,b,c){return a=module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64Gbigint(jspb_internal_adapters.getFieldNullable(a,b,c))}; jspb_internal_adapters.getUint64FieldNullable=function(a,b,c){b=module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64(jspb_internal_adapters.getFieldNullable(a,b,c));module$contents$jspb_internal_adapters_asyncThrowIf64BitIntReturnTypeMismatches(a,b,!1);return b};jspb_internal_adapters.getUint64FieldNullable_asString=function(a,b,c){return module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64String(jspb_internal_adapters.getFieldNullable(a,b,c),!0)}; jspb_internal_adapters.getUint64StringFieldNullable=function(a,b,c){b=module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64String(jspb_internal_adapters.getFieldNullable(a,b,c));module$contents$jspb_internal_adapters_asyncThrowIf64BitIntReturnTypeMismatches(a,b,!0);return b};jspb_internal_adapters.getUint64GbigintFieldNullable=function(a,b,c){return a=module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64Gbigint(jspb_internal_adapters.getFieldNullable(a,b,c))}; jspb_internal_adapters.getRepeatedInt64Field=function(a,b,c,d,e){b=module$contents$jspb_internal_adapters_getApiFormattedRepeatedField(a,b,module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64,c,d,e,module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY);e||module$contents$jspb_internal_adapters_asyncThrowIfRepeated64BitIntReturnTypeMismatches(a,b,!1);return b}; jspb_internal_adapters.getRepeatedInt64GbigintField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_getApiFormattedRepeatedField(a,b,module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64Gbigint,c,d,e,module$exports$jspb$internal_array_state.TypeSpecificApiFormat.GBIGINT)};function module$contents$jspb_internal_adapters_coerceToNullishInt64StringWithForcedTypeChecking(a){return module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64String(a,!0)} jspb_internal_adapters.getRepeatedInt64Field_asString=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_getApiFormattedRepeatedField(a,b,module$contents$jspb_internal_adapters_coerceToNullishInt64StringWithForcedTypeChecking,c,d,e,module$exports$jspb$internal_array_state.TypeSpecificApiFormat.STRING)}; jspb_internal_adapters.getRepeatedInt64StringField=function(a,b,c,d,e){b=module$contents$jspb_internal_adapters_getApiFormattedRepeatedField(a,b,module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64String,c,d,e,module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY);e||module$contents$jspb_internal_adapters_asyncThrowIfRepeated64BitIntReturnTypeMismatches(a,b,!0);return b}; jspb_internal_adapters.getRepeatedUint64Field=function(a,b,c,d,e){b=module$contents$jspb_internal_adapters_getApiFormattedRepeatedField(a,b,module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64,c,d,e,module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY);e||module$contents$jspb_internal_adapters_asyncThrowIfRepeated64BitIntReturnTypeMismatches(a,b,!1);return b}; function module$contents$jspb_internal_adapters_coerceToNullishUint64StringWithForcedTypeChecking(a){return module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64String(a,!0)}jspb_internal_adapters.getRepeatedUint64Field_asString=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_getApiFormattedRepeatedField(a,b,module$contents$jspb_internal_adapters_coerceToNullishUint64StringWithForcedTypeChecking,c,d,e,module$exports$jspb$internal_array_state.TypeSpecificApiFormat.STRING)}; jspb_internal_adapters.getRepeatedUint64GbigintField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_getApiFormattedRepeatedField(a,b,module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64Gbigint,c,d,e,module$exports$jspb$internal_array_state.TypeSpecificApiFormat.GBIGINT)}; jspb_internal_adapters.getRepeatedUint64StringField=function(a,b,c,d,e){b=module$contents$jspb_internal_adapters_getApiFormattedRepeatedField(a,b,module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64String,c,d,e,module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY);e||module$contents$jspb_internal_adapters_asyncThrowIfRepeated64BitIntReturnTypeMismatches(a,b,!0);return b};function module$contents$jspb_internal_adapters_orDefault(a,b){var c;return(c=a)!=null?c:b} function module$contents$jspb_internal_adapters_checkBytes(a){return module$contents$jspb$internal_bytesAsByteString(a,!1,!1,!1)}jspb_internal_adapters.getRepeatedInt64StringField_asString=jspb_internal_adapters.getRepeatedInt64Field_asString;jspb_internal_adapters.getRepeatedUint64StringField_asString=jspb_internal_adapters.getRepeatedUint64Field_asString; jspb_internal_adapters.getBooleanFieldNullable=function(a,b,c){return module$contents$jspb$internal_accessor_helpers_coerceToNullishBoolean(jspb_internal_adapters.getFieldNullable(a,b,c))};jspb_internal_adapters.getInt32FieldNullable=function(a,b,c){return module$contents$jspb$internal_accessor_helpers_coerceToNullishInt32(jspb_internal_adapters.getFieldNullable(a,b,c))}; jspb_internal_adapters.getUint32FieldNullable=function(a,b,c){return module$contents$jspb$internal_accessor_helpers_coerceToNullishUint32(jspb_internal_adapters.getFieldNullable(a,b,c))};jspb_internal_adapters.getStringFieldNullable=function(a,b,c){return module$contents$jspb$internal_accessor_helpers_coerceToNullishString(jspb_internal_adapters.getFieldNullable(a,b,c))}; jspb_internal_adapters.getEnumFieldNullable=function(a,b,c){return module$contents$jspb$internal_accessor_helpers_coerceToNullishEnum(jspb_internal_adapters.getFieldNullable(a,b,c))};jspb_internal_adapters.getBooleanFieldWithDefault=function(a,b,c,d){c=c===void 0?!1:c;return module$contents$jspb_internal_adapters_orDefault(jspb_internal_adapters.getBooleanFieldNullable(a,b,d),c)}; jspb_internal_adapters.getInt32FieldWithDefault=function(a,b,c,d){c=c===void 0?0:c;return module$contents$jspb_internal_adapters_orDefault(jspb_internal_adapters.getInt32FieldNullable(a,b,d),c)};jspb_internal_adapters.getUint32FieldWithDefault=function(a,b,c,d){c=c===void 0?0:c;return module$contents$jspb_internal_adapters_orDefault(jspb_internal_adapters.getUint32FieldNullable(a,b,d),c)}; jspb_internal_adapters.getInt64FieldWithDefault=function(a,b,c,d){c=c===void 0?0:c;return module$contents$jspb_internal_adapters_orDefault(jspb_internal_adapters.getInt64FieldNullable(a,b,d),c)};jspb_internal_adapters.getUint64FieldWithDefault=function(a,b,c,d){c=c===void 0?0:c;return module$contents$jspb_internal_adapters_orDefault(jspb_internal_adapters.getUint64FieldNullable(a,b,d),c)}; jspb_internal_adapters.getInt64StringFieldWithDefault=function(a,b,c,d){c=c===void 0?"0":c;return module$contents$jspb_internal_adapters_orDefault(jspb_internal_adapters.getInt64StringFieldNullable(a,b,d),c)};jspb_internal_adapters.getUint64StringFieldWithDefault=function(a,b,c,d){c=c===void 0?"0":c;return module$contents$jspb_internal_adapters_orDefault(jspb_internal_adapters.getUint64StringFieldNullable(a,b,d),c)}; jspb_internal_adapters.getInt64GbigintFieldWithDefault=function(a,b,c,d){c=c===void 0?module$contents$jspb_internal_adapters_GBIGINT_ZERO:c;return module$contents$jspb_internal_adapters_orDefault(jspb_internal_adapters.getInt64GbigintFieldNullable(a,b,d),c)}; jspb_internal_adapters.getUint64GbigintFieldWithDefault=function(a,b,c,d){c=c===void 0?module$contents$jspb_internal_adapters_GBIGINT_ZERO:c;return module$contents$jspb_internal_adapters_orDefault(jspb_internal_adapters.getUint64GbigintFieldNullable(a,b,d),c)};jspb_internal_adapters.getFloatingPointFieldWithDefault=function(a,b,c,d){c=c===void 0?0:c;return module$contents$jspb_internal_adapters_orDefault(jspb_internal_adapters.getFloatingPointFieldNullable(a,b,d),c)}; jspb_internal_adapters.getStringFieldWithDefault=function(a,b,c,d){c=c===void 0?"":c;return module$contents$jspb_internal_adapters_orDefault(jspb_internal_adapters.getStringFieldNullable(a,b,d),c)};jspb_internal_adapters.getEnumFieldWithDefault=function(a,b,c,d){c=c===void 0?0:c;return module$contents$jspb_internal_adapters_orDefault(jspb_internal_adapters.getEnumFieldNullable(a,b,d),c)}; jspb_internal_adapters.getInt64FieldWithDefault_asString=function(a,b,c,d){c=c===void 0?"0":c;return module$contents$jspb_internal_adapters_orDefault(jspb_internal_adapters.getInt64FieldNullable_asString(a,b,d),c)};jspb_internal_adapters.getUint64FieldWithDefault_asString=function(a,b,c,d){c=c===void 0?"0":c;return module$contents$jspb_internal_adapters_orDefault(jspb_internal_adapters.getUint64FieldNullable_asString(a,b,d),c)}; jspb_internal_adapters.getInt64StringFieldWithDefault_asString=function(a,b,c,d){c=c===void 0?"0":c;return module$contents$jspb_internal_adapters_orDefault(jspb_internal_adapters.getInt64FieldNullable_asString(a,b,d),c)};jspb_internal_adapters.getUint64StringFieldWithDefault_asString=function(a,b,c,d){c=c===void 0?"0":c;return module$contents$jspb_internal_adapters_orDefault(jspb_internal_adapters.getUint64FieldNullable_asString(a,b,d),c)}; jspb_internal_adapters.getRepeatedBooleanField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_getApiFormattedRepeatedField(a,b,module$contents$jspb$internal_accessor_helpers_coerceToNullishBoolean,c,d,e)}; jspb_internal_adapters.getRepeatedIndexedBooleanField=function(a,b,c,d){a=jspb_internal_adapters.getRepeatedBooleanField(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,d,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,c);return a[c]}; jspb_internal_adapters.getRepeatedBooleanCount=function(a,b,c){return jspb_internal_adapters.getRepeatedBooleanField(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,c,!0).length};jspb_internal_adapters.getRepeatedInt32Field=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_getApiFormattedRepeatedField(a,b,module$contents$jspb$internal_accessor_helpers_coerceToNullishInt32,c,d,e)}; jspb_internal_adapters.getRepeatedIndexedInt32Field=function(a,b,c,d){a=jspb_internal_adapters.getRepeatedInt32Field(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,d,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,c);return a[c]}; jspb_internal_adapters.getRepeatedInt32Count=function(a,b,c){return jspb_internal_adapters.getRepeatedInt32Field(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,c,!0).length};jspb_internal_adapters.getRepeatedUint32Field=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_getApiFormattedRepeatedField(a,b,module$contents$jspb$internal_accessor_helpers_coerceToNullishUint32,c,d,e)}; jspb_internal_adapters.getRepeatedIndexedUint32Field=function(a,b,c,d){a=jspb_internal_adapters.getRepeatedUint32Field(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,d,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,c);return a[c]}; jspb_internal_adapters.getRepeatedUint32Count=function(a,b,c){return jspb_internal_adapters.getRepeatedUint32Field(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,c,!0).length}; jspb_internal_adapters.getRepeatedIndexedInt64Field=function(a,b,c,d){a=jspb_internal_adapters.getRepeatedInt64Field(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,d,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,c);return a[c]}; jspb_internal_adapters.getRepeatedInt64Count=function(a,b,c){return jspb_internal_adapters.getRepeatedInt64Field(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,c,!0).length}; jspb_internal_adapters.getRepeatedIndexedUint64Field=function(a,b,c,d){a=jspb_internal_adapters.getRepeatedUint64Field(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,d,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,c);return a[c]}; jspb_internal_adapters.getRepeatedUint64Count=function(a,b,c){return jspb_internal_adapters.getRepeatedUint64Field(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,c,!0).length}; jspb_internal_adapters.getRepeatedIndexedInt64StringField=function(a,b,c,d){a=jspb_internal_adapters.getRepeatedInt64StringField(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,d,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,c);return a[c]}; jspb_internal_adapters.getRepeatedInt64StringCount=function(a,b,c){return jspb_internal_adapters.getRepeatedInt64StringField(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,c,!0).length}; jspb_internal_adapters.getRepeatedIndexedUint64StringField=function(a,b,c,d){a=jspb_internal_adapters.getRepeatedUint64StringField(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,d,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,c);return a[c]}; jspb_internal_adapters.getRepeatedUint64StringCount=function(a,b,c){return jspb_internal_adapters.getRepeatedUint64StringField(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,c,!0).length}; jspb_internal_adapters.getRepeatedIndexedInt64GbigintField=function(a,b,c,d){a=jspb_internal_adapters.getRepeatedInt64GbigintField(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,d,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,c);return a[c]}; jspb_internal_adapters.getRepeatedIndexedUint64GbigintField=function(a,b,c,d){a=jspb_internal_adapters.getRepeatedUint64GbigintField(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,d,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,c);return a[c]}; jspb_internal_adapters.getRepeatedFloatingPointField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_getApiFormattedRepeatedField(a,b,module$contents$jspb$internal_accessor_helpers_coerceToNullishFloatingPoint,c,d,e)}; jspb_internal_adapters.getRepeatedIndexedFloatingPointField=function(a,b,c,d){a=jspb_internal_adapters.getRepeatedFloatingPointField(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,d,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,c);return a[c]}; jspb_internal_adapters.getRepeatedFloatingPointCount=function(a,b,c){return jspb_internal_adapters.getRepeatedFloatingPointField(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,c,!0).length};jspb_internal_adapters.getRepeatedStringField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_getApiFormattedRepeatedField(a,b,module$contents$jspb$internal_accessor_helpers_coerceToNullishString,c,d,e)}; jspb_internal_adapters.getRepeatedIndexedStringField=function(a,b,c,d){a=jspb_internal_adapters.getRepeatedStringField(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,d,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,c);return a[c]}; jspb_internal_adapters.getRepeatedStringCount=function(a,b,c){return jspb_internal_adapters.getRepeatedStringField(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,c,!0).length};jspb_internal_adapters.getRepeatedBytesField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_getApiFormattedRepeatedField(a,b,module$contents$jspb_internal_adapters_coerceToNullishBytes,c,d,e)}; jspb_internal_adapters.getRepeatedIndexedBytesField=function(a,b,c,d){a=jspb_internal_adapters.getRepeatedBytesField(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,d,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,c);return a[c]}; jspb_internal_adapters.getRepeatedBytesCount=function(a,b,c){return jspb_internal_adapters.getRepeatedBytesField(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,c,!0).length};jspb_internal_adapters.getRepeatedEnumField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_getApiFormattedRepeatedField(a,b,module$contents$jspb$internal_accessor_helpers_coerceToNullishEnum,c,d,e)}; jspb_internal_adapters.getRepeatedIndexedEnumField=function(a,b,c,d){a=jspb_internal_adapters.getRepeatedEnumField(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,d,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,c);return a[c]};jspb_internal_adapters.getRepeatedEnumCount=function(a,b,c){return jspb_internal_adapters.getRepeatedEnumField(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,c,!0).length}; jspb_internal_adapters.getRepeatedIndexedInt64Field_asString=function(a,b,c,d){a=jspb_internal_adapters.getRepeatedInt64Field_asString(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,d,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,c);return a[c]}; jspb_internal_adapters.getRepeatedIndexedUint64Field_asString=function(a,b,c,d){a=jspb_internal_adapters.getRepeatedUint64Field_asString(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,d,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,c);return a[c]}; jspb_internal_adapters.getRepeatedIndexedInt64StringField_asString=function(a,b,c,d){a=jspb_internal_adapters.getRepeatedInt64Field_asString(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,d,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,c);return a[c]}; jspb_internal_adapters.getRepeatedIndexedUint64StringField_asString=function(a,b,c,d){a=jspb_internal_adapters.getRepeatedUint64Field_asString(a,b,module$contents$jspb_internal_adapters_RepeatedArrayReturnType.EITHER_FROZEN_OR_UNFROZEN,d,!0);module$contents$jspb$internal_checkRepeatedIndexInRangeForGet(a,c);return a[c]};jspb_internal_adapters.getOneofBooleanFieldWithDefault=function(a,b,c,d){return jspb_internal_adapters.getBooleanFieldWithDefault(a,jspb_internal_adapters.isOneofCase(a,c,b),d)}; jspb_internal_adapters.getOneofInt32FieldWithDefault=function(a,b,c,d){return jspb_internal_adapters.getInt32FieldWithDefault(a,jspb_internal_adapters.isOneofCase(a,c,b),d)};jspb_internal_adapters.getOneofUint32FieldWithDefault=function(a,b,c,d){return jspb_internal_adapters.getUint32FieldWithDefault(a,jspb_internal_adapters.isOneofCase(a,c,b),d)}; jspb_internal_adapters.getOneofInt64FieldWithDefault=function(a,b,c,d){return jspb_internal_adapters.getInt64FieldWithDefault(a,jspb_internal_adapters.isOneofCase(a,c,b),d)};jspb_internal_adapters.getOneofInt64FieldWithDefault_asString=function(a,b,c,d){return jspb_internal_adapters.getInt64FieldWithDefault_asString(a,jspb_internal_adapters.isOneofCase(a,c,b),d)}; jspb_internal_adapters.getOneofUint64FieldWithDefault=function(a,b,c,d){return jspb_internal_adapters.getUint64FieldWithDefault(a,jspb_internal_adapters.isOneofCase(a,c,b),d)};jspb_internal_adapters.getOneofUint64FieldWithDefault_asString=function(a,b,c,d){return jspb_internal_adapters.getUint64FieldWithDefault_asString(a,jspb_internal_adapters.isOneofCase(a,c,b),d)}; jspb_internal_adapters.getOneofInt64StringFieldWithDefault=function(a,b,c,d){return jspb_internal_adapters.getInt64StringFieldWithDefault(a,jspb_internal_adapters.isOneofCase(a,c,b),d)};jspb_internal_adapters.getOneofInt64StringFieldWithDefault_asString=function(a,b,c,d){return jspb_internal_adapters.getInt64FieldWithDefault_asString(a,jspb_internal_adapters.isOneofCase(a,c,b),d)}; jspb_internal_adapters.getOneofUint64StringFieldWithDefault=function(a,b,c,d){return jspb_internal_adapters.getUint64StringFieldWithDefault(a,jspb_internal_adapters.isOneofCase(a,c,b),d)};jspb_internal_adapters.getOneofUint64StringFieldWithDefault_asString=function(a,b,c,d){return jspb_internal_adapters.getUint64FieldWithDefault_asString(a,jspb_internal_adapters.isOneofCase(a,c,b),d)}; jspb_internal_adapters.getOneofInt64GbigintFieldWithDefault=function(a,b,c,d){return jspb_internal_adapters.getInt64GbigintFieldWithDefault(a,jspb_internal_adapters.isOneofCase(a,c,b),d)};jspb_internal_adapters.getOneofUint64GbigintFieldWithDefault=function(a,b,c,d){return jspb_internal_adapters.getUint64GbigintFieldWithDefault(a,jspb_internal_adapters.isOneofCase(a,c,b),d)}; jspb_internal_adapters.getOneofFloatingPointFieldWithDefault=function(a,b,c,d){return jspb_internal_adapters.getFloatingPointFieldWithDefault(a,jspb_internal_adapters.isOneofCase(a,c,b),d)};jspb_internal_adapters.getOneofStringFieldWithDefault=function(a,b,c,d){return jspb_internal_adapters.getStringFieldWithDefault(a,jspb_internal_adapters.isOneofCase(a,c,b),d)}; jspb_internal_adapters.getOneofBytesFieldWithDefault=function(a,b,c,d){return jspb_internal_adapters.getBytesFieldWithDefault(a,jspb_internal_adapters.isOneofCase(a,c,b),d)};jspb_internal_adapters.getOneofEnumFieldWithDefault=function(a,b,c,d){return jspb_internal_adapters.getEnumFieldWithDefault(a,jspb_internal_adapters.isOneofCase(a,c,b),d)};jspb_internal_adapters.getOneofFieldNullable=function(a,b,c){return jspb_internal_adapters.getFieldNullable(a,jspb_internal_adapters.isOneofCase(a,c,b))}; jspb_internal_adapters.getOneofBooleanFieldNullable=function(a,b,c){return jspb_internal_adapters.getBooleanFieldNullable(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getOneofInt32FieldNullable=function(a,b,c){return jspb_internal_adapters.getInt32FieldNullable(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getOneofUint32FieldNullable=function(a,b,c){return jspb_internal_adapters.getUint32FieldNullable(a,jspb_internal_adapters.isOneofCase(a,c,b))}; jspb_internal_adapters.getOneofInt64FieldNullable=function(a,b,c){return jspb_internal_adapters.getInt64FieldNullable(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getOneofInt64FieldNullable_asString=function(a,b,c){return jspb_internal_adapters.getInt64FieldNullable_asString(a,jspb_internal_adapters.isOneofCase(a,c,b))}; jspb_internal_adapters.getOneofUint64FieldNullable=function(a,b,c){return jspb_internal_adapters.getUint64FieldNullable(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getOneofUint64FieldNullable_asString=function(a,b,c){return jspb_internal_adapters.getUint64FieldNullable_asString(a,jspb_internal_adapters.isOneofCase(a,c,b))}; jspb_internal_adapters.getOneofInt64StringFieldNullable=function(a,b,c){return jspb_internal_adapters.getInt64StringFieldNullable(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getOneofInt64StringFieldNullable_asString=function(a,b,c){return jspb_internal_adapters.getInt64FieldNullable_asString(a,jspb_internal_adapters.isOneofCase(a,c,b))}; jspb_internal_adapters.getOneofUint64StringFieldNullable=function(a,b,c){return jspb_internal_adapters.getUint64StringFieldNullable(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getOneofUint64StringFieldNullable_asString=function(a,b,c){return jspb_internal_adapters.getUint64FieldNullable_asString(a,jspb_internal_adapters.isOneofCase(a,c,b))}; jspb_internal_adapters.getOneofInt64GbigintFieldNullable=function(a,b,c){return jspb_internal_adapters.getInt64GbigintFieldNullable(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getOneofUint64GbigintFieldNullable=function(a,b,c){return jspb_internal_adapters.getUint64GbigintFieldNullable(a,jspb_internal_adapters.isOneofCase(a,c,b))}; jspb_internal_adapters.getOneofFloatingPointFieldNullable=function(a,b,c){return jspb_internal_adapters.getFloatingPointFieldNullable(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getOneofStringFieldNullable=function(a,b,c){return jspb_internal_adapters.getStringFieldNullable(a,jspb_internal_adapters.isOneofCase(a,c,b))}; jspb_internal_adapters.getOneofBytesFieldNullable=function(a,b,c){return jspb_internal_adapters.getBytesFieldNullable(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getOneofWrapperFieldOrUndefined=function(a,b,c,d){return jspb_internal_adapters.getWrapperFieldOrUndefined(a,b,jspb_internal_adapters.isOneofCase(a,d,c))};jspb_internal_adapters.getOneofEnumFieldNullable=function(a,b,c){return jspb_internal_adapters.getEnumFieldNullable(a,jspb_internal_adapters.isOneofCase(a,c,b))}; jspb_internal_adapters.getOneofFieldOrUndefined=function(a,b,c){return jspb_internal_adapters.getFieldOrUndefined(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getOneofBooleanFieldOrUndefined=function(a,b,c){return jspb_internal_adapters.getBooleanFieldOrUndefined(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getOneofInt32FieldOrUndefined=function(a,b,c){return jspb_internal_adapters.getInt32FieldOrUndefined(a,jspb_internal_adapters.isOneofCase(a,c,b))}; jspb_internal_adapters.getOneofUint32FieldOrUndefined=function(a,b,c){return jspb_internal_adapters.getUint32FieldOrUndefined(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getOneofInt64FieldOrUndefined=function(a,b,c){return jspb_internal_adapters.getInt64FieldOrUndefined(a,jspb_internal_adapters.isOneofCase(a,c,b))}; jspb_internal_adapters.getOneofInt64FieldOrUndefined_asString=function(a,b,c){return jspb_internal_adapters.getInt64FieldOrUndefined_asString(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getOneofUint64FieldOrUndefined=function(a,b,c){return jspb_internal_adapters.getUint64FieldOrUndefined(a,jspb_internal_adapters.isOneofCase(a,c,b))}; jspb_internal_adapters.getOneofUint64FieldOrUndefined_asString=function(a,b,c){return jspb_internal_adapters.getUint64FieldOrUndefined_asString(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getOneofInt64StringFieldOrUndefined=function(a,b,c){return jspb_internal_adapters.getInt64StringFieldOrUndefined(a,jspb_internal_adapters.isOneofCase(a,c,b))}; jspb_internal_adapters.getOneofInt64StringFieldOrUndefined_asString=function(a,b,c){return jspb_internal_adapters.getInt64FieldOrUndefined_asString(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getOneofUint64StringFieldOrUndefined=function(a,b,c){return jspb_internal_adapters.getUint64StringFieldOrUndefined(a,jspb_internal_adapters.isOneofCase(a,c,b))}; jspb_internal_adapters.getOneofUint64StringFieldOrUndefined_asString=function(a,b,c){return jspb_internal_adapters.getUint64FieldOrUndefined_asString(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getOneofInt64GbigintFieldOrUndefined=function(a,b,c){return jspb_internal_adapters.getInt64GbigintFieldOrUndefined(a,jspb_internal_adapters.isOneofCase(a,c,b))}; jspb_internal_adapters.getOneofUint64GbigintFieldOrUndefined=function(a,b,c){return jspb_internal_adapters.getUint64GbigintFieldOrUndefined(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getOneofFloatingPointFieldOrUndefined=function(a,b,c){return jspb_internal_adapters.getFloatingPointFieldOrUndefined(a,jspb_internal_adapters.isOneofCase(a,c,b))}; jspb_internal_adapters.getOneofStringFieldOrUndefined=function(a,b,c){return jspb_internal_adapters.getStringFieldOrUndefined(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getOneofBytesFieldOrUndefined=function(a,b,c){return jspb_internal_adapters.getBytesFieldOrUndefined(a,jspb_internal_adapters.isOneofCase(a,c,b))}; jspb_internal_adapters.getOneofEnumFieldOrUndefined=function(a,b,c){return jspb_internal_adapters.getEnumFieldOrUndefined(a,jspb_internal_adapters.isOneofCase(a,c,b))};jspb_internal_adapters.getFieldOrUndefined=function(a,b){a=jspb_internal_adapters.getFieldNullable(a,b);return a==null?void 0:a};jspb_internal_adapters.getBooleanFieldOrUndefined=function(a,b){a=jspb_internal_adapters.getBooleanFieldNullable(a,b);return a==null?void 0:a}; jspb_internal_adapters.getInt32FieldOrUndefined=function(a,b){a=jspb_internal_adapters.getInt32FieldNullable(a,b);return a==null?void 0:a};jspb_internal_adapters.getUint32FieldOrUndefined=function(a,b){a=jspb_internal_adapters.getUint32FieldNullable(a,b);return a==null?void 0:a};jspb_internal_adapters.getInt64FieldOrUndefined=function(a,b){a=jspb_internal_adapters.getInt64FieldNullable(a,b);return a==null?void 0:a}; jspb_internal_adapters.getUint64FieldOrUndefined=function(a,b){a=jspb_internal_adapters.getUint64FieldNullable(a,b);return a==null?void 0:a};jspb_internal_adapters.getInt64StringFieldOrUndefined=function(a,b){a=jspb_internal_adapters.getInt64StringFieldNullable(a,b);return a==null?void 0:a};jspb_internal_adapters.getUint64StringFieldOrUndefined=function(a,b){a=jspb_internal_adapters.getUint64StringFieldNullable(a,b);return a==null?void 0:a}; jspb_internal_adapters.getInt64GbigintFieldOrUndefined=function(a,b){a=jspb_internal_adapters.getInt64GbigintFieldNullable(a,b);return a==null?void 0:a};jspb_internal_adapters.getUint64GbigintFieldOrUndefined=function(a,b){a=jspb_internal_adapters.getUint64GbigintFieldNullable(a,b);return a==null?void 0:a};jspb_internal_adapters.getFloatingPointFieldOrUndefined=function(a,b){a=jspb_internal_adapters.getFloatingPointFieldNullable(a,b);return a==null?void 0:a}; jspb_internal_adapters.getStringFieldOrUndefined=function(a,b){a=jspb_internal_adapters.getStringFieldNullable(a,b);return a==null?void 0:a};jspb_internal_adapters.getBytesFieldOrUndefined=function(a,b){a=jspb_internal_adapters.getBytesFieldNullable(a,b);return a==null?void 0:a};jspb_internal_adapters.getEnumFieldOrUndefined=function(a,b){a=jspb_internal_adapters.getEnumFieldNullable(a,b);return a==null?void 0:a}; jspb_internal_adapters.getInt64FieldOrUndefined_asString=function(a,b){a=jspb_internal_adapters.getInt64FieldNullable_asString(a,b);return a==null?void 0:a};jspb_internal_adapters.getUint64FieldOrUndefined_asString=function(a,b){a=jspb_internal_adapters.getUint64FieldNullable_asString(a,b);return a==null?void 0:a};jspb_internal_adapters.getInt64StringFieldOrUndefined_asString=function(a,b){a=jspb_internal_adapters.getInt64FieldNullable_asString(a,b);return a==null?void 0:a}; jspb_internal_adapters.getUint64StringFieldOrUndefined_asString=function(a,b){a=jspb_internal_adapters.getUint64FieldNullable_asString(a,b);return a==null?void 0:a};jspb_internal_adapters.setBooleanField=function(a,b,c,d){return jspb_internal_adapters.setField(a,b,c==null?c:module$contents$jspb$internal_accessor_helpers_checkBoolean(c),d)}; jspb_internal_adapters.setProto3BooleanField=function(a,b,c){return module$contents$jspb_internal_adapters_setFieldIgnoringDefault(a,b,c==null?c:module$contents$jspb$internal_accessor_helpers_checkBoolean(c),!1)};jspb_internal_adapters.setOneofBooleanField=function(a,b,c,d){return jspb_internal_adapters.setOneofField(a,b,c,d==null?d:module$contents$jspb$internal_accessor_helpers_checkBoolean(d))}; jspb_internal_adapters.setInt32Field=function(a,b,c,d){return jspb_internal_adapters.setField(a,b,c==null?c:module$contents$jspb$internal_accessor_helpers_checkInt32(c),d)};jspb_internal_adapters.setProto3Int32Field=function(a,b,c){return module$contents$jspb_internal_adapters_setFieldIgnoringDefault(a,b,c==null?c:module$contents$jspb$internal_accessor_helpers_checkInt32(c),0)}; jspb_internal_adapters.setOneofInt32Field=function(a,b,c,d){return jspb_internal_adapters.setOneofField(a,b,c,d==null?d:module$contents$jspb$internal_accessor_helpers_checkInt32(d))};jspb_internal_adapters.setUint32Field=function(a,b,c,d){return jspb_internal_adapters.setField(a,b,c==null?c:module$contents$jspb$internal_accessor_helpers_checkUint32(c),d)}; jspb_internal_adapters.setProto3Uint32Field=function(a,b,c){return module$contents$jspb_internal_adapters_setFieldIgnoringDefault(a,b,c==null?c:module$contents$jspb$internal_accessor_helpers_checkUint32(c),0)};jspb_internal_adapters.setOneofUint32Field=function(a,b,c,d){return jspb_internal_adapters.setOneofField(a,b,c,d==null?d:module$contents$jspb$internal_accessor_helpers_checkUint32(d))}; jspb_internal_adapters.setInt64Field=function(a,b,c,d,e){e=e===void 0?module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY:e;return jspb_internal_adapters.setField(a,b,module$contents$jspb$internal_accessor_helpers_checkNullishInt64(c,e),d)}; jspb_internal_adapters.setProto3Int64Field=function(a,b,c,d){d=d===void 0?module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY:d;return module$contents$jspb_internal_adapters_setFieldIgnoringDefault(a,b,module$contents$jspb$internal_accessor_helpers_checkNullishInt64(c,d),"0")}; jspb_internal_adapters.setOneofInt64Field=function(a,b,c,d,e){e=e===void 0?module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY:e;return jspb_internal_adapters.setOneofField(a,b,c,module$contents$jspb$internal_accessor_helpers_checkNullishInt64(d,e))}; jspb_internal_adapters.setUint64Field=function(a,b,c,d,e){e=e===void 0?module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY:e;return jspb_internal_adapters.setField(a,b,module$contents$jspb$internal_accessor_helpers_checkNullishUint64(c,e),d)}; jspb_internal_adapters.setProto3Uint64Field=function(a,b,c,d){d=d===void 0?module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY:d;return module$contents$jspb_internal_adapters_setFieldIgnoringDefault(a,b,module$contents$jspb$internal_accessor_helpers_checkNullishUint64(c,d),"0")}; jspb_internal_adapters.setOneofUint64Field=function(a,b,c,d,e){e=e===void 0?module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY:e;return jspb_internal_adapters.setOneofField(a,b,c,module$contents$jspb$internal_accessor_helpers_checkNullishUint64(d,e))}; jspb_internal_adapters.setInt64StringField=function(a,b,c,d,e){e=e===void 0?module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY:e;return jspb_internal_adapters.setField(a,b,module$contents$jspb$internal_accessor_helpers_checkNullishInt64(c,e),d)}; jspb_internal_adapters.setProto3Int64StringField=function(a,b,c,d){d=d===void 0?module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY:d;return module$contents$jspb_internal_adapters_setFieldIgnoringDefault(a,b,module$contents$jspb$internal_accessor_helpers_checkNullishInt64(c,d),"0")}; jspb_internal_adapters.setOneofInt64StringField=function(a,b,c,d,e){e=e===void 0?module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY:e;return jspb_internal_adapters.setOneofField(a,b,c,module$contents$jspb$internal_accessor_helpers_checkNullishInt64(d,e))}; jspb_internal_adapters.setUint64StringField=function(a,b,c,d,e){e=e===void 0?module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY:e;return jspb_internal_adapters.setField(a,b,module$contents$jspb$internal_accessor_helpers_checkNullishUint64(c,e),d)}; jspb_internal_adapters.setProto3Uint64StringField=function(a,b,c,d){d=d===void 0?module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY:d;return module$contents$jspb_internal_adapters_setFieldIgnoringDefault(a,b,module$contents$jspb$internal_accessor_helpers_checkNullishUint64(c,d),"0")}; jspb_internal_adapters.setOneofUint64StringField=function(a,b,c,d,e){e=e===void 0?module$exports$jspb$internal_array_state.TypeSpecificApiFormat.LEGACY:e;return jspb_internal_adapters.setOneofField(a,b,c,module$contents$jspb$internal_accessor_helpers_checkNullishUint64(d,e))};jspb_internal_adapters.setFloatingPointField=function(a,b,c,d){return jspb_internal_adapters.setField(a,b,c==null?c:module$contents$jspb$internal_accessor_helpers_checkFloatingPoint(c),d)}; jspb_internal_adapters.setProto3FloatingPointField=function(a,b,c){return module$contents$jspb_internal_adapters_setFieldIgnoringDefault(a,b,c==null?c:module$contents$jspb$internal_accessor_helpers_checkFloatingPoint(c),0)};jspb_internal_adapters.setOneofFloatingPointField=function(a,b,c,d){return jspb_internal_adapters.setOneofField(a,b,c,d==null?d:module$contents$jspb$internal_accessor_helpers_checkFloatingPoint(d))}; jspb_internal_adapters.setStringField=function(a,b,c,d){return jspb_internal_adapters.setField(a,b,module$contents$jspb$internal_accessor_helpers_checkNullishString(c),d)};jspb_internal_adapters.setProto3StringField=function(a,b,c){return module$contents$jspb_internal_adapters_setFieldIgnoringDefault(a,b,module$contents$jspb$internal_accessor_helpers_checkNullishString(c),"")};jspb_internal_adapters.setOneofStringField=function(a,b,c,d){return jspb_internal_adapters.setOneofField(a,b,c,module$contents$jspb$internal_accessor_helpers_checkNullishString(d))}; jspb_internal_adapters.setBytesField=function(a,b,c,d){return jspb_internal_adapters.setField(a,b,module$contents$jspb$internal_bytesAsByteString(c,!1,!0,!1),d)};jspb_internal_adapters.setProto3BytesField=function(a,b,c){return module$contents$jspb_internal_adapters_setFieldIgnoringDefault(a,b,module$contents$jspb$internal_bytesAsByteString(c,!1,!0,!1),module$exports$jspb$bytestring.ByteString.empty())}; jspb_internal_adapters.setOneofBytesField=function(a,b,c,d){return jspb_internal_adapters.setOneofField(a,b,c,module$contents$jspb$internal_bytesAsByteString(d,!1,!0,!1))};jspb_internal_adapters.setEnumField=function(a,b,c,d){return jspb_internal_adapters.setField(a,b,c==null?c:module$contents$jspb$internal_accessor_helpers_checkEnum(c),d)}; jspb_internal_adapters.setProto3EnumField=function(a,b,c){return module$contents$jspb_internal_adapters_setFieldIgnoringDefault(a,b,c==null?c:module$contents$jspb$internal_accessor_helpers_checkEnum(c),0)};jspb_internal_adapters.setOneofEnumField=function(a,b,c,d){return jspb_internal_adapters.setOneofField(a,b,c,d==null?d:module$contents$jspb$internal_accessor_helpers_checkEnum(d))}; jspb_internal_adapters.setRepeatedBooleanField=function(a,b,c,d){return module$contents$jspb_internal_adapters_setRepeatedPrimitiveField(a,b,c,module$contents$jspb$internal_accessor_helpers_checkBoolean,d)};jspb_internal_adapters.addToRepeatedBooleanField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkBoolean,c,d,module$contents$jspb$internal_accessor_helpers_coerceToNullishBoolean,e)}; jspb_internal_adapters.removeFromRepeatedBooleanField=function(a,b,c,d){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkBoolean,void 0,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishBoolean,d,1,!1,!0)}; jspb_internal_adapters.addAllToRepeatedBooleanField=function(a,b,c){return module$contents$jspb_internal_adapters_addAllToRepeatedFieldImpl(a,b,module$contents$jspb$internal_accessor_helpers_checkBoolean,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishBoolean)}; jspb_internal_adapters.setRepeatedIndexedBooleanField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkBoolean,d,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishBoolean,e,1)};jspb_internal_adapters.setRepeatedInt32Field=function(a,b,c,d){return module$contents$jspb_internal_adapters_setRepeatedPrimitiveField(a,b,c,module$contents$jspb$internal_accessor_helpers_checkInt32,d)}; jspb_internal_adapters.addToRepeatedInt32Field=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkInt32,c,d,module$contents$jspb$internal_accessor_helpers_coerceToNullishInt32,e)}; jspb_internal_adapters.removeFromRepeatedInt32Field=function(a,b,c,d){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkInt32,void 0,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishInt32,d,1,!1,!0)};jspb_internal_adapters.addAllToRepeatedInt32Field=function(a,b,c){return module$contents$jspb_internal_adapters_addAllToRepeatedFieldImpl(a,b,module$contents$jspb$internal_accessor_helpers_checkInt32,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishInt32)}; jspb_internal_adapters.setRepeatedIndexedInt32Field=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkInt32,d,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishInt32,e,1)};jspb_internal_adapters.setRepeatedUint32Field=function(a,b,c,d){return module$contents$jspb_internal_adapters_setRepeatedPrimitiveField(a,b,c,module$contents$jspb$internal_accessor_helpers_checkUint32,d)}; jspb_internal_adapters.addToRepeatedUint32Field=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkUint32,c,d,module$contents$jspb$internal_accessor_helpers_coerceToNullishUint32,e)}; jspb_internal_adapters.removeFromRepeatedUint32Field=function(a,b,c,d){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkUint32,void 0,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishUint32,d,1,!1,!0)}; jspb_internal_adapters.addAllToRepeatedUint32Field=function(a,b,c){return module$contents$jspb_internal_adapters_addAllToRepeatedFieldImpl(a,b,module$contents$jspb$internal_accessor_helpers_checkUint32,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishUint32)}; jspb_internal_adapters.setRepeatedIndexedUint32Field=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkUint32,d,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishUint32,e,1)};jspb_internal_adapters.setRepeatedInt64Field=function(a,b,c,d){return module$contents$jspb_internal_adapters_setRepeatedPrimitiveField(a,b,c,module$contents$jspb$internal_accessor_helpers_checkInt64,d)}; jspb_internal_adapters.addToRepeatedInt64Field=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkInt64,c,d,module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64,e)}; jspb_internal_adapters.removeFromRepeatedInt64Field=function(a,b,c,d){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkInt64,void 0,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64,d,1,!1,!0)};jspb_internal_adapters.addAllToRepeatedInt64Field=function(a,b,c){return module$contents$jspb_internal_adapters_addAllToRepeatedFieldImpl(a,b,module$contents$jspb$internal_accessor_helpers_checkInt64,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64)}; jspb_internal_adapters.setRepeatedIndexedInt64Field=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkInt64,d,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64,e,1)};jspb_internal_adapters.setRepeatedUint64Field=function(a,b,c,d){return module$contents$jspb_internal_adapters_setRepeatedPrimitiveField(a,b,c,module$contents$jspb$internal_accessor_helpers_checkUint64,d)}; jspb_internal_adapters.addToRepeatedUint64Field=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkUint64,c,d,module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64,e)}; jspb_internal_adapters.removeFromRepeatedUint64Field=function(a,b,c,d){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkUint64,void 0,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64,d,1,!1,!0)}; jspb_internal_adapters.addAllToRepeatedUint64Field=function(a,b,c){return module$contents$jspb_internal_adapters_addAllToRepeatedFieldImpl(a,b,module$contents$jspb$internal_accessor_helpers_checkUint64,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64)}; jspb_internal_adapters.setRepeatedIndexedUint64Field=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkUint64,d,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64,e,1)};jspb_internal_adapters.setRepeatedInt64StringField=function(a,b,c,d){return module$contents$jspb_internal_adapters_setRepeatedPrimitiveField(a,b,c,module$contents$jspb$internal_accessor_helpers_checkInt64,d)}; jspb_internal_adapters.addToRepeatedInt64StringField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkInt64,c,d,module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64String,e)}; jspb_internal_adapters.removeFromRepeatedInt64StringField=function(a,b,c,d){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkInt64,void 0,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64String,d,1,!1,!0)}; jspb_internal_adapters.addAllToRepeatedInt64StringField=function(a,b,c){return module$contents$jspb_internal_adapters_addAllToRepeatedFieldImpl(a,b,module$contents$jspb$internal_accessor_helpers_checkInt64,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64String)}; jspb_internal_adapters.setRepeatedIndexedInt64StringField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkInt64,d,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishInt64String,e,1)}; jspb_internal_adapters.setRepeatedUint64StringField=function(a,b,c,d){return module$contents$jspb_internal_adapters_setRepeatedPrimitiveField(a,b,c,module$contents$jspb$internal_accessor_helpers_checkUint64,d)}; jspb_internal_adapters.addToRepeatedUint64StringField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkUint64,c,d,module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64String,e)}; jspb_internal_adapters.removeFromRepeatedUint64StringField=function(a,b,c,d){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkUint64,void 0,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64String,d,1,!1,!0)}; jspb_internal_adapters.addAllToRepeatedUint64StringField=function(a,b,c){return module$contents$jspb_internal_adapters_addAllToRepeatedFieldImpl(a,b,module$contents$jspb$internal_accessor_helpers_checkUint64,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64String)}; jspb_internal_adapters.setRepeatedIndexedUint64StringField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkUint64,d,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishUint64String,e,1)}; jspb_internal_adapters.setRepeatedFloatingPointField=function(a,b,c,d){return module$contents$jspb_internal_adapters_setRepeatedPrimitiveField(a,b,c,module$contents$jspb$internal_accessor_helpers_checkFloatingPoint,d)}; jspb_internal_adapters.addToRepeatedFloatingPointField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkFloatingPoint,c,d,module$contents$jspb$internal_accessor_helpers_coerceToNullishFloatingPoint,e)}; jspb_internal_adapters.removeFromRepeatedFloatingPointField=function(a,b,c,d){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkFloatingPoint,void 0,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishFloatingPoint,d,1,!1,!0)}; jspb_internal_adapters.addAllToRepeatedFloatingPointField=function(a,b,c){return module$contents$jspb_internal_adapters_addAllToRepeatedFieldImpl(a,b,module$contents$jspb$internal_accessor_helpers_checkFloatingPoint,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishFloatingPoint)}; jspb_internal_adapters.setRepeatedIndexedFloatingPointField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkFloatingPoint,d,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishFloatingPoint,e,1)}; jspb_internal_adapters.setRepeatedStringField=function(a,b,c,d){return module$contents$jspb_internal_adapters_setRepeatedPrimitiveField(a,b,c,module$contents$jspb$internal_accessor_helpers_checkString,d)};jspb_internal_adapters.addToRepeatedStringField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkString,c,d,module$contents$jspb$internal_accessor_helpers_coerceToNullishString,e)}; jspb_internal_adapters.removeFromRepeatedStringField=function(a,b,c,d){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkString,void 0,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishString,d,1,!1,!0)}; jspb_internal_adapters.addAllToRepeatedStringField=function(a,b,c){return module$contents$jspb_internal_adapters_addAllToRepeatedFieldImpl(a,b,module$contents$jspb$internal_accessor_helpers_checkString,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishString)}; jspb_internal_adapters.setRepeatedIndexedStringField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkString,d,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishString,e,1)};jspb_internal_adapters.setRepeatedBytesField=function(a,b,c,d){return module$contents$jspb_internal_adapters_setRepeatedPrimitiveField(a,b,c,module$contents$jspb_internal_adapters_checkBytes,d)}; jspb_internal_adapters.addToRepeatedBytesField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb_internal_adapters_checkBytes,c,d,module$contents$jspb_internal_adapters_coerceToNullishBytes,e)}; jspb_internal_adapters.removeFromRepeatedBytesField=function(a,b,c,d){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb_internal_adapters_checkBytes,void 0,c,module$contents$jspb_internal_adapters_coerceToNullishBytes,d,1,!1,!0)};jspb_internal_adapters.addAllToRepeatedBytesField=function(a,b,c){return module$contents$jspb_internal_adapters_addAllToRepeatedFieldImpl(a,b,module$contents$jspb_internal_adapters_checkBytes,c,module$contents$jspb_internal_adapters_coerceToNullishBytes)}; jspb_internal_adapters.setRepeatedIndexedBytesField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb_internal_adapters_checkBytes,d,c,module$contents$jspb_internal_adapters_coerceToNullishBytes,e,1)};jspb_internal_adapters.setRepeatedEnumField=function(a,b,c,d){return module$contents$jspb_internal_adapters_setRepeatedPrimitiveField(a,b,c,module$contents$jspb$internal_accessor_helpers_checkEnum,d)}; jspb_internal_adapters.addToRepeatedEnumField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkEnum,c,d,module$contents$jspb$internal_accessor_helpers_coerceToNullishEnum,e)}; jspb_internal_adapters.removeFromRepeatedEnumField=function(a,b,c,d){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkEnum,void 0,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishEnum,d,1,!1,!0)};jspb_internal_adapters.addAllToRepeatedEnumField=function(a,b,c){return module$contents$jspb_internal_adapters_addAllToRepeatedFieldImpl(a,b,module$contents$jspb$internal_accessor_helpers_checkEnum,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishEnum)}; jspb_internal_adapters.setRepeatedIndexedEnumField=function(a,b,c,d,e){return module$contents$jspb_internal_adapters_spliceRepeatedPrimitiveField(a,b,module$contents$jspb$internal_accessor_helpers_checkEnum,d,c,module$contents$jspb$internal_accessor_helpers_coerceToNullishEnum,e,1)};jspb_internal_adapters.hasBooleanField=function(a,b){return jspb_internal_adapters.getBooleanFieldNullable(a,b)!=null}; jspb_internal_adapters.hasOneofBooleanField=function(a,b,c){return jspb_internal_adapters.getOneofBooleanFieldNullable(a,b,c)!=null};jspb_internal_adapters.hasInt32Field=function(a,b){return jspb_internal_adapters.getInt32FieldNullable(a,b)!=null};jspb_internal_adapters.hasOneofInt32Field=function(a,b,c){return jspb_internal_adapters.getOneofInt32FieldNullable(a,b,c)!=null};jspb_internal_adapters.hasUint32Field=function(a,b){return jspb_internal_adapters.getUint32FieldNullable(a,b)!=null}; jspb_internal_adapters.hasOneofUint32Field=function(a,b,c){return jspb_internal_adapters.getOneofUint32FieldNullable(a,b,c)!=null};jspb_internal_adapters.hasInt64Field=function(a,b){return jspb_internal_adapters.getInt64FieldNullable(a,b)!=null};jspb_internal_adapters.hasOneofInt64Field=function(a,b,c){return jspb_internal_adapters.getOneofInt64FieldNullable(a,b,c)!=null};jspb_internal_adapters.hasUint64Field=function(a,b){return jspb_internal_adapters.getUint64FieldNullable(a,b)!=null}; jspb_internal_adapters.hasOneofUint64Field=function(a,b,c){return jspb_internal_adapters.getOneofUint64FieldNullable(a,b,c)!=null};jspb_internal_adapters.hasInt64StringField=function(a,b){return jspb_internal_adapters.getInt64StringFieldNullable(a,b)!=null};jspb_internal_adapters.hasOneofInt64StringField=function(a,b,c){return jspb_internal_adapters.getOneofInt64StringFieldNullable(a,b,c)!=null}; jspb_internal_adapters.hasUint64StringField=function(a,b){return jspb_internal_adapters.getUint64StringFieldNullable(a,b)!=null};jspb_internal_adapters.hasOneofUint64StringField=function(a,b,c){return jspb_internal_adapters.getOneofUint64StringFieldNullable(a,b,c)!=null};jspb_internal_adapters.hasFloatingPointField=function(a,b){return jspb_internal_adapters.getFloatingPointFieldNullable(a,b)!=null}; jspb_internal_adapters.hasOneofFloatingPointField=function(a,b,c){return jspb_internal_adapters.getOneofFloatingPointFieldNullable(a,b,c)!=null};jspb_internal_adapters.hasStringField=function(a,b){return jspb_internal_adapters.getStringFieldNullable(a,b)!=null};jspb_internal_adapters.hasOneofStringField=function(a,b,c){return jspb_internal_adapters.getOneofStringFieldNullable(a,b,c)!=null}; jspb_internal_adapters.hasBytesField=function(a,b){return jspb_internal_adapters.getBytesFieldNullable(a,b)!=null};jspb_internal_adapters.hasOneofBytesField=function(a,b,c){return jspb_internal_adapters.getOneofBytesFieldNullable(a,b,c)!=null};jspb_internal_adapters.hasEnumField=function(a,b){return jspb_internal_adapters.getEnumFieldNullable(a,b)!=null};jspb_internal_adapters.hasOneofEnumField=function(a,b,c){return jspb_internal_adapters.getOneofEnumFieldNullable(a,b,c)!=null}; jspb_internal_adapters.getBooleanBooleanMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps)};jspb_internal_adapters.putBooleanBooleanMapField=function(a,b,c,d){jspb_internal_adapters.getBooleanBooleanMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllBooleanBooleanMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getBooleanBooleanMapField(a,b));return a};jspb_internal_adapters.setBooleanBooleanMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllBooleanBooleanMapField(a,b,c);return a}; jspb_internal_adapters.deleteBooleanBooleanMapField=function(a,b,c){jspb_internal_adapters.getBooleanBooleanMapField(a,b).delete(c);return a};jspb_internal_adapters.getBooleanInt32MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps)}; jspb_internal_adapters.putBooleanInt32MapField=function(a,b,c,d){jspb_internal_adapters.getBooleanInt32MapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllBooleanInt32MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getBooleanInt32MapField(a,b));return a}; jspb_internal_adapters.setBooleanInt32MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllBooleanInt32MapField(a,b,c);return a};jspb_internal_adapters.deleteBooleanInt32MapField=function(a,b,c){jspb_internal_adapters.getBooleanInt32MapField(a,b).delete(c);return a}; jspb_internal_adapters.getBooleanUint32MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint32ToApiForMaps)};jspb_internal_adapters.putBooleanUint32MapField=function(a,b,c,d){jspb_internal_adapters.getBooleanUint32MapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllBooleanUint32MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getBooleanUint32MapField(a,b));return a};jspb_internal_adapters.setBooleanUint32MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllBooleanUint32MapField(a,b,c);return a}; jspb_internal_adapters.deleteBooleanUint32MapField=function(a,b,c){jspb_internal_adapters.getBooleanUint32MapField(a,b).delete(c);return a};jspb_internal_adapters.getBooleanInt64MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps,module$contents$jspb$internal_accessor_helpers_int64ToApiForMaps)}; jspb_internal_adapters.putBooleanInt64MapField=function(a,b,c,d){jspb_internal_adapters.getBooleanInt64MapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllBooleanInt64MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getBooleanInt64MapField(a,b));return a}; jspb_internal_adapters.setBooleanInt64MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllBooleanInt64MapField(a,b,c);return a};jspb_internal_adapters.deleteBooleanInt64MapField=function(a,b,c){jspb_internal_adapters.getBooleanInt64MapField(a,b).delete(c);return a}; jspb_internal_adapters.getBooleanUint64MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint64ToApiForMaps)};jspb_internal_adapters.putBooleanUint64MapField=function(a,b,c,d){jspb_internal_adapters.getBooleanUint64MapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllBooleanUint64MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getBooleanUint64MapField(a,b));return a};jspb_internal_adapters.setBooleanUint64MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllBooleanUint64MapField(a,b,c);return a}; jspb_internal_adapters.deleteBooleanUint64MapField=function(a,b,c){jspb_internal_adapters.getBooleanUint64MapField(a,b).delete(c);return a};jspb_internal_adapters.getBooleanFloatingPointMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps,module$contents$jspb$internal_accessor_helpers_floatToApiForMaps)}; jspb_internal_adapters.putBooleanFloatingPointMapField=function(a,b,c,d){jspb_internal_adapters.getBooleanFloatingPointMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllBooleanFloatingPointMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getBooleanFloatingPointMapField(a,b));return a}; jspb_internal_adapters.setBooleanFloatingPointMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllBooleanFloatingPointMapField(a,b,c);return a};jspb_internal_adapters.deleteBooleanFloatingPointMapField=function(a,b,c){jspb_internal_adapters.getBooleanFloatingPointMapField(a,b).delete(c);return a}; jspb_internal_adapters.getBooleanStringMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps)};jspb_internal_adapters.putBooleanStringMapField=function(a,b,c,d){jspb_internal_adapters.getBooleanStringMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllBooleanStringMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getBooleanStringMapField(a,b));return a};jspb_internal_adapters.setBooleanStringMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllBooleanStringMapField(a,b,c);return a}; jspb_internal_adapters.deleteBooleanStringMapField=function(a,b,c){jspb_internal_adapters.getBooleanStringMapField(a,b).delete(c);return a};jspb_internal_adapters.getBooleanBytesMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps,module$contents$jspb$internal_accessor_helpers_bytesToApiForMaps)}; jspb_internal_adapters.putBooleanBytesMapField=function(a,b,c,d){jspb_internal_adapters.getBooleanBytesMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllBooleanBytesMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getBooleanBytesMapField(a,b));return a}; jspb_internal_adapters.setBooleanBytesMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllBooleanBytesMapField(a,b,c);return a};jspb_internal_adapters.deleteBooleanBytesMapField=function(a,b,c){jspb_internal_adapters.getBooleanBytesMapField(a,b).delete(c);return a}; jspb_internal_adapters.getBooleanEnumMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps,module$contents$jspb$internal_accessor_helpers_enumToApiForMaps)};jspb_internal_adapters.putBooleanEnumMapField=function(a,b,c,d){jspb_internal_adapters.getBooleanEnumMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllBooleanEnumMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getBooleanEnumMapField(a,b));return a};jspb_internal_adapters.setBooleanEnumMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllBooleanEnumMapField(a,b,c);return a}; jspb_internal_adapters.deleteBooleanEnumMapField=function(a,b,c){jspb_internal_adapters.getBooleanEnumMapField(a,b).delete(c);return a};jspb_internal_adapters.getReadonlyBooleanWrapperMapField=function(a,b,c){return module$contents$jspb_internal_adapters_getReadonlyMapField(a,b,c,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps)};jspb_internal_adapters.getBooleanWrapperMapField=function(a,b,c){return module$contents$jspb_internal_adapters_getMessageValuedMapField(a,b,c,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps)}; jspb_internal_adapters.putBooleanWrapperMapField=function(a,b,c,d,e){jspb_internal_adapters.getReadonlyBooleanWrapperMapField(a,b,e).set(c,d);return a};jspb_internal_adapters.putAllBooleanWrapperMapField=function(a,b,c,d){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getReadonlyBooleanWrapperMapField(a,b,d));return a}; jspb_internal_adapters.setBooleanWrapperMapField=function(a,b,c,d){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllBooleanWrapperMapField(a,b,c,d);return a};jspb_internal_adapters.deleteBooleanWrapperMapField=function(a,b,c,d){jspb_internal_adapters.getReadonlyBooleanWrapperMapField(a,b,d).delete(c);return a}; jspb_internal_adapters.getBooleanInt64GbigintMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps,module$contents$jspb$internal_accessor_helpers_int64GbigintToApiForMaps)};jspb_internal_adapters.putBooleanInt64GbigintMapField=function(a,b,c,d){jspb_internal_adapters.getBooleanInt64GbigintMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllBooleanInt64GbigintMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getBooleanInt64GbigintMapField(a,b));return a};jspb_internal_adapters.setBooleanInt64GbigintMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllBooleanInt64GbigintMapField(a,b,c);return a}; jspb_internal_adapters.deleteBooleanInt64GbigintMapField=function(a,b,c){jspb_internal_adapters.getBooleanInt64GbigintMapField(a,b).delete(c);return a};jspb_internal_adapters.getBooleanUint64GbigintMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint64GbigintToApiForMaps)}; jspb_internal_adapters.putBooleanUint64GbigintMapField=function(a,b,c,d){jspb_internal_adapters.getBooleanUint64GbigintMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllBooleanUint64GbigintMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getBooleanUint64GbigintMapField(a,b));return a}; jspb_internal_adapters.setBooleanUint64GbigintMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllBooleanUint64GbigintMapField(a,b,c);return a};jspb_internal_adapters.deleteBooleanUint64GbigintMapField=function(a,b,c){jspb_internal_adapters.getBooleanUint64GbigintMapField(a,b).delete(c);return a}; jspb_internal_adapters.getInt32BooleanMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps)};jspb_internal_adapters.putInt32BooleanMapField=function(a,b,c,d){jspb_internal_adapters.getInt32BooleanMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllInt32BooleanMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt32BooleanMapField(a,b));return a};jspb_internal_adapters.setInt32BooleanMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt32BooleanMapField(a,b,c);return a}; jspb_internal_adapters.deleteInt32BooleanMapField=function(a,b,c){jspb_internal_adapters.getInt32BooleanMapField(a,b).delete(c);return a};jspb_internal_adapters.getInt32Int32MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps)}; jspb_internal_adapters.putInt32Int32MapField=function(a,b,c,d){jspb_internal_adapters.getInt32Int32MapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllInt32Int32MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt32Int32MapField(a,b));return a}; jspb_internal_adapters.setInt32Int32MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt32Int32MapField(a,b,c);return a};jspb_internal_adapters.deleteInt32Int32MapField=function(a,b,c){jspb_internal_adapters.getInt32Int32MapField(a,b).delete(c);return a}; jspb_internal_adapters.getInt32Uint32MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint32ToApiForMaps)};jspb_internal_adapters.putInt32Uint32MapField=function(a,b,c,d){jspb_internal_adapters.getInt32Uint32MapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllInt32Uint32MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt32Uint32MapField(a,b));return a};jspb_internal_adapters.setInt32Uint32MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt32Uint32MapField(a,b,c);return a}; jspb_internal_adapters.deleteInt32Uint32MapField=function(a,b,c){jspb_internal_adapters.getInt32Uint32MapField(a,b).delete(c);return a};jspb_internal_adapters.getInt32Int64MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps,module$contents$jspb$internal_accessor_helpers_int64ToApiForMaps)}; jspb_internal_adapters.putInt32Int64MapField=function(a,b,c,d){jspb_internal_adapters.getInt32Int64MapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllInt32Int64MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt32Int64MapField(a,b));return a}; jspb_internal_adapters.setInt32Int64MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt32Int64MapField(a,b,c);return a};jspb_internal_adapters.deleteInt32Int64MapField=function(a,b,c){jspb_internal_adapters.getInt32Int64MapField(a,b).delete(c);return a}; jspb_internal_adapters.getInt32Uint64MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint64ToApiForMaps)};jspb_internal_adapters.putInt32Uint64MapField=function(a,b,c,d){jspb_internal_adapters.getInt32Uint64MapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllInt32Uint64MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt32Uint64MapField(a,b));return a};jspb_internal_adapters.setInt32Uint64MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt32Uint64MapField(a,b,c);return a}; jspb_internal_adapters.deleteInt32Uint64MapField=function(a,b,c){jspb_internal_adapters.getInt32Uint64MapField(a,b).delete(c);return a};jspb_internal_adapters.getInt32FloatingPointMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps,module$contents$jspb$internal_accessor_helpers_floatToApiForMaps)}; jspb_internal_adapters.putInt32FloatingPointMapField=function(a,b,c,d){jspb_internal_adapters.getInt32FloatingPointMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllInt32FloatingPointMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt32FloatingPointMapField(a,b));return a}; jspb_internal_adapters.setInt32FloatingPointMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt32FloatingPointMapField(a,b,c);return a};jspb_internal_adapters.deleteInt32FloatingPointMapField=function(a,b,c){jspb_internal_adapters.getInt32FloatingPointMapField(a,b).delete(c);return a}; jspb_internal_adapters.getInt32StringMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps)};jspb_internal_adapters.putInt32StringMapField=function(a,b,c,d){jspb_internal_adapters.getInt32StringMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllInt32StringMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt32StringMapField(a,b));return a};jspb_internal_adapters.setInt32StringMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt32StringMapField(a,b,c);return a}; jspb_internal_adapters.deleteInt32StringMapField=function(a,b,c){jspb_internal_adapters.getInt32StringMapField(a,b).delete(c);return a};jspb_internal_adapters.getInt32BytesMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps,module$contents$jspb$internal_accessor_helpers_bytesToApiForMaps)}; jspb_internal_adapters.putInt32BytesMapField=function(a,b,c,d){jspb_internal_adapters.getInt32BytesMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllInt32BytesMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt32BytesMapField(a,b));return a}; jspb_internal_adapters.setInt32BytesMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt32BytesMapField(a,b,c);return a};jspb_internal_adapters.deleteInt32BytesMapField=function(a,b,c){jspb_internal_adapters.getInt32BytesMapField(a,b).delete(c);return a};jspb_internal_adapters.getInt32EnumMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps,module$contents$jspb$internal_accessor_helpers_enumToApiForMaps)}; jspb_internal_adapters.putInt32EnumMapField=function(a,b,c,d){jspb_internal_adapters.getInt32EnumMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllInt32EnumMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt32EnumMapField(a,b));return a}; jspb_internal_adapters.setInt32EnumMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt32EnumMapField(a,b,c);return a};jspb_internal_adapters.deleteInt32EnumMapField=function(a,b,c){jspb_internal_adapters.getInt32EnumMapField(a,b).delete(c);return a};jspb_internal_adapters.getReadonlyInt32WrapperMapField=function(a,b,c){return module$contents$jspb_internal_adapters_getReadonlyMapField(a,b,c,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps)}; jspb_internal_adapters.getInt32WrapperMapField=function(a,b,c){return module$contents$jspb_internal_adapters_getMessageValuedMapField(a,b,c,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps)};jspb_internal_adapters.putInt32WrapperMapField=function(a,b,c,d,e){jspb_internal_adapters.getReadonlyInt32WrapperMapField(a,b,e).set(c,d);return a}; jspb_internal_adapters.putAllInt32WrapperMapField=function(a,b,c,d){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getReadonlyInt32WrapperMapField(a,b,d));return a};jspb_internal_adapters.setInt32WrapperMapField=function(a,b,c,d){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt32WrapperMapField(a,b,c,d);return a}; jspb_internal_adapters.deleteInt32WrapperMapField=function(a,b,c,d){jspb_internal_adapters.getReadonlyInt32WrapperMapField(a,b,d).delete(c);return a};jspb_internal_adapters.getInt32Int64GbigintMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps,module$contents$jspb$internal_accessor_helpers_int64GbigintToApiForMaps)}; jspb_internal_adapters.putInt32Int64GbigintMapField=function(a,b,c,d){jspb_internal_adapters.getInt32Int64GbigintMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllInt32Int64GbigintMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt32Int64GbigintMapField(a,b));return a}; jspb_internal_adapters.setInt32Int64GbigintMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt32Int64GbigintMapField(a,b,c);return a};jspb_internal_adapters.deleteInt32Int64GbigintMapField=function(a,b,c){jspb_internal_adapters.getInt32Int64GbigintMapField(a,b).delete(c);return a}; jspb_internal_adapters.getInt32Uint64GbigintMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint64GbigintToApiForMaps)};jspb_internal_adapters.putInt32Uint64GbigintMapField=function(a,b,c,d){jspb_internal_adapters.getInt32Uint64GbigintMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllInt32Uint64GbigintMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt32Uint64GbigintMapField(a,b));return a};jspb_internal_adapters.setInt32Uint64GbigintMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt32Uint64GbigintMapField(a,b,c);return a}; jspb_internal_adapters.deleteInt32Uint64GbigintMapField=function(a,b,c){jspb_internal_adapters.getInt32Uint64GbigintMapField(a,b).delete(c);return a};jspb_internal_adapters.getUint32BooleanMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint32KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps)}; jspb_internal_adapters.putUint32BooleanMapField=function(a,b,c,d){jspb_internal_adapters.getUint32BooleanMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllUint32BooleanMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint32BooleanMapField(a,b));return a}; jspb_internal_adapters.setUint32BooleanMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint32BooleanMapField(a,b,c);return a};jspb_internal_adapters.deleteUint32BooleanMapField=function(a,b,c){jspb_internal_adapters.getUint32BooleanMapField(a,b).delete(c);return a}; jspb_internal_adapters.getUint32Int32MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint32KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps)};jspb_internal_adapters.putUint32Int32MapField=function(a,b,c,d){jspb_internal_adapters.getUint32Int32MapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllUint32Int32MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint32Int32MapField(a,b));return a};jspb_internal_adapters.setUint32Int32MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint32Int32MapField(a,b,c);return a}; jspb_internal_adapters.deleteUint32Int32MapField=function(a,b,c){jspb_internal_adapters.getUint32Int32MapField(a,b).delete(c);return a};jspb_internal_adapters.getUint32Uint32MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint32KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint32ToApiForMaps)}; jspb_internal_adapters.putUint32Uint32MapField=function(a,b,c,d){jspb_internal_adapters.getUint32Uint32MapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllUint32Uint32MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint32Uint32MapField(a,b));return a}; jspb_internal_adapters.setUint32Uint32MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint32Uint32MapField(a,b,c);return a};jspb_internal_adapters.deleteUint32Uint32MapField=function(a,b,c){jspb_internal_adapters.getUint32Uint32MapField(a,b).delete(c);return a}; jspb_internal_adapters.getUint32Int64MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint32KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_int64ToApiForMaps)};jspb_internal_adapters.putUint32Int64MapField=function(a,b,c,d){jspb_internal_adapters.getUint32Int64MapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllUint32Int64MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint32Int64MapField(a,b));return a};jspb_internal_adapters.setUint32Int64MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint32Int64MapField(a,b,c);return a}; jspb_internal_adapters.deleteUint32Int64MapField=function(a,b,c){jspb_internal_adapters.getUint32Int64MapField(a,b).delete(c);return a};jspb_internal_adapters.getUint32Uint64MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint32KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint64ToApiForMaps)}; jspb_internal_adapters.putUint32Uint64MapField=function(a,b,c,d){jspb_internal_adapters.getUint32Uint64MapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllUint32Uint64MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint32Uint64MapField(a,b));return a}; jspb_internal_adapters.setUint32Uint64MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint32Uint64MapField(a,b,c);return a};jspb_internal_adapters.deleteUint32Uint64MapField=function(a,b,c){jspb_internal_adapters.getUint32Uint64MapField(a,b).delete(c);return a}; jspb_internal_adapters.getUint32FloatingPointMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint32KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_floatToApiForMaps)};jspb_internal_adapters.putUint32FloatingPointMapField=function(a,b,c,d){jspb_internal_adapters.getUint32FloatingPointMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllUint32FloatingPointMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint32FloatingPointMapField(a,b));return a};jspb_internal_adapters.setUint32FloatingPointMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint32FloatingPointMapField(a,b,c);return a}; jspb_internal_adapters.deleteUint32FloatingPointMapField=function(a,b,c){jspb_internal_adapters.getUint32FloatingPointMapField(a,b).delete(c);return a};jspb_internal_adapters.getUint32StringMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint32KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps)}; jspb_internal_adapters.putUint32StringMapField=function(a,b,c,d){jspb_internal_adapters.getUint32StringMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllUint32StringMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint32StringMapField(a,b));return a}; jspb_internal_adapters.setUint32StringMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint32StringMapField(a,b,c);return a};jspb_internal_adapters.deleteUint32StringMapField=function(a,b,c){jspb_internal_adapters.getUint32StringMapField(a,b).delete(c);return a}; jspb_internal_adapters.getUint32BytesMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint32KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_bytesToApiForMaps)};jspb_internal_adapters.putUint32BytesMapField=function(a,b,c,d){jspb_internal_adapters.getUint32BytesMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllUint32BytesMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint32BytesMapField(a,b));return a};jspb_internal_adapters.setUint32BytesMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint32BytesMapField(a,b,c);return a}; jspb_internal_adapters.deleteUint32BytesMapField=function(a,b,c){jspb_internal_adapters.getUint32BytesMapField(a,b).delete(c);return a};jspb_internal_adapters.getUint32EnumMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint32KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_enumToApiForMaps)}; jspb_internal_adapters.putUint32EnumMapField=function(a,b,c,d){jspb_internal_adapters.getUint32EnumMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllUint32EnumMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint32EnumMapField(a,b));return a}; jspb_internal_adapters.setUint32EnumMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint32EnumMapField(a,b,c);return a};jspb_internal_adapters.deleteUint32EnumMapField=function(a,b,c){jspb_internal_adapters.getUint32EnumMapField(a,b).delete(c);return a};jspb_internal_adapters.getReadonlyUint32WrapperMapField=function(a,b,c){return module$contents$jspb_internal_adapters_getReadonlyMapField(a,b,c,module$contents$jspb$internal_accessor_helpers_uint32KeyToApiForMaps)}; jspb_internal_adapters.getUint32WrapperMapField=function(a,b,c){return module$contents$jspb_internal_adapters_getMessageValuedMapField(a,b,c,module$contents$jspb$internal_accessor_helpers_uint32KeyToApiForMaps)};jspb_internal_adapters.putUint32WrapperMapField=function(a,b,c,d,e){jspb_internal_adapters.getReadonlyUint32WrapperMapField(a,b,e).set(c,d);return a}; jspb_internal_adapters.putAllUint32WrapperMapField=function(a,b,c,d){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getReadonlyUint32WrapperMapField(a,b,d));return a};jspb_internal_adapters.setUint32WrapperMapField=function(a,b,c,d){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint32WrapperMapField(a,b,c,d);return a}; jspb_internal_adapters.deleteUint32WrapperMapField=function(a,b,c,d){jspb_internal_adapters.getReadonlyUint32WrapperMapField(a,b,d).delete(c);return a};jspb_internal_adapters.getUint32Int64GbigintMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint32KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_int64GbigintToApiForMaps)}; jspb_internal_adapters.putUint32Int64GbigintMapField=function(a,b,c,d){jspb_internal_adapters.getUint32Int64GbigintMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllUint32Int64GbigintMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint32Int64GbigintMapField(a,b));return a}; jspb_internal_adapters.setUint32Int64GbigintMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint32Int64GbigintMapField(a,b,c);return a};jspb_internal_adapters.deleteUint32Int64GbigintMapField=function(a,b,c){jspb_internal_adapters.getUint32Int64GbigintMapField(a,b).delete(c);return a}; jspb_internal_adapters.getUint32Uint64GbigintMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint32KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint64GbigintToApiForMaps)};jspb_internal_adapters.putUint32Uint64GbigintMapField=function(a,b,c,d){jspb_internal_adapters.getUint32Uint64GbigintMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllUint32Uint64GbigintMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint32Uint64GbigintMapField(a,b));return a};jspb_internal_adapters.setUint32Uint64GbigintMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint32Uint64GbigintMapField(a,b,c);return a}; jspb_internal_adapters.deleteUint32Uint64GbigintMapField=function(a,b,c){jspb_internal_adapters.getUint32Uint64GbigintMapField(a,b).delete(c);return a};jspb_internal_adapters.getInt64BooleanMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int64KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps)}; jspb_internal_adapters.putInt64BooleanMapField=function(a,b,c,d){jspb_internal_adapters.getInt64BooleanMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllInt64BooleanMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt64BooleanMapField(a,b));return a}; jspb_internal_adapters.setInt64BooleanMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64BooleanMapField(a,b,c);return a};jspb_internal_adapters.deleteInt64BooleanMapField=function(a,b,c){jspb_internal_adapters.getInt64BooleanMapField(a,b).delete(c);return a}; jspb_internal_adapters.getInt64Int32MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int64KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps)};jspb_internal_adapters.putInt64Int32MapField=function(a,b,c,d){jspb_internal_adapters.getInt64Int32MapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllInt64Int32MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt64Int32MapField(a,b));return a};jspb_internal_adapters.setInt64Int32MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64Int32MapField(a,b,c);return a}; jspb_internal_adapters.deleteInt64Int32MapField=function(a,b,c){jspb_internal_adapters.getInt64Int32MapField(a,b).delete(c);return a};jspb_internal_adapters.getInt64Uint32MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int64KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint32ToApiForMaps)}; jspb_internal_adapters.putInt64Uint32MapField=function(a,b,c,d){jspb_internal_adapters.getInt64Uint32MapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllInt64Uint32MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt64Uint32MapField(a,b));return a}; jspb_internal_adapters.setInt64Uint32MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64Uint32MapField(a,b,c);return a};jspb_internal_adapters.deleteInt64Uint32MapField=function(a,b,c){jspb_internal_adapters.getInt64Uint32MapField(a,b).delete(c);return a}; jspb_internal_adapters.getInt64Int64MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int64KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_int64ToApiForMaps)};jspb_internal_adapters.putInt64Int64MapField=function(a,b,c,d){jspb_internal_adapters.getInt64Int64MapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllInt64Int64MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt64Int64MapField(a,b));return a};jspb_internal_adapters.setInt64Int64MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64Int64MapField(a,b,c);return a}; jspb_internal_adapters.deleteInt64Int64MapField=function(a,b,c){jspb_internal_adapters.getInt64Int64MapField(a,b).delete(c);return a};jspb_internal_adapters.getInt64Uint64MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int64KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint64ToApiForMaps)}; jspb_internal_adapters.putInt64Uint64MapField=function(a,b,c,d){jspb_internal_adapters.getInt64Uint64MapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllInt64Uint64MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt64Uint64MapField(a,b));return a}; jspb_internal_adapters.setInt64Uint64MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64Uint64MapField(a,b,c);return a};jspb_internal_adapters.deleteInt64Uint64MapField=function(a,b,c){jspb_internal_adapters.getInt64Uint64MapField(a,b).delete(c);return a}; jspb_internal_adapters.getInt64FloatingPointMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int64KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_floatToApiForMaps)};jspb_internal_adapters.putInt64FloatingPointMapField=function(a,b,c,d){jspb_internal_adapters.getInt64FloatingPointMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllInt64FloatingPointMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt64FloatingPointMapField(a,b));return a};jspb_internal_adapters.setInt64FloatingPointMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64FloatingPointMapField(a,b,c);return a}; jspb_internal_adapters.deleteInt64FloatingPointMapField=function(a,b,c){jspb_internal_adapters.getInt64FloatingPointMapField(a,b).delete(c);return a};jspb_internal_adapters.getInt64StringMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int64KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps)}; jspb_internal_adapters.putInt64StringMapField=function(a,b,c,d){jspb_internal_adapters.getInt64StringMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllInt64StringMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt64StringMapField(a,b));return a}; jspb_internal_adapters.setInt64StringMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64StringMapField(a,b,c);return a};jspb_internal_adapters.deleteInt64StringMapField=function(a,b,c){jspb_internal_adapters.getInt64StringMapField(a,b).delete(c);return a}; jspb_internal_adapters.getInt64BytesMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int64KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_bytesToApiForMaps)};jspb_internal_adapters.putInt64BytesMapField=function(a,b,c,d){jspb_internal_adapters.getInt64BytesMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllInt64BytesMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt64BytesMapField(a,b));return a};jspb_internal_adapters.setInt64BytesMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64BytesMapField(a,b,c);return a}; jspb_internal_adapters.deleteInt64BytesMapField=function(a,b,c){jspb_internal_adapters.getInt64BytesMapField(a,b).delete(c);return a};jspb_internal_adapters.getInt64EnumMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int64KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_enumToApiForMaps)}; jspb_internal_adapters.putInt64EnumMapField=function(a,b,c,d){jspb_internal_adapters.getInt64EnumMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllInt64EnumMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt64EnumMapField(a,b));return a}; jspb_internal_adapters.setInt64EnumMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64EnumMapField(a,b,c);return a};jspb_internal_adapters.deleteInt64EnumMapField=function(a,b,c){jspb_internal_adapters.getInt64EnumMapField(a,b).delete(c);return a};jspb_internal_adapters.getReadonlyInt64WrapperMapField=function(a,b,c){return module$contents$jspb_internal_adapters_getReadonlyMapField(a,b,c,module$contents$jspb$internal_accessor_helpers_int64KeyToApiForMaps)}; jspb_internal_adapters.getInt64WrapperMapField=function(a,b,c){return module$contents$jspb_internal_adapters_getMessageValuedMapField(a,b,c,module$contents$jspb$internal_accessor_helpers_int64KeyToApiForMaps)};jspb_internal_adapters.putInt64WrapperMapField=function(a,b,c,d,e){jspb_internal_adapters.getReadonlyInt64WrapperMapField(a,b,e).set(c,d);return a}; jspb_internal_adapters.putAllInt64WrapperMapField=function(a,b,c,d){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getReadonlyInt64WrapperMapField(a,b,d));return a};jspb_internal_adapters.setInt64WrapperMapField=function(a,b,c,d){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64WrapperMapField(a,b,c,d);return a}; jspb_internal_adapters.deleteInt64WrapperMapField=function(a,b,c,d){jspb_internal_adapters.getReadonlyInt64WrapperMapField(a,b,d).delete(c);return a};jspb_internal_adapters.getUint64BooleanMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint64KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps)}; jspb_internal_adapters.putUint64BooleanMapField=function(a,b,c,d){jspb_internal_adapters.getUint64BooleanMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllUint64BooleanMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint64BooleanMapField(a,b));return a}; jspb_internal_adapters.setUint64BooleanMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64BooleanMapField(a,b,c);return a};jspb_internal_adapters.deleteUint64BooleanMapField=function(a,b,c){jspb_internal_adapters.getUint64BooleanMapField(a,b).delete(c);return a}; jspb_internal_adapters.getUint64Int32MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint64KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps)};jspb_internal_adapters.putUint64Int32MapField=function(a,b,c,d){jspb_internal_adapters.getUint64Int32MapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllUint64Int32MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint64Int32MapField(a,b));return a};jspb_internal_adapters.setUint64Int32MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64Int32MapField(a,b,c);return a}; jspb_internal_adapters.deleteUint64Int32MapField=function(a,b,c){jspb_internal_adapters.getUint64Int32MapField(a,b).delete(c);return a};jspb_internal_adapters.getUint64Uint32MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint64KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint32ToApiForMaps)}; jspb_internal_adapters.putUint64Uint32MapField=function(a,b,c,d){jspb_internal_adapters.getUint64Uint32MapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllUint64Uint32MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint64Uint32MapField(a,b));return a}; jspb_internal_adapters.setUint64Uint32MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64Uint32MapField(a,b,c);return a};jspb_internal_adapters.deleteUint64Uint32MapField=function(a,b,c){jspb_internal_adapters.getUint64Uint32MapField(a,b).delete(c);return a}; jspb_internal_adapters.getUint64Int64MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint64KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_int64ToApiForMaps)};jspb_internal_adapters.putUint64Int64MapField=function(a,b,c,d){jspb_internal_adapters.getUint64Int64MapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllUint64Int64MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint64Int64MapField(a,b));return a};jspb_internal_adapters.setUint64Int64MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64Int64MapField(a,b,c);return a}; jspb_internal_adapters.deleteUint64Int64MapField=function(a,b,c){jspb_internal_adapters.getUint64Int64MapField(a,b).delete(c);return a};jspb_internal_adapters.getUint64Uint64MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint64KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint64ToApiForMaps)}; jspb_internal_adapters.putUint64Uint64MapField=function(a,b,c,d){jspb_internal_adapters.getUint64Uint64MapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllUint64Uint64MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint64Uint64MapField(a,b));return a}; jspb_internal_adapters.setUint64Uint64MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64Uint64MapField(a,b,c);return a};jspb_internal_adapters.deleteUint64Uint64MapField=function(a,b,c){jspb_internal_adapters.getUint64Uint64MapField(a,b).delete(c);return a}; jspb_internal_adapters.getUint64FloatingPointMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint64KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_floatToApiForMaps)};jspb_internal_adapters.putUint64FloatingPointMapField=function(a,b,c,d){jspb_internal_adapters.getUint64FloatingPointMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllUint64FloatingPointMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint64FloatingPointMapField(a,b));return a};jspb_internal_adapters.setUint64FloatingPointMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64FloatingPointMapField(a,b,c);return a}; jspb_internal_adapters.deleteUint64FloatingPointMapField=function(a,b,c){jspb_internal_adapters.getUint64FloatingPointMapField(a,b).delete(c);return a};jspb_internal_adapters.getUint64StringMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint64KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps)}; jspb_internal_adapters.putUint64StringMapField=function(a,b,c,d){jspb_internal_adapters.getUint64StringMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllUint64StringMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint64StringMapField(a,b));return a}; jspb_internal_adapters.setUint64StringMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64StringMapField(a,b,c);return a};jspb_internal_adapters.deleteUint64StringMapField=function(a,b,c){jspb_internal_adapters.getUint64StringMapField(a,b).delete(c);return a}; jspb_internal_adapters.getUint64BytesMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint64KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_bytesToApiForMaps)};jspb_internal_adapters.putUint64BytesMapField=function(a,b,c,d){jspb_internal_adapters.getUint64BytesMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllUint64BytesMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint64BytesMapField(a,b));return a};jspb_internal_adapters.setUint64BytesMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64BytesMapField(a,b,c);return a}; jspb_internal_adapters.deleteUint64BytesMapField=function(a,b,c){jspb_internal_adapters.getUint64BytesMapField(a,b).delete(c);return a};jspb_internal_adapters.getUint64EnumMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint64KeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_enumToApiForMaps)}; jspb_internal_adapters.putUint64EnumMapField=function(a,b,c,d){jspb_internal_adapters.getUint64EnumMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllUint64EnumMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint64EnumMapField(a,b));return a}; jspb_internal_adapters.setUint64EnumMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64EnumMapField(a,b,c);return a};jspb_internal_adapters.deleteUint64EnumMapField=function(a,b,c){jspb_internal_adapters.getUint64EnumMapField(a,b).delete(c);return a};jspb_internal_adapters.getReadonlyUint64WrapperMapField=function(a,b,c){return module$contents$jspb_internal_adapters_getReadonlyMapField(a,b,c,module$contents$jspb$internal_accessor_helpers_uint64KeyToApiForMaps)}; jspb_internal_adapters.getUint64WrapperMapField=function(a,b,c){return module$contents$jspb_internal_adapters_getMessageValuedMapField(a,b,c,module$contents$jspb$internal_accessor_helpers_uint64KeyToApiForMaps)};jspb_internal_adapters.putUint64WrapperMapField=function(a,b,c,d,e){jspb_internal_adapters.getReadonlyUint64WrapperMapField(a,b,e).set(c,d);return a}; jspb_internal_adapters.putAllUint64WrapperMapField=function(a,b,c,d){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getReadonlyUint64WrapperMapField(a,b,d));return a};jspb_internal_adapters.setUint64WrapperMapField=function(a,b,c,d){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64WrapperMapField(a,b,c,d);return a}; jspb_internal_adapters.deleteUint64WrapperMapField=function(a,b,c,d){jspb_internal_adapters.getReadonlyUint64WrapperMapField(a,b,d).delete(c);return a};jspb_internal_adapters.getStringBooleanMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps)}; jspb_internal_adapters.putStringBooleanMapField=function(a,b,c,d){jspb_internal_adapters.getStringBooleanMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllStringBooleanMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getStringBooleanMapField(a,b));return a}; jspb_internal_adapters.setStringBooleanMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllStringBooleanMapField(a,b,c);return a};jspb_internal_adapters.deleteStringBooleanMapField=function(a,b,c){jspb_internal_adapters.getStringBooleanMapField(a,b).delete(c);return a}; jspb_internal_adapters.getStringInt32MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps)};jspb_internal_adapters.putStringInt32MapField=function(a,b,c,d){jspb_internal_adapters.getStringInt32MapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllStringInt32MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getStringInt32MapField(a,b));return a};jspb_internal_adapters.setStringInt32MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllStringInt32MapField(a,b,c);return a}; jspb_internal_adapters.deleteStringInt32MapField=function(a,b,c){jspb_internal_adapters.getStringInt32MapField(a,b).delete(c);return a};jspb_internal_adapters.getStringUint32MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint32ToApiForMaps)}; jspb_internal_adapters.putStringUint32MapField=function(a,b,c,d){jspb_internal_adapters.getStringUint32MapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllStringUint32MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getStringUint32MapField(a,b));return a}; jspb_internal_adapters.setStringUint32MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllStringUint32MapField(a,b,c);return a};jspb_internal_adapters.deleteStringUint32MapField=function(a,b,c){jspb_internal_adapters.getStringUint32MapField(a,b).delete(c);return a}; jspb_internal_adapters.getStringInt64MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps,module$contents$jspb$internal_accessor_helpers_int64ToApiForMaps)};jspb_internal_adapters.putStringInt64MapField=function(a,b,c,d){jspb_internal_adapters.getStringInt64MapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllStringInt64MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getStringInt64MapField(a,b));return a};jspb_internal_adapters.setStringInt64MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllStringInt64MapField(a,b,c);return a}; jspb_internal_adapters.deleteStringInt64MapField=function(a,b,c){jspb_internal_adapters.getStringInt64MapField(a,b).delete(c);return a};jspb_internal_adapters.getStringUint64MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint64ToApiForMaps)}; jspb_internal_adapters.putStringUint64MapField=function(a,b,c,d){jspb_internal_adapters.getStringUint64MapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllStringUint64MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getStringUint64MapField(a,b));return a}; jspb_internal_adapters.setStringUint64MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllStringUint64MapField(a,b,c);return a};jspb_internal_adapters.deleteStringUint64MapField=function(a,b,c){jspb_internal_adapters.getStringUint64MapField(a,b).delete(c);return a}; jspb_internal_adapters.getStringFloatingPointMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps,module$contents$jspb$internal_accessor_helpers_floatToApiForMaps)};jspb_internal_adapters.putStringFloatingPointMapField=function(a,b,c,d){jspb_internal_adapters.getStringFloatingPointMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllStringFloatingPointMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getStringFloatingPointMapField(a,b));return a};jspb_internal_adapters.setStringFloatingPointMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllStringFloatingPointMapField(a,b,c);return a}; jspb_internal_adapters.deleteStringFloatingPointMapField=function(a,b,c){jspb_internal_adapters.getStringFloatingPointMapField(a,b).delete(c);return a};jspb_internal_adapters.getStringStringMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps)}; jspb_internal_adapters.putStringStringMapField=function(a,b,c,d){jspb_internal_adapters.getStringStringMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllStringStringMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getStringStringMapField(a,b));return a}; jspb_internal_adapters.setStringStringMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllStringStringMapField(a,b,c);return a};jspb_internal_adapters.deleteStringStringMapField=function(a,b,c){jspb_internal_adapters.getStringStringMapField(a,b).delete(c);return a}; jspb_internal_adapters.getStringBytesMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps,module$contents$jspb$internal_accessor_helpers_bytesToApiForMaps)};jspb_internal_adapters.putStringBytesMapField=function(a,b,c,d){jspb_internal_adapters.getStringBytesMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllStringBytesMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getStringBytesMapField(a,b));return a};jspb_internal_adapters.setStringBytesMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllStringBytesMapField(a,b,c);return a}; jspb_internal_adapters.deleteStringBytesMapField=function(a,b,c){jspb_internal_adapters.getStringBytesMapField(a,b).delete(c);return a};jspb_internal_adapters.getStringEnumMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps,module$contents$jspb$internal_accessor_helpers_enumToApiForMaps)}; jspb_internal_adapters.putStringEnumMapField=function(a,b,c,d){jspb_internal_adapters.getStringEnumMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllStringEnumMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getStringEnumMapField(a,b));return a}; jspb_internal_adapters.setStringEnumMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllStringEnumMapField(a,b,c);return a};jspb_internal_adapters.deleteStringEnumMapField=function(a,b,c){jspb_internal_adapters.getStringEnumMapField(a,b).delete(c);return a};jspb_internal_adapters.getReadonlyStringWrapperMapField=function(a,b,c){return module$contents$jspb_internal_adapters_getReadonlyMapField(a,b,c,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps)}; jspb_internal_adapters.getStringWrapperMapField=function(a,b,c){return module$contents$jspb_internal_adapters_getMessageValuedMapField(a,b,c,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps)};jspb_internal_adapters.putStringWrapperMapField=function(a,b,c,d,e){jspb_internal_adapters.getReadonlyStringWrapperMapField(a,b,e).set(c,d);return a}; jspb_internal_adapters.putAllStringWrapperMapField=function(a,b,c,d){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getReadonlyStringWrapperMapField(a,b,d));return a};jspb_internal_adapters.setStringWrapperMapField=function(a,b,c,d){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllStringWrapperMapField(a,b,c,d);return a}; jspb_internal_adapters.deleteStringWrapperMapField=function(a,b,c,d){jspb_internal_adapters.getReadonlyStringWrapperMapField(a,b,d).delete(c);return a};jspb_internal_adapters.getStringInt64GbigintMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps,module$contents$jspb$internal_accessor_helpers_int64GbigintToApiForMaps)}; jspb_internal_adapters.putStringInt64GbigintMapField=function(a,b,c,d){jspb_internal_adapters.getStringInt64GbigintMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllStringInt64GbigintMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getStringInt64GbigintMapField(a,b));return a}; jspb_internal_adapters.setStringInt64GbigintMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllStringInt64GbigintMapField(a,b,c);return a};jspb_internal_adapters.deleteStringInt64GbigintMapField=function(a,b,c){jspb_internal_adapters.getStringInt64GbigintMapField(a,b).delete(c);return a}; jspb_internal_adapters.getStringUint64GbigintMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint64GbigintToApiForMaps)};jspb_internal_adapters.putStringUint64GbigintMapField=function(a,b,c,d){jspb_internal_adapters.getStringUint64GbigintMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllStringUint64GbigintMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getStringUint64GbigintMapField(a,b));return a};jspb_internal_adapters.setStringUint64GbigintMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllStringUint64GbigintMapField(a,b,c);return a}; jspb_internal_adapters.deleteStringUint64GbigintMapField=function(a,b,c){jspb_internal_adapters.getStringUint64GbigintMapField(a,b).delete(c);return a};jspb_internal_adapters.getInt64GbigintBooleanMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int64GbigintKeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps)}; jspb_internal_adapters.putInt64GbigintBooleanMapField=function(a,b,c,d){jspb_internal_adapters.getInt64GbigintBooleanMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllInt64GbigintBooleanMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt64GbigintBooleanMapField(a,b));return a}; jspb_internal_adapters.setInt64GbigintBooleanMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64GbigintBooleanMapField(a,b,c);return a};jspb_internal_adapters.deleteInt64GbigintBooleanMapField=function(a,b,c){jspb_internal_adapters.getInt64GbigintBooleanMapField(a,b).delete(c);return a}; jspb_internal_adapters.getInt64GbigintInt32MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int64GbigintKeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps)};jspb_internal_adapters.putInt64GbigintInt32MapField=function(a,b,c,d){jspb_internal_adapters.getInt64GbigintInt32MapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllInt64GbigintInt32MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt64GbigintInt32MapField(a,b));return a};jspb_internal_adapters.setInt64GbigintInt32MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64GbigintInt32MapField(a,b,c);return a}; jspb_internal_adapters.deleteInt64GbigintInt32MapField=function(a,b,c){jspb_internal_adapters.getInt64GbigintInt32MapField(a,b).delete(c);return a};jspb_internal_adapters.getInt64GbigintUint32MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int64GbigintKeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint32ToApiForMaps)}; jspb_internal_adapters.putInt64GbigintUint32MapField=function(a,b,c,d){jspb_internal_adapters.getInt64GbigintUint32MapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllInt64GbigintUint32MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt64GbigintUint32MapField(a,b));return a}; jspb_internal_adapters.setInt64GbigintUint32MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64GbigintUint32MapField(a,b,c);return a};jspb_internal_adapters.deleteInt64GbigintUint32MapField=function(a,b,c){jspb_internal_adapters.getInt64GbigintUint32MapField(a,b).delete(c);return a}; jspb_internal_adapters.getInt64GbigintFloatingPointMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int64GbigintKeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_floatToApiForMaps)};jspb_internal_adapters.putInt64GbigintFloatingPointMapField=function(a,b,c,d){jspb_internal_adapters.getInt64GbigintFloatingPointMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllInt64GbigintFloatingPointMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt64GbigintFloatingPointMapField(a,b));return a};jspb_internal_adapters.setInt64GbigintFloatingPointMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64GbigintFloatingPointMapField(a,b,c);return a}; jspb_internal_adapters.deleteInt64GbigintFloatingPointMapField=function(a,b,c){jspb_internal_adapters.getInt64GbigintFloatingPointMapField(a,b).delete(c);return a};jspb_internal_adapters.getInt64GbigintStringMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int64GbigintKeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps)}; jspb_internal_adapters.putInt64GbigintStringMapField=function(a,b,c,d){jspb_internal_adapters.getInt64GbigintStringMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllInt64GbigintStringMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt64GbigintStringMapField(a,b));return a}; jspb_internal_adapters.setInt64GbigintStringMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64GbigintStringMapField(a,b,c);return a};jspb_internal_adapters.deleteInt64GbigintStringMapField=function(a,b,c){jspb_internal_adapters.getInt64GbigintStringMapField(a,b).delete(c);return a}; jspb_internal_adapters.getInt64GbigintBytesMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int64GbigintKeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_bytesToApiForMaps)};jspb_internal_adapters.putInt64GbigintBytesMapField=function(a,b,c,d){jspb_internal_adapters.getInt64GbigintBytesMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllInt64GbigintBytesMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt64GbigintBytesMapField(a,b));return a};jspb_internal_adapters.setInt64GbigintBytesMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64GbigintBytesMapField(a,b,c);return a}; jspb_internal_adapters.deleteInt64GbigintBytesMapField=function(a,b,c){jspb_internal_adapters.getInt64GbigintBytesMapField(a,b).delete(c);return a};jspb_internal_adapters.getInt64GbigintEnumMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int64GbigintKeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_enumToApiForMaps)}; jspb_internal_adapters.putInt64GbigintEnumMapField=function(a,b,c,d){jspb_internal_adapters.getInt64GbigintEnumMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllInt64GbigintEnumMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt64GbigintEnumMapField(a,b));return a}; jspb_internal_adapters.setInt64GbigintEnumMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64GbigintEnumMapField(a,b,c);return a};jspb_internal_adapters.deleteInt64GbigintEnumMapField=function(a,b,c){jspb_internal_adapters.getInt64GbigintEnumMapField(a,b).delete(c);return a};jspb_internal_adapters.getReadonlyInt64GbigintWrapperMapField=function(a,b,c){return module$contents$jspb_internal_adapters_getReadonlyMapField(a,b,c,module$contents$jspb$internal_accessor_helpers_int64GbigintKeyToApiForMaps)}; jspb_internal_adapters.getInt64GbigintWrapperMapField=function(a,b,c){return module$contents$jspb_internal_adapters_getMessageValuedMapField(a,b,c,module$contents$jspb$internal_accessor_helpers_int64GbigintKeyToApiForMaps)};jspb_internal_adapters.putInt64GbigintWrapperMapField=function(a,b,c,d,e){jspb_internal_adapters.getReadonlyInt64GbigintWrapperMapField(a,b,e).set(c,d);return a}; jspb_internal_adapters.putAllInt64GbigintWrapperMapField=function(a,b,c,d){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getReadonlyInt64GbigintWrapperMapField(a,b,d));return a};jspb_internal_adapters.setInt64GbigintWrapperMapField=function(a,b,c,d){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64GbigintWrapperMapField(a,b,c,d);return a}; jspb_internal_adapters.deleteInt64GbigintWrapperMapField=function(a,b,c,d){jspb_internal_adapters.getReadonlyInt64GbigintWrapperMapField(a,b,d).delete(c);return a};jspb_internal_adapters.getInt64GbigintInt64GbigintMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int64GbigintKeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_int64GbigintToApiForMaps)}; jspb_internal_adapters.putInt64GbigintInt64GbigintMapField=function(a,b,c,d){jspb_internal_adapters.getInt64GbigintInt64GbigintMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllInt64GbigintInt64GbigintMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt64GbigintInt64GbigintMapField(a,b));return a}; jspb_internal_adapters.setInt64GbigintInt64GbigintMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64GbigintInt64GbigintMapField(a,b,c);return a};jspb_internal_adapters.deleteInt64GbigintInt64GbigintMapField=function(a,b,c){jspb_internal_adapters.getInt64GbigintInt64GbigintMapField(a,b).delete(c);return a}; jspb_internal_adapters.getInt64GbigintUint64GbigintMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_int64GbigintKeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint64GbigintToApiForMaps)};jspb_internal_adapters.putInt64GbigintUint64GbigintMapField=function(a,b,c,d){jspb_internal_adapters.getInt64GbigintUint64GbigintMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllInt64GbigintUint64GbigintMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getInt64GbigintUint64GbigintMapField(a,b));return a};jspb_internal_adapters.setInt64GbigintUint64GbigintMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllInt64GbigintUint64GbigintMapField(a,b,c);return a}; jspb_internal_adapters.deleteInt64GbigintUint64GbigintMapField=function(a,b,c){jspb_internal_adapters.getInt64GbigintUint64GbigintMapField(a,b).delete(c);return a};jspb_internal_adapters.getUint64GbigintBooleanMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint64GbigintKeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_booleanToApiForMaps)}; jspb_internal_adapters.putUint64GbigintBooleanMapField=function(a,b,c,d){jspb_internal_adapters.getUint64GbigintBooleanMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllUint64GbigintBooleanMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint64GbigintBooleanMapField(a,b));return a}; jspb_internal_adapters.setUint64GbigintBooleanMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64GbigintBooleanMapField(a,b,c);return a};jspb_internal_adapters.deleteUint64GbigintBooleanMapField=function(a,b,c){jspb_internal_adapters.getUint64GbigintBooleanMapField(a,b).delete(c);return a}; jspb_internal_adapters.getUint64GbigintInt32MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint64GbigintKeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_int32ToApiForMaps)};jspb_internal_adapters.putUint64GbigintInt32MapField=function(a,b,c,d){jspb_internal_adapters.getUint64GbigintInt32MapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllUint64GbigintInt32MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint64GbigintInt32MapField(a,b));return a};jspb_internal_adapters.setUint64GbigintInt32MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64GbigintInt32MapField(a,b,c);return a}; jspb_internal_adapters.deleteUint64GbigintInt32MapField=function(a,b,c){jspb_internal_adapters.getUint64GbigintInt32MapField(a,b).delete(c);return a};jspb_internal_adapters.getUint64GbigintUint32MapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint64GbigintKeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint32ToApiForMaps)}; jspb_internal_adapters.putUint64GbigintUint32MapField=function(a,b,c,d){jspb_internal_adapters.getUint64GbigintUint32MapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllUint64GbigintUint32MapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint64GbigintUint32MapField(a,b));return a}; jspb_internal_adapters.setUint64GbigintUint32MapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64GbigintUint32MapField(a,b,c);return a};jspb_internal_adapters.deleteUint64GbigintUint32MapField=function(a,b,c){jspb_internal_adapters.getUint64GbigintUint32MapField(a,b).delete(c);return a}; jspb_internal_adapters.getUint64GbigintFloatingPointMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint64GbigintKeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_floatToApiForMaps)};jspb_internal_adapters.putUint64GbigintFloatingPointMapField=function(a,b,c,d){jspb_internal_adapters.getUint64GbigintFloatingPointMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllUint64GbigintFloatingPointMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint64GbigintFloatingPointMapField(a,b));return a};jspb_internal_adapters.setUint64GbigintFloatingPointMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64GbigintFloatingPointMapField(a,b,c);return a}; jspb_internal_adapters.deleteUint64GbigintFloatingPointMapField=function(a,b,c){jspb_internal_adapters.getUint64GbigintFloatingPointMapField(a,b).delete(c);return a};jspb_internal_adapters.getUint64GbigintStringMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint64GbigintKeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_stringToApiForMaps)}; jspb_internal_adapters.putUint64GbigintStringMapField=function(a,b,c,d){jspb_internal_adapters.getUint64GbigintStringMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllUint64GbigintStringMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint64GbigintStringMapField(a,b));return a}; jspb_internal_adapters.setUint64GbigintStringMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64GbigintStringMapField(a,b,c);return a};jspb_internal_adapters.deleteUint64GbigintStringMapField=function(a,b,c){jspb_internal_adapters.getUint64GbigintStringMapField(a,b).delete(c);return a}; jspb_internal_adapters.getUint64GbigintBytesMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint64GbigintKeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_bytesToApiForMaps)};jspb_internal_adapters.putUint64GbigintBytesMapField=function(a,b,c,d){jspb_internal_adapters.getUint64GbigintBytesMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllUint64GbigintBytesMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint64GbigintBytesMapField(a,b));return a};jspb_internal_adapters.setUint64GbigintBytesMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64GbigintBytesMapField(a,b,c);return a}; jspb_internal_adapters.deleteUint64GbigintBytesMapField=function(a,b,c){jspb_internal_adapters.getUint64GbigintBytesMapField(a,b).delete(c);return a};jspb_internal_adapters.getUint64GbigintEnumMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint64GbigintKeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_enumToApiForMaps)}; jspb_internal_adapters.putUint64GbigintEnumMapField=function(a,b,c,d){jspb_internal_adapters.getUint64GbigintEnumMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllUint64GbigintEnumMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint64GbigintEnumMapField(a,b));return a}; jspb_internal_adapters.setUint64GbigintEnumMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64GbigintEnumMapField(a,b,c);return a};jspb_internal_adapters.deleteUint64GbigintEnumMapField=function(a,b,c){jspb_internal_adapters.getUint64GbigintEnumMapField(a,b).delete(c);return a};jspb_internal_adapters.getReadonlyUint64GbigintWrapperMapField=function(a,b,c){return module$contents$jspb_internal_adapters_getReadonlyMapField(a,b,c,module$contents$jspb$internal_accessor_helpers_uint64GbigintKeyToApiForMaps)}; jspb_internal_adapters.getUint64GbigintWrapperMapField=function(a,b,c){return module$contents$jspb_internal_adapters_getMessageValuedMapField(a,b,c,module$contents$jspb$internal_accessor_helpers_uint64GbigintKeyToApiForMaps)};jspb_internal_adapters.putUint64GbigintWrapperMapField=function(a,b,c,d,e){jspb_internal_adapters.getReadonlyUint64GbigintWrapperMapField(a,b,e).set(c,d);return a}; jspb_internal_adapters.putAllUint64GbigintWrapperMapField=function(a,b,c,d){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getReadonlyUint64GbigintWrapperMapField(a,b,d));return a};jspb_internal_adapters.setUint64GbigintWrapperMapField=function(a,b,c,d){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64GbigintWrapperMapField(a,b,c,d);return a}; jspb_internal_adapters.deleteUint64GbigintWrapperMapField=function(a,b,c,d){jspb_internal_adapters.getReadonlyUint64GbigintWrapperMapField(a,b,d).delete(c);return a};jspb_internal_adapters.getUint64GbigintInt64GbigintMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint64GbigintKeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_int64GbigintToApiForMaps)}; jspb_internal_adapters.putUint64GbigintInt64GbigintMapField=function(a,b,c,d){jspb_internal_adapters.getUint64GbigintInt64GbigintMapField(a,b).set(c,d);return a};jspb_internal_adapters.putAllUint64GbigintInt64GbigintMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint64GbigintInt64GbigintMapField(a,b));return a}; jspb_internal_adapters.setUint64GbigintInt64GbigintMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64GbigintInt64GbigintMapField(a,b,c);return a};jspb_internal_adapters.deleteUint64GbigintInt64GbigintMapField=function(a,b,c){jspb_internal_adapters.getUint64GbigintInt64GbigintMapField(a,b).delete(c);return a}; jspb_internal_adapters.getUint64GbigintUint64GbigintMapField=function(a,b){return module$contents$jspb_internal_adapters_getPrimitiveMapField(a,b,module$contents$jspb$internal_accessor_helpers_uint64GbigintKeyToApiForMaps,module$contents$jspb$internal_accessor_helpers_uint64GbigintToApiForMaps)};jspb_internal_adapters.putUint64GbigintUint64GbigintMapField=function(a,b,c,d){jspb_internal_adapters.getUint64GbigintUint64GbigintMapField(a,b).set(c,d);return a}; jspb_internal_adapters.putAllUint64GbigintUint64GbigintMapField=function(a,b,c){module$contents$jspb$internal_checkNotImmutable(a);c.forEach(module$contents$jspb_internal_adapters_mapSetter,jspb_internal_adapters.getUint64GbigintUint64GbigintMapField(a,b));return a};jspb_internal_adapters.setUint64GbigintUint64GbigintMapField=function(a,b,c){jspb_internal_adapters.clearMapField(a,b);c&&jspb_internal_adapters.putAllUint64GbigintUint64GbigintMapField(a,b,c);return a}; jspb_internal_adapters.deleteUint64GbigintUint64GbigintMapField=function(a,b,c){jspb_internal_adapters.getUint64GbigintUint64GbigintMapField(a,b).delete(c);return a};var module$contents$jspb$internal$transfer_array_destroyTransferredArrays=goog.DEBUG,module$contents$jspb$internal$transfer_array_allTransferredArrays=module$contents$jspb$internal$transfer_array_destroyTransferredArrays?new WeakMap:void 0; function module$contents$jspb$internal$transfer_array_transferArray(a){if(module$contents$jspb$internal$transfer_array_destroyTransferredArrays&&module$contents$jspb$internal$transfer_array_allTransferredArrays.get(a))throw Error("this array was already transferred");if(!Array.isArray(a))throw Error("must be an array");if(Object.isFrozen(a)||Object.isSealed(a)||!Object.isExtensible(a))throw Error("arrays passed to jspb constructors must be mutable");module$contents$jspb$internal_array_state_markArrayTransferred(a); if(module$contents$jspb$internal$transfer_array_destroyTransferredArrays){var b=a;a=(0,module$exports$jspb$internal_copy.cloneRaw)(a);module$contents$jspb$internal$transfer_array_makeArrayUnusable(b);module$contents$jspb$internal$transfer_array_allTransferredArrays.set(b,a)}return a} function module$contents$jspb$internal$transfer_array_makeValueUnusable(a){if(a!=null)if(Array.isArray(a))module$contents$jspb$internal$transfer_array_makeArrayUnusable(a);else if(a instanceof Uint8Array)module$exports$jspb$internal_bytes.SUPPORTS_STRUCTURED_CLONE?structuredClone(a,{transfer:[a.buffer]}):a.fill(97,0,a.length);else if(typeof a==="object"){for(var b in a){var c=a[b];a.hasOwnProperty(b)&&(delete a[b],module$contents$jspb$internal$transfer_array_makeValueUnusable(c))}Object.defineProperty(a, "dontUseThisItBelongsToJspb",{enumerable:!0,get:module$contents$jspb$internal$transfer_array_dontUseThisItBelongsToJspb});a.toJSON=module$contents$jspb$internal$transfer_array_dontUseThisItBelongsToJspb;module$contents$jspb$internal$transfer_array_badPrototype&&Object.setPrototypeOf(a,module$contents$jspb$internal$transfer_array_badPrototype);Object.freeze(a)}}var module$contents$jspb$internal$transfer_array_badPrototype; if(module$contents$jspb$internal$transfer_array_destroyTransferredArrays&&typeof Proxy!=="undefined"){var untypedHandlerMethod=module$contents$jspb$internal$transfer_array_dontUseThisItBelongsToJspb;module$contents$jspb$internal$transfer_array_badPrototype=new Proxy({},{getPrototypeOf:untypedHandlerMethod,setPrototypeOf:untypedHandlerMethod,isExtensible:untypedHandlerMethod,preventExtensions:untypedHandlerMethod,getOwnPropertyDescriptor:untypedHandlerMethod,defineProperty:untypedHandlerMethod,has:untypedHandlerMethod, get:untypedHandlerMethod,set:untypedHandlerMethod,deleteProperty:untypedHandlerMethod,apply:untypedHandlerMethod,construct:untypedHandlerMethod})} function module$contents$jspb$internal$transfer_array_makeArrayUnusable(a){for(var b=0;b<a.length;b++)module$contents$jspb$internal$transfer_array_makeValueUnusable(a[b]);if(!Object.isExtensible(a))throw Error("cannot transfer a frozen or sealed array");b=a;a.length=1;a[0]=module$contents$jspb$internal$transfer_array_dontUseThisItBelongsToJspb;b.toJSON=module$contents$jspb$internal$transfer_array_dontUseThisItBelongsToJspb;module$contents$jspb$internal$transfer_array_badPrototype&&Object.setPrototypeOf(b, module$contents$jspb$internal$transfer_array_badPrototype);Object.freeze(a)}function module$contents$jspb$internal$transfer_array_dontUseThisItBelongsToJspb(){if(goog.DEBUG)throw Error("this array or object is owned by JSPB and should not be reused, did you mean to copy it with copyJspbArray? See go/jspb-api-gotchas#construct_from_array");throw Error();};var module$exports$jspb$message_interface={ReadonlyMessageInterface:function(){}};module$exports$jspb$message_interface.ReadonlyMessageInterface.prototype.serialize=function(){};module$exports$jspb$message_interface.ReadonlyMessageInterface.prototype.equals=function(){};module$exports$jspb$message_interface.ReadonlyMessageInterface.prototype.hashCode=function(){};module$exports$jspb$message_interface.ReadonlyMessageInterface.prototype.toMutable=function(){}; module$exports$jspb$message_interface.ReadonlyMessageInterface.prototype.clone=function(){};module$exports$jspb$message_interface.ReadonlyMessageInterface.prototype.getExtension=function(){};module$exports$jspb$message_interface.ReadonlyMessageInterface.prototype.hasExtension=function(){};module$exports$jspb$message_interface.MutableMessageInterface=function(){};module$exports$jspb$message_interface.MutableMessageInterface.prototype.build=function(){}; module$exports$jspb$message_interface.MutableMessageInterface.prototype.clone=function(){};module$exports$jspb$message_interface.MutableMessageInterface.prototype.getExtension=function(){};module$exports$jspb$message_interface.MutableMessageInterface.prototype.hasExtension=function(){};var module$exports$jspb={},module$contents$jspb_currentPivotSelector,module$contents$jspb_inSerialize,module$contents$jspb_inToStructuredCloneableValue; module$exports$jspb.Message=function(a,b,c){goog.asserts.assertInstanceof(this,module$exports$jspb.Message,"The message constructor should only be used by subclasses");goog.asserts.assert(this.constructor!==module$exports$jspb.Message,"Message is an abstract class and cannot be directly constructed");if(module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&this[module$exports$jspb$internal.EXEMPTED_SUBCLASS_MARKER]!==!0&&module$exports$jspb$internal_options.USE_DETAILED_MESSAGE_TYPE_HIERARCHY){goog.asserts.assert(this[module$exports$jspb$internal.GENERATED_SUBCLASS_MARKER]=== !0,"Message can only be subclassed by proto gencode.");var d=Object.getPrototypeOf(goog.asserts.assert(Object.getPrototypeOf(this)));goog.asserts.assert(d.hasOwnProperty(module$exports$jspb$internal.GENERATED_SUBCLASS_MARKER),"Generated jspb classes should not be extended")}module$contents$jspb$internal_setInternalArray(this,module$contents$jspb$internal_construct_constructMessageArray(a,b,c));module$contents$jspb$internal_disallowPassingToStructuredClone(this);module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&& module$contents$jspb$internal_operations_logOperation({constructMessage:1})};module$exports$jspb.Message.prototype.getJsPbMessageId=function(){return this.constructor.messageId};module$exports$jspb.Message.prototype.toJSON=function(){return module$contents$jspb_toRawInternal(this)}; module$exports$jspb.Message.prototype.toStructuredCloneableValue=function(a){try{return goog.asserts.assert(!module$contents$jspb_inSerialize&&!module$contents$jspb_inToStructuredCloneableValue),module$contents$jspb_inToStructuredCloneableValue=!0,a&&(module$contents$jspb_currentPivotSelector=module$contents$jspb$internal_pivot_selectors_assertValidPivotSelector(a)),module$contents$jspb_toRawInternal(this)}finally{a&&(module$contents$jspb_currentPivotSelector=void 0),module$contents$jspb_inToStructuredCloneableValue= !1}}; module$exports$jspb.Message.prototype.serialize=function(a){var b=this;goog.asserts.assert(module$contents$jspb_currentPivotSelector===void 0);try{module$contents$jspb_inSerialize=!0;var c;module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&(c=module$contents$jspb$internal_operations_withoutLogging(function(){return module$exports$jspb.Message.deserializeWithCtor(b.constructor,JSON.stringify(module$contents$jspb_toRawInternal(b),module$contents$jspb$internal_json_jspbJsonStringifyReplacer))}));a&& (module$contents$jspb_currentPivotSelector=module$contents$jspb$internal_pivot_selectors_assertValidPivotSelector(a));goog.asserts.assert(module$contents$jspb_inSerialize&&!module$contents$jspb_inToStructuredCloneableValue);var d=JSON.stringify(module$contents$jspb_toRawInternal(this),module$contents$jspb$internal_json_jspbJsonStringifyReplacer);module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&module$contents$jspb$internal_operations_withoutLogging(function(){goog.asserts.assert(module$contents$jspb$internal_compare_compareFields(goog.asserts.assertExists(c), b));goog.asserts.assert(module$contents$jspb$internal_compare_compareMessages(goog.asserts.assertExists(c),module$exports$jspb.Message.deserializeWithCtor(b.constructor,d)))});return d}finally{a&&(module$contents$jspb_currentPivotSelector=void 0),module$contents$jspb_inSerialize=!1}}; module$exports$jspb.Message.deserializeWithCtor=function(a,b){goog.asserts.assertFunction(a);if(b==null||b=="")return goog.asserts.assertInstanceof(new a,module$exports$jspb.Message);goog.asserts.assertString(b);b=JSON.parse(b);if(!Array.isArray(b))throw Error(goog.DEBUG?"Expected to deserialize an Array but got "+goog.typeOf(b)+": "+b:"dnarr");return module$contents$jspb$internal_construct_internalConstructFromOwnedArray(a,module$contents$jspb$internal_array_state_markMutableReferencesAreOwned(b))}; module$exports$jspb.Message.prototype.getExtension=function(a){goog.asserts.assertInstanceof(this,a.extendeeCtor);var b=goog.asserts.assertInstanceof(this,module$exports$jspb.Message);b=a.ctor?a.isRepeated?a.getExtensionFn(b,a.ctor,a.fieldIndex,(0,jspb_internal_adapters.getRepeatedFieldReturnType)(void 0,!0),!0):a.getExtensionFn(b,a.ctor,a.fieldIndex,!0):a.isRepeated?a.getExtensionFn(b,a.fieldIndex,(0,jspb_internal_adapters.getRepeatedFieldReturnType)(void 0,!0),!0):a.getExtensionFn(b,a.fieldIndex, a.defaultValue,!0);return a.isDelegating&&b==null?a.defaultValue:b};module$exports$jspb.Message.prototype.getExtensionOrUndefined=function(a){goog.asserts.assert(!a.isRepeated,"repeated extensions don't support getExtensionOrUndefined");goog.asserts.assertInstanceof(this,a.extendeeCtor);var b=goog.asserts.assertInstanceof(this,module$exports$jspb.Message);a=a.ctor?a.getExtensionFn(b,a.ctor,a.fieldIndex,!0):a.getExtensionFn(b,a.fieldIndex,null,!0);return a===null?void 0:a}; module$exports$jspb.Message.prototype.hasExtension=function(a){goog.asserts.assert(!a.isRepeated,"repeated extensions don't support hasExtension");return a.ctor?(0,jspb_internal_adapters.hasWrapperField)(this,a.ctor,a.fieldIndex,!0):this.getExtensionOrUndefined(a)!==void 0}; module$exports$jspb.Message.difference=function(a,b){if(!(a instanceof module$exports$jspb.Message))throw Error("Message.difference called on non-Message.");if(a.constructor!==b.constructor)throw Error("Messages have different types.");var c=module$contents$jspb$internal_isImmutableMessage(a);if(c!==module$contents$jspb$internal_isImmutableMessage(b))throw Error("Messages must both be immutable or both be mutable.");var d=module$contents$jspb$internal_getInternalArray(a);b=module$contents$jspb$internal_getInternalArray(b); var e=module$contents$jspb$internal_operations_logNewArray([]),f=0,g=Math.max(d.length,b.length),h=a.getJsPbMessageId();h&&(e[0]=h,f=1);for(;f<g;f++){var k=d[f];h=b[f];if(f===b.length-1&&module$contents$jspb$internal_isSparseObject(h)){h=e[f]={};k=module$contents$jspb$internal_isSparseObject(k)?k:{};var l=b[f],m;for(m in l)module$contents$jspb$internal_compare_compareFields(k[m],l[m])||(h[m]=module$contents$jspb$internal_immutability_copyImmutableFieldValue(l[m]))}else module$contents$jspb$internal_compare_compareFields(k, h)||(e[f]=module$contents$jspb$internal_immutability_copyImmutableFieldValue(h))}c&&module$contents$jspb$internal_array_state_markArrayImmutable(e);return module$contents$jspb$internal_construct_internalConstructFromOwnedArray(a.constructor,module$contents$jspb$internal_array_state_markMutableReferencesAreOwned(e))}; module$exports$jspb.Message.equals=function(a,b){var c=a==b||!(!a||!b)&&a instanceof b.constructor&&module$contents$jspb$internal_compare_compareMessages(a,b);if(module$contents$jspb$internal_options_checkEqualsDoesNotChangeWithTypeInformation&&goog.DEBUG&&a&&b&&a.constructor===b.constructor&&!c){var d=a.constructor,e=d.makeCrossSerializerComparisonsCompatible;e&&module$contents$jspb$internal_operations_withoutLogging(function(){var f=new d(a.toStructuredCloneableValue());e(f);if(f=module$contents$jspb$internal_compare_compareMessages(f, goog.asserts.assert(b)))throw Error("Comparison between protos had a false negative and would have changed from false to true with type information. Please add a call to "+(d.displayName+".makeCrossSerializerComparisonsCompatible to one or both sides of the comparison to ensure it is reliable.\n\nCompared protos were:\n")+(a.serialize()+" and "+b.serialize()+"\n"));})}return c}; module$exports$jspb.Message.prototype.clone=function(){var a=goog.asserts.assertInstanceof(this,module$exports$jspb.Message);return module$contents$jspb$internal_immutability_copyMutableWithImmutableFields(a)};module$exports$jspb.Message.prototype.isImmutable=function(){return module$contents$jspb$internal_isImmutableMessage(this)};module$exports$jspb.Message.prototype.toMutable=function(){return module$contents$jspb$internal_immutability_messageToMutable(this)};goog.DEBUG&&module$contents$jspb$internal_setMessageCtorInDebug(module$exports$jspb.Message); module$exports$jspb.Message.prototype.messagePrototypeMarker=module$exports$jspb$internal.MESSAGE_PROTOTYPE_MARKER_VALUE;module$exports$jspb.Message.prototype.toString=function(){try{return module$contents$jspb_inSerialize=!0,module$contents$jspb_toRawInternal(this).toString()}finally{module$contents$jspb_inSerialize=!1}}; function module$contents$jspb_toRawInternal(a){var b=module$contents$jspb$internal_getInternalArray(a);b=module$contents$jspb_inSerialize?b:module$contents$jspb_inToStructuredCloneableValue?module$contents$jspb$internal_copy_cloneToStructuredCloneableFormat(b):module$contents$jspb$internal_copy_cloneToJsonFormat(b);var c=a;a=b;b=!module$contents$jspb_inSerialize;var d=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(b?module$contents$jspb$internal_getInternalArray(c):a);if(c=a.length){var e= a[c-1],f=module$contents$jspb$internal_isSparseObject(e);f?c--:e=void 0;var g=module$contents$jspb$internal_array_state_getArrayIndexOffset(d),h=module$contents$jspb$internal_fieldNumberFromIndex(c,g);d=(goog.DEBUG||!!module$contents$jspb_currentPivotSelector)&&!(d&module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_MESSAGE_ID);var k,l=(k=module$contents$jspb_currentPivotSelector)!=null?k:goog.DEBUG?module$contents$jspb$internal_pivot_selectors_defaultPivotSelector:module$contents$jspb$internal_pivot_selectors_noChangePivotSelector; l=d?l(h,g,a,e):h;h=(k=d&&h!==l)?module$contents$jspb$internal_operations_sliceWithLength(a,0,c):a;if(f||k){b:{var m=l;var n=g;f=h;d=e;var p;l=!1;if(k)for(var q=Math.max(0,m+n);q<f.length;q++){var r=f[q],t=module$contents$jspb$internal_fieldNumberFromIndex(q,n);r==null||module$contents$jspb$internal_isEmptyRepeatedField(r,void 0,t)||module$contents$jspb$internal_isEmptyMap(r)||(l=f[q]=void 0,((l=p)!=null?l:p={})[t]=r,l=!0)}if(d)for(var u in d)if(module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(d, u))if(q=+u,isNaN(q))q=void 0,((q=p)!=null?q:p={})[u]=d[u];else if(r=d[u],Array.isArray(r)&&(module$contents$jspb$internal_isEmptyRepeatedField(r,void 0,+u)||module$contents$jspb$internal_isEmptyMap(r))&&(r=null),r==null&&(l=!0),k&&q<m){l=!0;r=module$contents$jspb$internal_indexFromFieldNumber(q,n);for(t=f.length;t<=r;t++)f.push(void 0);f[r]=d[q]}else r!=null&&(q=void 0,((q=p)!=null?q:p={})[u]=r);l||(p=d);if(p)for(var w in p){n=p;break b}n=null}m=n==null?e!=null:n!==e}k&&(c=h.length);for(;c>0;c--){u= c-1;p=h[u];u=module$contents$jspb$internal_fieldNumberFromIndex(u,g);if(p!=null&&!module$contents$jspb$internal_isEmptyRepeatedField(p,void 0,u)&&!module$contents$jspb$internal_isEmptyMap(p))break;var v=!0}if(h!==a||m||v){if(!k&&!b)h=module$contents$jspb$internal_operations_sliceWithLength(h,0,c);else if(v||m||n)h.length=c;n&&h.push(n)}v=h}else v=a;module$exports$jspb$internal_options.DETAILED_JSPB_ASSERTS&&!module$contents$jspb_inSerialize&&(v=module$contents$jspb$internal$transfer_array_transferArray(v)); return v}var module$contents$jspb_clearFieldValue=function(a){return Array.isArray(a)&&module$contents$jspb$internal_array_state_isRepeatedField(a)?module$exports$jspb$internal.EMPTY_LIST_SENTINEL:void 0}; function module$contents$jspb_clearMessage(a){goog.asserts.assertInstanceof(a,module$exports$jspb.Message);module$contents$jspb$internal_checkNotImmutable(a);var b=module$contents$jspb$internal_getInternalArray(a),c=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(b);c&=module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_SPARSE_OBJECT;for(var d=b.length+(c?-1:0),e=a.getJsPbMessageId()!=null?1:0;e<d;e++)b[e]=module$contents$jspb_clearFieldValue(b[e]);if(c){c=goog.asserts.assertObject(b[b.length- 1]);for(var f in c)module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(c,f)&&(c[f]=module$contents$jspb_clearFieldValue(c[f]))}module$contents$jspb$internal_clearUnknownFields(b);return a} function module$contents$jspb_copyMessage(a,b){goog.asserts.assertInstanceof(a,module$exports$jspb.Message);goog.asserts.assertInstanceof(b,module$exports$jspb.Message);goog.asserts.assert(b.constructor==a.constructor,"Copy source and target message should have the same type.");module$contents$jspb$internal_checkNotImmutable(a);b=module$contents$jspb$internal_getInternalArray(b);var c=module$contents$jspb$internal_getInternalArray(a),d=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(b), e=(0,module$exports$jspb$internal_array_state.getMessageArrayState)(c);e&=~module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_SPARSE_OBJECT;e=module$contents$jspb$internal_array_state_setPivot(e,module$contents$jspb$internal_array_state_getPivot(d));var f=b.length;c.length=f;f=(d=module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_SPARSE_OBJECT&d?goog.asserts.assertObject(b[f-1]):void 0)?f-1:f;for(var g=0;g<f;g++)c[g]=module$contents$jspb$internal_immutability_copyImmutableFieldValue(b[g]); if(d){e|=module$exports$jspb$internal_array_state.ArrayStateFlags.HAS_SPARSE_OBJECT;f=c[f]={};for(var h in d)module$contents$jspb$internal_hasOwnPropertyIfNotTrusted(d,h)&&(f[h]=module$contents$jspb$internal_immutability_copyImmutableFieldValue(d[h]))}(0,module$exports$jspb$internal_array_state.setArrayState)(c,e);module$contents$jspb$internal_copyUnknownFields(c,b,!0);return a} function module$contents$jspb_copyMessageOrClear(a,b){return b!=null?module$contents$jspb_copyMessage(a,b):module$contents$jspb_clearMessage(a)} function module$contents$jspb_newMutableMessageFromTransferredArray(a,b){if(b==null)return new a;b=module$contents$jspb$internal$transfer_array_transferArray(b);a=module$contents$jspb$internal_construct_internalConstructFromOwnedArray(a,module$contents$jspb$internal_array_state_markMutableReferencesAreOwned(b));goog.asserts.assertInstanceof(a,module$exports$jspb.Message);return a} function module$contents$jspb_newImmutableMessageFromTransferredArray(a,b){goog.asserts.assertInstanceof(a,module$exports$jspb.Message);goog.asserts.assert(a.isImmutable());a=b==null?module$contents$jspb$internal_accessor_helpers_getDefaultImmutableInstance(a.constructor):module$contents$jspb$internal_construct_internalConstructFromOwnedArray(a.constructor,module$contents$jspb$internal_array_state_markArrayImmutable(module$contents$jspb$internal$transfer_array_transferArray(b)));goog.asserts.assertInstanceof(a, module$exports$jspb.Message);return a}function module$contents$jspb_cloneJspbArray(a){return(0,module$exports$jspb$internal_copy.cloneRaw)(a)}module$exports$jspb.clearMessage=module$contents$jspb_clearMessage;module$exports$jspb.cloneJspbArray=module$contents$jspb_cloneJspbArray;module$exports$jspb.copyMessage=module$contents$jspb_copyMessage;module$exports$jspb.copyMessageOrClear=module$contents$jspb_copyMessageOrClear;module$exports$jspb.newImmutableMessageFromTransferredArray=module$contents$jspb_newImmutableMessageFromTransferredArray; module$exports$jspb.newMutableMessageFromTransferredArray=module$contents$jspb_newMutableMessageFromTransferredArray;function module$contents$jspb$immutable_message_ImmutableMessage(){throw Error("ImmutableMessage is not instantiable");}module$contents$jspb$immutable_message_ImmutableMessage.equals=function(){throw Error("Call equals directly on the Message class, not a subclass");}; if(module$exports$jspb$internal_options.USE_DETAILED_MESSAGE_TYPE_HIERARCHY&&module$exports$jspb$internal.SUPPORTS_HAS_INSTANCE){var rejectInstanceof$jscomp$1=function(){throw Error(goog.DEBUG?"Cannot perform instanceof checks for ImmutableMessage. Please use .isMutable or .isImmutable to determine whether a message is mutable. See go/jspb-api-gotchas#immutable-classes for more information":void 0);},$jscomp$compprop55={};Object.defineProperties(module$contents$jspb$immutable_message_ImmutableMessage, ($jscomp$compprop55[Symbol.hasInstance]=module$contents$jspb$internal_invisiblePropValue(rejectInstanceof$jscomp$1),$jscomp$compprop55));(0,goog.asserts.assert)(module$contents$jspb$immutable_message_ImmutableMessage[Symbol.hasInstance]===rejectInstanceof$jscomp$1,"broken defineProperties implementation")};var module$exports$jspb$arith={UInt64:function(a,b){this.lo=a>>>0;this.hi=b>>>0}};module$exports$jspb$arith.UInt64.fromBigInt=function(a){a=BigInt.asUintN(64,a);return new module$exports$jspb$arith.UInt64(Number(a&BigInt(4294967295)),Number(a>>BigInt(32)))}; module$exports$jspb$arith.UInt64.fromString=function(a){if(!a)return module$exports$jspb$arith.UInt64.getZero();if(!/^\d+$/.test(a))return null;module$contents$jspb$utils_splitDecimalString(a);return new module$exports$jspb$arith.UInt64(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High)};module$exports$jspb$arith.UInt64.fromNumber=function(a){return new module$exports$jspb$arith.UInt64(a&4294967295,a/4294967296)}; module$exports$jspb$arith.UInt64.getZero=function(){return module$contents$jspb$arith_uint64Zero||(module$contents$jspb$arith_uint64Zero=new module$exports$jspb$arith.UInt64(0,0))};var module$contents$jspb$arith_uint64Zero;module$exports$jspb$arith.Int64=function(a,b){this.lo=a>>>0;this.hi=b>>>0};module$exports$jspb$arith.Int64.fromBigInt=function(a){a=BigInt.asUintN(64,a);return new module$exports$jspb$arith.Int64(Number(a&BigInt(4294967295)),Number(a>>BigInt(32)))}; module$exports$jspb$arith.Int64.fromString=function(a){if(!a)return module$exports$jspb$arith.Int64.getZero();if(!/^-?\d+$/.test(a))return null;module$contents$jspb$utils_splitDecimalString(a);return new module$exports$jspb$arith.Int64(module$contents$jspb$utils_split64Low,module$contents$jspb$utils_split64High)};module$exports$jspb$arith.Int64.fromNumber=function(a){return new module$exports$jspb$arith.Int64(a&4294967295,a/4294967296)}; module$exports$jspb$arith.Int64.getZero=function(){return module$contents$jspb$arith_int64Zero||(module$contents$jspb$arith_int64Zero=new module$exports$jspb$arith.Int64(0,0))};var module$contents$jspb$arith_int64Zero;var module$exports$jspb$binary$encoder={BinaryEncoder:function(){this.buffer_=[]}};module$exports$jspb$binary$encoder.BinaryEncoder.prototype.length=function(){return this.buffer_.length};module$exports$jspb$binary$encoder.BinaryEncoder.prototype.end=function(){var a=this.buffer_;this.buffer_=[];return a}; module$exports$jspb$binary$encoder.BinaryEncoder.prototype.writeUnsignedVarint32=function(a){goog.asserts.assert(a==Math.floor(a));for(goog.asserts.assert(a>=0&&a<module$exports$jspb$BinaryConstants.TWO_TO_32);a>127;)this.buffer_.push(a&127|128),a>>>=7;this.buffer_.push(a)};var module$exports$jspb$binary$writer={BinaryWriter:function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new module$exports$jspb$binary$encoder.BinaryEncoder}};module$exports$jspb$binary$writer.BinaryWriter.prototype.pushBlock=function(a){a.length!==0&&(this.blocks_.push(a),this.totalLength_+=a.length)}; module$exports$jspb$binary$writer.BinaryWriter.prototype.beginDelimited_=function(a){this.writeFieldHeader_(a,module$exports$jspb$BinaryConstants.WireType.DELIMITED);a=this.encoder_.end();this.pushBlock(a);a.push(this.totalLength_);return a};module$exports$jspb$binary$writer.BinaryWriter.prototype.endDelimited_=function(a){var b=a.pop();b=this.totalLength_+this.encoder_.length()-b;for((0,goog.asserts.assert)(b>=0);b>127;)a.push(b&127|128),b>>>=7,this.totalLength_++;a.push(b);this.totalLength_++}; module$exports$jspb$binary$writer.BinaryWriter.prototype.writeFieldHeader_=function(a,b){(0,goog.asserts.assert)(a>=1&&a==Math.floor(a));this.encoder_.writeUnsignedVarint32(a*8+b)};module$exports$jspb$binary$writer.BinaryWriter.prototype.writeMessage=function(a,b,c){b!=null&&(a=this.beginDelimited_(a),c(b,this),this.endDelimited_(a))};var module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens={};function module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_OpaqueTypeToken(){}module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.OpaqueTypeToken=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_OpaqueTypeToken; function module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken(){var a=function(){throw goog.DEBUG?Error("cannot construct an instance of a type token"):Error();};Object.setPrototypeOf(a,a.prototype);return a}function module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_typeTokensEqual(a,b){return a instanceof b}module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.typeTokensEqual=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_typeTokensEqual; module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.REPEATED=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("REPEATED");module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.MAP=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("MAP");module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.MESSAGE=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("MESSAGE"); module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.GROUP=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("GROUP");module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.BOOLEAN=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("BOOLEAN");module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.STRING=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("STRING"); module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.INT32=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("INT32");module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.UINT32=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("UINT32");module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.SINT32=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("SINT32"); module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.FIXED32=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("FIXED32");module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.SFIXED32=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("SFIXED32");module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.INT64=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("INT64"); module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.UINT64=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("UINT64");module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.SINT64=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("SINT64");module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.FIXED64=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("FIXED64"); module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.SFIXED64=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("SFIXED64");module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.FLOAT=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("FLOAT");module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.DOUBLE=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("DOUBLE"); module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.BYTES=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("BYTES");module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.ENUM=module$contents$google3$javascript$apps$jspb$internal_binary_type_tokens_newOpaqueTypeToken("ENUM");var module$exports$google3$javascript$apps$jspb$internal_binary_fields={ReaderWriterPair:function(a,b,c,d){this.$$isRepeated=c;a=this.$$valueType=d;b=module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.MESSAGE;a=!!b&&a===b;a||(a=module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.GROUP,a=!!a&&d===a);this.$$isMsg=a}}; function module$contents$google3$javascript$apps$jspb$internal_binary_fields_makeMsgRWPair(a,b,c){c=c===void 0?module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.MESSAGE:c;return new module$exports$google3$javascript$apps$jspb$internal_binary_fields.ReaderWriterPair(a,b,!1,c)}module$exports$google3$javascript$apps$jspb$internal_binary_fields.makeMsgRWPair=module$contents$google3$javascript$apps$jspb$internal_binary_fields_makeMsgRWPair; function module$contents$google3$javascript$apps$jspb$internal_binary_fields_readMessage(a,b,c,d,e){if(a.nextWireType_!==module$exports$jspb$BinaryConstants.WireType.DELIMITED)return!1;a.readMessage((0,jspb_internal_adapters.getMutableWrapperArrayForBinary)(b,d,c),e);return!0} function module$contents$google3$javascript$apps$jspb$internal_binary_fields_readMessageExt(a,b,c,d,e){if(a.nextWireType_!==module$exports$jspb$BinaryConstants.WireType.DELIMITED)return!1;a.readMessage((0,jspb_internal_adapters.getMutableWrapperArrayForBinary)(b,d,c,!0),e);return!0}function module$contents$google3$javascript$apps$jspb$internal_binary_fields_writeMessage(a,b,c,d,e){a.writeMessage(c,module$contents$google3$javascript$apps$jspb$internal_binary_fields_asMessageArray(b,d),e)} var module$contents$google3$javascript$apps$jspb$internal_binary_fields_rwMessage=module$contents$google3$javascript$apps$jspb$internal_binary_fields_makeMsgRWPair(module$contents$google3$javascript$apps$jspb$internal_binary_fields_readMessage,module$contents$google3$javascript$apps$jspb$internal_binary_fields_writeMessage),module$contents$google3$javascript$apps$jspb$internal_binary_fields_rwMessageExt=module$contents$google3$javascript$apps$jspb$internal_binary_fields_makeMsgRWPair(module$contents$google3$javascript$apps$jspb$internal_binary_fields_readMessageExt, module$contents$google3$javascript$apps$jspb$internal_binary_fields_writeMessage);function module$contents$google3$javascript$apps$jspb$internal_binary_fields_tryParseMessageMeta(a){return module$contents$jspb$internal_construct_tryParseMessageMeta(a)}module$exports$google3$javascript$apps$jspb$internal_binary_fields.tryParseMessageMeta=module$contents$google3$javascript$apps$jspb$internal_binary_fields_tryParseMessageMeta; function module$contents$google3$javascript$apps$jspb$internal_binary_fields_Deserializers(){}module$exports$google3$javascript$apps$jspb$internal_binary_fields.Deserializers=module$contents$google3$javascript$apps$jspb$internal_binary_fields_Deserializers;function module$contents$google3$javascript$apps$jspb$internal_binary_fields_Serializers(){}module$exports$google3$javascript$apps$jspb$internal_binary_fields.Serializers=module$contents$google3$javascript$apps$jspb$internal_binary_fields_Serializers; module$exports$google3$javascript$apps$jspb$internal_binary_fields.CACHED_SERIALIZERS=Symbol();module$exports$google3$javascript$apps$jspb$internal_binary_fields.CACHED_DESERIALIZERS=Symbol();module$exports$google3$javascript$apps$jspb$internal_binary_fields.CACHED_DESERIALIZE_BINARY_FROM_READER=Symbol();module$exports$google3$javascript$apps$jspb$internal_binary_fields.CACHED_SERIALIZE_BINARY_TO_WRITER=Symbol(); module$exports$google3$javascript$apps$jspb$internal_binary_fields.CACHED_COMPARISON_TYPE_INFO=Symbol();module$exports$google3$javascript$apps$jspb$internal_binary_fields.CACHED_TYPE_INFO=Symbol();function module$contents$google3$javascript$apps$jspb$internal_binary_fields_BinaryExtensionSet(){}module$exports$google3$javascript$apps$jspb$internal_binary_fields.BinaryExtensionSet=module$contents$google3$javascript$apps$jspb$internal_binary_fields_BinaryExtensionSet; function module$contents$google3$javascript$apps$jspb$internal_binary_fields_MessageFieldTable(){}module$exports$google3$javascript$apps$jspb$internal_binary_fields.MessageFieldTable=module$contents$google3$javascript$apps$jspb$internal_binary_fields_MessageFieldTable;function module$contents$google3$javascript$apps$jspb$internal_binary_fields_FieldTypeInfo(){}module$exports$google3$javascript$apps$jspb$internal_binary_fields.FieldTypeInfo=module$contents$google3$javascript$apps$jspb$internal_binary_fields_FieldTypeInfo; function module$contents$google3$javascript$apps$jspb$internal_binary_fields_SubmessageFieldTypeInfo(){}module$exports$google3$javascript$apps$jspb$internal_binary_fields.SubmessageFieldTypeInfo=module$contents$google3$javascript$apps$jspb$internal_binary_fields_SubmessageFieldTypeInfo;function module$contents$google3$javascript$apps$jspb$internal_binary_fields_TypeInfoTable(){}module$exports$google3$javascript$apps$jspb$internal_binary_fields.TypeInfoTable=module$contents$google3$javascript$apps$jspb$internal_binary_fields_TypeInfoTable; var module$contents$google3$javascript$apps$jspb$internal_binary_fields_deserializeBinaryMessageSetFn;function module$contents$google3$javascript$apps$jspb$internal_binary_fields_getDeserializeBinaryMessageSet(){return(0,goog.asserts.assert)(module$contents$google3$javascript$apps$jspb$internal_binary_fields_deserializeBinaryMessageSetFn)}module$exports$google3$javascript$apps$jspb$internal_binary_fields.getDeserializeBinaryMessageSet=module$contents$google3$javascript$apps$jspb$internal_binary_fields_getDeserializeBinaryMessageSet; var module$contents$google3$javascript$apps$jspb$internal_binary_fields_makeMessageSetExtensionWriterFn;function module$contents$google3$javascript$apps$jspb$internal_binary_fields_getMakeMessageSetExtensionWriterFn(){return(0,goog.asserts.assert)(module$contents$google3$javascript$apps$jspb$internal_binary_fields_makeMessageSetExtensionWriterFn)}module$exports$google3$javascript$apps$jspb$internal_binary_fields.getMakeMessageSetExtensionWriterFn=module$contents$google3$javascript$apps$jspb$internal_binary_fields_getMakeMessageSetExtensionWriterFn; function module$contents$google3$javascript$apps$jspb$internal_binary_fields_makeMessageFieldTable(a,b,c,d,e){var f=e[a];if(f)return f;b=b?b():{};b.messageMetadata=(0,goog.asserts.assert)(module$contents$jspb$internal_construct_tryParseMessageMeta(e[0]));var g=e[1];f=1;g&&g.constructor===Object&&(b.extensions=g,g=e[++f],typeof g==="function"&&(module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&module$contents$google3$javascript$apps$jspb$internal_binary_fields_deserializeBinaryMessageSetFn!= null&&((0,goog.asserts.assert)(module$contents$google3$javascript$apps$jspb$internal_binary_fields_deserializeBinaryMessageSetFn===g),(0,goog.asserts.assert)(module$contents$google3$javascript$apps$jspb$internal_binary_fields_makeMessageSetExtensionWriterFn===e[1+f])),b.isMessageSet=!0,module$contents$google3$javascript$apps$jspb$internal_binary_fields_deserializeBinaryMessageSetFn!=null||(module$contents$google3$javascript$apps$jspb$internal_binary_fields_deserializeBinaryMessageSetFn=g),module$contents$google3$javascript$apps$jspb$internal_binary_fields_makeMessageSetExtensionWriterFn!= null||(module$contents$google3$javascript$apps$jspb$internal_binary_fields_makeMessageSetExtensionWriterFn=(0,goog.asserts.assertFunction)(e[f+1])),g=e[f+=2]));for(var h={};g&&module$contents$google3$javascript$apps$jspb$internal_binary_fields_isOneofArray(g);){for(var k=0;k<g.length;k++)h[g[k]]=g;g=e[++f]}for(k=1;g!==void 0;){typeof g==="number"&&((0,goog.asserts.assert)(g>0),k+=g,g=e[++f]);var l=void 0;if(g instanceof module$exports$google3$javascript$apps$jspb$internal_binary_fields.ReaderWriterPair)var m= g;else m=module$contents$google3$javascript$apps$jspb$internal_binary_fields_rwMessage,f--;g=void 0;if((g=m)==null?0:g.$$isMsg){g=e[++f];l=e;var n=f;typeof g==="function"&&((0,goog.asserts.assert)(g.length===0),g=g(),l[n]=g);module$contents$google3$javascript$apps$jspb$internal_binary_fields_assertBinaryFields(g);l=g}g=e[++f];n=k+1;typeof g==="number"&&g<0&&(n-=g,g=e[++f]);for(;k<n;k++){var p=h[k];l?d(b,k,(0,goog.asserts.assert)(m),l,p):c(b,k,(0,goog.asserts.assert)(m),p)}}return e[a]=b} module$exports$google3$javascript$apps$jspb$internal_binary_fields.makeMessageFieldTable=module$contents$google3$javascript$apps$jspb$internal_binary_fields_makeMessageFieldTable;function module$contents$google3$javascript$apps$jspb$internal_binary_fields_isOneofArray(a){return Array.isArray(a)&&!!a.length&&typeof a[0]==="number"&&a[0]>0} function module$contents$google3$javascript$apps$jspb$internal_binary_fields_assertBinaryFieldsOrUndefined(a){module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&(a===void 0||module$contents$google3$javascript$apps$jspb$internal_binary_fields_assertBinaryFields(a));return a}module$exports$google3$javascript$apps$jspb$internal_binary_fields.assertBinaryFieldsOrUndefined=module$contents$google3$javascript$apps$jspb$internal_binary_fields_assertBinaryFieldsOrUndefined; function module$contents$google3$javascript$apps$jspb$internal_binary_fields_assertBinaryFields(a){module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&(0,goog.asserts.assert)(module$contents$google3$javascript$apps$jspb$internal_binary_fields_isMessageBinaryFieldsArray(a));return a}module$exports$google3$javascript$apps$jspb$internal_binary_fields.assertBinaryFields=module$contents$google3$javascript$apps$jspb$internal_binary_fields_assertBinaryFields; function module$contents$google3$javascript$apps$jspb$internal_binary_fields_isMessageBinaryFieldsArray(a){if(!Array.isArray(a)||!a.length)return!1;var b=a[0],c=module$contents$jspb$internal_construct_tryParseMessageMeta(b);c!=null&&c!==b&&(a[0]=c);return c!=null}module$exports$google3$javascript$apps$jspb$internal_binary_fields.isMessageBinaryFieldsArray=module$contents$google3$javascript$apps$jspb$internal_binary_fields_isMessageBinaryFieldsArray; function module$contents$google3$javascript$apps$jspb$internal_binary_fields_getBinaryExtensionTuple(a){return Array.isArray(a)?a[0]instanceof module$exports$google3$javascript$apps$jspb$internal_binary_fields.ReaderWriterPair?((0,goog.asserts.assert)(a.length===2),module$contents$google3$javascript$apps$jspb$internal_binary_fields_assertBinaryFields(a[1]),a):[module$contents$google3$javascript$apps$jspb$internal_binary_fields_rwMessageExt,module$contents$google3$javascript$apps$jspb$internal_binary_fields_assertBinaryFields(a)]: [(0,goog.asserts.assertInstanceof)(a,module$exports$google3$javascript$apps$jspb$internal_binary_fields.ReaderWriterPair),void 0]}module$exports$google3$javascript$apps$jspb$internal_binary_fields.getBinaryExtensionTuple=module$contents$google3$javascript$apps$jspb$internal_binary_fields_getBinaryExtensionTuple;var module$contents$google3$javascript$apps$jspb$internal_binary_fields_asyncThrowsForIndirectBinaryExtensions=0; function module$contents$google3$javascript$apps$jspb$internal_binary_fields_recordExtensionNotRequiredDirectly(a){module$contents$google3$javascript$apps$jspb$internal_binary_fields_asyncThrowsForIndirectBinaryExtensions++<5&&module$contents$jspb$exceptions_asyncThrowWarning(goog.DEBUG?"binary extension "+a+" accessed via indirect require":"beireq"+a)}module$exports$google3$javascript$apps$jspb$internal_binary_fields.recordExtensionNotRequiredDirectly=module$contents$google3$javascript$apps$jspb$internal_binary_fields_recordExtensionNotRequiredDirectly; function module$contents$google3$javascript$apps$jspb$internal_binary_fields_asMessageArray(a,b){if(a instanceof module$exports$jspb.Message)return module$contents$jspb$internal_getInternalArray(a);if(Array.isArray(a))return module$contents$jspb$internal_construct_constructMessageArrayFromMetaForBinary(a,b,!1)}module$exports$google3$javascript$apps$jspb$internal_binary_fields.asMessageArray=module$contents$google3$javascript$apps$jspb$internal_binary_fields_asMessageArray;var module$exports$google3$javascript$apps$jspb$internal_binary_comparison={BinaryComparisonTypeInfo:function(a){this.messageMetadata=a}};module$exports$google3$javascript$apps$jspb$internal_binary_comparison.BinaryComparisonTypeInfo.prototype.getRepeatedFields=function(){var a=this.repeatedFields;return a?a:module$contents$google3$javascript$apps$jspb$internal_binary_comparison_getEmptySet()}; module$exports$google3$javascript$apps$jspb$internal_binary_comparison.BinaryComparisonTypeInfo.prototype.getMapFields=function(){var a=this.mapFields;return a?a:module$contents$google3$javascript$apps$jspb$internal_binary_comparison_getEmptySet()}; module$exports$google3$javascript$apps$jspb$internal_binary_comparison.BinaryComparisonTypeInfo.prototype.getFieldComparisonTypeInfo=function(a){var b=this,c=b[a];if(c!=null)return Array.isArray(c)?b[a]=module$contents$google3$javascript$apps$jspb$internal_binary_comparison_binaryComparisonTypeInfoForBinaryFields(module$contents$google3$javascript$apps$jspb$internal_binary_fields_assertBinaryFields(c)):(0,goog.asserts.assertInstanceof)(c,module$exports$google3$javascript$apps$jspb$internal_binary_comparison.BinaryComparisonTypeInfo); c=this.extensions;if(c!=null&&(c=c[a],c!=null)){c=module$contents$google3$javascript$apps$jspb$internal_binary_fields_getBinaryExtensionTuple(c);var d;if(c[0].$$isRepeated&&((d=this.repeatedFields)==null||!d.has(a))){var e;((e=this).repeatedFields||(e.repeatedFields=new Set)).add(a)}d=c[1];if(d!=null)return b[a]=module$contents$google3$javascript$apps$jspb$internal_binary_comparison_binaryComparisonTypeInfoForBinaryFields(module$contents$google3$javascript$apps$jspb$internal_binary_fields_assertBinaryFields(d))}}; function module$contents$google3$javascript$apps$jspb$internal_binary_comparison_makeEmptyComparisonTypeInfo(){return new module$exports$google3$javascript$apps$jspb$internal_binary_comparison.BinaryComparisonTypeInfo(module$contents$jspb$internal_construct_tryParseMessageMeta(0))} function module$contents$google3$javascript$apps$jspb$internal_binary_comparison_addSingularFieldInfoToComparisonTable(a,b,c){module$contents$google3$javascript$apps$jspb$internal_binary_comparison_addFieldInfoToComparisonTable(a,b,!!c.$$isRepeated,void 0)} function module$contents$google3$javascript$apps$jspb$internal_binary_comparison_addMessageFieldInfoToComparisonTable(a,b,c,d){module$contents$google3$javascript$apps$jspb$internal_binary_comparison_addFieldInfoToComparisonTable(a,b,!!c.$$isRepeated,d)} function module$contents$google3$javascript$apps$jspb$internal_binary_comparison_addFieldInfoToComparisonTable(a,b,c,d){if(d){var e=d[module$exports$google3$javascript$apps$jspb$internal_binary_fields.CACHED_COMPARISON_TYPE_INFO];var f=e?e.messageMetadata:(0,goog.asserts.assert)(module$contents$jspb$internal_construct_tryParseMessageMeta(d[0]));var g;a[b]=(g=e)!=null?g:d}if(f&&module$contents$jspb$internal_construct_isMapEntryMessageMeta(f)){var h,k,l=(k=(h=a).mapFields)!=null?k:h.mapFields=new Set; (0,goog.asserts.assertInstanceof)(l,Set).add(b)}else if(c){var m;h=(m=(l=a).repeatedFields)!=null?m:l.repeatedFields=new Set;(0,goog.asserts.assertInstanceof)(h,Set).add(b)}} function module$contents$google3$javascript$apps$jspb$internal_binary_comparison_binaryComparisonTypeInfoForBinaryFields(a){var b=a[module$exports$google3$javascript$apps$jspb$internal_binary_fields.CACHED_COMPARISON_TYPE_INFO];if(b)return b;b=module$contents$google3$javascript$apps$jspb$internal_binary_fields_makeMessageFieldTable(module$exports$google3$javascript$apps$jspb$internal_binary_fields.CACHED_COMPARISON_TYPE_INFO,module$contents$google3$javascript$apps$jspb$internal_binary_comparison_makeEmptyComparisonTypeInfo, module$contents$google3$javascript$apps$jspb$internal_binary_comparison_addSingularFieldInfoToComparisonTable,module$contents$google3$javascript$apps$jspb$internal_binary_comparison_addMessageFieldInfoToComparisonTable,a);var c,d;if(!(b.extensions||((c=b.repeatedFields)==null?0:c.size)||((d=b.mapFields)==null?0:d.size))){c=!0;for(var e in b)isNaN(e)||(c=!1);if(c){b=module$contents$jspb$internal_construct_isMapEntryMessageMeta((0,goog.asserts.assert)(module$contents$jspb$internal_construct_tryParseMessageMeta(a[0]))); e=module$exports$google3$javascript$apps$jspb$internal_binary_fields.CACHED_COMPARISON_TYPE_INFO;if(b)if(module$contents$google3$javascript$apps$jspb$internal_binary_comparison_emptyMapEntryComparisonInfo)b=module$contents$google3$javascript$apps$jspb$internal_binary_comparison_emptyMapEntryComparisonInfo;else{var f=new module$exports$google3$javascript$apps$jspb$internal_binary_comparison.BinaryComparisonTypeInfo(module$contents$jspb$internal_construct_tryParseMessageMeta(module$exports$jspb$internal_construct.ENCODED_MAP_META)); f.messageMetadata=(0,goog.asserts.assert)(module$contents$jspb$internal_construct_tryParseMessageMeta(module$exports$jspb$internal_construct.ENCODED_MAP_META));b=module$contents$google3$javascript$apps$jspb$internal_binary_comparison_emptyMapEntryComparisonInfo=f}else b=(f=module$contents$google3$javascript$apps$jspb$internal_binary_comparison_emptyComparisonInfo)!=null?f:module$contents$google3$javascript$apps$jspb$internal_binary_comparison_emptyComparisonInfo=new module$exports$google3$javascript$apps$jspb$internal_binary_comparison.BinaryComparisonTypeInfo(module$contents$jspb$internal_construct_tryParseMessageMeta(0)); return a[e]=b}b.onlySubmessages=!0}return(0,goog.asserts.assert)(b)}module$exports$google3$javascript$apps$jspb$internal_binary_comparison.binaryComparisonTypeInfoForBinaryFields=module$contents$google3$javascript$apps$jspb$internal_binary_comparison_binaryComparisonTypeInfoForBinaryFields;var module$contents$google3$javascript$apps$jspb$internal_binary_comparison_emptyComparisonInfo,module$contents$google3$javascript$apps$jspb$internal_binary_comparison_emptyMapEntryComparisonInfo; function module$contents$google3$javascript$apps$jspb$internal_binary_comparison_isEmptyComparisonInfo(a){return a===module$contents$google3$javascript$apps$jspb$internal_binary_comparison_emptyComparisonInfo||a===module$contents$google3$javascript$apps$jspb$internal_binary_comparison_emptyMapEntryComparisonInfo}module$exports$google3$javascript$apps$jspb$internal_binary_comparison.isEmptyComparisonInfo=module$contents$google3$javascript$apps$jspb$internal_binary_comparison_isEmptyComparisonInfo; var module$contents$google3$javascript$apps$jspb$internal_binary_comparison_emptySet;function module$contents$google3$javascript$apps$jspb$internal_binary_comparison_getEmptySet(){var a;return(a=module$contents$google3$javascript$apps$jspb$internal_binary_comparison_emptySet)!=null?a:module$contents$google3$javascript$apps$jspb$internal_binary_comparison_emptySet=new Set};var module$exports$google3$javascript$apps$jspb$internal_binary_table={};module$exports$google3$javascript$apps$jspb$internal_binary_table.WRAPPED_TYPE_TABLE_KEY=Symbol();function module$contents$google3$javascript$apps$jspb$internal_binary_table_WrappedTypeTable(){}module$exports$google3$javascript$apps$jspb$internal_binary_table.WrappedTypeTable=module$contents$google3$javascript$apps$jspb$internal_binary_table_WrappedTypeTable; function module$contents$google3$javascript$apps$jspb$internal_binary_table_wrappedTypeTableForBinaryFields(a,b){b=module$contents$google3$javascript$apps$jspb$internal_binary_fields_makeMessageFieldTable(module$exports$google3$javascript$apps$jspb$internal_binary_fields.CACHED_TYPE_INFO,void 0,module$contents$google3$javascript$apps$jspb$internal_binary_table_addPrimitiveFieldToTypeInfoTable,module$contents$google3$javascript$apps$jspb$internal_binary_table_addMessageFieldToTypeInfoTable,b);var c; (c=b).messageType!=null||(c.messageType=a);(0,goog.asserts.assert)(b.messageType===a);a={};return a[module$exports$google3$javascript$apps$jspb$internal_binary_table.WRAPPED_TYPE_TABLE_KEY]=b,a}module$exports$google3$javascript$apps$jspb$internal_binary_table.wrappedTypeTableForBinaryFields=module$contents$google3$javascript$apps$jspb$internal_binary_table_wrappedTypeTableForBinaryFields; function module$contents$google3$javascript$apps$jspb$internal_binary_table_getExtensionsInTable(a){var b,c,d=(c=(b=a).extensionTypeInfos)!=null?c:b.extensionTypeInfos={},e;for(e in a.extensions)if(b=+e,!isNaN(b)&&(c=d[b],!c)){var f=(0,$jscomp.makeIterator)(module$contents$google3$javascript$apps$jspb$internal_binary_fields_getBinaryExtensionTuple(a.extensions[b]));c=f.next().value;(f=f.next().value)&&typeof f==="function"&&(f=f());d[b]=f?new module$contents$google3$javascript$apps$jspb$internal_binary_table_CachedSubmessageTypeInfo(c.$$valueType, c.$$isRepeated,!1,void 0,f):new module$contents$google3$javascript$apps$jspb$internal_binary_table_CachedPrimitiveTypeInfo(c.$$valueType,c.$$isRepeated,void 0)}return a.extensionTypeInfos}module$exports$google3$javascript$apps$jspb$internal_binary_table.getExtensionsInTable=module$contents$google3$javascript$apps$jspb$internal_binary_table_getExtensionsInTable; function module$contents$google3$javascript$apps$jspb$internal_binary_table_forEachFieldInTable(a,b){for(var c in a)if(!isNaN(c)){var d=a[c];b(+c,d,!1)}a=module$contents$google3$javascript$apps$jspb$internal_binary_table_getExtensionsInTable(a);for(var e in a)c=+e,isNaN(c)||b(c,a[c],!0)}module$exports$google3$javascript$apps$jspb$internal_binary_table.forEachFieldInTable=module$contents$google3$javascript$apps$jspb$internal_binary_table_forEachFieldInTable; function module$contents$google3$javascript$apps$jspb$internal_binary_table_addPrimitiveFieldToTypeInfoTable(a,b,c,d){(0,goog.asserts.assert)(!(c.$$valueType===module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.MESSAGE||c.$$valueType===module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.GROUP||c.$$valueType===module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.MAP));a[b]=new module$contents$google3$javascript$apps$jspb$internal_binary_table_CachedPrimitiveTypeInfo(c.$$valueType, c.$$isRepeated,d)}var module$contents$google3$javascript$apps$jspb$internal_binary_table_CachedPrimitiveTypeInfo=function(a,b){this.isRepeated=b;this.isMap=!1},module$contents$google3$javascript$apps$jspb$internal_binary_table_CachedSubmessageTypeInfo=function(a,b,c){this.isRepeated=b;this.isMap=c}; function module$contents$google3$javascript$apps$jspb$internal_binary_table_addMessageFieldToTypeInfoTable(a,b,c,d,e){(0,goog.asserts.assert)(c.$$valueType===module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.MESSAGE||c.$$valueType===module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.GROUP);var f=module$contents$jspb$internal_construct_tryParseMessageMeta(d[0]);f=f?module$contents$jspb$internal_construct_isMapEntryMessageMeta(f):!1;a[b]=new module$contents$google3$javascript$apps$jspb$internal_binary_table_CachedSubmessageTypeInfo(c.$$valueType, f?module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.REPEATED:c.$$isRepeated,f?module$exports$google3$javascript$apps$jspb$internal_binary_type_tokens.MAP:!1,e,d)};var module$exports$google3$javascript$apps$jspb$internal_descriptor={},module$contents$google3$javascript$apps$jspb$internal_descriptor_SERIALIZED_DESCRIPTOR_PROTO_KEY=Symbol(),module$contents$google3$javascript$apps$jspb$internal_descriptor_DESCRIPTOR_TYPE_REFERENCE_CACHE_KEY=Symbol(),module$contents$google3$javascript$apps$jspb$internal_descriptor_GLOBAL_TYPE_REGISTRY=new Map,module$contents$google3$javascript$apps$jspb$internal_descriptor_GLOBAL_ENUM_TYPE_REGISTRY=new Map,module$contents$google3$javascript$apps$jspb$internal_descriptor_GLOBAL_EXTENSION_REGISTRY= new Map;module$exports$google3$javascript$apps$jspb$internal_descriptor.DescriptorTypeReferenceImpl=function(a,b,c,d,e,f){module$exports$google3$javascript$apps$jspb$descriptor.DescriptorTypeReference.call(this,f);this.ctor=a;this.typeName=b;module$contents$google3$javascript$apps$jspb$internal_descriptor_GLOBAL_TYPE_REGISTRY.set(b,this);a&&(this.ctor[module$contents$google3$javascript$apps$jspb$internal_descriptor_SERIALIZED_DESCRIPTOR_PROTO_KEY]=d)}; $jscomp.inherits(module$exports$google3$javascript$apps$jspb$internal_descriptor.DescriptorTypeReferenceImpl,module$exports$google3$javascript$apps$jspb$descriptor.DescriptorTypeReference);module$exports$google3$javascript$apps$jspb$internal_descriptor.DescriptorTypeReferenceImpl.prototype.getTypeName=function(){return this.typeName}; module$exports$google3$javascript$apps$jspb$internal_descriptor.ExtensionReference=function(a,b,c,d,e,f){this.extendeeName=a;this.fieldNumber=c;module$contents$google3$javascript$apps$jspb$internal_descriptor_assertInternalArg(f);a=module$contents$google3$javascript$apps$jspb$internal_descriptor_GLOBAL_EXTENSION_REGISTRY.get(this.extendeeName);a==null&&module$contents$google3$javascript$apps$jspb$internal_descriptor_GLOBAL_EXTENSION_REGISTRY.set(this.extendeeName,a=new Map);a.set(this.fieldNumber, this)};module$exports$google3$javascript$apps$jspb$internal_descriptor.EnumDescriptorTypeReferenceImpl=function(a,b,c){module$exports$google3$javascript$apps$jspb$descriptor.EnumDescriptorTypeReference.call(this,c);this.typeName=a;module$contents$google3$javascript$apps$jspb$internal_descriptor_assertInternalArg(c);module$contents$google3$javascript$apps$jspb$internal_descriptor_GLOBAL_ENUM_TYPE_REGISTRY.set(a,this)}; $jscomp.inherits(module$exports$google3$javascript$apps$jspb$internal_descriptor.EnumDescriptorTypeReferenceImpl,module$exports$google3$javascript$apps$jspb$descriptor.EnumDescriptorTypeReference);module$exports$google3$javascript$apps$jspb$internal_descriptor.EnumDescriptorTypeReferenceImpl.prototype.getTypeName=function(){return this.typeName}; function module$contents$google3$javascript$apps$jspb$internal_descriptor_makeDescriptorGetter(a,b,c,d){var e=$jscomp.getRestArguments.apply(4,arguments);return function(){var f=new module$exports$google3$javascript$apps$jspb$internal_descriptor.DescriptorTypeReferenceImpl(a,b,c,d,e,module$exports$jspb$internal.DESCRIPTOR_TYPE_REFERENCE_INTERNAL_ARG);if(a){var g=a,h,k;(h=g)[k=module$contents$google3$javascript$apps$jspb$internal_descriptor_DESCRIPTOR_TYPE_REFERENCE_CACHE_KEY]!=null||(h[k]=f)}return function(){return f}}()} module$exports$google3$javascript$apps$jspb$internal_descriptor.makeDescriptorGetter=module$contents$google3$javascript$apps$jspb$internal_descriptor_makeDescriptorGetter;function module$contents$google3$javascript$apps$jspb$internal_descriptor_makeExtensionReference(a,b,c,d,e){return new module$exports$google3$javascript$apps$jspb$internal_descriptor.ExtensionReference(a,b,c,d,e,module$exports$jspb$internal.DESCRIPTOR_TYPE_REFERENCE_INTERNAL_ARG)} module$exports$google3$javascript$apps$jspb$internal_descriptor.makeExtensionReference=module$contents$google3$javascript$apps$jspb$internal_descriptor_makeExtensionReference; function module$contents$google3$javascript$apps$jspb$internal_descriptor_makeEnumDescriptorGetter(a,b){return function(){var c=new module$exports$google3$javascript$apps$jspb$internal_descriptor.EnumDescriptorTypeReferenceImpl(a,b,module$exports$jspb$internal.DESCRIPTOR_TYPE_REFERENCE_INTERNAL_ARG);return function(){return c}}()}module$exports$google3$javascript$apps$jspb$internal_descriptor.makeEnumDescriptorGetter=module$contents$google3$javascript$apps$jspb$internal_descriptor_makeEnumDescriptorGetter; function module$contents$google3$javascript$apps$jspb$internal_descriptor_resolveMessageType(a){module$contents$jspb$internal_startsWith(a,".")&&(a=a.substring(1));return module$contents$google3$javascript$apps$jspb$internal_descriptor_GLOBAL_TYPE_REGISTRY.get(a)}module$exports$google3$javascript$apps$jspb$internal_descriptor.resolveMessageType=module$contents$google3$javascript$apps$jspb$internal_descriptor_resolveMessageType; function module$contents$google3$javascript$apps$jspb$internal_descriptor_resolveCachedMessageType(a){return a[module$contents$google3$javascript$apps$jspb$internal_descriptor_DESCRIPTOR_TYPE_REFERENCE_CACHE_KEY]}module$exports$google3$javascript$apps$jspb$internal_descriptor.resolveCachedMessageType=module$contents$google3$javascript$apps$jspb$internal_descriptor_resolveCachedMessageType; function module$contents$google3$javascript$apps$jspb$internal_descriptor_resolveEnumType(a){return module$contents$google3$javascript$apps$jspb$internal_descriptor_GLOBAL_ENUM_TYPE_REGISTRY.get(a)}module$exports$google3$javascript$apps$jspb$internal_descriptor.resolveEnumType=module$contents$google3$javascript$apps$jspb$internal_descriptor_resolveEnumType; function module$contents$google3$javascript$apps$jspb$internal_descriptor_assertInternalArg(a){if(a!==module$exports$jspb$internal.DESCRIPTOR_TYPE_REFERENCE_INTERNAL_ARG)throw goog.DEBUG?Error("do not construct your own descriptors"):Error();};var jspb={extension_field_info:{}},module$contents$jspb$extension_field_info_ExtensionFieldInfo=function(a,b,c,d,e,f,g,h,k,l,m,n){n=n===void 0?!1:n;(0,goog.asserts.assert)(a>0);this.fieldIndex=a;module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&(this.extendeeCtor=b);this.ctor=c;this.isRepeated=d;this.getExtensionFn=e;this.defaultValue=m;this.isDelegating=n};jspb.extension_field_info.ExtensionFieldInfo=module$contents$jspb$extension_field_info_ExtensionFieldInfo;function module$contents$jspb$internal_get_type_name_getCtorTypeName(a){if(module$exports$jspb$internal_options.GENERATE_TYPE_NAME_PROPERTIES)return a.internalDoNotUse_debugOnlyProtoTypeName}function module$contents$jspb$internal_get_type_name_getMessageInstanceTypeName(a){if(a instanceof module$exports$jspb.Message)return module$contents$jspb$internal_get_type_name_getCtorTypeName(a.constructor)} function module$contents$jspb$internal_get_type_name_installTypeNameExport(){if(module$exports$jspb$internal_options.GENERATE_TYPE_NAME_PROPERTIES){var a=goog.global.jspbGetTypeName;goog.global.jspbGetTypeName=a?function(b){return a(b)||module$contents$jspb$internal_get_type_name_getMessageInstanceTypeName(b)}:module$contents$jspb$internal_get_type_name_getMessageInstanceTypeName}};var module$exports$jspb$mutable_message={},module$contents$jspb$mutable_message_MutableMessageImpl=function(){module$exports$jspb.Message.apply(this,arguments)};$jscomp.inherits(module$contents$jspb$mutable_message_MutableMessageImpl,module$exports$jspb.Message);module$contents$jspb$mutable_message_MutableMessageImpl.prototype.getExtension=function(a){return module$exports$jspb.Message.prototype.getExtension.call(this,a)}; module$contents$jspb$mutable_message_MutableMessageImpl.prototype.getExtensionOrUndefined=function(a){return module$exports$jspb.Message.prototype.getExtensionOrUndefined.call(this,a)};module$contents$jspb$mutable_message_MutableMessageImpl.prototype.toMutable=function(){return module$exports$jspb.Message.prototype.toMutable.call(this)};module$contents$jspb$mutable_message_MutableMessageImpl.prototype.clone=function(){var a=(0,goog.asserts.assertInstanceof)(this,module$exports$jspb.Message);return module$contents$jspb$internal_immutability_copyMutableWithImmutableFields(a)}; module$contents$jspb$mutable_message_MutableMessageImpl.equals=function(){throw Error("Call equals directly on the Message class, not a subclass");}; if(module$exports$jspb$internal.SUPPORTS_HAS_INSTANCE&&module$exports$jspb$internal_options.USE_DETAILED_MESSAGE_TYPE_HIERARCHY){var rejectInstanceof$jscomp$2=function(){throw Error(goog.DEBUG?"Cannot perform instanceof checks for MutableMessage. Please use .isMutable or .isImmutable to determine whether a message is mutable. See go/jspb-api-gotchas#immutable-classes for more information":void 0);},$jscomp$compprop57={};Object.defineProperties(module$contents$jspb$mutable_message_MutableMessageImpl, ($jscomp$compprop57[Symbol.hasInstance]=module$contents$jspb$internal_invisiblePropValue(rejectInstanceof$jscomp$2),$jscomp$compprop57));(0,goog.asserts.assert)(module$contents$jspb$mutable_message_MutableMessageImpl[Symbol.hasInstance]===rejectInstanceof$jscomp$2,"defineProperties did not work: was it monkey-patched?")} module$exports$jspb$mutable_message.MutableMessage=module$exports$jspb$internal_options.USE_DETAILED_MESSAGE_TYPE_HIERARCHY?module$contents$jspb$mutable_message_MutableMessageImpl:module$exports$jspb.Message;var module$exports$google3$javascript$apps$jspb$opaque_type_table={OpaqueTypeTable:function(){throw Error();}};if(goog.DEBUG){var $jscomp$compprop58={};Object.defineProperties(module$exports$google3$javascript$apps$jspb$opaque_type_table.OpaqueTypeTable.prototype,($jscomp$compprop58[Symbol.hasInstance]={get:function(){throw Error("OpaqueTypeTable is not a type. Use isOpaqueTypeTable to check if a value is an OpaqueTypeTable.");},enumerable:!1,configurable:!1},$jscomp$compprop58))} function module$contents$google3$javascript$apps$jspb$opaque_type_table_isOpaqueTypeTable(a,b){var c=a;if(!a||typeof a!=="object"||a.constructor!==Object)return!1;a=c[module$exports$google3$javascript$apps$jspb$internal_binary_table.WRAPPED_TYPE_TABLE_KEY];if(!a)return!1;if(c=a=a.messageType)c=module$contents$jspb$internal_accessor_helpers_getDefaultImmutableInstance(a),(0,goog.asserts.assertInstanceof)(c,module$exports$jspb.Message,"value was not a mutable message constructor"),c=c instanceof module$exports$jspb.Message; return c?b?a===b:!0:!1}module$exports$google3$javascript$apps$jspb$opaque_type_table.isOpaqueTypeTable=module$contents$google3$javascript$apps$jspb$opaque_type_table_isOpaqueTypeTable; function module$contents$google3$javascript$apps$jspb$opaque_type_table_tableMessageType(a){var b=module$contents$google3$javascript$apps$jspb$opaque_type_table_isOpaqueTypeTable(a);if(module$exports$google3$javascript$common$asserts$internal.ENABLE_ASSERTS){var c=module$contents$google3$javascript$common$asserts$asserts_maybeGetKeepInProdMsgFunc();if(!b){if(!goog.DEBUG)throw Error(module$contents$google3$javascript$common$asserts$asserts_formatLazyMsg(c)||String(b));module$contents$google3$javascript$common$asserts$asserts_throwGuardFailure("Guard truthy failed:", c||"Expected truthy, got "+module$contents$google3$javascript$common$asserts$internal_basicPrettyPrint(b))}}a=a[module$exports$google3$javascript$apps$jspb$internal_binary_table.WRAPPED_TYPE_TABLE_KEY];return a.messageType}module$exports$google3$javascript$apps$jspb$opaque_type_table.tableMessageType=module$contents$google3$javascript$apps$jspb$opaque_type_table_tableMessageType;module$contents$jspb$internal_get_type_name_installTypeNameExport();var module$contents$jspb_internal_public_for_gencode_GENERATE_FROM_OBJECT=!goog.DISALLOW_TEST_ONLY_CODE;function module$contents$jspb_internal_public_for_gencode_normalizeBigInt(a){if(typeof a==="bigint"){var b=Number(a);return Number.isSafeInteger(b)?b:""+a}return a} function module$contents$jspb_internal_public_for_gencode_toObjectPrimitive(a){return Array.isArray(a)?module$contents$jspb$internal_operations_logNewArray(a.map(module$contents$jspb_internal_public_for_gencode_normalizeBigInt)):a==null?void 0:module$contents$jspb_internal_public_for_gencode_normalizeBigInt(a)}var module$contents$jspb_internal_public_for_gencode_GeneratedMessageImpl=function(){module$exports$jspb$mutable_message.MutableMessage.apply(this,arguments)}; $jscomp.inherits(module$contents$jspb_internal_public_for_gencode_GeneratedMessageImpl,module$exports$jspb$mutable_message.MutableMessage);module$contents$jspb_internal_public_for_gencode_GeneratedMessageImpl.prototype.toMutable=function(){return module$exports$jspb$mutable_message.MutableMessage.prototype.toMutable.call(this)}; module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&module$exports$jspb$internal_options.USE_DETAILED_MESSAGE_TYPE_HIERARCHY&&(module$contents$jspb_internal_public_for_gencode_GeneratedMessageImpl.prototype[module$exports$jspb$internal.GENERATED_SUBCLASS_MARKER]=!0); if(module$exports$jspb$internal.SUPPORTS_HAS_INSTANCE&&module$exports$jspb$internal_options.USE_DETAILED_MESSAGE_TYPE_HIERARCHY){var $jscomp$compprop59={};Object.defineProperties(module$contents$jspb_internal_public_for_gencode_GeneratedMessageImpl,($jscomp$compprop59[Symbol.hasInstance]=module$contents$jspb$internal_invisiblePropValue(Object[Symbol.hasInstance]),$jscomp$compprop59));goog.asserts.assert(module$contents$jspb_internal_public_for_gencode_GeneratedMessageImpl[Symbol.hasInstance]===Object[Symbol.hasInstance], "broken defineProperties implementation")}var module$contents$jspb_internal_public_for_gencode_GeneratedMessage=module$exports$jspb$internal_options.USE_DETAILED_MESSAGE_TYPE_HIERARCHY?module$contents$jspb_internal_public_for_gencode_GeneratedMessageImpl:module$exports$jspb.Message;function module$contents$jspb_internal_public_for_gencode_assertMutable(a){if(module$contents$jspb$internal_isImmutableMessage(a))throw Error("message must be mutable");} function module$contents$jspb_internal_public_for_gencode_getTypeName(a){var b;return module$exports$jspb$internal_options.GENERATE_TYPE_NAME_PROPERTIES&&(b=module$contents$jspb$internal_get_type_name_getCtorTypeName(a))?b:(b=a.displayName)?b:a.name||""} function module$contents$jspb_internal_public_for_gencode_makeHasImmutableInstance(a){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b){return b instanceof a&&module$contents$jspb$internal_isImmutableMessage(b)},function(){return"ImmutableMessage:"+module$contents$jspb_internal_public_for_gencode_getTypeName(a)})} function module$contents$jspb_internal_public_for_gencode_makeHasMutableInstance(a){return module$contents$google3$javascript$common$asserts$asserts_defineStateGuard(function(b){return b instanceof a&&!module$contents$jspb$internal_isImmutableMessage(b)},function(){return"MutableMessage:"+module$contents$jspb_internal_public_for_gencode_getTypeName(a)})} function module$contents$jspb_internal_public_for_gencode_makeImmutableDeserializeFunction(a){return function(b){var c=a;goog.asserts.assertString(b);goog.asserts.assertFunction(c);b=JSON.parse(b);if(!Array.isArray(b))throw Error("Expected jspb data to be an array, got "+goog.typeOf(b)+": "+b);module$contents$jspb$internal_array_state_markArrayImmutable(b);c=new c(b);goog.asserts.assert(module$contents$jspb$internal_isMessage(c));return c}} function module$contents$jspb_internal_public_for_gencode_makeMutableDeserializeFunction(a){return function(b){return module$exports$jspb.Message.deserializeWithCtor(a,b)}};var jspb$engage$enums$uservoice$feedback$MutableUserVoiceFeedbackConfigEnums=function(a){module$contents$jspb_internal_public_for_gencode_GeneratedMessage.call(this,a)};$jscomp.inherits(jspb$engage$enums$uservoice$feedback$MutableUserVoiceFeedbackConfigEnums,module$contents$jspb_internal_public_for_gencode_GeneratedMessage);jspb$engage$enums$uservoice$feedback$MutableUserVoiceFeedbackConfigEnums.deserialize=module$contents$jspb_internal_public_for_gencode_makeMutableDeserializeFunction(jspb$engage$enums$uservoice$feedback$MutableUserVoiceFeedbackConfigEnums); jspb$engage$enums$uservoice$feedback$MutableUserVoiceFeedbackConfigEnums.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasMutableInstance(jspb$engage$enums$uservoice$feedback$MutableUserVoiceFeedbackConfigEnums);module$exports$jspb$internal_options.GENERATE_TYPE_NAME_PROPERTIES&&(jspb$engage$enums$uservoice$feedback$MutableUserVoiceFeedbackConfigEnums.internalDoNotUse_debugOnlyProtoTypeName="engage.enums.uservoice.feedback.UserVoiceFeedbackConfigEnums");jspb.immutable_message={};jspb.immutable_message.ImmutableMessage=module$contents$jspb$immutable_message_ImmutableMessage;var jspb$engage$enums$uservoice$feedback$ImmutableUserVoiceFeedbackConfigEnums=function(){};jspb$engage$enums$uservoice$feedback$ImmutableUserVoiceFeedbackConfigEnums.deserialize=module$contents$jspb_internal_public_for_gencode_makeImmutableDeserializeFunction(jspb$engage$enums$uservoice$feedback$MutableUserVoiceFeedbackConfigEnums);jspb$engage$enums$uservoice$feedback$ImmutableUserVoiceFeedbackConfigEnums.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasImmutableInstance(jspb$engage$enums$uservoice$feedback$MutableUserVoiceFeedbackConfigEnums);var jspb$o$engage$enums$uservoice$feedback$UserVoiceFeedbackConfigEnums={internal_toObject:function(a){if(a!=null)return module$contents$jspb_internal_public_for_gencode_assertMutable(a),{}}};jspb$engage$enums$uservoice$feedback$MutableUserVoiceFeedbackConfigEnums.prototype.toObject=function(){return jspb$o$engage$enums$uservoice$feedback$UserVoiceFeedbackConfigEnums.internal_toObject(this)}; module$contents$jspb_internal_public_for_gencode_GENERATE_FROM_OBJECT&&(jspb$o$engage$enums$uservoice$feedback$UserVoiceFeedbackConfigEnums.fromObject=function(){var a=new jspb$engage$enums$uservoice$feedback$MutableUserVoiceFeedbackConfigEnums;return a});var proto={engage:{}};proto.engage.enums={};proto.engage.enums.uservoice={};proto.engage.enums.uservoice.feedback={};proto.engage.enums.uservoice.feedback.ReadonlyUserVoiceFeedbackConfigEnums={};proto.engage.enums.uservoice.feedback.UserVoiceFeedbackConfigEnums=jspb$engage$enums$uservoice$feedback$MutableUserVoiceFeedbackConfigEnums;jspb$engage$enums$uservoice$feedback$MutableUserVoiceFeedbackConfigEnums.fromObject=jspb$o$engage$enums$uservoice$feedback$UserVoiceFeedbackConfigEnums.fromObject; proto.engage.enums.uservoice.feedback.MutableUserVoiceFeedbackConfigEnums=jspb$engage$enums$uservoice$feedback$MutableUserVoiceFeedbackConfigEnums;proto.engage.enums.uservoice.feedback.ImmutableUserVoiceFeedbackConfigEnums=jspb$engage$enums$uservoice$feedback$ImmutableUserVoiceFeedbackConfigEnums;var module$exports$ocean$books$ArticleInfo=function(a){this.articleProto_=a};module$exports$ocean$books$ArticleInfo.prototype.getArticleId=function(){return this.articleProto_.aid};module$exports$ocean$books$ArticleInfo.prototype.getFocusCoordinates=function(){var a=this.articleProto_.x_focus,b=this.articleProto_.y_focus;if(a===void 0||b===void 0){b=this.getHeadlineBoxes();if(!b.length)return null;a=b[0][0];b=b[0][1]}return new goog.math.Coordinate(a,b)}; module$exports$ocean$books$ArticleInfo.prototype.getArticleBoxes=function(){return this.getBoxHelper_("boxes")};module$exports$ocean$books$ArticleInfo.prototype.getHeadlineBoxes=function(){return this.getBoxHelper_("head_boxes")};module$exports$ocean$books$ArticleInfo.prototype.getBoxHelper_=function(a){var b=[];this.articleProto_[a]&&module$contents$goog$array_forEach(this.articleProto_[a],function(c){b.push([c.X,c.Y,c.W,c.H])});return b};var module$exports$ocean$books$HeadlineDisplay=function(a){this.displayDiv_=a}; module$exports$ocean$books$HeadlineDisplay.prototype.drawHighlight=function(a,b,c,d){var e=goog.dom.createElement(goog.dom.TagName.DIV);e.setAttribute("id",this.BOUNDING_BOX_ID);ocean.style.clearExternalStyles(e,!0);goog.style.setOpacity(e,.3);goog.style.setStyle(e,{position:"absolute",left:a+"px",top:b+"px",width:c+"px",height:d+"px",cursor:"pointer",backgroundColor:"#36C",border:"2px solid #00F"});goog.dom.appendChild(this.displayDiv_,e)}; module$exports$ocean$books$HeadlineDisplay.prototype.resetDisplayDiv=function(a){this.displayDiv_=a;goog.dom.getElement(this.BOUNDING_BOX_ID)&&(a=goog.dom.getElement(this.BOUNDING_BOX_ID),goog.dom.removeNode(a))};module$exports$ocean$books$HeadlineDisplay.prototype.BOUNDING_BOX_ID="focus_article_div";ocean.books={};var module$contents$ocean$books$LayoutSeparator_LayoutSeparator=function(a,b,c){this.previousPageInfo_=a;this.nextPageInfo_=b;this.forced_=c||!1;a=this.getSize();this.isPublisherInfoSeparator()?a.height=module$contents$ocean$books$LayoutSeparator_LayoutSeparator.PUBLISHER_SEPARATOR_SIZE:a.height=module$contents$ocean$books$LayoutSeparator_LayoutSeparator.SEPARATOR_SIZE;this.setSize(a)};$jscomp.inherits(module$contents$ocean$books$LayoutSeparator_LayoutSeparator,module$contents$ocean$layout$LayoutItem_LayoutItem); module$contents$ocean$books$LayoutSeparator_LayoutSeparator.prototype.isPublisherInfoSeparator=function(){var a=goog.dom.getElement("gb-mobile-menu-pubinfo");return a?(a=goog.dom.getChildren(a),a.length>0&&this.previousPageInfo_!=null&&this.previousPageInfo_.getOrderId()==0):!1};module$contents$ocean$books$LayoutSeparator_LayoutSeparator.prototype.isForcedPublisherInfoSeparator=function(){return this.isPublisherInfoSeparator&&this.forced_}; module$contents$ocean$books$LayoutSeparator_LayoutSeparator.SEPARATOR_SIZE=65;module$contents$ocean$books$LayoutSeparator_LayoutSeparator.PUBLISHER_SEPARATOR_SIZE=120;ocean.books.LayoutSeparator=module$contents$ocean$books$LayoutSeparator_LayoutSeparator;function module$contents$ocean$layout$VerticalGridLayout_VerticalGridLayout(a){ocean.layout.BaseGridLayout.call(this);this.columns_=a}goog.inherits(module$contents$ocean$layout$VerticalGridLayout_VerticalGridLayout,ocean.layout.BaseGridLayout); module$contents$ocean$layout$VerticalGridLayout_VerticalGridLayout.prototype.fillCells=function(){this.rows_=Math.ceil(this.items.length/this.columns_);for(var a=0;a<this.rows_;a++)for(var b=0;b<this.columns_;b++){var c=a*this.columns_+b;this.cells[b]=this.cells[b]||[];this.cells[b][a]=this.items[c]}};ocean.layout.VerticalGridLayout=module$contents$ocean$layout$VerticalGridLayout_VerticalGridLayout;function module$contents$ocean$layout$ViewportLayout_ViewportLayout(a){module$contents$ocean$layout$VerticalGridLayout_VerticalGridLayout.call(this,a);this.itemMap_=new Map}goog.inherits(module$contents$ocean$layout$ViewportLayout_ViewportLayout,module$contents$ocean$layout$VerticalGridLayout_VerticalGridLayout); module$contents$ocean$layout$ViewportLayout_ViewportLayout.prototype.getLayoutPageByPageInfo=function(a){return this.itemMap_.get(module$contents$ocean$layout$ViewportLayout_ViewportLayout.getKey(module$contents$ocean$layout$LayoutPage_LayoutPage,a))}; module$contents$ocean$layout$ViewportLayout_ViewportLayout.prototype.getCorrespondingItem=function(a){if(a instanceof module$contents$ocean$books$LayoutSeparator_LayoutSeparator)a=module$contents$ocean$layout$ViewportLayout_ViewportLayout.getKey(a.constructor,a.nextPageInfo_);else if(a instanceof module$contents$ocean$layout$LayoutPage_LayoutPage)a=module$contents$ocean$layout$ViewportLayout_ViewportLayout.getKey(a.constructor,a.getPageInfo());else throw Error("Input item must be a LayoutPage or LayoutSeparator."); return this.itemMap_.get(a)}; module$contents$ocean$layout$ViewportLayout_ViewportLayout.prototype.addItem=function(a){if(a instanceof module$contents$ocean$books$LayoutSeparator_LayoutSeparator){var b=module$contents$ocean$layout$ViewportLayout_ViewportLayout.getKey(a.constructor,a.nextPageInfo_);this.itemMap_.set(b,a)}else a instanceof module$contents$ocean$layout$LayoutPage_LayoutPage&&(b=module$contents$ocean$layout$ViewportLayout_ViewportLayout.getKey(a.constructor,a.getPageInfo()),this.itemMap_.set(b,a));module$contents$ocean$layout$ViewportLayout_ViewportLayout.superClass_.addItem.call(this, a)};module$contents$ocean$layout$ViewportLayout_ViewportLayout.getKey=function(a,b){return goog.getUid(a)+"#"+b.getPageId()};ocean.layout.ViewportLayout=module$contents$ocean$layout$ViewportLayout_ViewportLayout;var module$contents$ocean$books$Layout_Layout=function(a,b,c,d,e){module$contents$ocean$layout$ViewportLayout_ViewportLayout.call(this,1);this.zoomMode_=b;this.zoomStop_=c;var f=d||!1,g;a=a.getPageInfoArray();module$contents$goog$array_forEach(a,function(h){f&&g&&h.getOrderId()-g.getOrderId()>1&&this.addLayoutSeparator_(g,h);var k=goog.dom.getElement("gb-mobile-menu-pubinfo");k&&(k=goog.dom.getChildren(k),k.length>0&&!f&&g&&h&&g.getOrderId()==0&&this.addLayoutSeparator_(g,h,!0));k=new module$contents$ocean$layout$LayoutPage_LayoutPage(h); var l=k.getSize();this.zoomMode_==ocean.layout.Layout.ZoomMode.FIXED_HEIGHT?l.height=this.zoomStop_:l.width=this.zoomStop_;k.setSize(l);this.addItem(k);g=h},this);f&&g&&e&&g.getOrderId()<e.getOrderId()&&this.addLayoutSeparator_(g,e);this.calculate()};$jscomp.inherits(module$contents$ocean$books$Layout_Layout,module$contents$ocean$layout$ViewportLayout_ViewportLayout); module$contents$ocean$books$Layout_Layout.prototype.addLayoutSeparator_=function(a,b,c){c=c||!1;a=new module$contents$ocean$books$LayoutSeparator_LayoutSeparator(a,b,c);b=a.getSize();this.zoomMode_==ocean.layout.Layout.ZoomMode.FIXED_HEIGHT?b.height=this.zoomStop_:b.width=this.zoomStop_;a.setSize(b);this.addItem(a)};module$contents$ocean$books$Layout_Layout.prototype.getZoomStop=function(){return this.zoomStop_};module$contents$ocean$books$Layout_Layout.prototype.getZoomMode=function(){return this.zoomMode_}; module$contents$ocean$books$Layout_Layout.prototype.verticalSpacing=8;ocean.books.Layout=module$contents$ocean$books$Layout_Layout;var module$contents$ocean$books$LayoutSeparatorRenderer_LayoutSeparatorRenderer=function(a,b){this.viewer_=a;this.factory_=b};$jscomp.inherits(module$contents$ocean$books$LayoutSeparatorRenderer_LayoutSeparatorRenderer,module$contents$ocean$viewport$LayoutItemRenderer_LayoutItemRenderer);module$contents$ocean$books$LayoutSeparatorRenderer_LayoutSeparatorRenderer.prototype.render=function(a){var b=this.factory_(a);b.setSize(a.getSize());b.setPosition(a.getPosition());return b}; ocean.books.LayoutSeparatorRenderer=module$contents$ocean$books$LayoutSeparatorRenderer_LayoutSeparatorRenderer;var module$contents$ocean$books$LayoutTwoPage_LayoutTwoPage=function(){};$jscomp.inherits(module$contents$ocean$books$LayoutTwoPage_LayoutTwoPage,module$contents$ocean$layout$LayoutItem_LayoutItem);ocean.books.LayoutTwoPage=module$contents$ocean$books$LayoutTwoPage_LayoutTwoPage;function module$contents$ocean$viewport$BaseLayer_BaseLayer(){module$contents$ocean$EventManager_EventManager.call(this)}goog.inherits(module$contents$ocean$viewport$BaseLayer_BaseLayer,module$contents$ocean$EventManager_EventManager);module$contents$ocean$viewport$BaseLayer_BaseLayer.prototype.initialize=function(a){this.pageDisplay_=a;this.overlayDiv_=a.createOverlayDiv()};module$contents$ocean$viewport$BaseLayer_BaseLayer.prototype.getPageDisplay=function(){return this.pageDisplay_}; module$contents$ocean$viewport$BaseLayer_BaseLayer.prototype.disposeInternal=function(){module$contents$ocean$viewport$BaseLayer_BaseLayer.superClass_.disposeInternal.call(this);goog.dom.removeNode(this.overlayDiv_)};ocean.viewport.BaseLayer=module$contents$ocean$viewport$BaseLayer_BaseLayer;var module$exports$ocean$books$ShadowLayer=function(a){module$contents$ocean$EventManager_EventManager.call(this);this.isLeft_=a};$jscomp.inherits(module$exports$ocean$books$ShadowLayer,module$contents$ocean$viewport$BaseLayer_BaseLayer);module$exports$ocean$books$ShadowLayer.prototype.setVisible=function(a){goog.style.setElementShown(this.overlayDiv_,a)}; module$exports$ocean$books$ShadowLayer.prototype.initialize=function(a){module$contents$ocean$viewport$BaseLayer_BaseLayer.prototype.initialize.call(this,a);var b=this.getPageDisplay().getSize();a=this.overlayDiv_;var c=b.width;b=b.height;var d=Math.floor(c*module$exports$ocean$books$ShadowLayer.BURN_FRACTION_);c=this.isLeft_?c-d:0;var e=this.isLeft_?module$exports$ocean$books$ShadowLayer.SHADOW_IMG_LEFT_:module$exports$ocean$books$ShadowLayer.SHADOW_IMG_RIGHT_;goog.style.setPosition(a,c,0);goog.style.setSize(a, d,b);goog.style.setStyle(a,{position:"absolute"});goog.userAgent.IE?ocean.style.setBackgroundImage(a,e):(b=goog.dom.createDom(goog.dom.TagName.IMG,{src:e,width:d,height:b,border:0,position:"absolute",top:0,left:0}),goog.dom.appendChild(a,b))};module$exports$ocean$books$ShadowLayer.SHADOW_IMG_LEFT_="/googlebooks/images/burn-left.png";module$exports$ocean$books$ShadowLayer.SHADOW_IMG_RIGHT_="/googlebooks/images/burn-right.png";module$exports$ocean$books$ShadowLayer.BURN_FRACTION_=.035;ocean.viewport.HighlightLayer=function(a){module$contents$ocean$EventManager_EventManager.call(this);this.color_=a;this.highlightRects_=[]};goog.inherits(ocean.viewport.HighlightLayer,module$contents$ocean$viewport$BaseLayer_BaseLayer);ocean.viewport.HighlightLayer.EventType={UPDATE:"update"}; ocean.viewport.HighlightLayer.prototype.initialize=function(a){ocean.viewport.HighlightLayer.superClass_.initialize.call(this,a);this.handleUpdate();(a=this.getPageInfo())&&this.getHandler().listen(this.getPageInfo(),ocean.viewport.HighlightLayer.EventType.UPDATE,this.handleUpdate)};ocean.viewport.HighlightLayer.prototype.getPageInfo=function(){return this.pageDisplay_.getPageInfo()}; ocean.viewport.HighlightLayer.prototype.drawHighlight=function(a,b,c,d){var e=goog.dom.createElement("div");ocean.style.clearExternalStyles(e,!0);this.overlayDiv_.appendChild(e);a=this.getScaledCoords(a,b,c,d);goog.style.setStyle(e,{position:"absolute",left:a[0]+"px",top:a[1]+"px",width:a[2]+"px",height:a[3]+"px"});this.color_&&(goog.style.setStyle(e,{backgroundColor:this.color_}),goog.style.setOpacity(e,ocean.viewport.HighlightLayer.OPACITY_));this.highlightRects_.push(new goog.math.Rect(a[0],a[1], a[2],a[3]));return e};ocean.viewport.HighlightLayer.OPACITY_=.3;ocean.viewport.HighlightLayer.prototype.getScaleFactor=function(){return this.getPageDisplay().getSize().width/this.getPageDisplay().getPageInfo().getHighlightPageWidth()};ocean.viewport.HighlightLayer.prototype.getScaledCoords=function(a,b,c,d){var e=this.getScaleFactor();return a=module$contents$goog$array_map([a,b,c,d],function(f){return Math.round(f*e)})}; ocean.viewport.HighlightLayer.prototype.drawHighlights=function(a){module$contents$goog$array_forEach(a,function(b){this.drawHighlight.apply(this,b)},this)};ocean.viewport.HighlightLayer.prototype.drawHighlightRect=function(a){if(goog.DEBUG&&(a.left===void 0||a.top===void 0||a.width===void 0||a.height===void 0))throw"All properties of a rect must be defined to draw a highlight";return this.drawHighlight(a.left,a.top,a.width,a.height)}; ocean.viewport.HighlightLayer.prototype.drawHighlightRects=function(a){return module$contents$goog$array_map(a,goog.bind(this.drawHighlightRect,this))};ocean.viewport.HighlightLayer.prototype.clearHighlights=function(){goog.dom.removeChildren(this.overlayDiv_);this.highlightRects_=[]};ocean.viewport.HighlightLayer.prototype.handleUpdate=function(){};var module$contents$ocean$viewport$ClipIndicatorLayer_ClipIndicatorLayer=function(){ocean.viewport.HighlightLayer.call(this)};$jscomp.inherits(module$contents$ocean$viewport$ClipIndicatorLayer_ClipIndicatorLayer,ocean.viewport.HighlightLayer);module$contents$ocean$viewport$ClipIndicatorLayer_ClipIndicatorLayer.prototype.handleUpdate=function(){if(!this.drawn_){var a=this.getPageInfo();a&&(a=a.getClipHighlights())&&(this.drawHighlights(a),this.drawn_=!0)}}; module$contents$ocean$viewport$ClipIndicatorLayer_ClipIndicatorLayer.prototype.drawHighlight=function(a,b,c,d){this.clipDiv_=ocean.viewport.HighlightLayer.prototype.drawHighlight.call(this,a,b,c,d);goog.style.setStyle(this.clipDiv_,{border:"2px #aaaaff dashed"});this.closeImg_=goog.dom.createElement(goog.dom.TagName.IMG);goog.dom.appendChild(this.clipDiv_,this.closeImg_);this.closeImg_.src="/googlebooks/images/dialog_close_x.gif";a=this.getScaledCoords(a,b,c,d);goog.style.setStyle(this.closeImg_, {position:"absolute",cursor:"pointer",left:a[2]-19+"px",top:"4px",display:"none"});goog.events.listen(this.clipDiv_,goog.events.EventType.MOUSEOUT,goog.bind(this.handleMouseOut_,this));goog.events.listen(this.clipDiv_,goog.events.EventType.MOUSEOVER,goog.bind(this.imageDisplayHelper_,this,!0));goog.events.listenOnce(this.closeImg_,goog.events.EventType.CLICK,goog.bind(this.cleanup,this));return this.clipDiv_};module$contents$ocean$viewport$ClipIndicatorLayer_ClipIndicatorLayer.prototype.cleanup=function(){goog.dom.removeNode(this.clipDiv_)}; module$contents$ocean$viewport$ClipIndicatorLayer_ClipIndicatorLayer.prototype.handleMouseOut_=function(a){goog.dom.contains(this.clipDiv_,a.target)||this.imageDisplayHelper_(!1)};module$contents$ocean$viewport$ClipIndicatorLayer_ClipIndicatorLayer.prototype.imageDisplayHelper_=function(a){goog.style.setStyle(this.closeImg_,{display:a?"":"none"})};ocean.viewport.ClipIndicatorLayer=module$contents$ocean$viewport$ClipIndicatorLayer_ClipIndicatorLayer;var module$contents$ocean$viewport$LinkLayer_LinkLayer=function(a){ocean.viewport.HighlightLayer.call(this);this.viewer_=a};$jscomp.inherits(module$contents$ocean$viewport$LinkLayer_LinkLayer,ocean.viewport.HighlightLayer); module$contents$ocean$viewport$LinkLayer_LinkLayer.prototype.handleUpdate=function(){if(!this.drawn_){var a=this.getPageInfo();a&&(a=a.getLinks())&&(module$contents$goog$array_forEach(a,function(b){var c=b.pop(),d=b.pop();b=this.drawHighlight.apply(this,b);goog.style.setStyle(b,{cursor:"pointer"});this.getHandler().listen(b,goog.events.EventType.CLICK,goog.bind(this.handleClick_,this,d,c))},this),this.drawn_=!0)}}; module$contents$ocean$viewport$LinkLayer_LinkLayer.prototype.handleClick_=function(a,b){var c=this.viewer_.pageInfoSet_;(a=c.getPageInfoByPid(a))?this.viewer_.setPageInfo(a):this.viewer_.goToPageUrl(b)};ocean.viewport.LinkLayer=module$contents$ocean$viewport$LinkLayer_LinkLayer;ocean.viewport.PageImage=function(a,b){this.pageInfo_=a;this.displaySize_=b};ocean.viewport.PageImage.prototype.getPageInfo=function(){return this.pageInfo_};ocean.viewport.PageImage.prototype.getSizedUrl=function(){return this.pageInfo_.getSrc(this.displaySize_)};ocean.viewport.ScaledPageImage=function(a,b,c){ocean.viewport.PageImage.call(this,a,b);this.imageSize_=c};$jscomp.inherits(ocean.viewport.ScaledPageImage,ocean.viewport.PageImage); ocean.viewport.ScaledPageImage.prototype.getSizedUrl=function(){return this.imageSize_.width>this.displaySize_.width?this.pageInfo_.getSrc(this.imageSize_):ocean.viewport.PageImage.prototype.getSizedUrl.call(this)};goog.dom.textAssert={};goog.dom.textAssert.assertHtmlFree=function(a){if(module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS){var b=goog.dom.createElement(goog.dom.TagName.BODY);b.textContent=a;goog.asserts.assert(b.innerHTML==b.textContent,"String has HTML original: %s, escaped: %s",a,b.innerHTML)}return a};ocean.viewport.PageDisplay=function(a,b,c,d,e){module$contents$ocean$EventManager_EventManager.call(this);this.setParentEventTarget(a.getViewport());this.viewer_=a;this.size_=c;this.layers_=[];this.displayDiv_=d;goog.style.setSize(d,c);this.backgroundDiv_=this.createOverlayDiv();goog.style.setStyle(this.backgroundDiv_,"backgroundColor","#fff");goog.style.setSize(this.backgroundDiv_,c);if(this.showLoading_=e!==void 0?e:!0)a=this.createOverlayDiv(),goog.style.setSize(a,c),this.loadingDisplay_=new ocean.viewport.PageDisplay.LoadingLayer_(a), this.loadingDisplay_.show();b&&(this.pageInfo_=b,this.getHandler().listen(b,ocean.info.PageInfo.EventType.UPDATE,this.handlePageInfoUpdate),b.fetchServerInfo())};goog.inherits(ocean.viewport.PageDisplay,module$contents$ocean$EventManager_EventManager);ocean.viewport.PageDisplay.prototype.getDiv=function(){return this.displayDiv_};ocean.viewport.PageDisplay.prototype.getSize=function(){return this.size_};ocean.viewport.PageDisplay.prototype.getPageInfo=function(){return this.pageInfo_}; ocean.viewport.PageDisplay.prototype.addLayer=function(a){this.layers_.push(a);a.initialize(this)};ocean.viewport.PageDisplay.prototype.handlePageInfoUpdate=function(){};ocean.viewport.PageDisplay.prototype.handlePageLoaded=function(){this.dispatchEvent(goog.events.EventType.LOAD);this.showLoading_&&this.loadingDisplay_.hide()}; ocean.viewport.PageDisplay.prototype.createOverlayDiv=function(){var a=goog.dom.createElement("div");ocean.style.clearExternalStyles(a,!0);goog.style.setStyle(a,{position:"absolute",left:0,top:0});goog.dom.appendChild(this.displayDiv_,a);return a};ocean.viewport.PageDisplay.prototype.clearOverlayDiv=function(){this.limitDiv_&&(goog.dom.removeNode(this.limitDiv_),this.limitDiv_=null)}; ocean.viewport.PageDisplay.prototype.cleanup=function(){module$contents$goog$array_forEach(this.layers_,function(a){a.dispose()});this.layers_=null;this.clearOverlayDiv()}; ocean.viewport.PageDisplay.prototype.createObscureDiv=function(){this.obscureDiv_=this.createOverlayDiv();goog.style.setSize(this.obscureDiv_,this.getSize());goog.style.setStyle(this.obscureDiv_,{backgroundImage:"url(//www.google.com/images/cleardot.gif)",backgroundRepeat:"repeat"});this.getHandler().listen(this.obscureDiv_,goog.events.EventType.MOUSEDOWN,this.handleMouseDown_);this.getHandler().listen(this.obscureDiv_,goog.events.EventType.DRAGSTART,goog.events.Event.preventDefault)}; ocean.viewport.PageDisplay.prototype.handleMouseDown_=function(a){a.display=this;ocean.viewport.PageDisplay.eventTarget.dispatchEvent(a)};ocean.viewport.PageDisplay.eventTarget=new goog.events.EventTarget;ocean.viewport.PageDisplay.LoadingLayer_=function(a){this.div_=a;this.drawLoadingDivs_()};ocean.viewport.PageDisplay.LoadingLayer_.prototype.show=function(a){goog.style.setStyle(this.div_,{display:a?"none":""})};ocean.viewport.PageDisplay.LoadingLayer_.prototype.hide=function(){this.show(!0)}; ocean.viewport.PageDisplay.LoadingLayer_.prototype.drawLoadingDivs_=function(){for(var a={position:"absolute",left:0,color:"#808080",fontSize:"13px",backgroundColor:"white"},b=0;b<2;b++){var c=goog.dom.createElement("div");ocean.style.clearExternalStyles(c);goog.style.setStyle(c,a);goog.dom.appendChild(this.div_,c);c.textContent=goog.dom.textAssert.assertHtmlFree("Loading...");a.bottom=0}};ocean.viewport.PageDisplay.prototype.showBlankPage=function(){this.showStatusPage_()}; ocean.viewport.PageDisplay.prototype.showRestrictedPage=function(){var a=goog.string.subs('<table width=100% height=100%><tr><td><img src="%s"/><br/>%s</td></tr></table>',ocean.util.Url.getUrlOnDomain("/googlebooks/restricted_logo.gif"),"You have either reached a page that is unavailable for viewing or reached your viewing limit for this book.");this.showStatusPage_(a)}; ocean.viewport.PageDisplay.prototype.showStatusPage_=function(a){this.clearOverlayDiv();this.limitDiv_=this.createOverlayDiv();new ocean.viewport.PageDisplay.MessageLayer_(this.limitDiv_,this.getSize(),a)}; ocean.viewport.PageDisplay.MessageLayer_=function(a,b,c){this.div_=a;goog.style.setStyle(a,{backgroundColor:"#FFF",textAlign:"center"});goog.style.setSize(a,b);module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml(goog.asserts.assert(a),module$contents$google3$third_party$javascript$safevalues$restricted$legacy_superLenientlySanitizeHtml(c||""));ocean.style.clearExternalStyles(this.div_)};ocean.viewport.PageImageDisplay=function(a,b,c){ocean.viewport.PageDisplay.call(this,a,b.getPageInfo(),b.displaySize_,c);this.setParentEventTarget(ocean.viewport.PageImageDisplay.eventTarget);a=this.createOverlayDiv();this.imageLayer_=new ocean.viewport.PageImageDisplay.ImageLayer_(b.displaySize_,a);a=this.createOverlayDiv();this.cachedImageLayer_=new ocean.viewport.PageImageDisplay.ImageLayer_(b.displaySize_,a);this.createObscureDiv();goog.style.setUnselectable(c,!0);goog.dom.classlist.add(c,ocean.viewport.PageImageDisplay.PAGE_IMAGE_DISPLAY_CLASS_); this.pageImage_=b;b.getPageInfo()&&this.handlePageInfoUpdate()};$jscomp.inherits(ocean.viewport.PageImageDisplay,ocean.viewport.PageDisplay);ocean.viewport.PageImageDisplay.prototype.setPageInfo=function(a){a.setServerParameter("output",null);ocean.viewport.PageDisplay.prototype.setPageInfo.call(this,a);a.getSrc()&&this.handlePageInfoUpdate()}; ocean.viewport.PageImageDisplay.prototype.handlePageInfoUpdate=function(){var a=this.getPageInfo(),b=this.pageImage_.getSizedUrl();if(b&&!this.drawn_){b=ocean.viewport.PageImageDisplay.imageUrlTransform(b);goog.events.listenOnce(this.imageLayer_,goog.events.EventType.LOAD,goog.bind(this.handleImageLoad_,this,a,b,this.getSize().width));this.imageLayer_.setSrc(b);var c=this.viewer_.imageCache_.getAllImages(a.getPageId());c.push(b);this.cachedImageLayer_.setSrcs(c);this.drawn_=!0;this.clearOverlayDiv(); a==this.viewer_.getPageInfo()&&this.dispatchEvent(ocean.viewport.PageImageDisplay.EventType.FETCH)}b=ocean.info.ProtoPageInfo.FLAGS;a.hasSomeFlags([b.LIMIT_REACHED,b.RESTRICTED])&&(this.showRestrictedPage(),this.handlePageLoaded())};ocean.viewport.PageImageDisplay.prototype.handleImageLoad_=function(a,b,c){a==this.viewer_.getPageInfo()&&this.dispatchEvent(ocean.viewport.PageImageDisplay.EventType.LOADED);this.cachedImageLayer_.empty();this.viewer_.imageCache_.registerUrl(a.getPageId(),c,b);this.handlePageLoaded()}; ocean.viewport.PageImageDisplay.prototype.isLoaded=function(){return this.imageLayer_.isLoaded()||this.cachedImageLayer_.isLoaded()};ocean.viewport.PageImageDisplay.prototype.cleanup=function(){this.drawn_=!1;this.imageLayer_.empty();this.cachedImageLayer_.empty();ocean.viewport.PageDisplay.prototype.cleanup.call(this)};ocean.viewport.PageImageDisplay.eventTarget=new goog.events.EventTarget;ocean.viewport.PageImageDisplay.PAGE_IMAGE_DISPLAY_CLASS_="pageImageDisplay"; ocean.viewport.PageImageDisplay.imageUrlTransform=goog.functions.identity;ocean.viewport.PageImageDisplay.ImageLayer_=function(a,b){goog.events.EventTarget.call(this);this.size_=a;this.div_=b;this.loaded_=!1;this.img_=goog.dom.createElement(goog.dom.TagName.IMG);goog.a11y.aria.setLabel(this.img_,"Page");this.img_.width=this.size_.width;goog.dom.appendChild(this.div_,this.img_);ocean.style.clearExternalStyles(this.div_)};$jscomp.inherits(ocean.viewport.PageImageDisplay.ImageLayer_,goog.events.EventTarget); ocean.viewport.PageImageDisplay.ImageLayer_.prototype.empty=function(){for(var a;a=goog.dom.getFirstElementChild(this.div_);)module$contents$ocean$util$Image_dispose(a)};ocean.viewport.PageImageDisplay.ImageLayer_.prototype.setSrcs=function(a){module$contents$ocean$util$Image_onLoad(this.img_,goog.bind(this.handleLoad_,this,this.img_));for(var b=0;b<a.length;b++)this.img_.src=a[b]};ocean.viewport.PageImageDisplay.ImageLayer_.prototype.setSrc=function(a){this.setSrcs([a])}; ocean.viewport.PageImageDisplay.ImageLayer_.prototype.handleLoad_=function(a){this.img_==a&&(this.dispatchEvent(goog.events.EventType.LOAD),this.loaded_=!0)};ocean.viewport.PageImageDisplay.ImageLayer_.prototype.isLoaded=function(){return this.loaded_};ocean.viewport.PageImageDisplay.EventType={FETCH:"fetch",LOADED:"loaded"};ocean.viewport.Viewport=function(a){var b=this;module$contents$ocean$EventManager_EventManager.call(this);this.window_=a;this.viewportDiv_=a.getCroppingDiv();this.setSize(goog.style.getContentBoxSize(this.viewportDiv_));this.scrollCoordinate_=new goog.math.Coordinate(0,0);this.subscriptionBar_=null;this.subscriptionBarHideDelay_=new goog.async.Delay(function(){goog.style.setElementShown(b.subscriptionBar_,!1)},600);this.registerDisposable(this.subscriptionBarHideDelay_)}; goog.inherits(ocean.viewport.Viewport,module$contents$ocean$EventManager_EventManager);ocean.viewport.Viewport.prototype.setSize=function(a){this.size_&&goog.math.Size.equals(this.size_,a)||(this.size_=a,this.window_.setWindowSize(a),this.dispatchEvent(ocean.viewport.Viewport.EventType.RESIZE))}; ocean.viewport.Viewport.prototype.setLayout=function(a){this.layout_=a;this.dispatcher_.cleanup();this.window_.setWindowSize(this.getSize());if(goog.DEBUG&&!a.getWidth()&&!a.getHeight())throw"layout height and width aren\t set";this.window_.setCanvasSize(new goog.math.Size(a.getWidth(),a.getHeight()));this.dispatchEvent(ocean.viewport.Viewport.EventType.LAYOUTCHANGE)};ocean.viewport.Viewport.prototype.setDispatcher=function(a){this.dispatcher_=a};ocean.viewport.Viewport.prototype.getWindow=function(){return this.window_}; ocean.viewport.Viewport.prototype.updateDisplay=function(){var a=this.layout_.getItems();this.clipper_&&(a=this.clipper_.getClippedLayoutItems(a));this.dispatcher_.renderItems(a);this.dispatchEvent(ocean.viewport.Viewport.EventType.UPDATE)};ocean.viewport.Viewport.prototype.setClipper=function(a){this.clipper_=a}; ocean.viewport.Viewport.prototype.setScroll=function(a){var b=this.scrollCoordinate_.x,c=this.scrollCoordinate_.y;this.limitScroll_(a);typeof a.x==="number"&&(b=a.x);typeof a.y==="number"&&(a.y-c>1?this.dispatchEvent(ocean.viewport.Viewport.EventType.SCROLLDOWN):c-a.y>1&&this.dispatchEvent(ocean.viewport.Viewport.EventType.SCROLLUP),c=a.y);this.scrollCoordinate_=new goog.math.Coordinate(b,c);this.window_.setCropOffset(this.scrollCoordinate_);this.dispatchEvent(ocean.viewport.Viewport.EventType.MOVE)}; ocean.viewport.Viewport.prototype.limitScroll_=function(a){typeof a.x==="number"&&(a.x=goog.math.clamp(a.x,0,Math.max(this.layout_.getWidth()-this.size_.width,0)));typeof a.y==="number"&&(a.y=goog.math.clamp(a.y,0,Math.max(this.layout_.getHeight()-this.size_.height,0)))};ocean.viewport.Viewport.prototype.getViewableRect=function(){var a=this.getScroll();return a?new goog.math.Rect(a.x,a.y,this.size_.width,this.size_.height):null};ocean.viewport.Viewport.prototype.getSize=function(){return this.size_}; ocean.viewport.Viewport.prototype.getContentSize=function(){if(this.viewportDiv_.hasChildNodes()){var a=goog.asserts.assertElement(this.viewportDiv_.childNodes[0]);a=goog.style.getContentBoxSize(a).width;var b=this.size_.height;return new goog.math.Size(a,b)}return this.size_};ocean.viewport.Viewport.prototype.getScroll=function(){return this.scrollCoordinate_};ocean.viewport.Viewport.prototype.moveTo=function(a){this.dispatchEvent(ocean.viewport.Viewport.EventType.MOVESTART);this.setScroll(a);this.dispatchEvent(ocean.viewport.Viewport.EventType.MOVEEND)}; ocean.viewport.Viewport.prototype.moveBy=function(a){this.relativeMoveHelper_(a,goog.bind(this.moveTo,this))};ocean.viewport.Viewport.prototype.scrollBy=function(a){this.relativeMoveHelper_(a,goog.bind(this.setScroll,this))};ocean.viewport.Viewport.prototype.panBy=function(a){this.relativeMoveHelper_(a,goog.bind(this.panTo,this))};ocean.viewport.Viewport.prototype.relativeMoveHelper_=function(a,b){var c=this.getScroll();b(new goog.math.Coordinate(c.x+a.x,c.y+a.y))}; ocean.viewport.Viewport.prototype.panTo=function(a){var b=this.getScroll(),c=this.getSize();!b||Math.abs(b.x-a.x)>c.width||Math.abs(b.y-a.y)>c.height?this.moveTo(a):(this.animation_&&(this.animation_.dispose(),this.animation_=null),c=goog.math.Coordinate.distance(b,a),c=goog.math.clamp(c/800,0,1),c=goog.math.lerp(250,500,c),this.animation_=new goog.fx.Animation([b.x,b.y],[a.x,a.y],c,goog.fx.easing.inAndOut),goog.events.listen(this.animation_,goog.fx.Animation.EventType.ANIMATE,goog.bind(this.handleAnimate_, this)),goog.events.listen(this.animation_,goog.fx.Transition.EventType.END,goog.bind(this.handleAnimateEnd_,this)),this.dispatchEvent(ocean.viewport.Viewport.EventType.MOVESTART),goog.events.listenOnce(this,ocean.viewport.Viewport.EventType.MOVESTART,goog.bind(this.animation_.dispose,this.animation_)),this.animation_.play())};ocean.viewport.Viewport.prototype.handleAnimate_=function(a){a=a.coordsAsInts();this.setScroll(new goog.math.Coordinate(a[0],a[1]))}; ocean.viewport.Viewport.prototype.handleAnimateEnd_=function(a){this.handleAnimate_(a);this.dispatchEvent(ocean.viewport.Viewport.EventType.MOVEEND)};ocean.viewport.Viewport.prototype.getCroppingDiv=function(){return this.window_.getCroppingDiv()};ocean.viewport.Viewport.prototype.getCanvasDiv=function(){return this.window_.getCanvasDiv()};ocean.viewport.Viewport.prototype.getMasterDiv=function(){return this.getCanvasDiv()}; ocean.viewport.Viewport.prototype.getMiddleCoordinate=function(){return new goog.math.Coordinate(Math.round(this.scrollCoordinate_.x+this.size_.width/2),Math.round(this.scrollCoordinate_.y+this.size_.height/2))};ocean.viewport.Viewport.prototype.middleToScroll=function(a){return this.middleTranslateHelper_(a,-1)};ocean.viewport.Viewport.prototype.middleTranslateHelper_=function(a,b){return new goog.math.Coordinate(Math.round(a.x+this.size_.width/2*b),Math.round(a.y+this.size_.height/2*b))}; ocean.viewport.Viewport.prototype.createOverlayDiv=function(){var a=goog.dom.createElement("div");ocean.style.clearExternalStyles(a,!0);goog.dom.appendChild(this.window_.getCroppingDiv(),a);return a};ocean.viewport.Viewport.prototype.disposeInternal=function(){ocean.viewport.Viewport.superClass_.disposeInternal.call(this);this.dispatcher_.cleanup()}; ocean.viewport.Viewport.prototype.fadeOutInstitutionalSubscriptionBar=function(a){this.subscriptionBar_==null&&(this.subscriptionBar_=a);this.subscriptionBar_.style.opacity=0;this.subscriptionBarHideDelay_.start()};ocean.viewport.Viewport.prototype.fadeInInstitutionalSubscriptionBar=function(){var a=this;this.subscriptionBarHideDelay_.stop();goog.style.setElementShown(this.subscriptionBar_,!0);goog.Timer.callOnce(function(){a.subscriptionBar_.style.opacity=1})}; ocean.viewport.Viewport.EventType={DRAG:"drag",DRAGEND:"dragend",DRAGSTART:"dragstart",LAYOUTCHANGE:"layoutchange",MOVE:"move",MOVEEND:"moveend",MOVESTART:"movestart",RESIZE:"resize",SCROLLDOWN:"scrolldown",SCROLLUP:"scrollup",UPDATE:"update"};ocean.viewport.Viewport.prototype.PAGE_TURN_STEP=1;ocean.viewport.PageTileDisplay=function(a,b,c,d){ocean.viewport.PageDisplay.call(this,a,b.getPageInfo(),b.displaySize_,c,d);this.tileDiv_=this.createOverlayDiv();this.createObscureDiv();b.getPageInfo()&&this.handlePageInfoUpdate();this.viewer_=a;this.updateListener_=goog.events.listen(this.viewer_.getViewport(),ocean.viewport.Viewport.EventType.UPDATE,this.handleLoadTiles_,!1,this)};$jscomp.inherits(ocean.viewport.PageTileDisplay,ocean.viewport.PageDisplay); ocean.viewport.PageTileDisplay.prototype.handlePageInfoUpdate=function(){var a=this.getPageInfo(),b=a.getSrc(),c=this.viewer_.volumeInfo_.tilingParams_,d=a.tilingPageParams_;if(b&&d&&!this.drawn_){var e=d.getZoomLevelForPageHeight(this.getSize().height);typeof e==="number"&&(d=d.getPageWidthForZoomLevel(e),b=new goog.Uri(b),b.setParameterValue("zoom",e),b.setParameterValue("pg",a.newspaperScanjobCoordinates_),b=b.toString(),this.tileLayer_=new module$contents$ocean$viewport$TileImageLayer_TileImageLayer(this.tileDiv_, d,this.getSize().height,c.tileWidth_,c.tileHeight_,goog.bind(c.getTileUrl,c,b,d,this.getSize().height),null),this.drawn_=!0,this.handleLoadTiles_())}};ocean.viewport.PageTileDisplay.prototype.handleLoadTiles_=function(){if(this.drawn_){var a=goog.style.getVisibleRectForElement(this.tileDiv_);if(a){var b=goog.style.getClientPosition(this.tileDiv_);a.top-=b.y;a.bottom-=b.y;a.left-=b.x;a.right-=b.x;a.bottom-a.top>0&&a.right-a.left>0&&this.tileLayer_.loadTiles(goog.math.Rect.createFromBox(a))}this.viewer_.updateBoundingBox()}}; ocean.viewport.PageTileDisplay.prototype.cleanup=function(){this.drawn_&&(this.tileLayer_.empty(),this.drawn_=!1);this.updateListener_&&(goog.events.unlistenByKey(this.updateListener_),this.updateListener_=null);ocean.viewport.PageDisplay.prototype.cleanup.call(this)};ocean.viewport.SearchLayer=function(a){this.searchState_=a;ocean.viewport.HighlightLayer.call(this,ocean.viewport.SearchLayer.SEARCH_LAYER_COLOR_)};goog.inherits(ocean.viewport.SearchLayer,ocean.viewport.HighlightLayer);ocean.viewport.SearchLayer.SEARCH_LAYER_COLOR_="#ffff00"; ocean.viewport.SearchLayer.prototype.handleUpdate=function(){var a=this.getPageDisplay().getPageInfo();if(a){var b=this.searchState_.getQuery();b!=this.drawnSearchQuery_&&(a=a.getSearchHighlightRects(b),this.clearHighlights(),a&&(this.drawHighlightRects(a),this.drawnSearchQuery_=b))}};var module$exports$ocean$net$RemoteObjectRequest=function(a){goog.events.EventTarget.call(this);this.url=a;this.responseObject_=null;this.isReady_=!0};$jscomp.inherits(module$exports$ocean$net$RemoteObjectRequest,goog.events.EventTarget);module$exports$ocean$net$RemoteObjectRequest.prototype.fetch=function(){if(this.isReady_)this.isReady_=!1;else throw Error();};module$exports$ocean$net$RemoteObjectRequest.prototype.setObject=function(a){this.responseObject_=a};ocean.net={};var module$contents$ocean$net$XhrRequest_XhrRequest=function(a,b){module$exports$ocean$net$RemoteObjectRequest.call(this,a);this.method_=b||"GET";this.eventHandler_=new goog.events.EventHandler;this.xhrIo_=new goog.net.XhrIo};$jscomp.inherits(module$contents$ocean$net$XhrRequest_XhrRequest,module$exports$ocean$net$RemoteObjectRequest); module$contents$ocean$net$XhrRequest_XhrRequest.prototype.fetch=function(a,b,c){module$exports$ocean$net$RemoteObjectRequest.prototype.fetch.call(this,a,b);this.successCallback_=a;this.failureCallback_=b;this.addListeners_();this.xhrIo_.send(this.url.toString(),this.method_,c)}; module$contents$ocean$net$XhrRequest_XhrRequest.prototype.addListeners_=function(){this.eventHandler_.listen(this.xhrIo_,goog.net.EventType.SUCCESS,goog.bind(this.handleSuccessResponse_,this));this.eventHandler_.listen(this.xhrIo_,goog.net.EventType.ERROR,goog.bind(this.handleFailureResponse_,this))}; module$contents$ocean$net$XhrRequest_XhrRequest.prototype.handleSuccessResponse_=function(a){a=a.target;this.setObject(JSON.parse(a.getResponseText()));goog.Timer.callOnce(goog.bind(this.dispatchEvent,this,goog.net.EventType.SUCCESS));this.successCallback_&&goog.Timer.callOnce(goog.partial(this.successCallback_,this.responseObject_));goog.Timer.callOnce(goog.bind(this.cleanup_,this))}; module$contents$ocean$net$XhrRequest_XhrRequest.prototype.handleFailureResponse_=function(){goog.Timer.callOnce(goog.bind(this.dispatchEvent,this,goog.net.EventType.ERROR));this.failureCallback_&&goog.Timer.callOnce(this.failureCallback_);goog.Timer.callOnce(goog.bind(this.cleanup_,this))};module$contents$ocean$net$XhrRequest_XhrRequest.prototype.abort=function(){this.xhrIo_.abort();this.cleanup_();return!1}; module$contents$ocean$net$XhrRequest_XhrRequest.prototype.cleanup_=function(){this.eventHandler_.removeAll();this.failureCallback_=this.successCallback_=null};ocean.net.XhrRequest=module$contents$ocean$net$XhrRequest_XhrRequest;ocean.geom={};var module$contents$ocean$geom_createRectFromProto=function(a){return new goog.math.Rect(a.X,a.Y,a.W,a.H)},module$contents$ocean$geom_getBoundingRect=function(a){return a.length?a.reduce(function(b,c){return goog.math.Rect.boundingRect(b,c)},a[0].clone()):null};ocean.geom.createRectFromProto=module$contents$ocean$geom_createRectFromProto;ocean.geom.getBoundingRect=module$contents$ocean$geom_getBoundingRect;ocean.viewport.SelectionBox=function(a,b,c,d,e){module$contents$ocean$EventManager_EventManager.call(this);this.textSelectionLayer_=a;this.pageDisplayDiv_=b;this.startOffset_=e;this.pageInfo_=d;this.size_=!1;this.rectangleDiv_=goog.dom.createElement("div");goog.dom.appendChild(c,this.rectangleDiv_);this.getHandler().listen(b,goog.events.EventType.MOUSEMOVE,this.sizeBoxToEvent_);this.getHandler().listen(b,goog.events.EventType.MOUSEUP,this.endSizing_)};goog.inherits(ocean.viewport.SelectionBox,module$contents$ocean$EventManager_EventManager); ocean.viewport.SelectionBox.prototype.sizeBoxToEvent_=function(a){this.sized_||(a=ocean.viewport.SelectionBox.getPageOffset(this.pageDisplayDiv_,a),a=goog.math.Box.boundingBox(a,this.startOffset_),this.updateSelectionBox_(a))}; ocean.viewport.SelectionBox.prototype.endSizing_=function(a){this.sizeBoxToEvent_(a);this.sized_=!0;var b=this.pageInfo_;a=goog.math.Rect.createFromBox(this.selectionBox_);var c=this.textSelectionLayer_.getScaleFactor();c=ocean.viewport.SelectionBox.getScaledRect_(a,1/c);a=ocean.viewport.SelectionBox.getRoundedRect_(ocean.viewport.SelectionBox.getScaledRect_(c,1/b.getSize().width*1E3));b=new goog.Uri(b.getPageUrl());b.setParameterValue("ci",[a.left,a.top,a.width,a.height].join());b.setParameterValue("jscmd", "click3");b.setParameterValue("output","text");c=ocean.viewport.SelectionBox.getRoundedRect_(c);this.textSelectionLayer_.showSelection([c]);goog.dom.removeNode(this.rectangleDiv_);b=new module$contents$ocean$net$XhrRequest_XhrRequest(b);b.fetch(goog.bind(this.handleHighlightsRequest_,this,c,a));this.dispatchEvent(ocean.viewport.SelectionBox.EventType.ENDSIZE)};ocean.viewport.SelectionBox.EventType={ENDSIZE:"endsize"}; ocean.viewport.SelectionBox.prototype.handleHighlightsRequest_=function(a,b,c){c=c.page[0];var d=!1,e=c.clip_highlights;if(e){var f=[];module$contents$goog$array_forEach(e,function(g){f.push(module$contents$ocean$geom_createRectFromProto(g))});if(c=c.content)this.textSelectionLayer_.showSelection([a],c,b),d=!0}d||this.textSelectionLayer_.clearHighlights();this.dispose()};ocean.viewport.SelectionBox.getScaledRect_=function(a,b){return new goog.math.Rect(a.left*b,a.top*b,a.width*b,a.height*b)}; ocean.viewport.SelectionBox.getRoundedRect_=function(a){return new goog.math.Rect(Math.round(a.left),Math.round(a.top),Math.round(a.width),Math.round(a.height))};ocean.viewport.SelectionBox.prototype.updateSelectionBox_=function(a){goog.style.setStyle(this.rectangleDiv_,{border:"2px dashed #99AAEE",position:"absolute"});var b=a.right-a.left,c=a.bottom-a.top;goog.style.setPosition(this.rectangleDiv_,a.left,a.top);goog.style.setSize(this.rectangleDiv_,b,c);this.selectionBox_=a}; ocean.viewport.SelectionBox.getPageOffset=function(a,b){return goog.math.Coordinate.difference(new goog.math.Coordinate(b.clientX,b.clientY),goog.style.getPageOffset(a))};ocean.viewport.SelectionBox.prototype.disposeInternal=function(){ocean.viewport.SelectionBox.superClass_.disposeInternal.call(this);goog.dom.removeNode(this.rectangleDiv_)};var module$contents$ocean$viewport$SelectionLayer_SelectionLayer=function(a,b){module$contents$ocean$EventManager_EventManager.call(this);this.textSelectionLayer_=a;this.viewport_=b};$jscomp.inherits(module$contents$ocean$viewport$SelectionLayer_SelectionLayer,module$contents$ocean$viewport$BaseLayer_BaseLayer); module$contents$ocean$viewport$SelectionLayer_SelectionLayer.prototype.initialize=function(a){module$contents$ocean$viewport$BaseLayer_BaseLayer.prototype.initialize.call(this,a);a=this.overlayDiv_;var b=goog.dom.createElement("div");ocean.style.clearExternalStyles(b,!0);goog.dom.appendChild(a,b);goog.dom.classlist.set(b,module$contents$ocean$viewport$SelectionLayer_SelectionLayer.SELECTION_LAYER_CLASS_);goog.style.setSize(a,this.getPageDisplay().getSize());goog.style.setSize(b,this.getPageDisplay().getSize()); this.getHandler().listen(b,goog.events.EventType.CLICK,this.handleClick_);this.getHandler().listen(b,goog.events.EventType.MOUSEDOWN,this.handleMouseDown_)}; module$contents$ocean$viewport$SelectionLayer_SelectionLayer.prototype.handleMouseDown_=function(a){if(module$contents$ocean$viewport$SelectionLayer_SelectionLayer.selectionEnabled){this.stopPropagation_(a);this.selectionBox_&&this.selectionBox_.dispose();var b=this.getPageDisplay().getDiv();a=ocean.viewport.SelectionBox.getPageOffset(b,a);this.selectionBox_=new ocean.viewport.SelectionBox(this.textSelectionLayer_,b,this.overlayDiv_,this.getPageDisplay().getPageInfo(),a);this.mouseMoveListener_=goog.events.listen(goog.dom.getDocument().body, goog.events.EventType.MOUSEMOVE,goog.bind(this.handleMouseMove_,this));goog.events.listenOnce(this.selectionBox_,[ocean.viewport.SelectionBox.EventType.ENDSIZE,module$contents$ocean$EventManager_EventManager.EventType.DISPOSE],goog.bind(this.endScroll_,this))}};module$contents$ocean$viewport$SelectionLayer_SelectionLayer.prototype.handleClick_=function(a){module$contents$ocean$viewport$SelectionLayer_SelectionLayer.selectionEnabled&&this.stopPropagation_(a)}; module$contents$ocean$viewport$SelectionLayer_SelectionLayer.prototype.handleMouseMove_=function(a){if(this.selectionBox_&&!this.selectionBox_.isDisposed()){var b=new goog.math.Coordinate(a.clientX,a.clientY),c=goog.style.getBounds(this.viewport_.viewportDiv_).toBox();if(c.contains(b)){var d=new goog.math.Coordinate(0,0);a=[[c.top-a.clientY,0,-1],[c.bottom-a.clientY,0,1],[c.left-a.clientX,-1,0],[c.right-a.clientX,1,0]];module$contents$goog$array_forEach(a,function(e){var f=Math.abs(e[0]);f<40&&(d.x= e[1]||d.x,d.y=e[2]||d.y)});this.scrollTimer_||(this.scrollTimer_=new goog.Timer(100),this.getHandler().listen(this.scrollTimer_,goog.Timer.TICK,this.scroll_));this.scrollCoord_=d;d.x||d.y?this.scrollTimer_.start():this.scrollTimer_.stop()}}};module$contents$ocean$viewport$SelectionLayer_SelectionLayer.prototype.scroll_=function(){var a=this.scrollCoord_;this.viewport_.moveBy(new goog.math.Coordinate(a.x*module$contents$ocean$viewport$SelectionLayer_SelectionLayer.SCROLL_INCREMENT_,a.y*module$contents$ocean$viewport$SelectionLayer_SelectionLayer.SCROLL_INCREMENT_))}; module$contents$ocean$viewport$SelectionLayer_SelectionLayer.prototype.endScroll_=function(){goog.events.unlistenByKey(this.mouseMoveListener_);module$contents$goog$dispose_dispose(this.scrollTimer_);this.scrollTimer_=null};module$contents$ocean$viewport$SelectionLayer_SelectionLayer.prototype.stopPropagation_=function(a){a.stopPropagation()}; module$contents$ocean$viewport$SelectionLayer_SelectionLayer.setSelectionEnabled=function(a){module$contents$ocean$viewport$SelectionLayer_SelectionLayer.selectionEnabled=a};module$contents$ocean$viewport$SelectionLayer_SelectionLayer.SCROLL_INCREMENT_=15;module$contents$ocean$viewport$SelectionLayer_SelectionLayer.VIEWPORT_SELECTION_CLASS="selection-mode";module$contents$ocean$viewport$SelectionLayer_SelectionLayer.SELECTION_LAYER_CLASS_="selection-layer";ocean.viewport.SelectionLayer=module$contents$ocean$viewport$SelectionLayer_SelectionLayer;var module$contents$ocean$entitypage$Snackbar_Snackbar=function(a){this.message_=a;this.isVisible_=!1;this.snackbarElement_=this.createSnackbar_()};module$contents$ocean$entitypage$Snackbar_Snackbar.prototype.show=function(){this.isVisible_?(this.hideSnackbar_(),goog.Timer.callOnce(goog.bind(this.showSnackbar_,this),500)):this.showSnackbar_();goog.Timer.callOnce(goog.bind(this.hideSnackbar_,this),6E3)}; module$contents$ocean$entitypage$Snackbar_Snackbar.prototype.showSnackbar_=function(){goog.style.setStyle(this.snackbarElement_,"bottom","0");this.isVisible_=!0};module$contents$ocean$entitypage$Snackbar_Snackbar.prototype.hideSnackbar_=function(){goog.style.setStyle(this.snackbarElement_,"bottom","-48px");this.isVisible_=!1}; module$contents$ocean$entitypage$Snackbar_Snackbar.prototype.createSnackbar_=function(){var a=goog.dom.createDom(goog.dom.TagName.DIV,"entity-page-snackbar"),b=goog.dom.createDom(goog.dom.TagName.SPAN,"entity-page-snackbar-text");goog.dom.setTextContent(b,this.message_);goog.dom.appendChild(a,b);goog.a11y.aria.setState(a,goog.a11y.aria.State.HIDDEN,!0);goog.dom.appendChild(document.body,a);return a};ocean.entitypage.Snackbar=module$contents$ocean$entitypage$Snackbar_Snackbar;ocean.entitypage.CopyToClipboardButton=function(a){this.inputField_=a;this.snackbar_=new module$contents$ocean$entitypage$Snackbar_Snackbar(ocean.entitypage.CopyToClipboardButton.MSG_SELECTION_COPIED_TO_CLIPBOARD_);this.button_=this.create_()};ocean.entitypage.CopyToClipboardButton.prototype.getElement=function(){return this.button_}; ocean.entitypage.CopyToClipboardButton.prototype.create_=function(){var a=this,b=goog.dom.createElement(goog.dom.TagName.DIV);goog.dom.classlist.addAll(b,["entity-page-copy-button","entity-page-action-chip"]);var c=goog.dom.createElement(goog.dom.TagName.SPAN);goog.dom.classlist.add(c,"entity-page-action-chip-icon");var d=goog.dom.createElement(goog.dom.TagName.SPAN);goog.dom.classlist.add(d,"entity-page-action-chip-label");goog.dom.setTextContent(d,"Copy");b.appendChild(c);b.appendChild(d);goog.events.listen(b, goog.events.EventType.CLICK,goog.bind(this.copyContentsToClipboard_,this));goog.a11y.aria.setRole(b,goog.a11y.aria.Role.BUTTON);goog.dom.setFocusableTabIndex(b,!0);goog.events.listen(b,goog.events.EventType.KEYDOWN,function(e){e.keyCode!=goog.events.KeyCodes.SPACE&&e.keyCode!=goog.events.KeyCodes.ENTER||a.copyContentsToClipboard_.call(a)});return b}; ocean.entitypage.CopyToClipboardButton.prototype.copyContentsToClipboard_=function(){this.inputField_.focus();this.inputField_.select();document.execCommand("copy");this.snackbar_.show()};ocean.entitypage.CopyToClipboardButton.MSG_SELECTION_COPIED_TO_CLIPBOARD_="Selection copied to clipboard";goog.positioning={};goog.positioning.AbstractPosition=function(){};goog.positioning.AbstractPosition.prototype.reposition=function(){};goog.positioning.CornerBit={BOTTOM:1,CENTER:2,RIGHT:4,FLIP_RTL:8}; goog.positioning.Corner={TOP_LEFT:0,TOP_RIGHT:goog.positioning.CornerBit.RIGHT,BOTTOM_LEFT:goog.positioning.CornerBit.BOTTOM,BOTTOM_RIGHT:goog.positioning.CornerBit.BOTTOM|goog.positioning.CornerBit.RIGHT,TOP_START:goog.positioning.CornerBit.FLIP_RTL,TOP_END:goog.positioning.CornerBit.FLIP_RTL|goog.positioning.CornerBit.RIGHT,BOTTOM_START:goog.positioning.CornerBit.BOTTOM|goog.positioning.CornerBit.FLIP_RTL,BOTTOM_END:goog.positioning.CornerBit.BOTTOM|goog.positioning.CornerBit.RIGHT|goog.positioning.CornerBit.FLIP_RTL, TOP_CENTER:goog.positioning.CornerBit.CENTER,BOTTOM_CENTER:goog.positioning.CornerBit.BOTTOM|goog.positioning.CornerBit.CENTER};goog.positioning.Overflow={IGNORE:0,ADJUST_X:1,FAIL_X:2,ADJUST_Y:4,FAIL_Y:8,RESIZE_WIDTH:16,RESIZE_HEIGHT:32,ADJUST_X_EXCEPT_OFFSCREEN:65,ADJUST_Y_EXCEPT_OFFSCREEN:132}; goog.positioning.OverflowStatus={NONE:0,ADJUSTED_X:1,ADJUSTED_Y:2,WIDTH_ADJUSTED:4,HEIGHT_ADJUSTED:8,FAILED_LEFT:16,FAILED_RIGHT:32,FAILED_TOP:64,FAILED_BOTTOM:128,FAILED_OUTSIDE_VIEWPORT:256,FAILED:496,FAILED_HORIZONTAL:48,FAILED_VERTICAL:192}; goog.positioning.positionAtAnchor=function(a,b,c,d,e,f,g,h,k){goog.asserts.assert(c);var l=goog.positioning.getOffsetParentPageOffset(c),m=goog.positioning.getVisiblePart_(a);goog.style.translateRectForAnotherFrame(m,goog.dom.getDomHelper(a),goog.dom.getDomHelper(c));a=goog.positioning.getEffectiveCorner(a,b);b=m.left;a&goog.positioning.CornerBit.RIGHT?b+=m.width:a&goog.positioning.CornerBit.CENTER&&(b+=m.width/2);m=new goog.math.Coordinate(b,m.top+(a&goog.positioning.CornerBit.BOTTOM?m.height:0)); m=goog.math.Coordinate.difference(m,l);e&&(m.x+=(a&goog.positioning.CornerBit.RIGHT?-1:1)*e.x,m.y+=(a&goog.positioning.CornerBit.BOTTOM?-1:1)*e.y);if(g)if(k)var n=k;else if(n=goog.style.getVisibleRectForElement(c))n.top-=l.y,n.right-=l.x,n.bottom-=l.y,n.left-=l.x;return goog.positioning.positionAtCoordinate(m,c,d,f,n,g,h)}; goog.positioning.getOffsetParentPageOffset=function(a){if(a=a.offsetParent){var b=a.tagName==goog.dom.TagName.HTML||a.tagName==goog.dom.TagName.BODY;if(!b||goog.style.getComputedPosition(a)!="static"){var c=goog.style.getPageOffset(a);b||(c=goog.math.Coordinate.difference(c,new goog.math.Coordinate(goog.style.bidi.getScrollLeft(a),a.scrollTop)))}}return c||new goog.math.Coordinate}; goog.positioning.getVisiblePart_=function(a){var b=goog.style.getBounds(a);(a=goog.style.getVisibleRectForElement(a))&&b.intersection(goog.math.Rect.createFromBox(a));return b}; goog.positioning.positionAtCoordinate=function(a,b,c,d,e,f,g){a=a.clone();var h=goog.positioning.getEffectiveCorner(b,c);c=goog.style.getSize(b);g=g?g.clone():c.clone();a=goog.positioning.getPositionAtCoordinate(a,g,h,d,e,f);if(a.status&goog.positioning.OverflowStatus.FAILED)return a.status;goog.style.setPosition(b,a.rect.getTopLeft());g=a.rect.getSize();goog.math.Size.equals(c,g)||goog.style.setBorderBoxSize(b,g);return a.status}; goog.positioning.getPositionAtCoordinate=function(a,b,c,d,e,f){a=a.clone();b=b.clone();var g=goog.positioning.OverflowStatus.NONE;if(d||c!=goog.positioning.Corner.TOP_LEFT)c&goog.positioning.CornerBit.RIGHT?a.x-=b.width+(d?d.right:0):c&goog.positioning.CornerBit.CENTER?a.x-=b.width/2:d&&(a.x+=d.left),c&goog.positioning.CornerBit.BOTTOM?a.y-=b.height+(d?d.bottom:0):d&&(a.y+=d.top);f&&(g=e?goog.positioning.adjustForViewport_(a,b,e,f):goog.positioning.OverflowStatus.FAILED_OUTSIDE_VIEWPORT);c=new goog.math.Rect(0, 0,0,0);c.left=a.x;c.top=a.y;c.width=b.width;c.height=b.height;return{rect:c,status:g}}; goog.positioning.adjustForViewport_=function(a,b,c,d){var e=goog.positioning.OverflowStatus.NONE,f=goog.positioning.Overflow.ADJUST_X_EXCEPT_OFFSCREEN,g=goog.positioning.Overflow.ADJUST_Y_EXCEPT_OFFSCREEN;(d&f)==f&&(a.x<c.left||a.x>=c.right)&&(d&=~goog.positioning.Overflow.ADJUST_X);(d&g)==g&&(a.y<c.top||a.y>=c.bottom)&&(d&=~goog.positioning.Overflow.ADJUST_Y);a.x<c.left&&d&goog.positioning.Overflow.ADJUST_X&&(a.x=c.left,e|=goog.positioning.OverflowStatus.ADJUSTED_X);d&goog.positioning.Overflow.RESIZE_WIDTH&& (f=a.x,a.x<c.left&&(a.x=c.left,e|=goog.positioning.OverflowStatus.WIDTH_ADJUSTED),a.x+b.width>c.right&&(b.width=Math.min(c.right-a.x,f+b.width-c.left),b.width=Math.max(b.width,0),e|=goog.positioning.OverflowStatus.WIDTH_ADJUSTED));a.x+b.width>c.right&&d&goog.positioning.Overflow.ADJUST_X&&(a.x=Math.max(c.right-b.width,c.left),e|=goog.positioning.OverflowStatus.ADJUSTED_X);d&goog.positioning.Overflow.FAIL_X&&(e|=(a.x<c.left?goog.positioning.OverflowStatus.FAILED_LEFT:0)|(a.x+b.width>c.right?goog.positioning.OverflowStatus.FAILED_RIGHT: 0));a.y<c.top&&d&goog.positioning.Overflow.ADJUST_Y&&(a.y=c.top,e|=goog.positioning.OverflowStatus.ADJUSTED_Y);d&goog.positioning.Overflow.RESIZE_HEIGHT&&(f=a.y,a.y<c.top&&(a.y=c.top,e|=goog.positioning.OverflowStatus.HEIGHT_ADJUSTED),a.y+b.height>c.bottom&&(b.height=Math.min(c.bottom-a.y,f+b.height-c.top),b.height=Math.max(b.height,0),e|=goog.positioning.OverflowStatus.HEIGHT_ADJUSTED));a.y+b.height>c.bottom&&d&goog.positioning.Overflow.ADJUST_Y&&(a.y=Math.max(c.bottom-b.height,c.top),e|=goog.positioning.OverflowStatus.ADJUSTED_Y); d&goog.positioning.Overflow.FAIL_Y&&(e|=(a.y<c.top?goog.positioning.OverflowStatus.FAILED_TOP:0)|(a.y+b.height>c.bottom?goog.positioning.OverflowStatus.FAILED_BOTTOM:0));return e};goog.positioning.getEffectiveCorner=function(a,b){return(b&goog.positioning.CornerBit.FLIP_RTL&&goog.style.isRightToLeft(a)?b^goog.positioning.CornerBit.RIGHT:b)&~goog.positioning.CornerBit.FLIP_RTL};goog.positioning.flipCornerHorizontal=function(a){return a^goog.positioning.CornerBit.RIGHT}; goog.positioning.flipCornerVertical=function(a){return a^goog.positioning.CornerBit.BOTTOM};goog.positioning.flipCorner=function(a){return a^goog.positioning.CornerBit.BOTTOM^goog.positioning.CornerBit.RIGHT};goog.ui.Popup=function(a,b){this.popupCorner_=goog.positioning.Corner.TOP_START;this.position_=b||void 0;goog.ui.PopupBase.call(this,a)};goog.inherits(goog.ui.Popup,goog.ui.PopupBase);goog.ui.Popup.prototype.setPinnedCorner=function(a){this.popupCorner_=a;this.isVisible()&&this.reposition()};goog.ui.Popup.prototype.getPosition=function(){return this.position_||null};goog.ui.Popup.prototype.setPosition=function(a){this.position_=a||void 0;this.isVisible()&&this.reposition()}; goog.ui.Popup.prototype.setMargin=function(a,b,c,d){this.margin_=a==null||a instanceof goog.math.Box?a:new goog.math.Box(a,b,c,d);this.isVisible()&&this.reposition()};goog.ui.Popup.prototype.reposition=function(){if(this.position_){var a=!this.isVisible()&&this.getType()!=goog.ui.PopupBase.Type.MOVE_OFFSCREEN,b=this.getElement();a&&(b.style.visibility="hidden",goog.style.setElementShown(b,!0));this.position_.reposition(b,this.popupCorner_,this.margin_);a&&goog.style.setElementShown(b,!1)}};ocean.viewport.SelectionPopup=function(a){goog.ui.Popup.call(this,a);this.setAutoHide(!1);this.eventHandler_=new goog.events.EventHandler;this.useEntityPageStyling_=ocean.entitypage.Util.isSourceEntityPage();goog.dom.classlist.add(a,"viewport-selection-popup");ocean.viewport.SelectionPopup.instance_&&ocean.viewport.SelectionPopup.instance_.dispose();ocean.viewport.SelectionPopup.instance_=this};$jscomp.inherits(ocean.viewport.SelectionPopup,goog.ui.Popup); ocean.viewport.SelectionPopup.prototype.showLoading=function(){var a=goog.dom.createElement(goog.dom.TagName.DIV);goog.dom.setTextContent(a,"Loading...");goog.dom.classlist.add(a,"selection-popup-loading-msg");goog.dom.appendChild(this.getElement(),a)}; ocean.viewport.SelectionPopup.prototype.showSelection=function(a,b,c){goog.dom.removeChildren(this.getElement());var d=this.getElement(),e=goog.dom.createElement(goog.dom.TagName.IMG);e.src="/googlebooks/images/material/close_black_24dp.png";goog.dom.classlist.add(e,"selection-popup-close");goog.dom.appendChild(d,e);this.eventHandler_.listenOnce(e,goog.events.EventType.CLICK,goog.bind(this.close_,this));e=goog.dom.createDom(goog.dom.TagName.DIV,{},"Share this clip");goog.dom.classlist.add(e,"selection-popup-title"); goog.dom.appendChild(d,e);this.useEntityPageStyling_&&(e=goog.dom.createDom(goog.dom.TagName.TABLE,{id:"selection-popup-table"}),goog.dom.appendChild(d,e));c&&(this.addSelectionInput_("Selection text",c),this.addTranslationLink_(c));a&&this.addSelectionInput_("Image",a);b&&this.addSelectionInput_("Embed",b)};ocean.viewport.SelectionPopup.prototype.close_=function(){this.dispatchEvent(ocean.viewport.SelectionPopup.EventType.CLOSE);this.dispose()}; ocean.viewport.SelectionPopup.prototype.addSelectionInput_=function(a,b){var c=this.useEntityPageStyling_?goog.dom.getElement("selection-popup-table"):this.getElement(),d=this.useEntityPageStyling_?goog.dom.createElement(goog.dom.TagName.TR):goog.dom.createElement("div");goog.dom.classlist.add(d,"selection-popup-select-container");goog.dom.appendChild(c,d);c=this.useEntityPageStyling_?goog.dom.createElement(goog.dom.TagName.TD):goog.dom.createElement("div");goog.dom.classlist.add(c,"selection-popup-select-label"); goog.dom.appendChild(d,c);goog.dom.appendChild(c,goog.dom.createTextNode(a));c=this.useEntityPageStyling_?goog.dom.createElement(goog.dom.TagName.TD):goog.dom.createElement("div");goog.dom.appendChild(d,c);a=goog.dom.createElement("input");a.value=b;goog.dom.classlist.add(a,"viewport-input");goog.dom.appendChild(c,a);goog.style.setUnselectable(a,!1);this.useEntityPageStyling_&&(b=goog.dom.createElement(goog.dom.TagName.TD),goog.dom.appendChild(d,b),d=(new ocean.entitypage.CopyToClipboardButton(a)).getElement(), goog.dom.appendChild(b,d));this.eventHandler_.listen(a,goog.events.EventType.MOUSEDOWN,ocean.viewport.SelectionPopup.stopEventPropagation_)}; ocean.viewport.SelectionPopup.prototype.addTranslationLink_=function(a){var b=goog.dom.createElement(goog.dom.TagName.DIV);goog.dom.classlist.add(b,"selection-popup-translate-container");if(this.useEntityPageStyling_){var c=goog.dom.getFirstElementChild(goog.dom.getElement("selection-popup-table")),d=goog.dom.createElement(goog.dom.TagName.TD);goog.dom.appendChild(c,d);goog.dom.appendChild(d,b)}else goog.dom.appendChild(this.getElement(),b);c=new goog.Uri(ocean.viewport.SelectionPopup.GOOGLE_TRANSLATE_URL_); c.setParameterValue("text",a);c.setParameterValue("sl","auto");c.setParameterValue("tl","auto");a=goog.dom.createElement(goog.dom.TagName.A);a.href=c.toString();a.target="_blank";this.useEntityPageStyling_&&(c=goog.dom.createElement(goog.dom.TagName.SPAN),goog.dom.classlist.addAll(c,["selection-popup-translate-icon","entity-page-action-chip-icon"]),goog.dom.appendChild(a,c));c=goog.dom.createElement(goog.dom.TagName.SPAN);goog.dom.setTextContent(c,"Translate");goog.dom.classlist.add(c,"entity-page-action-chip-label"); goog.dom.appendChild(a,c);c=goog.dom.createElement(goog.dom.TagName.SPAN);goog.dom.setTextContent(c,"\u00bb");goog.dom.classlist.add(c,"selection-popup-translate-arrow");goog.dom.appendChild(a,c);goog.dom.classlist.add(a,"selection-popup-translate-link");goog.dom.classlist.add(a,"entity-page-action-chip");goog.dom.appendChild(b,a)};ocean.viewport.SelectionPopup.stopEventPropagation_=function(a){a.stopPropagation()}; ocean.viewport.SelectionPopup.prototype.disposeInternal=function(){goog.dom.removeNode(this.getElement());goog.ui.Popup.prototype.disposeInternal.call(this);this.eventHandler_.dispose()};ocean.viewport.SelectionPopup.EventType={CLOSE:"close"};ocean.viewport.SelectionPopup.instance_=null;ocean.viewport.SelectionPopup.GOOGLE_TRANSLATE_URL_="https://translate.google.com/translate_t";goog.positioning.ClientPosition=function(a,b){this.coordinate=a instanceof goog.math.Coordinate?a:new goog.math.Coordinate(a,b)};goog.inherits(goog.positioning.ClientPosition,goog.positioning.AbstractPosition); goog.positioning.ClientPosition.prototype.reposition=function(a,b,c,d){goog.asserts.assert(a);var e=goog.style.getViewportPageOffset(goog.dom.getOwnerDocument(a)),f=this.coordinate.x+e.x;e=this.coordinate.y+e.y;var g=goog.positioning.getOffsetParentPageOffset(a);f-=g.x;e-=g.y;goog.positioning.positionAtCoordinate(new goog.math.Coordinate(f,e),a,b,c,null,null,d)};goog.positioning.ViewportClientPosition=function(a,b){goog.positioning.ClientPosition.call(this,a,b)};goog.inherits(goog.positioning.ViewportClientPosition,goog.positioning.ClientPosition);goog.positioning.ViewportClientPosition.prototype.lastResortOverflow_=0;goog.positioning.ViewportClientPosition.prototype.setLastResortOverflow=function(a){this.lastResortOverflow_=a}; goog.positioning.ViewportClientPosition.prototype.reposition=function(a,b,c,d){var e=goog.style.getClientViewportElement(a);e=goog.style.getVisibleRectForElement(e);var f=goog.dom.getDomHelper(a).getDocumentScrollElement();f=new goog.math.Coordinate(this.coordinate.x+f.scrollLeft,this.coordinate.y+f.scrollTop);var g=goog.positioning.Overflow.FAIL_X|goog.positioning.Overflow.FAIL_Y,h=b,k=goog.positioning.positionAtCoordinate(f,a,h,c,e,g,d);if((k&goog.positioning.OverflowStatus.FAILED)!=0){if(k&goog.positioning.OverflowStatus.FAILED_LEFT|| k&goog.positioning.OverflowStatus.FAILED_RIGHT)h=goog.positioning.flipCornerHorizontal(h);if(k&goog.positioning.OverflowStatus.FAILED_TOP||k&goog.positioning.OverflowStatus.FAILED_BOTTOM)h=goog.positioning.flipCornerVertical(h);k=goog.positioning.positionAtCoordinate(f,a,h,c,e,g,d);(k&goog.positioning.OverflowStatus.FAILED)!=0&&goog.positioning.positionAtCoordinate(f,a,b,c,e,this.lastResortOverflow_,d)}};var module$contents$ocean$viewport$TextSelectionLayer_TextSelectionLayer=function(a){ocean.viewport.HighlightLayer.call(this,"#4a95d6");this.viewportDiv_=a};$jscomp.inherits(module$contents$ocean$viewport$TextSelectionLayer_TextSelectionLayer,ocean.viewport.HighlightLayer); module$contents$ocean$viewport$TextSelectionLayer_TextSelectionLayer.prototype.initialize=function(a){ocean.viewport.HighlightLayer.prototype.initialize.call(this,a);goog.style.setStyle(this.overlayDiv_,{cursor:"pointer"});this.getHandler().listen(this.overlayDiv_,"mousedown",module$contents$ocean$viewport$TextSelectionLayer_TextSelectionLayer.stopEventPropagation_)};module$contents$ocean$viewport$TextSelectionLayer_TextSelectionLayer.stopEventPropagation_=function(a){a.stopPropagation()}; module$contents$ocean$viewport$TextSelectionLayer_TextSelectionLayer.prototype.showSelection=function(a,b,c){this.clearHighlights();this.drawHighlightRects(a);this.closeListener_&&goog.events.unlistenByKey(this.closeListener_);this.selectionPopup_&&this.selectionPopup_.dispose();a=goog.dom.createElement("div");goog.dom.appendChild(goog.dom.getDocument().body,a);var d=module$contents$ocean$geom_getBoundingRect(this.highlightRects_);if(d){var e=goog.style.getPageOffset(this.overlayDiv_);a=new ocean.viewport.SelectionPopup(a); if(b&&c){var f=this.getPageInfo(),g=f.getSrc();if(g){var h=new goog.Uri(g);c=module$contents$ocean$viewport$TextSelectionLayer_TextSelectionLayer.getRectParamString_(c);h.setParameterValue("ci",c);h.setParameterValue("edge",0);h=h.toString();f=new goog.Uri(f.getPageUrl());f.setParameterValue("ci",c);f.setParameterValue("source","bookclip");var k=goog.string.subs('<a href="%s"><img src="%s"/></a>',f.toString(),h)}a.showSelection(h,k,b)}else a.showLoading();a.setPinnedCorner(goog.positioning.Corner.TOP_RIGHT); this.selectionPopup_=a;b=e.x+d.left+d.width;d=e.y+d.top+d.height;e=goog.style.getSize(a.getElement()).width;b-e<24&&(b=e+24);b=new goog.math.Coordinate(b,d);b=new goog.positioning.ViewportClientPosition(b);goog.Timer.callOnce(goog.partial(module$contents$ocean$viewport$TextSelectionLayer_TextSelectionLayer.popupFollowup_,a,b));this.closeListener_=goog.events.listenOnce(a,ocean.viewport.SelectionPopup.EventType.CLOSE,goog.bind(this.clearHighlights,this))}}; module$contents$ocean$viewport$TextSelectionLayer_TextSelectionLayer.popupFollowup_=function(a,b){a.isDisposed()||(a.setPosition(b),a.setVisible(!0))};module$contents$ocean$viewport$TextSelectionLayer_TextSelectionLayer.getRectParamString_=function(a){return[a.left,a.top,a.width,a.height].join()};module$contents$ocean$viewport$TextSelectionLayer_TextSelectionLayer.prototype.clearHighlights=function(){ocean.viewport.HighlightLayer.prototype.clearHighlights.call(this);this.selectionPopup_&&this.selectionPopup_.dispose()}; module$contents$ocean$viewport$TextSelectionLayer_TextSelectionLayer.prototype.disposeInternal=function(){ocean.viewport.HighlightLayer.prototype.disposeInternal.call(this);this.selectionPopup_&&this.selectionPopup_.dispose();this.closeListener_&&goog.events.unlistenByKey(this.closeListener_)};ocean.viewport.TextSelectionLayer=module$contents$ocean$viewport$TextSelectionLayer_TextSelectionLayer;ocean.viewport.Page={};function module$contents$ocean$viewport$Page_getPageDisplay(a,b,c){var d=a.volumeInfo_;return d.tilingParams_?new ocean.viewport.PageTileDisplay(a,b,c):new ocean.viewport.PageImageDisplay(a,b,c)} function module$contents$ocean$viewport$Page_getDecoratedPageDisplay(a,b,c){b=module$contents$ocean$viewport$Page_getPageDisplay(a,b,c);b instanceof ocean.viewport.PageImageDisplay?module$contents$ocean$viewport$Page_decoratePageImageDisplay(a,b):b instanceof ocean.viewport.PageTileDisplay&&module$contents$ocean$viewport$Page_decoratePageTileDisplay(a,b);return b} function module$contents$ocean$viewport$Page_decoratePageImageDisplay(a,b){if(b instanceof ocean.viewport.PageImageDisplay){b.addLayer(new ocean.viewport.SearchLayer(a.searchState_));b.addLayer(new module$contents$ocean$viewport$ClipIndicatorLayer_ClipIndicatorLayer);var c=new module$contents$ocean$viewport$TextSelectionLayer_TextSelectionLayer(a.viewportDiv_),d=new module$contents$ocean$viewport$SelectionLayer_SelectionLayer(c,a.getViewport());b.addLayer(d);b.addLayer(c);b.addLayer(new module$contents$ocean$viewport$LinkLayer_LinkLayer(a))}} function module$contents$ocean$viewport$Page_decoratePageTileDisplay(a,b){b instanceof ocean.viewport.PageTileDisplay&&b.addLayer(new ocean.viewport.SearchLayer(a.searchState_))}ocean.viewport.Page.decoratePageImageDisplay=module$contents$ocean$viewport$Page_decoratePageImageDisplay;ocean.viewport.Page.decoratePageTileDisplay=module$contents$ocean$viewport$Page_decoratePageTileDisplay;ocean.viewport.Page.enableSelectionLayers=!1;ocean.viewport.Page.getDecoratedPageDisplay=module$contents$ocean$viewport$Page_getDecoratedPageDisplay; ocean.viewport.Page.getPageDisplay=module$contents$ocean$viewport$Page_getPageDisplay;var module$contents$ocean$books$TwoPage_TwoPage=function(a,b){module$contents$ocean$EventManager_EventManager.call(this);this.viewer_=a;this.calculatePageDimensions_(b);this.pageDiv_=goog.dom.createElement("div");goog.style.setStyle(this.pageDiv_,{position:"absolute",backgroundColor:"white",top:0,left:0});this.handlers_=[];goog.dom.appendChild(a.getViewport().getCanvasDiv(),this.pageDiv_);this.leftFrameDiv_=goog.dom.createElement("div");this.rightFrameDiv_=goog.dom.createElement("div");this.handlers_.push(goog.events.listen(this.leftFrameDiv_, goog.events.EventType.DBLCLICK,goog.bind(this.handleLeftPageDblClick_,this)));a={overflow:"hidden",backgroundColor:"#fcfcfc",position:"absolute",border:"1px solid #ccc"};goog.style.setStyle(this.leftFrameDiv_,a);goog.style.setStyle(this.rightFrameDiv_,a);goog.dom.appendChild(this.pageDiv_,this.leftFrameDiv_);goog.dom.appendChild(this.pageDiv_,this.rightFrameDiv_);this.leftImageDiv_=goog.dom.createElement("div");this.rightImageDiv_=goog.dom.createElement("div");goog.dom.appendChild(this.leftFrameDiv_, this.leftImageDiv_);goog.dom.appendChild(this.rightFrameDiv_,this.rightImageDiv_);this.createNewPageDisplays_()};$jscomp.inherits(module$contents$ocean$books$TwoPage_TwoPage,module$contents$ocean$viewport$Drawable_Drawable); module$contents$ocean$books$TwoPage_TwoPage.prototype.createNewPageDisplays_=function(){this.leftPageDisplay_&&this.leftPageDisplay_.cleanup();this.rightPageDisplay_&&this.rightPageDisplay_.cleanup();goog.dom.removeChildren(this.leftImageDiv_);goog.dom.removeChildren(this.rightImageDiv_);goog.style.setBorderBoxSize(this.leftFrameDiv_,this.imageSize_);goog.style.setBorderBoxSize(this.rightFrameDiv_,this.imageSize_);this.leftPageDisplay_=module$contents$ocean$viewport$Page_getPageDisplay(this.viewer_, new ocean.viewport.PageImage(this.leftPageInfo_,this.imageSize_),this.leftImageDiv_);module$contents$ocean$viewport$Page_decoratePageImageDisplay(this.viewer_,this.leftPageDisplay_);this.leftShadowLayer_=new module$exports$ocean$books$ShadowLayer(!0);this.leftPageDisplay_.addLayer(this.leftShadowLayer_);this.rightPageDisplay_=module$contents$ocean$viewport$Page_getPageDisplay(this.viewer_,new ocean.viewport.PageImage(this.rightPageInfo_,this.imageSize_),this.rightImageDiv_);this.rightShadowLayer_= new module$exports$ocean$books$ShadowLayer(!1);module$contents$ocean$viewport$Page_decoratePageImageDisplay(this.viewer_,this.rightPageDisplay_);this.rightPageDisplay_.addLayer(this.rightShadowLayer_)};module$contents$ocean$books$TwoPage_TwoPage.prototype.setPosition=function(a){a.x<0&&(a.x=0);goog.style.setPosition(this.pageDiv_,a)};module$contents$ocean$books$TwoPage_TwoPage.prototype.handleLeftPageDblClick_=function(a){a.preventDefault();a.stopPropagation();this.viewer_.queueCommand(ocean.viewport.Viewer.Commands.PREVIOUS)}; module$contents$ocean$books$TwoPage_TwoPage.prototype.calculatePageDimensions_=function(a){a=Math.floor(a/2);var b=Math.floor(a/this.viewer_.pageInfoSet_.defaultSize_.aspectRatio());this.imageSize_=new goog.math.Size(a,b)};module$contents$ocean$books$TwoPage_TwoPage.prototype.setVisible=function(a){goog.style.setStyle(this.pageDiv_,{display:a?"":"none"})}; module$contents$ocean$books$TwoPage_TwoPage.prototype.draw=function(){goog.style.setStyle(this.leftFrameDiv_,{left:0,top:0});goog.style.setStyle(this.rightFrameDiv_,{left:this.imageSize_.width+"px",top:0})};module$contents$ocean$books$TwoPage_TwoPage.prototype.getPageInfos=function(){return module$contents$goog$array_filter([this.leftPageInfo_,this.rightPageInfo_],function(a){return!!a})}; module$contents$ocean$books$TwoPage_TwoPage.prototype.updateVisibility_=function(a,b){var c=a?"":"hidden",d=b?"":"hidden";goog.style.setStyle(this.leftFrameDiv_,"visibility",c);goog.style.setStyle(this.rightFrameDiv_,"visibility",d);a=a&&b;this.leftShadowLayer_.setVisible(a);this.rightShadowLayer_.setVisible(a)}; module$contents$ocean$books$TwoPage_TwoPage.prototype.cleanup=function(){this.leftPageDisplay_.cleanup();this.rightPageDisplay_.cleanup();for(var a;a=this.handlers_.pop();)goog.events.unlistenByKey(a);this.pageDiv_.parentNode&&goog.dom.removeNode(this.pageDiv_)}; module$contents$ocean$books$TwoPage_TwoPage.prototype.setPageInfos=function(a,b){var c=!0,d=!0;this.leftPageInfo_=a;this.rightPageInfo_=b;this.createNewPageDisplays_();if(a){if(a.isBackPage()||b==void 0)d=!1}else this.leftPageDisplay_.showBlankPage();if(b){if(b.isFrontPage()||a==void 0)c=!1}else this.rightPageDisplay_.showBlankPage();this.updateVisibility_(c,d)};module$contents$ocean$books$TwoPage_TwoPage.getWidthForImageWidth=function(a){return a*2}; module$contents$ocean$books$TwoPage_TwoPage.getImageWidthForPageWidth=function(a){return Math.floor(a/2)};module$contents$ocean$books$TwoPage_TwoPage.getHeightForImageHeight=function(a){return a};ocean.books.TwoPage=module$contents$ocean$books$TwoPage_TwoPage;var module$contents$ocean$books$LayoutTwoPageRenderer_LayoutTwoPageRenderer=function(a){this.viewer_=a};$jscomp.inherits(module$contents$ocean$books$LayoutTwoPageRenderer_LayoutTwoPageRenderer,module$contents$ocean$viewport$LayoutItemRenderer_LayoutItemRenderer); module$contents$ocean$books$LayoutTwoPageRenderer_LayoutTwoPageRenderer.prototype.render=function(a){var b=new module$contents$ocean$books$TwoPage_TwoPage(this.viewer_,a.getSize().width);b.setPosition(a.getPosition());b.draw();b.setVisible(!0);return this.twoPage_=b};ocean.books.LayoutTwoPageRenderer=module$contents$ocean$books$LayoutTwoPageRenderer_LayoutTwoPageRenderer;goog.i18n.uChar={};goog.i18n.uChar.SUPPLEMENTARY_CODE_POINT_MIN_VALUE_=65536;goog.i18n.uChar.CODE_POINT_MAX_VALUE_=1114111;goog.i18n.uChar.LEAD_SURROGATE_MIN_VALUE_=55296;goog.i18n.uChar.LEAD_SURROGATE_MAX_VALUE_=56319;goog.i18n.uChar.TRAIL_SURROGATE_MIN_VALUE_=56320;goog.i18n.uChar.TRAIL_SURROGATE_MAX_VALUE_=57343;goog.i18n.uChar.TRAIL_SURROGATE_BIT_COUNT_=10; goog.i18n.uChar.toHexString=function(a){a=goog.i18n.uChar.toCharCode(a);return a="U+"+goog.i18n.uChar.padString_(a.toString(16).toUpperCase(),4,"0")};goog.i18n.uChar.padString_=function(a,b,c){for(;a.length<b;)a=c+a;return a};goog.i18n.uChar.toCharCode=function(a){return goog.i18n.uChar.getCodePointAround(a,0)}; goog.i18n.uChar.fromCharCode=function(a){if(a==null||!(a>=0&&a<=goog.i18n.uChar.CODE_POINT_MAX_VALUE_))return null;if(goog.i18n.uChar.isSupplementaryCodePoint(a)){var b=a>>goog.i18n.uChar.TRAIL_SURROGATE_BIT_COUNT_;a&=(1<<goog.i18n.uChar.TRAIL_SURROGATE_BIT_COUNT_)-1;b+=goog.i18n.uChar.LEAD_SURROGATE_MIN_VALUE_-(goog.i18n.uChar.SUPPLEMENTARY_CODE_POINT_MIN_VALUE_>>goog.i18n.uChar.TRAIL_SURROGATE_BIT_COUNT_);a+=goog.i18n.uChar.TRAIL_SURROGATE_MIN_VALUE_;return String.fromCharCode(b)+String.fromCharCode(a)}return String.fromCharCode(a)}; goog.i18n.uChar.getCodePointAround=function(a,b){var c=a.charCodeAt(b);if(goog.i18n.uChar.isLeadSurrogateCodePoint(c)&&b+1<a.length){if(a=a.charCodeAt(b+1),goog.i18n.uChar.isTrailSurrogateCodePoint(a))return goog.i18n.uChar.buildSupplementaryCodePoint(c,a)}else if(goog.i18n.uChar.isTrailSurrogateCodePoint(c)&&b>0&&(a=a.charCodeAt(b-1),goog.i18n.uChar.isLeadSurrogateCodePoint(a)))return c=goog.i18n.uChar.buildSupplementaryCodePoint(a,c),-c;return c}; goog.i18n.uChar.charCount=function(a){return goog.i18n.uChar.isSupplementaryCodePoint(a)?2:1};goog.i18n.uChar.isSupplementaryCodePoint=function(a){return a>=goog.i18n.uChar.SUPPLEMENTARY_CODE_POINT_MIN_VALUE_&&a<=goog.i18n.uChar.CODE_POINT_MAX_VALUE_};goog.i18n.uChar.isLeadSurrogateCodePoint=function(a){return a>=goog.i18n.uChar.LEAD_SURROGATE_MIN_VALUE_&&a<=goog.i18n.uChar.LEAD_SURROGATE_MAX_VALUE_}; goog.i18n.uChar.isTrailSurrogateCodePoint=function(a){return a>=goog.i18n.uChar.TRAIL_SURROGATE_MIN_VALUE_&&a<=goog.i18n.uChar.TRAIL_SURROGATE_MAX_VALUE_}; goog.i18n.uChar.buildSupplementaryCodePoint=function(a,b){return goog.i18n.uChar.isLeadSurrogateCodePoint(a)&&goog.i18n.uChar.isTrailSurrogateCodePoint(b)?(a=(a<<goog.i18n.uChar.TRAIL_SURROGATE_BIT_COUNT_)-(goog.i18n.uChar.LEAD_SURROGATE_MIN_VALUE_<<goog.i18n.uChar.TRAIL_SURROGATE_BIT_COUNT_),b=b-goog.i18n.uChar.TRAIL_SURROGATE_MIN_VALUE_+goog.i18n.uChar.SUPPLEMENTARY_CODE_POINT_MIN_VALUE_,a+b):null};goog.structs.InversionMap=function(a,b,c){this.rangeArray=null;goog.asserts.assert(a.length==b.length,"rangeArray and valueArray must have the same length.");this.storeInversion_(a,c);this.values=b};goog.structs.InversionMap.prototype.storeInversion_=function(a,b){this.rangeArray=a;for(var c=1;c<a.length;c++)a[c]==null?a[c]=a[c-1]+1:b&&(a[c]+=a[c-1])};goog.structs.InversionMap.prototype.at=function(a){a=this.getLeast(a);return a<0?null:this.values[a]}; goog.structs.InversionMap.prototype.getLeast=function(a){for(var b=this.rangeArray,c=0,d=b.length;d-c>8;){var e=d+c>>1;b[e]<=a?c=e:d=e}for(;c<d&&!(a<b[c]);++c);return c-1};goog.i18n.GraphemeBreak={};goog.i18n.GraphemeBreak.property={OTHER:0,CONTROL:1,EXTEND:2,PREPEND:3,SPACING_MARK:4,INDIC_LETTER:5,VIRAMA:6,L:7,V:8,T:9,LV:10,LVT:11,CR:12,LF:13,REGIONAL_INDICATOR:14,ZWJ:15,E_BASE:16,GLUE_AFTER_ZWJ:17,E_MODIFIER:18,E_BASE_GAZ:19};goog.i18n.GraphemeBreak.inversions_=null; goog.i18n.GraphemeBreak.applyBreakRules_=function(a,b,c){var d=goog.i18n.GraphemeBreak.property,e=typeof a==="string"?goog.i18n.GraphemeBreak.getCodePoint_(a,a.length-1):a,f=typeof b==="string"?goog.i18n.GraphemeBreak.getCodePoint_(b,0):b;b=goog.i18n.GraphemeBreak.getBreakProp_(e);f=goog.i18n.GraphemeBreak.getBreakProp_(f);var g=typeof a==="string";if(b===d.CR&&f===d.LF)return!1;if(b===d.CONTROL||b===d.CR||b===d.LF||f===d.CONTROL||f===d.CR||f===d.LF)return!0;if(b===d.L&&(f===d.L||f===d.V||f===d.LV|| f===d.LVT)||!(b!==d.LV&&b!==d.V||f!==d.V&&f!==d.T)||(b===d.LVT||b===d.T)&&f===d.T||f===d.EXTEND||f===d.ZWJ||f===d.VIRAMA||c&&(b===d.PREPEND||f===d.SPACING_MARK)||c&&b===d.VIRAMA&&f===d.INDIC_LETTER)return!1;var h;if(g){if(f===d.E_MODIFIER){c=a;var k=c.length-1;var l=e;for(h=b;k>0&&h===d.EXTEND;)k-=goog.i18n.uChar.charCount(l),l=goog.i18n.GraphemeBreak.getCodePoint_(c,k),h=goog.i18n.GraphemeBreak.getBreakProp_(l);if(h===d.E_BASE||h===d.E_BASE_GAZ)return!1}}else if((b===d.E_BASE||b===d.E_BASE_GAZ)&& f===d.E_MODIFIER)return!1;if(b===d.ZWJ&&(f===d.GLUE_AFTER_ZWJ||f===d.E_BASE_GAZ))return!1;if(g){if(f===d.REGIONAL_INDICATOR){f=0;c=a;k=c.length-1;l=e;for(h=b;k>0&&h===d.REGIONAL_INDICATOR;)f++,k-=goog.i18n.uChar.charCount(l),l=goog.i18n.GraphemeBreak.getCodePoint_(c,k),h=goog.i18n.GraphemeBreak.getBreakProp_(l);h===d.REGIONAL_INDICATOR&&f++;if(f%2===1)return!1}}else if(b===d.REGIONAL_INDICATOR&&f===d.REGIONAL_INDICATOR)return!1;return!0}; goog.i18n.GraphemeBreak.getBreakProp_=function(a){if(44032<=a&&a<=55203){var b=goog.i18n.GraphemeBreak.property;return a%28===16?b.LV:b.LVT}goog.i18n.GraphemeBreak.inversions_||(goog.i18n.GraphemeBreak.inversions_=new goog.structs.InversionMap([0,10,1,2,1,18,95,33,13,1,594,112,275,7,263,45,1,1,1,2,1,2,1,1,56,6,10,11,1,1,46,21,16,1,101,7,1,1,6,2,2,1,4,33,1,1,1,30,27,91,11,58,9,34,4,1,9,1,3,1,5,43,3,120,14,1,32,1,17,37,1,1,1,1,3,8,4,1,2,1,7,8,2,2,21,7,1,1,2,17,39,1,1,1,2,6,6,1,9,5,4,2,2,12,2,15,2,1, 17,39,2,3,12,4,8,6,17,2,3,14,1,17,39,1,1,3,8,4,1,20,2,29,1,2,17,39,1,1,2,1,6,6,9,6,4,2,2,13,1,16,1,18,41,1,1,1,12,1,9,1,40,1,3,17,31,1,5,4,3,5,7,8,3,2,8,2,29,1,2,17,39,1,1,1,1,2,1,3,1,5,1,8,9,1,3,2,29,1,2,17,38,3,1,2,5,7,1,1,8,1,10,2,30,2,22,48,5,1,2,6,7,1,18,2,13,46,2,1,1,1,6,1,12,8,50,46,2,1,1,1,9,11,6,14,2,58,2,27,1,1,1,1,1,4,2,49,14,1,4,1,1,2,5,48,9,1,57,33,12,4,1,6,1,2,2,2,1,16,2,4,2,2,4,3,1,3,2,7,3,4,13,1,1,1,2,6,1,1,14,1,98,96,72,88,349,3,931,15,2,1,14,15,2,1,14,15,2,15,15,14,35,17,2,1,7,8, 1,2,9,1,1,9,1,45,3,1,118,2,34,1,87,28,3,3,4,2,9,1,6,3,20,19,29,44,84,23,2,2,1,4,45,6,2,1,1,1,8,1,1,1,2,8,6,13,48,84,1,14,33,1,1,5,1,1,5,1,1,1,7,31,9,12,2,1,7,23,1,4,2,2,2,2,2,11,3,2,36,2,1,1,2,3,1,1,3,2,12,36,8,8,2,2,21,3,128,3,1,13,1,7,4,1,4,2,1,3,2,198,64,523,1,1,1,2,24,7,49,16,96,33,1324,1,34,1,1,1,82,2,98,1,14,1,1,4,86,1,1418,3,141,1,96,32,554,6,105,2,30164,4,1,10,32,2,80,2,272,1,3,1,4,1,23,2,2,1,24,30,4,4,3,8,1,1,13,2,16,34,16,1,1,26,18,24,24,4,8,2,23,11,1,1,12,32,3,1,5,3,3,36,1,2,4,2,1,3,1, 36,1,32,35,6,2,2,2,2,12,1,8,1,1,18,16,1,3,6,1,1,1,3,48,1,1,3,2,2,5,2,1,1,32,9,1,2,2,5,1,1,201,14,2,1,1,9,8,2,1,2,1,2,1,1,1,18,11184,27,49,1028,1024,6942,1,737,16,16,16,207,1,158,2,89,3,513,1,226,1,149,5,1670,15,40,7,1,165,2,1305,1,1,1,53,14,1,56,1,2,1,45,3,4,2,1,1,2,1,66,3,36,5,1,6,2,62,1,12,2,1,48,3,9,1,1,1,2,6,3,95,3,3,2,1,1,2,6,1,160,1,3,7,1,21,2,2,56,1,1,1,1,1,12,1,9,1,10,4,15,192,3,8,2,1,2,1,1,105,1,2,6,1,1,2,1,1,2,1,1,1,235,1,2,6,4,2,1,1,1,27,2,82,3,8,2,1,1,1,1,106,1,1,1,2,6,1,1,101,3,2,4,1, 4,1,1283,1,14,1,1,82,23,1,7,1,2,1,2,20025,5,59,7,1050,62,4,19722,2,1,4,5313,1,1,3,3,1,5,8,8,2,7,30,4,148,3,1979,55,4,50,8,1,14,1,22,1424,2213,7,109,7,2203,26,264,1,53,1,52,1,17,1,13,1,16,1,3,1,25,3,2,1,2,3,30,1,1,1,13,5,66,2,2,11,21,4,4,1,1,9,3,1,4,3,1,3,3,1,30,1,16,2,106,1,4,1,71,2,4,1,21,1,4,2,81,1,92,3,3,5,48,1,17,1,16,1,16,3,9,1,11,1,587,5,1,1,7,1,9,10,3,2,788162,31],[1,13,1,12,1,0,1,0,1,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,3,0,2,0,1,0,2,0,2,0,2,3,0,2,0,2,0,2,0,3,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2, 0,2,3,2,4,0,5,2,4,2,0,4,2,4,6,4,0,2,5,0,2,0,5,0,2,4,0,5,2,0,2,4,2,4,6,0,2,5,0,2,0,5,0,2,4,0,5,2,4,2,6,2,5,0,2,0,2,4,0,5,2,0,4,2,4,6,0,2,0,2,4,0,5,2,0,2,4,2,4,6,2,5,0,2,0,5,0,2,0,5,2,4,2,4,6,0,2,0,2,4,0,5,0,5,0,2,4,2,6,2,5,0,2,0,2,4,0,5,2,0,4,2,4,2,4,2,4,2,6,2,5,0,2,0,2,4,0,5,0,2,4,2,4,6,3,0,2,0,2,0,4,0,5,6,2,4,2,4,2,0,4,0,5,0,2,0,4,2,6,0,2,0,5,0,2,0,4,2,0,2,0,5,0,2,0,2,0,2,0,2,0,4,5,2,4,2,6,0,2,0,2,0,2,0,5,0,2,4,2,0,6,4,2,5,0,5,0,4,2,5,2,5,0,5,0,5,2,5,2,0,4,2,0,2,5,0,2,0,7,8,9,0,2,0,5,2,6,0,5,2,6, 0,5,2,0,5,2,5,0,2,4,2,4,2,4,2,6,2,0,2,0,2,1,0,2,0,2,0,5,0,2,4,2,4,2,4,2,0,5,0,5,0,5,2,4,2,0,5,0,5,4,2,4,2,6,0,2,0,2,4,2,0,2,4,0,5,2,4,2,4,2,4,2,4,6,5,0,2,0,2,4,0,5,4,2,4,2,6,2,5,0,5,0,5,0,2,4,2,4,2,4,2,6,0,5,4,2,4,2,0,5,0,2,0,2,4,2,0,2,0,4,2,0,2,0,2,0,1,2,15,1,0,1,0,1,0,2,0,16,0,17,0,17,0,17,0,16,0,17,0,16,0,17,0,2,0,6,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,6,5,2,5,4,2,4,0,5,0,5,0,5,0,5,0,4,0,5,4,6,2,0,2,0,5,0,2,0,5,2,4,6,0,7,2,4,0,5,0,5,2,4,2,4,2,4,6,0,2,0,5,2,4,2,4,2,0,2,0,2,4,0,5,0,5,0,5,0,2,0,5,2, 0,2,0,2,0,2,0,2,0,5,4,2,4,0,4,6,0,5,0,5,0,5,0,4,2,4,2,4,0,4,6,0,11,8,9,0,2,0,2,0,2,0,2,0,1,0,2,0,1,0,2,0,2,0,2,0,2,0,2,6,0,2,0,4,2,4,0,2,6,0,6,2,4,0,4,2,4,6,2,0,3,0,2,0,2,4,2,6,0,2,0,2,4,0,4,2,4,6,0,3,0,2,0,4,2,4,2,6,2,0,2,0,2,4,2,6,0,2,4,0,2,0,2,4,2,4,6,0,2,0,4,2,0,4,2,4,6,2,4,2,0,2,4,2,4,2,4,2,4,2,4,6,2,0,2,4,2,4,2,4,6,2,0,2,0,4,2,4,2,4,6,2,0,2,4,2,4,2,6,2,0,2,4,2,4,2,6,0,4,2,4,6,0,2,4,2,4,2,4,2,0,2,0,2,0,4,2,0,2,0,1,0,2,4,2,0,4,2,1,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,2,0,14,0,17,0,17,0,17, 0,16,0,17,0,17,0,17,0,16,0,16,0,16,0,17,0,17,0,18,0,16,0,16,0,19,0,16,0,16,0,16,0,16,0,16,0,17,0,16,0,17,0,17,0,17,0,16,0,16,0,16,0,16,0,17,0,16,0,16,0,17,0,17,0,16,0,16,0,16,0,16,0,16,0,16,0,16,0,16,0,16,0,1,2],!0));return goog.i18n.GraphemeBreak.inversions_.at(a)};goog.i18n.GraphemeBreak.getCodePoint_=function(a,b){a=goog.i18n.uChar.getCodePointAround(a,b);return a<0?-a:a};goog.i18n.GraphemeBreak.hasGraphemeBreak=function(a,b,c){return goog.i18n.GraphemeBreak.applyBreakRules_(a,b,c!==!1)}; goog.i18n.GraphemeBreak.hasGraphemeBreakStrings=function(a,b,c){goog.asserts.assert(a!==void 0,"First string should be defined.");goog.asserts.assert(b!==void 0,"Second string should be defined.");return a.length===0||b.length===0?!0:goog.i18n.GraphemeBreak.applyBreakRules_(a,b,c!==!1)};goog.format={};goog.format.fileSize=function(a,b){return goog.format.numBytesToString(a,b,!1)};goog.format.isConvertableScaledNumber=function(a){return goog.format.SCALED_NUMERIC_RE_.test(a)};goog.format.stringToNumericValue=function(a){return goog.string.endsWith(a,"B")?goog.format.stringToNumericValue_(a,goog.format.NUMERIC_SCALES_BINARY_):goog.format.stringToNumericValue_(a,goog.format.NUMERIC_SCALES_SI_)};goog.format.stringToNumBytes=function(a){return goog.format.stringToNumericValue_(a,goog.format.NUMERIC_SCALES_BINARY_)}; goog.format.numericValueToString=function(a,b){return goog.format.numericValueToString_(a,goog.format.NUMERIC_SCALES_SI_,b)};goog.format.numBytesToString=function(a,b,c,d){var e="";if(c===void 0||c)e="B";return goog.format.numericValueToString_(a,goog.format.NUMERIC_SCALES_BINARY_,b,e,d)};goog.format.stringToNumericValue_=function(a,b){var c=a.match(goog.format.SCALED_NUMERIC_RE_);return c?a=Number(c[1])*b[c[2]]:Number(a)}; goog.format.numericValueToString_=function(a,b,c,d,e){var f=goog.format.NUMERIC_SCALE_PREFIXES_,g=a,h="",k="",l=1;a<0&&(a=-a);if(a===Infinity)return(Infinity*Math.sign(g)).toString();for(var m=0;m<f.length;m++){var n=f[m];l=b[n];if(a>=l||l<=1&&a>.1*l){h=n;break}}h?(d&&(h+=d),e&&(k=" ")):l=1;a=Math.pow(10,c!==void 0?c:2);return Math.round(g/l*a)/a+k+h};goog.format.SCALED_NUMERIC_RE_=/^(-?\d+\.?\d*)([KMGTPEZYkmun]?)B?$/;goog.format.NUMERIC_SCALE_PREFIXES_="Y Z E P T G M K m u n".split(" "); goog.format.NUMERIC_SCALES_SI_={"":1,n:1E-9,u:1E-6,m:.001,k:1E3,K:1E3,M:1E6,G:1E9,T:1E12,P:1E15,E:1E18,Z:1E21,Y:1E24};goog.format.NUMERIC_SCALES_BINARY_={"":1,n:9.313225746154785E-10,u:9.5367431640625E-7,m:1/1024,k:1024,K:1024,M:1048576,G:1073741824,T:1099511627776,P:0x4000000000000,E:0x1000000000000000,Z:1.1805916207174113E21,Y:1.2089258196146292E24};goog.format.FIRST_GRAPHEME_EXTEND_=768; goog.format.isTreatedAsBreakingSpace_=function(a){return a<=goog.format.WbrToken_.SPACE||a>=4096&&(a>=8192&&a<=8198||a>=8200&&a<=8203||a==5760||a==6158||a==8232||a==8233||a==8287||a==12288)};goog.format.isInvisibleFormattingCharacter_=function(a){return a>=8204&&a<=8207||a>=8234&&a<=8238}; goog.format.insertWordBreaksGeneric_=function(a,b,c){c=c||10;if(c>a.length)return a;for(var d=[],e=0,f=0,g=0,h=0,k=0;k<a.length;k++){var l=h;h=a.charCodeAt(k);l=h>=goog.format.FIRST_GRAPHEME_EXTEND_&&!b(l,h,!0);e>=c&&!goog.format.isTreatedAsBreakingSpace_(h)&&!l&&(d.push(a.substring(g,k),goog.format.WORD_BREAK_HTML),g=k,e=0);f?h==goog.format.WbrToken_.GT&&f==goog.format.WbrToken_.LT?f=0:h==goog.format.WbrToken_.SEMI_COLON&&f==goog.format.WbrToken_.AMP&&(f=0,e++):h==goog.format.WbrToken_.LT||h==goog.format.WbrToken_.AMP? f=h:goog.format.isTreatedAsBreakingSpace_(h)?e=0:goog.format.isInvisibleFormattingCharacter_(h)||e++}d.push(a.slice(g));return d.join("")};goog.format.insertWordBreaks=function(a,b){return goog.format.insertWordBreaksGeneric_(a,goog.i18n.GraphemeBreak.hasGraphemeBreak,b)};goog.format.conservativelyHasGraphemeBreak_=function(a,b){return b>=1024&&b<1315};goog.format.insertWordBreaksBasic=function(a,b){return goog.format.insertWordBreaksGeneric_(a,goog.format.conservativelyHasGraphemeBreak_,b)}; goog.format.WORD_BREAK_HTML="<wbr>";goog.format.WbrToken_={LT:60,GT:62,AMP:38,SEMI_COLON:59,SPACE:32};ocean.books.MessageHelper={}; function module$contents$ocean$books$MessageHelper_formatPageSkipMessage(a,b){var c=module$contents$ocean$books$MessageHelper_getPageNumber(a),d=module$contents$ocean$books$MessageHelper_getPageNumber(b);return a.getOrderId()==0||b.getOrderId()==0?"This is a preview. The total pages displayed will be limited.":typeof c!=="number"||typeof d!=="number"||c>=d||Math.abs(c-d)==1?"Some pages are omitted from this book preview.":module$contents$ocean$books$MessageHelper_isSinglePageMissing(a,b)?module$contents$ocean$msg_getPageNotPartOfBookPreview(--d+ ""):module$contents$ocean$msg_getPageRangeNotShown(++c+"",--d+"")}function module$contents$ocean$books$MessageHelper_getPageNumber(a){a=a.getTitle();return goog.string.isNumeric(a)&&!goog.string.isEmptyOrWhitespace(a)?goog.format.stringToNumericValue(a):null}function module$contents$ocean$books$MessageHelper_isSinglePageMissing(a,b){a=module$contents$ocean$books$MessageHelper_getPageNumber(a);b=module$contents$ocean$books$MessageHelper_getPageNumber(b);return a+1-(b-1)==0} ocean.books.MessageHelper.formatPageSkipMessage=module$contents$ocean$books$MessageHelper_formatPageSkipMessage;ocean.books.MessageHelper.isSinglePageMissing=module$contents$ocean$books$MessageHelper_isSinglePageMissing;ocean.chrome={};ocean.chrome.Fullscreen=function(a,b,c){goog.events.EventTarget.call(this);this.viewer_=a;this.menuDiv_=b;this.menuDivWidth_=goog.style.getSize(b).width;this.viewDiv_=c;this.fullscreen_=!1;this.isRtl_=ocean.style.isPageRtl()};$jscomp.inherits(ocean.chrome.Fullscreen,goog.events.EventTarget);ocean.chrome.Fullscreen.prototype.isFullscreen=function(){return this.fullscreen_};ocean.chrome.Fullscreen.prototype.toggle=function(){this.setFullscreen(!this.fullscreen_)}; ocean.chrome.Fullscreen.prototype.setFullscreen=function(a){if(a!=this.fullscreen_){this.fullscreen_=a;var b=this.viewer_.getViewport().getCanvasDiv();goog.style.setElementShown(b,!1);goog.style.getSize(b);a=[goog.partial(ocean.chrome.Fullscreen.toggleDivs_,this.menuDiv_,this.viewDiv_,this.menuDivWidth_,this.isRtl_,a),goog.bind(this.fullscreenEventDispatch_,this),goog.partial(goog.style.setElementShown,b,!0)];a.forEach(goog.Timer.callOnce)}}; ocean.chrome.Fullscreen.prototype.fullscreenEventDispatch_=function(){this.dispatchEvent(ocean.chrome.Fullscreen.EventType.CHANGE)};ocean.chrome.Fullscreen.toggleDivs_=function(a,b,c,d,e){var f=b.style.width;d=d?"right":"left";e?(b.style[d]="0",b.style.width=f+c):(b.style[d]="",b.style.width="");goog.style.setElementShown(a,!e)};ocean.chrome.Fullscreen.EventType={CHANGE:"change"};ocean.ui={};function module$contents$ocean$ui$MessageBar_MessageBar(a,b,c){this.parentDiv_=a;this.viewportDiv_=b;this.fullScreen_=c;this.initMessage_()} module$contents$ocean$ui$MessageBar_MessageBar.prototype.initMessage_=function(){this.contentElement_=this.makeContentElement_();goog.dom.appendChild(this.parentDiv_,this.contentElement_);module$contents$ocean$ui$MessageBar_MessageBar.prototype.hide.apply(this);goog.events.listen(this.fullScreen_,ocean.chrome.Fullscreen.EventType.CHANGE,goog.bind(this.reposition_,this));goog.events.listen(new goog.dom.ViewportSizeMonitor,goog.events.EventType.RESIZE,goog.bind(goog.Timer.callOnce,null,goog.bind(this.reposition_, this)))};module$contents$ocean$ui$MessageBar_MessageBar.prototype.makeContentElement_=function(){var a=goog.dom.createElement("div");goog.style.setStyle(a,{whiteSpace:"nowrap",padding:"5px",border:"1px solid #fff588",backgroundColor:"#ffffcc",fontSize:"13.28px",position:"relative"});return a}; module$contents$ocean$ui$MessageBar_MessageBar.prototype.reposition_=function(){var a=goog.style.getSize(this.contentElement_);if(a.width>0){var b=Math.round(goog.style.getSize(this.viewportDiv_).width/2);a=Math.round(a.width/2);goog.style.setPosition(this.contentElement_,b-a,0)}};module$contents$ocean$ui$MessageBar_MessageBar.prototype.show=function(){goog.style.setElementShown(this.contentElement_,!0);this.reposition_()}; module$contents$ocean$ui$MessageBar_MessageBar.prototype.hide=function(){goog.style.setElementShown(this.contentElement_,!1)};module$contents$ocean$ui$MessageBar_MessageBar.prototype.setMessage=function(a){(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(this.contentElement_,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtml)(a))};module$contents$ocean$ui$MessageBar_MessageBar.prototype.getRootElement=function(){return this.contentElement_}; ocean.ui.MessageBar=module$contents$ocean$ui$MessageBar_MessageBar;ocean.ui.FadingMessageBar=function(a,b,c){module$contents$ocean$ui$MessageBar_MessageBar.apply(this,arguments);this.fadeOut_=new goog.fx.dom.FadeOutAndHide(this.getRootElement(),500);this.hideDelay_=new goog.async.Delay(goog.bind(this.hide,this))};goog.inherits(ocean.ui.FadingMessageBar,module$contents$ocean$ui$MessageBar_MessageBar); ocean.ui.FadingMessageBar.prototype.show=function(a){goog.style.setOpacity(this.getRootElement(),1);module$contents$ocean$ui$MessageBar_MessageBar.prototype.show.apply(this);a&&this.hideDelay_.start(a)};ocean.ui.FadingMessageBar.prototype.hide=function(){this.fadeOut_.play()};ocean.ui.FadingMessageBar.instance_=null;ocean.ui.FadingMessageBar.getInstance=function(){return ocean.ui.FadingMessageBar.instance_};ocean.ui.FadingMessageBar.setInstance=function(a){ocean.ui.FadingMessageBar.instance_=a};var module$contents$ocean$books$MessageBarController_MessageBarController=function(a,b){goog.events.EventHandler.call(this);this.messageBar_=ocean.ui.FadingMessageBar.getInstance();this.viewer_=a;this.twoPageViewport_=b;this.viewer_.volumeInfo_.fullview_||(this.listen(this.viewer_,ocean.viewport.Viewer.EventType.PAGE_TURN,this.handlePageTurn_),this.listen(this.twoPageViewport_,module$contents$ocean$EventManager_EventManager.EventType.DISPOSE,this.dispose))}; $jscomp.inherits(module$contents$ocean$books$MessageBarController_MessageBarController,goog.events.EventHandler); module$contents$ocean$books$MessageBarController_MessageBarController.prototype.handlePageTurn_=function(){var a=this.twoPageViewport_.renderer_.twoPage_.getPageInfos()[0]||new ocean.info.PageInfo,b=this.twoPageViewport_.renderer_.twoPage_.getPageInfos()[1]||new ocean.info.PageInfo,c=this.previousRightPageInfo_,d=c?c.getOrderId():-1,e=this.previousLeftPageInfo_,f=e?e.getOrderId():-1,g=a.getOrderId()||-1,h=b.getOrderId()||-1;d=Math.max(d,f);var k=Math.max(g,h);if(Math.abs(k-d)>this.twoPageViewport_.PAGE_TURN_STEP){if(k- d>0){var l=d==f?e:c;var m=a}k-d<0&&(l=h!=-1?b:a,m=e);h-g>1&&(l=a,m=b);module$contents$ocean$books$MessageHelper_isSinglePageMissing(l,m)||l!==void 0&&m!==void 0&&this.displayMessage_(module$contents$ocean$books$MessageHelper_formatPageSkipMessage(l,m))}};module$contents$ocean$books$MessageBarController_MessageBarController.prototype.savePreviousPageInfos=function(a){this.previousLeftPageInfo_=a[0];this.previousRightPageInfo_=a[1]}; module$contents$ocean$books$MessageBarController_MessageBarController.prototype.displayMessage_=function(a){this.messageBar_.setMessage(a);this.messageBar_.show(3E3)};ocean.books.MessageBarController=module$contents$ocean$books$MessageBarController_MessageBarController;var module$contents$ocean$books$PageInfo_PageInfo=function(a){ocean.info.ProtoPageInfo.call(this,a)};$jscomp.inherits(module$contents$ocean$books$PageInfo_PageInfo,ocean.info.ProtoPageInfo); module$contents$ocean$books$PageInfo_PageInfo.prototype.setData=function(a){ocean.info.ProtoPageInfo.prototype.setData.call(this,a);a&&a.additional_info&&(this.additionalInfo_=a.additional_info["[NewspaperJSONPageInfo]"],this.additionalInfo_.articles&&(this.articles_={},module$contents$goog$array_forEach(this.additionalInfo_.articles,function(b){var c=b.aid;c&&(this.articles_[c]=new module$exports$ocean$books$ArticleInfo(b))},this)))}; module$contents$ocean$books$PageInfo_PageInfo.prototype.isFrontPage=function(){return this.hasFlag(ocean.info.ProtoPageInfo.FLAGS.FRONT_PAGE)};module$contents$ocean$books$PageInfo_PageInfo.prototype.isBackPage=function(){return this.hasFlag(ocean.info.ProtoPageInfo.FLAGS.BACK_PAGE)};module$contents$ocean$books$PageInfo_PageInfo.prototype.getLabel=function(){return this.isFrontPage()?"Front Cover":this.isBackPage()?"Back Cover":ocean.info.ProtoPageInfo.prototype.getLabel.call(this)}; module$contents$ocean$books$PageInfo_PageInfo.prototype.getDimensionMap=function(){return{width:"w"}}; module$contents$ocean$books$PageInfo_PageInfo.prototype.getArticle=function(a){if(!this.articles_)return null;if(a in this.articles_)return this.articles_[a];var b=module$contents$goog$array_map(Object.keys(this.articles_),function(c){var d=c.split(","),e=a.split(","),f=parseInt(d[0],10);d=parseInt(d[1],10);var g=parseInt(e[0],10);e=parseInt(e[1],10);f-=g;d-=e;return[f*f+d*d,this.articles_[c]]},this);module$contents$goog$array_sortByKey(b,function(c){return c[0]});return b&&b[0]&&b[0][1]?b[0][1]: null};module$contents$ocean$books$PageInfo_PageInfo.prototype.setFocusArticle=function(a){this.articles_&&a in this.articles_&&(this.focusArticle_=this.articles_[a])};module$contents$ocean$books$PageInfo_PageInfo.prototype.getFocusArticle=function(){return this.focusArticle_};module$contents$ocean$books$PageInfo_PageInfo.prototype.createHeadlineDisplay=function(a){return this.headlineDisplay_=new module$exports$ocean$books$HeadlineDisplay(a)}; module$contents$ocean$books$PageInfo_PageInfo.prototype.hasHeadlineDisplay=function(){return this.headlineDisplay_!=null};ocean.books.PageInfo=module$contents$ocean$books$PageInfo_PageInfo;var module$contents$ocean$books$PageInfoSet_PageInfoSet=function(a){module$contents$ocean$info$ProtoPageInfoSet_ProtoPageInfoSet.call(this);module$contents$ocean$info$ProtoPageInfoSet_ProtoPageInfoSet.apply(this,arguments);this.calculatePageInfoPairs_();goog.events.listen(this,ocean.info.PageInfoSet.EventType.UPDATE,goog.bind(this.calculatePageInfoPairs_,this))};$jscomp.inherits(module$contents$ocean$books$PageInfoSet_PageInfoSet,module$contents$ocean$info$ProtoPageInfoSet_ProtoPageInfoSet); module$contents$ocean$books$PageInfoSet_PageInfoSet.prototype.pseudocontinuousImportServerInfo_=function(a){a=a.page;var b={};module$contents$goog$array_forEach(a,function(d){var e=this.getPageInfoByPid(d.pid);e&&e.setProtoData(d);b[d.pid]=!0},this);a=this.getPageInfoArray();var c=module$contents$goog$array_filter(a,function(d){return!!b[d.getPageId()]||this.isFetchedPageInfo(d)},this);a.length!=c.length&&this.setPageInfos(c)}; module$contents$ocean$books$PageInfoSet_PageInfoSet.prototype.importServerInfo=function(a){this.pseudocontinuous_?this.pseudocontinuousImportServerInfo_(a):module$contents$ocean$info$ProtoPageInfoSet_ProtoPageInfoSet.prototype.importServerInfo.call(this,a)};module$contents$ocean$books$PageInfoSet_PageInfoSet.prototype.setPseudocontinuous=function(a){this.pseudocontinuous_=a}; module$contents$ocean$books$PageInfoSet_PageInfoSet.prototype.calculatePageInfoPairs_=function(){var a={},b=0;module$contents$goog$array_forEach(this.getPageInfoArray(),function(g){var h=g.getOrderId();a[h]=g;b=Math.max(b,h)});for(var c=[],d=-1;d<=b;d+=2){var e=a[d],f=a[d+1];(e||f)&&c.push([e,f])}this.pairs_=c};module$contents$ocean$books$PageInfoSet_PageInfoSet.prototype.PAGE_INFO_CONSTRUCTOR=module$contents$ocean$books$PageInfo_PageInfo;ocean.books.PageInfoSet=module$contents$ocean$books$PageInfoSet_PageInfoSet;var module$exports$ocean$books$ProtoBuyLink=function(a){this.seller_=a.Seller;this.url_=a.Url;this.trackingUrl_=a.TrackingUrl;this.price_=a.Price;this.isInStock_=a.IsInStock;this.isPublisher_=a.IsPublisher};var module$contents$ocean$books$SearchResultItem_SearchResultItem=function(a){this.pageId_=a.page_id;this.pageNumber_=a.page_number||"";this.snippetText_=a.snippet_text||"";this.pageUrl_=a.page_url};module$contents$ocean$books$SearchResultItem_SearchResultItem.prototype.getPageId=function(){return this.pageId_};module$contents$ocean$books$SearchResultItem_SearchResultItem.prototype.getPageNumber=function(){return this.pageNumber_}; module$contents$ocean$books$SearchResultItem_SearchResultItem.prototype.getPageUrl=function(){return this.pageUrl_};ocean.books.SearchResultItem=module$contents$ocean$books$SearchResultItem_SearchResultItem;var module$contents$ocean$books$SearchResults_SearchResults=function(a){this.proto_=a;this.proto_.number_of_results>0?(this.resultItemArray_=module$contents$goog$array_map(this.proto_.search_results,function(b){return new module$contents$ocean$books$SearchResultItem_SearchResultItem(b)},this),this.id=this.proto_.search_results[0].page_id+this.getEscapedUserQuery()+this.proto_.search_results[this.proto_.number_of_results-1].page_id):this.resultItemArray_=[]}; module$contents$ocean$books$SearchResults_SearchResults.prototype.getSpellSuggestion=function(){return this.proto_.spellresults&&this.proto_.spellresults.correct_spell?this.proto_.spellresults.correct_spell:null};module$contents$ocean$books$SearchResults_SearchResults.prototype.getEscapedUserQuery=function(){return this.proto_.search_query_escaped};ocean.books.SearchResults=module$contents$ocean$books$SearchResults_SearchResults;var module$contents$ocean$books$Separator_Separator=function(a,b){module$contents$ocean$EventManager_EventManager.call(this);this.canvasDiv_=a;this.layoutSeparator_=b;this.prevPageInfo_=b.previousPageInfo_;this.nextPageInfo_=b.nextPageInfo_;this.separatorDiv_=goog.dom.createElement(goog.dom.TagName.DIV);this.separatorDiv_.className="separator-container";this.canvasDiv_.appendChild(this.separatorDiv_);a=goog.dom.createElement(goog.dom.TagName.TABLE);a.className="separator-outer-table";this.separatorDiv_.appendChild(a); var c=a.insertRow(-1).insertCell(-1);c.align="center";var d=goog.dom.createElement(goog.dom.TagName.DIV);d.className="separator-background";c.appendChild(d);c=goog.dom.createElement(goog.dom.TagName.TABLE);c.className="separator-inner-table";d.appendChild(c);c.align="center";b.isPublisherInfoSeparator()?(this.makeSeparatorMessageWithPublisherInfo_(c),goog.dom.classlist.add(a,"separator-pubinfo"),goog.dom.classlist.add(d,"separator-pubinfo")):(b=c.insertRow(-1),b=b.insertCell(-1),goog.dom.classlist.add(b, "separator-message"),b.textContent=this.makeLabel_());goog.style.setUnselectable(this.separatorDiv_,!0);ocean.style.clearExternalStyles(this.separatorDiv_)};$jscomp.inherits(module$contents$ocean$books$Separator_Separator,module$contents$ocean$viewport$Drawable_Drawable);module$contents$ocean$books$Separator_Separator.prototype.setSize=function(a){goog.style.setSize(this.separatorDiv_,a)}; module$contents$ocean$books$Separator_Separator.prototype.setPosition=function(a){goog.style.setPosition(this.separatorDiv_,a)};module$contents$ocean$books$Separator_Separator.prototype.cleanup=function(){goog.dom.removeNode(this.separatorDiv_)};module$contents$ocean$books$Separator_Separator.prototype.makeLabel_=function(){return module$contents$ocean$books$MessageHelper_formatPageSkipMessage(this.prevPageInfo_,this.nextPageInfo_)}; module$contents$ocean$books$Separator_Separator.prototype.makeSeparatorMessageWithPublisherInfo_=function(a){var b=goog.dom.getElement("gb-mobile-menu-pubinfo");if(b){var c=goog.dom.getElementsByTagName(goog.dom.TagName.IMG,b);if(c.length==1){c=c[0].cloneNode(!0);var d=a.insertRow(-1).insertCell(-1);goog.dom.insertChildAt(d,c,0);goog.dom.classlist.add(d,"separator-message");goog.dom.classlist.add(d,"separator-pubinfo-message")}c=this.makeLabel_();b=goog.dom.getTextContent(b);a=a.insertRow(-1).insertCell(-1); d=goog.dom.createElement(goog.dom.TagName.SPAN);d.className="separator-text";a.appendChild(d);this.layoutSeparator_.isForcedPublisherInfoSeparator()?(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(d,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(b)):(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(d,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(c+ "<br>"+b));goog.dom.classlist.add(a,"separator-message");goog.dom.classlist.add(a,"separator-pubinfo-message")}};module$contents$ocean$books$Separator_Separator.setVolumeInfo=function(a){module$contents$ocean$books$Separator_Separator.volumeInfo_=a};module$contents$ocean$books$Separator_Separator.volumeInfo_=null;ocean.books.Separator=module$contents$ocean$books$Separator_Separator;ocean.books.ThumbnailLayout=function(a,b,c,d){this.verticalSpacing=this.horizontalSpacing=10;this.marginBottom=this.marginTop=20;var e=ocean.books.ThumbnailLayout.THUMBNAIL_WIDTH_+this.horizontalSpacing;b=Math.floor((b-20)/e);d&&b>2&&(b-=b%2);module$contents$ocean$layout$ViewportLayout_ViewportLayout.call(this,b);a.getPageInfoArray();a=module$contents$goog$array_map(a.getPageInfoArray(),function(f){f=new module$contents$ocean$layout$LayoutPage_LayoutPage(f);var g=f.getSize();g.width=ocean.books.ThumbnailLayout.THUMBNAIL_WIDTH_; f.setSize(g);return f});c&&(c=a[0],c=c.getSize(),d=new module$contents$ocean$layout$LayoutItem_LayoutItem,d.setSize(c),this.addItem(d));module$contents$goog$array_forEach(a,goog.bind(this.addItem,this));this.calculate()};goog.inherits(ocean.books.ThumbnailLayout,module$contents$ocean$layout$ViewportLayout_ViewportLayout);ocean.books.ThumbnailLayout.THUMBNAIL_WIDTH_=100;function module$contents$ocean$viewport$DocumentViewport_DocumentViewport(a,b){ocean.viewport.Viewport.call(this,b);this.viewer=a;this.getHandler().listen(a,ocean.viewport.Viewer.EventType.PAGECHANGE,this.handlePageChange);this.getHandler().listen(this.viewer,ocean.viewport.Viewer.EventType.SEARCHUPDATE,this.handleSearchStateChange_);if(a=goog.dom.getElement("subscription-bar"))this.getHandler().listen(this,ocean.viewport.Viewport.EventType.SCROLLDOWN,goog.partial(this.fadeOutInstitutionalSubscriptionBar, a)),this.getHandler().listen(this,ocean.viewport.Viewport.EventType.SCROLLUP,goog.partial(this.fadeInInstitutionalSubscriptionBar,a))}goog.inherits(module$contents$ocean$viewport$DocumentViewport_DocumentViewport,ocean.viewport.Viewport); module$contents$ocean$viewport$DocumentViewport_DocumentViewport.prototype.getPageInfos=function(){var a=this.layout_.getItems(),b=[];this.clipper_&&(a=this.clipper_.getVisibleLayoutItems(a));module$contents$goog$array_forEach(a,function(c){c instanceof module$contents$ocean$layout$LayoutPage_LayoutPage&&b.push(c.getPageInfo())});return b};module$contents$ocean$viewport$DocumentViewport_DocumentViewport.prototype.zoomToStop=function(a){this.setFit_(!1,!1);this.zoomToStop_(a)}; module$contents$ocean$viewport$DocumentViewport_DocumentViewport.prototype.zoomToStop_=function(a){this.zoomPageHelper(this.createLayoutForZoomStop(a))};module$contents$ocean$viewport$DocumentViewport_DocumentViewport.prototype.zoomHelper=function(a){var b=[];this.layout_.getZoomMode()==ocean.layout.Layout.ZoomMode.FIXED_WIDTH&&b.push(this.getSize().width);this.getZoomStops&&(a=this.getZoomStops().getNewSize(this.layout_.getZoomStop(),a,b))&&this.zoomToStop(a)}; module$contents$ocean$viewport$DocumentViewport_DocumentViewport.prototype.fitToWidth=function(){goog.asserts.assert(this.viewer.volumeInfo_.getZoomMode()==ocean.layout.Layout.ZoomMode.FIXED_WIDTH);this.setFit_(!0,!1);this.zoomToStop_(this.getSize().width)};module$contents$ocean$viewport$DocumentViewport_DocumentViewport.prototype.isFitToWidth=function(){return this.fitToWidth_}; module$contents$ocean$viewport$DocumentViewport_DocumentViewport.prototype.setFit_=function(a,b){this.fitToWidth_=a;this.fitToHeight_=b};module$contents$ocean$viewport$DocumentViewport_DocumentViewport.prototype.resize=function(){if(this.fitToWidth_)this.fitToWidth();else{var a=this.layout_.getZoomStop();a&&this.zoomToStop(a)}}; module$contents$ocean$viewport$DocumentViewport_DocumentViewport.prototype.zoomPageHelper=function(a){var b=this.layout_;this.setLayout(a);b&&(a=new module$contents$ocean$layout$PointMapper_PointMapper(b,a),a=a.getDestCoordinate(this.getMiddleCoordinate()),(a=this.middleToScroll(a))&&this.moveTo(a))};module$contents$ocean$viewport$DocumentViewport_DocumentViewport.prototype.handlePageChange=function(){this.ignorePageChange_||this.goToPage(this.viewer.getPageInfo())}; module$contents$ocean$viewport$DocumentViewport_DocumentViewport.prototype.goToPage=function(a){var b;this.layout_.getLayoutPageByPageInfo&&(b=this.layout_.getLayoutPageByPageInfo(a))&&(a=b.getLeft(),b=b.getTop(),this.setScroll(new goog.math.Coordinate(Math.round(a),Math.round(b))))}; module$contents$ocean$viewport$DocumentViewport_DocumentViewport.prototype.handleSearchStateChange_=function(){module$contents$ocean$viewport$DocumentViewport_DocumentViewport.enableSearchAutoUpdate_&&(this.dispatcher_.cleanup(),this.forceUpdateDisplay_&&this.forceUpdateDisplay_(),this.updateDisplay())};module$contents$ocean$viewport$DocumentViewport_DocumentViewport.enableSearchAutoUpdate=function(a){module$contents$ocean$viewport$DocumentViewport_DocumentViewport.enableSearchAutoUpdate_=a}; module$contents$ocean$viewport$DocumentViewport_DocumentViewport.enableSearchAutoUpdate_=!0;ocean.viewport.DocumentViewport=module$contents$ocean$viewport$DocumentViewport_DocumentViewport;var module$contents$ocean$viewport$LayoutPageRenderer_LayoutPageRenderer=function(a,b){this.viewport_=a;this.factory_=b};$jscomp.inherits(module$contents$ocean$viewport$LayoutPageRenderer_LayoutPageRenderer,module$contents$ocean$viewport$LayoutItemRenderer_LayoutItemRenderer); module$contents$ocean$viewport$LayoutPageRenderer_LayoutPageRenderer.prototype.render=function(a){var b=this.factory_(),c=a.getPageInfo(),d=this.viewport_.getZoomStops().getMax()/a.getSize().width;b.setPageSize(a.getSize());b.setImageSize(a.getSize().clone().scale(d));b.setPosition(a.getLeft(),a.getTop());b.setPageInfo(c);b.draw();return b};ocean.viewport.LayoutPageRenderer=module$contents$ocean$viewport$LayoutPageRenderer_LayoutPageRenderer;function module$contents$ocean$viewport$BaseClipper_BaseClipper(){}ocean.viewport.BaseClipper=module$contents$ocean$viewport$BaseClipper_BaseClipper;function module$contents$ocean$viewport$ContinuousClipper_ContinuousClipper(a){this.viewport_=a}goog.inherits(module$contents$ocean$viewport$ContinuousClipper_ContinuousClipper,module$contents$ocean$viewport$BaseClipper_BaseClipper); module$contents$ocean$viewport$ContinuousClipper_ContinuousClipper.prototype.getClippedLayoutItems=function(a){var b=this.splitDrawableItems_(a);a=b[0]||[];b=b[1]||[];var c=this.viewport_.getMiddleCoordinate();b.sort(goog.partial(module$contents$ocean$viewport$ContinuousClipper_ContinuousClipper.sortItemsByDistance_,c));c=[];module$contents$goog$array_extend(c,a,b);return c}; module$contents$ocean$viewport$ContinuousClipper_ContinuousClipper.prototype.getVisibleLayoutItems=function(a){a=this.splitDrawableItems_(a);return a[0]||[]};module$contents$ocean$viewport$ContinuousClipper_ContinuousClipper.sortItemsByDistance_=function(a,b,c){return goog.math.Box.distance(b.getBox(),a)-goog.math.Box.distance(c.getBox(),a)};module$contents$ocean$viewport$ContinuousClipper_ContinuousClipper.PREDRAW_DISTANCE_=800; module$contents$ocean$viewport$ContinuousClipper_ContinuousClipper.prototype.splitDrawableItems_=function(a){var b=this.viewport_.getViewableRect(),c=new goog.math.Rect(b.left-module$contents$ocean$viewport$ContinuousClipper_ContinuousClipper.PREDRAW_DISTANCE_,b.top-module$contents$ocean$viewport$ContinuousClipper_ContinuousClipper.PREDRAW_DISTANCE_,b.width+module$contents$ocean$viewport$ContinuousClipper_ContinuousClipper.PREDRAW_DISTANCE_*2,b.height+module$contents$ocean$viewport$ContinuousClipper_ContinuousClipper.PREDRAW_DISTANCE_* 2);return a=module$contents$goog$array_bucket(a,function(d){d=d.getRect();if(goog.math.Rect.intersection(c,d))return goog.math.Rect.intersection(b,d)?0:1})};ocean.viewport.ContinuousClipper=module$contents$ocean$viewport$ContinuousClipper_ContinuousClipper;var module$contents$ocean$viewport$NeighboringClipper_NeighboringClipper=function(a,b){this.viewport_=b;this.viewer_=a};$jscomp.inherits(module$contents$ocean$viewport$NeighboringClipper_NeighboringClipper,module$contents$ocean$viewport$ContinuousClipper_ContinuousClipper); module$contents$ocean$viewport$NeighboringClipper_NeighboringClipper.prototype.getClippedLayoutItems=function(a){var b=module$contents$ocean$viewport$ContinuousClipper_ContinuousClipper.prototype.getClippedLayoutItems.call(this,a),c=this.viewer_.getPageInfo();if(c){var d=[],e=this.viewer_.pageInfoSet_;module$contents$goog$array_forEach([1,-1],function(){var f=e.getPageInfoByOffset(c.getPageId(),1);f&&d.push(f)});module$contents$goog$array_forEach(a,function(f){f.getPageInfo&&module$contents$goog$array_contains(d, f.getPageInfo())&&module$contents$goog$array_insert(b,f)})}return b};ocean.viewport.NeighboringClipper=module$contents$ocean$viewport$NeighboringClipper_NeighboringClipper;function module$contents$ocean$viewport$OnePage_OnePage(a,b,c){module$contents$ocean$EventManager_EventManager.call(this);this.viewer_=a;this.viewport_=b;this.pageDiv_=goog.dom.createElement("div");ocean.style.clearExternalStyles(this.pageDiv_,!0);goog.style.setStyle(this.pageDiv_,{position:"absolute",display:"none"});goog.dom.appendChild(c,this.pageDiv_);this.shadowDiv_=goog.dom.createElement("div");ocean.style.clearExternalStyles(this.shadowDiv_,!0);goog.style.setStyle(this.shadowDiv_,{position:"absolute"}); goog.dom.appendChild(this.pageDiv_,this.shadowDiv_);this.borderDiv_=goog.dom.createElement("div");ocean.style.clearExternalStyles(this.borderDiv_,!0);goog.dom.appendChild(this.pageDiv_,this.borderDiv_);this.imageDiv_=goog.dom.createElement("div");ocean.style.clearExternalStyles(this.imageDiv_,!0);goog.dom.appendChild(this.borderDiv_,this.imageDiv_);this.hide()}goog.inherits(module$contents$ocean$viewport$OnePage_OnePage,module$contents$ocean$viewport$Drawable_Drawable); module$contents$ocean$viewport$OnePage_OnePage.prototype.setPageSize=function(a){this.pageWidth_=a.width;this.pageHeight_=a.height};module$contents$ocean$viewport$OnePage_OnePage.prototype.setImageSize=function(a){this.imageWidth_=a.width;this.imageHeight_=a.height};module$contents$ocean$viewport$OnePage_OnePage.BORDER_WIDTH_=1; module$contents$ocean$viewport$OnePage_OnePage.prototype.draw=function(){var a=module$contents$ocean$viewport$OnePage_OnePage.BORDER_WIDTH_*2,b=this.pageWidth_-a,c=this.pageHeight_-a,d=this.imageWidth_-a;a=this.imageHeight_-a;goog.style.setStyle(this.borderDiv_,{backgroundColor:"#cccccc",position:"absolute"});goog.style.setPosition(this.borderDiv_,0,0);goog.style.setSize(this.borderDiv_,this.pageWidth_,this.pageHeight_);goog.style.setStyle(this.imageDiv_,{overflow:"hidden",backgroundColor:"#fcfcfc", position:"absolute"});goog.style.setPosition(this.imageDiv_,module$contents$ocean$viewport$OnePage_OnePage.BORDER_WIDTH_,module$contents$ocean$viewport$OnePage_OnePage.BORDER_WIDTH_);goog.style.setSize(this.imageDiv_,b,c);this.show();b=new goog.math.Size(b,c);d=new goog.math.Size(d,a);this.pageDisplay_=module$contents$ocean$viewport$Page_getDecoratedPageDisplay(this.viewer_,new ocean.viewport.ScaledPageImage(this.getPageInfo(),b,d),this.imageDiv_)}; module$contents$ocean$viewport$OnePage_OnePage.prototype.hide=function(){goog.style.setElementShown(this.pageDiv_,!1)};module$contents$ocean$viewport$OnePage_OnePage.prototype.show=function(){goog.style.setElementShown(this.pageDiv_,!0)};module$contents$ocean$viewport$OnePage_OnePage.prototype.getPageDisplay=function(){return this.pageDisplay_};module$contents$ocean$viewport$OnePage_OnePage.prototype.isLoaded=function(){return this.pageDisplay_.isLoaded()}; module$contents$ocean$viewport$OnePage_OnePage.prototype.cleanup=function(){this.pageDisplay_&&this.pageDisplay_.cleanup();goog.dom.removeNode(this.pageDiv_)};module$contents$ocean$viewport$OnePage_OnePage.prototype.setPosition=function(a,b){goog.style.setPosition(this.pageDiv_,a,b)};module$contents$ocean$viewport$OnePage_OnePage.prototype.getTop=function(){return goog.style.getPosition(this.pageDiv_).x};module$contents$ocean$viewport$OnePage_OnePage.prototype.getLeft=function(){return goog.style.getPosition(this.pageDiv_).y}; module$contents$ocean$viewport$OnePage_OnePage.prototype.setPageInfo=function(a){if(goog.DEBUG&&this.pageInfo_)throw"Attempted to set a page's page info twice.";this.pageInfo_=a};module$contents$ocean$viewport$OnePage_OnePage.prototype.getPageInfo=function(){return this.pageInfo_};module$contents$ocean$viewport$OnePage_OnePage.prototype.getHeight=function(){return this.pageHeight_};module$contents$ocean$viewport$OnePage_OnePage.prototype.getWidth=function(){return this.pageWidth_}; module$contents$ocean$viewport$OnePage_OnePage.getSizeForImageSize=function(a){return a+module$contents$ocean$viewport$OnePage_OnePage.BORDER_WIDTH_*2};module$contents$ocean$viewport$OnePage_OnePage.prototype.getDiv=function(){return this.pageDiv_};module$contents$ocean$viewport$OnePage_OnePage.prototype.getSize=function(){return new goog.math.Size(this.pageWidth_,this.pageHeight_)};ocean.viewport.OnePage=module$contents$ocean$viewport$OnePage_OnePage;function module$contents$ocean$viewport$BaseWindow_BaseWindow(a){module$contents$ocean$EventManager_EventManager.call(this);goog.dom.removeChildren(a);ocean.style.clearExternalStyles(a);this.croppingDiv_=a;this.canvasDiv_=goog.dom.createElement("div");ocean.style.clearExternalStyles(this.canvasDiv_,!0);ocean.style.isPageRtl()&&(goog.dom.setProperties(a,{dir:"ltr"}),goog.dom.setProperties(this.canvasDiv_,{dir:"rtl"}));goog.dom.appendChild(a,this.canvasDiv_)} goog.inherits(module$contents$ocean$viewport$BaseWindow_BaseWindow,module$contents$ocean$EventManager_EventManager);module$contents$ocean$viewport$BaseWindow_BaseWindow.prototype.getCroppingDiv=function(){return this.croppingDiv_};module$contents$ocean$viewport$BaseWindow_BaseWindow.prototype.getCanvasDiv=function(){return this.canvasDiv_};ocean.viewport.BaseWindow=module$contents$ocean$viewport$BaseWindow_BaseWindow;var module$contents$ocean$viewport$ScrollWindow_ScrollWindow=function(a,b){module$contents$ocean$viewport$BaseWindow_BaseWindow.call(this,b);this.viewport_=a;this.getHandler().listen(b,goog.events.EventType.SCROLL,this.checkForScrollUpdate_);goog.style.setStyle(b,"position","relative");goog.style.setStyle(this.getCanvasDiv(),"position","absolute");this.backgroundDiv_=goog.dom.createElement("div");goog.dom.classlist.add(this.backgroundDiv_,"scroll-background");ocean.style.clearExternalStyles(this.backgroundDiv_, !0);goog.dom.appendChild(b,this.backgroundDiv_);goog.dom.appendChild(this.backgroundDiv_,this.getCanvasDiv())};$jscomp.inherits(module$contents$ocean$viewport$ScrollWindow_ScrollWindow,module$contents$ocean$viewport$BaseWindow_BaseWindow);module$contents$ocean$viewport$ScrollWindow_ScrollWindow.prototype.setCropOffset=function(a){if(!this.ignoreMove_){var b=this.getCroppingDiv();a.y!=null&&(b.scrollTop=a.y);a.x!=null&&(b.scrollLeft=a.x)}}; module$contents$ocean$viewport$ScrollWindow_ScrollWindow.prototype.setWindowSize=function(a){this.windowSize_=a;this.placeDivs_()};module$contents$ocean$viewport$ScrollWindow_ScrollWindow.prototype.setCanvasSize=function(a){this.canvasSize_=a;this.canvasSizeChanged_=!0;goog.style.setSize(this.getCanvasDiv(),a);goog.Timer.callOnce(this.setCanvasSizeFollowup_,0,this);this.placeDivs_()}; module$contents$ocean$viewport$ScrollWindow_ScrollWindow.prototype.placeDivs_=function(){var a=this.windowSize_,b=this.canvasSize_;a&&b&&(a=this.viewport_.getCroppingDiv().clientWidth,a=Math.max(0,a-b.width),a=Math.floor(a/2),goog.style.setStyle(this.getCanvasDiv(),"left",a+"px"),goog.style.setStyle(this.backgroundDiv_,"height",b.height+"px"))};module$contents$ocean$viewport$ScrollWindow_ScrollWindow.prototype.setCanvasSizeFollowup_=function(){this.canvasSizeChanged_=!1;this.checkForScrollUpdate_()}; module$contents$ocean$viewport$ScrollWindow_ScrollWindow.prototype.checkForScrollUpdate_=function(){if(!this.canvasSizeChanged_){var a=this.viewport_.getScroll();if(a){a=a.clone();var b=this.getScrollCoordinate_();goog.math.Coordinate.equals(a,b)||(this.ignoreMove_=!0,this.viewport_.moveTo(b),this.ignoreMove_=!1)}}};module$contents$ocean$viewport$ScrollWindow_ScrollWindow.prototype.getScrollCoordinate_=function(){var a=this.getCroppingDiv();return new goog.math.Coordinate(a.scrollLeft,a.scrollTop)}; ocean.viewport.ScrollWindow=module$contents$ocean$viewport$ScrollWindow_ScrollWindow;ocean.books.VerticalViewport=function(a){var b=a.viewportDiv_,c=new module$contents$ocean$viewport$ScrollWindow_ScrollWindow(this,b);ocean.books.VerticalViewport.applyOverflowStyles_(b);module$contents$ocean$viewport$DocumentViewport_DocumentViewport.call(this,a,c);this.setClipper(new module$contents$ocean$viewport$NeighboringClipper_NeighboringClipper(a,this));this.setDispatcher(this.createDispatcher_());var d=a.pageInfoSet_,e=a.volumeInfo_.getZoomMode();this.createLayoutFunction_=a.volumeInfo_.fullview_? function(f){return new module$contents$ocean$books$Layout_Layout(d,e,f)}:a.volumeInfo_.lastPageInfo_?function(f){return new module$contents$ocean$books$Layout_Layout(d,e,f,!0,a.volumeInfo_.lastPageInfo_)}:function(f){return new module$contents$ocean$books$Layout_Layout(d,e,f,!0)};b=this.viewer.volumeInfo_;b.getZoomMode()==ocean.layout.Layout.ZoomMode.FIXED_HEIGHT?(b=b.getZoomStops(),b=module$contents$ocean$viewport$OnePage_OnePage.getSizeForImageSize(b[Math.floor(b.length/2)])):b=module$contents$ocean$viewport$OnePage_OnePage.getSizeForImageSize(b.getInitialZoomWidth()); this.zoomToStop(b);this.getHandler().listen(this.viewer,ocean.viewport.Viewer.EventType.PAGESUPDATE,this.handlePagesUpdate_);this.getHandler().listen(this.viewer,ocean.viewport.Viewer.EventType.PAGEMODECHANGE,this.handlePageModeChange_);this.getHandler().listen(this,ocean.viewport.Viewport.EventType.MOVE,this.updateDisplay);this.getHandler().listen(this,ocean.viewport.Viewport.EventType.MOVE,this.updateCurrentPage_)};goog.inherits(ocean.books.VerticalViewport,module$contents$ocean$viewport$DocumentViewport_DocumentViewport); ocean.books.VerticalViewport.applyOverflowStyles_=function(a){goog.style.setStyle(a,"overflow","auto");goog.style.setStyle(a,{overflowX:"auto",overflowY:"scroll"});goog.dom.classlist.add(a,"overflow-scrolling");goog.dom.setProperties(a,{dir:"ltr"})};ocean.books.VerticalViewport.prototype.zoomIn=function(){this.zoomHelper(1)};ocean.books.VerticalViewport.prototype.zoomOut=function(){this.zoomHelper(-1)}; ocean.books.VerticalViewport.prototype.getZoomStops=function(){var a=this.viewer.volumeInfo_,b=module$contents$goog$array_toArray(a.getZoomStops());if(a.getZoomMode()==ocean.layout.Layout.ZoomMode.FIXED_WIDTH&&(a=this.viewer.volumeInfo_.maxZoomWidth_)){var c=module$contents$goog$array_peek(b);c=a-c;c>150&&(a<1500?module$contents$goog$array_insert(b,a):module$contents$goog$array_insert(b,1500))}return new module$contents$ocean$viewport$ZoomStops_ZoomStops(module$contents$goog$array_map(b,module$contents$ocean$viewport$OnePage_OnePage.getSizeForImageSize))}; ocean.books.VerticalViewport.prototype.zoomToCoordinate=function(a,b,c){var d=this.getScroll(),e=this.layout_,f=this.createLayoutForZoomStop(b),g=new module$contents$ocean$layout$PointMapper_PointMapper(e,f),h=goog.math.Coordinate.sum(d,c);h=g.getDestCoordinate(h);var k=goog.math.Coordinate.difference(h,c),l=this.viewportDiv_,m=goog.dom.getElementsByTagNameAndClass(goog.dom.TagName.DIV,"separator-container");if(b>a){d=g.getDestCoordinate(this.getMiddleCoordinate());d=this.middleToScroll(d);e=goog.math.Coordinate.difference(d, k);d=(a-b)/2;g=b/a;c=1/g;e="matrix("+g+", 0, 0,"+g+","+e.x+","+e.y+")";var n="matrix("+c+", 0, 0,"+c+","+d+", 0)";l.style.transition="transform 0.3s";l.style.transform=e;l.style.webkitTransform=e;module$contents$goog$array_forEach(m,function(r){r.style.width=b+"px";r.style.transform=n;r.style.webkitTransform=n});goog.Timer.callOnce(function(){this.setLayout(f);this.moveTo(k);l.style.transition="none";l.style.transform="";l.style.webkitTransform="";module$contents$goog$array_forEach(m,function(r){r.style.transform= "";r.style.webkitTransform=""})},300,this)}else{this.setLayout(f);this.moveTo(k);m=goog.dom.getElementsByTagNameAndClass(goog.dom.TagName.DIV,"separator-container");c=new module$contents$ocean$layout$PointMapper_PointMapper(this.layout_,e);c=c.getDestCoordinate(this.getMiddleCoordinate());c=this.middleToScroll(c);c=goog.math.Coordinate.difference(c,d);var p=(b-a)/2;e=a/b;d=1/e;c="matrix("+e+", 0, 0,"+e+","+c.x+","+c.y+")";var q="matrix("+d+", 0, 0,"+d+","+p+", 0)";l.style.transform=c;l.style.webkitTransform= c;module$contents$goog$array_forEach(m,function(r){r.style.width=a+"px";r.style.transform=q;r.style.webkitTransform=q});goog.async.nextTick(function(){l.style.transition="transform 0.3s";l.style.transform="matrix(1, 0, 0, 1, 0, 0)";l.style.webkitTransform="matrix(1, 0, 0, 1, 0, 0)";module$contents$goog$array_forEach(m,function(r){r.style.transition="transform 0.3s";r.style.transform="matrix(1, 0, 0, 1,"+p+", 0)";r.style.webkitTransform="matrix(1, 0, 0, 1,"+p+", 0)"});goog.Timer.callOnce(function(){l.style.transition= "none";l.style.transform="";l.style.webkitTransform="";module$contents$goog$array_forEach(m,function(r){r.style.width=b+"px";r.style.transition="none";r.style.transform="";r.style.webkitTransform=""})},500,this)},this)}};ocean.books.VerticalViewport.prototype.createLayoutForZoomStop=function(a){return this.createLayoutFunction_(a)};ocean.books.VerticalViewport.prototype.getSize=function(){return this.getContentSize()}; ocean.books.VerticalViewport.prototype.createDispatcher_=function(){var a=this,b=goog.partial(goog.functions.create,module$contents$ocean$viewport$OnePage_OnePage,this.viewer,this,this.getCanvasDiv());b=new module$contents$ocean$viewport$LayoutPageRenderer_LayoutPageRenderer(this,b);var c=new module$contents$ocean$viewport$LayoutItemDispatcher_LayoutItemDispatcher;c.addRenderer(module$contents$ocean$layout$LayoutPage_LayoutPage,b);c.addRenderer(module$contents$ocean$books$LayoutSeparator_LayoutSeparator, new module$contents$ocean$books$LayoutSeparatorRenderer_LayoutSeparatorRenderer(this.viewer,function(d){return new module$contents$ocean$books$Separator_Separator(a.getCanvasDiv(),d)}));return c};ocean.books.VerticalViewport.prototype.updateCurrentPage_=function(){this.updateMiddlePage_&&this.setMiddlePage_();this.updateMiddlePage_=!0}; ocean.books.VerticalViewport.prototype.setMiddlePage_=function(){var a=this.getMiddleCoordinate();(a=this.layout_.getItemAtYCoordinate(a.y))&&a.getPageInfo&&(a=a.getPageInfo(),this.viewer.getPageInfo()!=a&&(this.ignorePageChange_=!0,this.viewer.setPageId(a.getPageId()),this.ignorePageChange_=!1))}; ocean.books.VerticalViewport.prototype.handlePagesUpdate_=function(){var a=this.viewer.getPageInfo(),b=this.viewer.pageInfoSet_,c=b.getPageInfoByPid(a.getPageId());c||(c=b.getPageInfoWithMaxOrderId(a.getOrderId()));b=this.getScroll();a=this.layout_;var d=a.getLayoutPageByPageInfo(c);b=goog.math.Coordinate.difference(b,d.getPosition());a=this.createLayoutForZoomStop(a.getZoomStop());c=a.getLayoutPageByPageInfo(c);c=goog.math.Coordinate.sum(c.getPosition(),b);this.setLayout(a);this.moveTo(c)}; ocean.books.VerticalViewport.prototype.handlePageModeChange_=function(){this.dispatcher_.cleanup();this.updateDisplay()};ocean.books.VerticalViewport.MAX_ZOOM_WIDTH_=1500;ocean.books.VerticalViewport.ZOOM_STOP_DIFFERENCE_=150; ocean.books.VerticalViewport.prototype.getFocusArticleCoords=function(a){if(a.getFocusArticle&&a.focusArticle_){var b=a.focusArticle_,c=b.getFocusCoordinates();b=c.x-40;c=c.y-40;var d=this.layout_.getLayoutPageByPageInfo(a);a=d.getWidth()/a.getPageWidth();b=d.getLeft()+Math.round(a*b);a=d.getTop()+Math.round(a*c);return a=new goog.math.Coordinate(b,a)}return null}; ocean.books.VerticalViewport.prototype.drawBoundingBoxes=function(a){if(a.getFocusArticle&&a.focusArticle_){var b=a.focusArticle_,c=a.hasHeadlineDisplay()?a.headlineDisplay_:a.createHeadlineDisplay(this.getCanvasDiv());c.resetDisplayDiv(this.getCanvasDiv());var d=this.layout_.getLayoutPageByPageInfo(a);a=d.getWidth()/a.getPageWidth();if(b.getHeadlineBoxes()&&(b=b.getHeadlineBoxes())){var e=b[0];if(e&&e.length==4){b=a*e[0]+d.getLeft();d=a*e[1]+d.getTop();var f=a*e[2];a*=e[3];c.drawHighlight(b,d,f, a)}}}};ocean.books.ThumbnailPage=function(a,b,c,d,e){module$contents$ocean$EventManager_EventManager.call(this);this.viewer_=a;this.viewport_=b;this.pageInfo_=c;var f=goog.dom.createElement("div");goog.style.setStyle(f,{position:"absolute"});e=e.width-2;goog.style.setPosition(f,d.x+(ocean.style.isPageRtl()?e:0),d.y);goog.dom.appendChild(b.getCanvasDiv(),f);this.rootDiv_=f;b=Math.floor(e/c.getRatio());e=new goog.math.Size(e,b);this.imageBorderDiv_=goog.dom.createElement("div");goog.dom.appendChild(this.rootDiv_, this.imageBorderDiv_);goog.style.setStyle(this.imageBorderDiv_,{padding:"1px",position:"absolute"});this.updateSelected_();b=goog.dom.createElement("div");goog.dom.appendChild(this.imageBorderDiv_,b);goog.style.setStyle(b,{overflow:"hidden",backgroundColor:"#fcfcfc"});goog.style.setSize(b,e);goog.dom.appendChild(this.imageBorderDiv_,b);d=goog.dom.createElement(goog.dom.TagName.IMG);d.title=c.getLabel();this.image_=d;f=new goog.Uri(c.getPageImageUrl());f.setParameterValue("zoom","1");f.setParameterValue("img", "1");f.setParameterValue("w",e.width);if(e=this.viewer_.volumeInfo_.thumbnailToken_)f.setParameterValue("imgtk",e),f.setParameterValue("jtp",c.getOrderId());d.src=f.toString();goog.dom.appendChild(b,d);goog.style.setStyle(this.imageBorderDiv_,"cursor","pointer");this.getHandler().listen(this.imageBorderDiv_,"click",this.handleClick);this.getHandler().listen(a,ocean.viewport.Viewer.EventType.PAGECHANGE,this.updateSelected_)};$jscomp.inherits(ocean.books.ThumbnailPage,module$contents$ocean$viewport$Drawable_Drawable); ocean.books.ThumbnailPage.prototype.updateSelected_=function(){var a=!1,b=this.viewer_.getPageInfo();b&&b==this.pageInfo_&&(a=!0);goog.style.setStyle(this.imageBorderDiv_,"backgroundColor",a?"#6B90DA":"#ccc")};ocean.books.ThumbnailPage.prototype.handleClick=function(){this.viewer_.setViewportClass(ocean.books.VerticalViewport);this.viewer_.setPageInfo(this.pageInfo_);ocean.books.ThumbnailPage.eventTarget.dispatchEvent(ocean.books.ThumbnailPage.EventType.CLICK)}; ocean.books.ThumbnailPage.prototype.cleanup=function(){module$contents$ocean$util$Image_dispose(this.image_);goog.dom.removeNode(this.rootDiv_)};ocean.books.ThumbnailPage.eventTarget=new goog.events.EventTarget;ocean.books.ThumbnailPage.EventType={CLICK:"click"};var module$contents$ocean$books$ThumbnailPageRenderer_ThumbnailPageRenderer=function(a,b){this.viewer_=a;this.viewport_=b};$jscomp.inherits(module$contents$ocean$books$ThumbnailPageRenderer_ThumbnailPageRenderer,module$contents$ocean$viewport$LayoutItemRenderer_LayoutItemRenderer);module$contents$ocean$books$ThumbnailPageRenderer_ThumbnailPageRenderer.prototype.render=function(a){return a=new ocean.books.ThumbnailPage(this.viewer_,this.viewport_,a.getPageInfo(),a.getPosition(),a.getSize())}; ocean.books.ThumbnailPageRenderer=module$contents$ocean$books$ThumbnailPageRenderer_ThumbnailPageRenderer;ocean.books.ThumbnailViewport=function(a){var b=a.viewportDiv_;goog.style.setStyle(b,{overflow:"hidden"});var c=new module$contents$ocean$viewport$ScrollWindow_ScrollWindow(this,b);module$contents$ocean$viewport$DocumentViewport_DocumentViewport.call(this,a,c);this.getHandler().listen(this,ocean.viewport.Viewport.EventType.MOVE,this.updateDisplay);goog.style.setStyle(b,{overflow:"auto"});this.setDispatcher(this.createDispatcher_());this.setLayout(this.createLayout_());this.setClipper(new module$contents$ocean$viewport$ContinuousClipper_ContinuousClipper(this)); goog.Timer.callOnce(goog.bind(this.updateDisplay,this),0);this.getHandler().listen(this,ocean.viewport.Viewport.EventType.RESIZE,this.resize_);var d=goog.dom.getElement("subscription-bar");d&&(this.fadeOutInstitutionalSubscriptionBar(d),goog.Timer.callOnce(function(){goog.style.setElementShown(d,!1)},600))};goog.inherits(ocean.books.ThumbnailViewport,module$contents$ocean$viewport$DocumentViewport_DocumentViewport); ocean.books.ThumbnailViewport.prototype.goToPage=function(a){var b=this.layout_;a=b.getLayoutPageByPageInfo(a);a=a.getPosition();this.moveTo(new goog.math.Coordinate(void 0,a.y-40))};ocean.books.ThumbnailViewport.prototype.createLayout_=function(){var a=this.viewer.volumeInfo_.pairedThumbnails_;return new ocean.books.ThumbnailLayout(this.viewer.pageInfoSet_,ocean.entitypage.Util.isSourceEntityPage()?Math.min(this.getSize().width,1120):this.getSize().width,a,a)}; ocean.books.ThumbnailViewport.prototype.resize_=function(){this.setLayout(this.createLayout_());this.goToPage(this.viewer.getPageInfo())};ocean.books.ThumbnailViewport.prototype.createDispatcher_=function(){var a=new module$contents$ocean$viewport$LayoutItemDispatcher_LayoutItemDispatcher,b=new module$contents$ocean$books$ThumbnailPageRenderer_ThumbnailPageRenderer(this.viewer,this);a.addRenderer(module$contents$ocean$layout$LayoutPage_LayoutPage,b);return a};var module$exports$ocean$books$TocEntry=function(a){this.title_=a.Title;this.pid_=a.Pid;this.pageNumberForDisplay_=a.PgNum};module$exports$ocean$books$TocEntry.prototype.getTitle=function(){return this.title_};module$exports$ocean$books$TocEntry.prototype.getId=function(){return this.pid_};goog.events.KeyEvent=function(a,b,c,d){goog.events.BrowserEvent.call(this,d);this.type=goog.events.KeyEvent.EventType.KEY;this.keyCode=a;this.charCode=b;this.repeat=c};goog.inherits(goog.events.KeyEvent,goog.events.BrowserEvent);goog.events.KeyEvent.EventType={KEY:"key"};goog.events.KeyHandler=function(a,b){goog.events.EventTarget.call(this);a&&this.attach(a,b)};goog.inherits(goog.events.KeyHandler,goog.events.EventTarget);goog.events.KeyHandler.prototype.element_=null;goog.events.KeyHandler.prototype.keyPressKey_=null;goog.events.KeyHandler.prototype.keyDownKey_=null;goog.events.KeyHandler.prototype.keyUpKey_=null;goog.events.KeyHandler.prototype.lastKey_=-1;goog.events.KeyHandler.prototype.keyCode_=-1;goog.events.KeyHandler.prototype.altKey_=!1; goog.events.KeyHandler.EventType=goog.events.KeyEvent.EventType; goog.events.KeyHandler.safariKey_={3:goog.events.KeyCodes.ENTER,12:goog.events.KeyCodes.NUMLOCK,63232:goog.events.KeyCodes.UP,63233:goog.events.KeyCodes.DOWN,63234:goog.events.KeyCodes.LEFT,63235:goog.events.KeyCodes.RIGHT,63236:goog.events.KeyCodes.F1,63237:goog.events.KeyCodes.F2,63238:goog.events.KeyCodes.F3,63239:goog.events.KeyCodes.F4,63240:goog.events.KeyCodes.F5,63241:goog.events.KeyCodes.F6,63242:goog.events.KeyCodes.F7,63243:goog.events.KeyCodes.F8,63244:goog.events.KeyCodes.F9,63245:goog.events.KeyCodes.F10, 63246:goog.events.KeyCodes.F11,63247:goog.events.KeyCodes.F12,63248:goog.events.KeyCodes.PRINT_SCREEN,63272:goog.events.KeyCodes.DELETE,63273:goog.events.KeyCodes.HOME,63275:goog.events.KeyCodes.END,63276:goog.events.KeyCodes.PAGE_UP,63277:goog.events.KeyCodes.PAGE_DOWN,63289:goog.events.KeyCodes.NUMLOCK,63302:goog.events.KeyCodes.INSERT}; goog.events.KeyHandler.keyIdentifier_={Up:goog.events.KeyCodes.UP,Down:goog.events.KeyCodes.DOWN,Left:goog.events.KeyCodes.LEFT,Right:goog.events.KeyCodes.RIGHT,Enter:goog.events.KeyCodes.ENTER,F1:goog.events.KeyCodes.F1,F2:goog.events.KeyCodes.F2,F3:goog.events.KeyCodes.F3,F4:goog.events.KeyCodes.F4,F5:goog.events.KeyCodes.F5,F6:goog.events.KeyCodes.F6,F7:goog.events.KeyCodes.F7,F8:goog.events.KeyCodes.F8,F9:goog.events.KeyCodes.F9,F10:goog.events.KeyCodes.F10,F11:goog.events.KeyCodes.F11,F12:goog.events.KeyCodes.F12, "U+007F":goog.events.KeyCodes.DELETE,Home:goog.events.KeyCodes.HOME,End:goog.events.KeyCodes.END,PageUp:goog.events.KeyCodes.PAGE_UP,PageDown:goog.events.KeyCodes.PAGE_DOWN,Insert:goog.events.KeyCodes.INSERT};goog.events.KeyHandler.SAVE_ALT_FOR_KEYPRESS_=goog.userAgent.MAC&&goog.userAgent.GECKO; goog.events.KeyHandler.prototype.handleKeyDown_=function(a){goog.userAgent.WEBKIT&&(this.lastKey_==goog.events.KeyCodes.CTRL&&!a.ctrlKey||this.lastKey_==goog.events.KeyCodes.ALT&&!a.altKey||goog.userAgent.MAC&&this.lastKey_==goog.events.KeyCodes.META&&!a.metaKey)&&this.resetState();this.lastKey_==-1&&(a.ctrlKey&&a.keyCode!=goog.events.KeyCodes.CTRL?this.lastKey_=goog.events.KeyCodes.CTRL:a.altKey&&a.keyCode!=goog.events.KeyCodes.ALT?this.lastKey_=goog.events.KeyCodes.ALT:a.metaKey&&a.keyCode!=goog.events.KeyCodes.META&& (this.lastKey_=goog.events.KeyCodes.META));goog.events.KeyCodes.firesKeyPressEvent(a.keyCode,this.lastKey_,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey)?(this.keyCode_=goog.events.KeyCodes.normalizeKeyCode(a.keyCode),goog.events.KeyHandler.SAVE_ALT_FOR_KEYPRESS_&&(this.altKey_=a.altKey)):this.handleEvent(a)};goog.events.KeyHandler.prototype.resetState=function(){this.keyCode_=this.lastKey_=-1};goog.events.KeyHandler.prototype.handleKeyup_=function(a){this.resetState();this.altKey_=a.altKey}; goog.events.KeyHandler.prototype.handleEvent=function(a){var b=a.event_,c=b.altKey;if(goog.userAgent.WEBKIT&&a.type==goog.events.EventType.KEYPRESS){var d=this.keyCode_;var e=b.charCode>=0&&b.charCode<63232&&goog.events.KeyCodes.isCharacterKey(d)?b.charCode:0}else a.type==goog.events.EventType.KEYPRESS?(goog.events.KeyHandler.SAVE_ALT_FOR_KEYPRESS_&&(c=this.altKey_),b.keyCode==b.charCode?b.keyCode<32?(d=b.keyCode,e=0):(d=this.keyCode_,e=b.charCode):(d=b.keyCode||this.keyCode_,e=b.charCode||0)):(d= b.keyCode||this.keyCode_,e=b.charCode||0),goog.userAgent.MAC&&e==goog.events.KeyCodes.QUESTION_MARK&&d==goog.events.KeyCodes.WIN_KEY&&(d=goog.events.KeyCodes.SLASH);var f=d=goog.events.KeyCodes.normalizeKeyCode(d);d?d>=63232&&d in goog.events.KeyHandler.safariKey_?f=goog.events.KeyHandler.safariKey_[d]:d==25&&a.shiftKey&&(f=9):b.keyIdentifier&&b.keyIdentifier in goog.events.KeyHandler.keyIdentifier_&&(f=goog.events.KeyHandler.keyIdentifier_[b.keyIdentifier]);if(!goog.userAgent.GECKO||a.type!=goog.events.EventType.KEYPRESS|| goog.events.KeyCodes.firesKeyPressEvent(f,this.lastKey_,a.shiftKey,a.ctrlKey,c,a.metaKey))a=f==this.lastKey_,this.lastKey_=f,b=new goog.events.KeyEvent(f,e,a,b),b.altKey=c,this.dispatchEvent(b)};goog.events.KeyHandler.prototype.getElement=function(){return this.element_}; goog.events.KeyHandler.prototype.attach=function(a,b){this.keyUpKey_&&this.detach();this.element_=a;this.keyPressKey_=goog.events.listen(this.element_,goog.events.EventType.KEYPRESS,this,b);this.keyDownKey_=goog.events.listen(this.element_,goog.events.EventType.KEYDOWN,this.handleKeyDown_,b,this);this.keyUpKey_=goog.events.listen(this.element_,goog.events.EventType.KEYUP,this.handleKeyup_,b,this)}; goog.events.KeyHandler.prototype.detach=function(){this.keyPressKey_&&(goog.events.unlistenByKey(this.keyPressKey_),goog.events.unlistenByKey(this.keyDownKey_),goog.events.unlistenByKey(this.keyUpKey_),this.keyUpKey_=this.keyDownKey_=this.keyPressKey_=null);this.element_=null;this.keyCode_=this.lastKey_=-1};goog.events.KeyHandler.prototype.disposeInternal=function(){goog.events.KeyHandler.superClass_.disposeInternal.call(this);this.detach()};goog.ui.ButtonSide={NONE:0,START:1,END:2,BOTH:3};goog.ui.ControlContent={};goog.ui.ControlRenderer=function(){};goog.addSingletonGetter(goog.ui.ControlRenderer);goog.ui.ControlRenderer.getCustomRenderer=function(a,b){a=new a;a.getCssClass=function(){return b};return a};goog.ui.ControlRenderer.CSS_CLASS="goog-control";goog.ui.ControlRenderer.IE6_CLASS_COMBINATIONS=[]; goog.ui.ControlRenderer.TOGGLE_ARIA_STATE_MAP_=module$contents$goog$object_create(goog.a11y.aria.Role.BUTTON,goog.a11y.aria.State.PRESSED,goog.a11y.aria.Role.CHECKBOX,goog.a11y.aria.State.CHECKED,goog.a11y.aria.Role.MENUITEM,goog.a11y.aria.State.SELECTED,goog.a11y.aria.Role.MENUITEMCHECKBOX,goog.a11y.aria.State.CHECKED,goog.a11y.aria.Role.MENUITEMRADIO,goog.a11y.aria.State.CHECKED,goog.a11y.aria.Role.RADIO,goog.a11y.aria.State.CHECKED,goog.a11y.aria.Role.TAB,goog.a11y.aria.State.SELECTED,goog.a11y.aria.Role.TREEITEM, goog.a11y.aria.State.SELECTED);goog.ui.ControlRenderer.prototype.getAriaRole=function(){};goog.ui.ControlRenderer.prototype.createDom=function(a){return a=a.getDomHelper().createDom(goog.dom.TagName.DIV,this.getClassNames(a).join(" "),a.getContent())};goog.ui.ControlRenderer.prototype.getContentElement=function(a){return a};goog.ui.ControlRenderer.prototype.enableClassName=function(a,b,c){if(a=a.getElement?a.getElement():a)b=[b],goog.dom.classlist.enableAll(a,b,c)}; goog.ui.ControlRenderer.prototype.enableExtraClassName=function(a,b,c){this.enableClassName(a,b,c)};goog.ui.ControlRenderer.prototype.canDecorate=function(){return!0}; goog.ui.ControlRenderer.prototype.decorate=function(a,b){b.id&&a.setId(b.id);var c=this.getContentElement(b);c&&c.firstChild?a.setContentInternal(c.firstChild.nextSibling?module$contents$goog$array_toArray(c.childNodes):c.firstChild):a.setContentInternal(null);var d=0,e=this.getCssClass(),f=this.getStructuralCssClass(),g=!1,h=!1,k=module$contents$goog$array_toArray(goog.dom.classlist.get(b));k.forEach(function(l){g||l!=e?h||l!=f?d|=this.getStateFromClass(l):h=!0:(g=!0,f==e&&(h=!0));this.getStateFromClass(l)== goog.ui.Component.State.DISABLED&&(goog.asserts.assertElement(c),goog.dom.isFocusableTabIndex(c)&&goog.dom.setFocusableTabIndex(c,!1))},this);a.setStateInternal(d);g||(k.push(e),f==e&&(h=!0));h||k.push(f);(a=a.extraClassNames_)&&k.push.apply(k,a);g&&h&&!a||goog.dom.classlist.set(b,k.join(" "));return b};goog.ui.ControlRenderer.prototype.initializeDom=function(a){a.isRightToLeft()&&this.setRightToLeft(a.getElement(),!0);a.isEnabled()&&this.setFocusable(a,a.isVisible())}; goog.ui.ControlRenderer.prototype.setAriaRole=function(a,b){if(b=b||this.getAriaRole()){goog.asserts.assert(a,"The element passed as a first parameter cannot be null.");var c=goog.a11y.aria.getRole(a);b!=c&&goog.a11y.aria.setRole(a,b)}}; goog.ui.ControlRenderer.prototype.setAriaStates=function(a,b){goog.asserts.assert(a);goog.asserts.assert(b);var c=a.ariaLabel_;c!=null&&this.setAriaLabel(b,c);a.isVisible()||goog.a11y.aria.setState(b,goog.a11y.aria.State.HIDDEN,!a.isVisible());a.isEnabled()||this.updateAriaState(b,goog.ui.Component.State.DISABLED,!a.isEnabled());a.isSupportedState(goog.ui.Component.State.SELECTED)&&this.updateAriaState(b,goog.ui.Component.State.SELECTED,a.isSelected());a.isSupportedState(goog.ui.Component.State.CHECKED)&& this.updateAriaState(b,goog.ui.Component.State.CHECKED,a.isChecked());a.isSupportedState(goog.ui.Component.State.OPENED)&&this.updateAriaState(b,goog.ui.Component.State.OPENED,a.isOpen())};goog.ui.ControlRenderer.prototype.setAriaLabel=function(a,b){goog.a11y.aria.setLabel(a,b)};goog.ui.ControlRenderer.prototype.setAllowTextSelection=function(a,b){goog.style.setUnselectable(a,!b,!0)}; goog.ui.ControlRenderer.prototype.setRightToLeft=function(a,b){this.enableClassName(a,this.getStructuralCssClass()+"-rtl",b)};goog.ui.ControlRenderer.prototype.isFocusable=function(a){var b;return a.isSupportedState(goog.ui.Component.State.FOCUSED)&&(b=a.getKeyEventTarget())?goog.dom.isFocusableTabIndex(b):!1}; goog.ui.ControlRenderer.prototype.setFocusable=function(a,b){var c;if(a.isSupportedState(goog.ui.Component.State.FOCUSED)&&(c=a.getKeyEventTarget())){if(!b&&a.isFocused()){try{c.blur()}catch(d){}a.isFocused()&&a.handleBlur(null)}goog.dom.isFocusableTabIndex(c)!=b&&goog.dom.setFocusableTabIndex(c,b)}};goog.ui.ControlRenderer.prototype.setVisible=function(a,b){goog.style.setElementShown(a,b);a&&goog.a11y.aria.setState(a,goog.a11y.aria.State.HIDDEN,!b)}; goog.ui.ControlRenderer.prototype.setState=function(a,b,c){var d=a.getElement();if(d){var e=this.getClassForState(b);e&&this.enableClassName(a,e,c);this.updateAriaState(d,b,c)}}; goog.ui.ControlRenderer.prototype.updateAriaState=function(a,b,c){goog.ui.ControlRenderer.ariaAttributeMap_||(goog.ui.ControlRenderer.ariaAttributeMap_=module$contents$goog$object_create(goog.ui.Component.State.DISABLED,goog.a11y.aria.State.DISABLED,goog.ui.Component.State.SELECTED,goog.a11y.aria.State.SELECTED,goog.ui.Component.State.CHECKED,goog.a11y.aria.State.CHECKED,goog.ui.Component.State.OPENED,goog.a11y.aria.State.EXPANDED));goog.asserts.assert(a,"The element passed as a first parameter cannot be null."); (b=goog.ui.ControlRenderer.getAriaStateForAriaRole_(a,goog.ui.ControlRenderer.ariaAttributeMap_[b]))&&goog.a11y.aria.setState(a,b,c)};goog.ui.ControlRenderer.getAriaStateForAriaRole_=function(a,b){a=goog.a11y.aria.getRole(a);if(!a)return b;a=goog.ui.ControlRenderer.TOGGLE_ARIA_STATE_MAP_[a]||b;return goog.ui.ControlRenderer.isAriaState_(b)?a:b};goog.ui.ControlRenderer.isAriaState_=function(a){return a==goog.a11y.aria.State.CHECKED||a==goog.a11y.aria.State.SELECTED}; goog.ui.ControlRenderer.prototype.setContent=function(a,b){var c=this.getContentElement(a);c&&(goog.dom.removeChildren(c),b&&(typeof b==="string"?goog.dom.setTextContent(c,b):(a=function(d){if(d){var e=goog.dom.getOwnerDocument(c);c.appendChild(typeof d==="string"?e.createTextNode(d):d)}},Array.isArray(b)?b.forEach(a):!goog.isArrayLike(b)||"nodeType"in b?a(b):module$contents$goog$array_toArray(b).forEach(a))))};goog.ui.ControlRenderer.prototype.getKeyEventTarget=function(a){return a.getElement()}; goog.ui.ControlRenderer.prototype.getCssClass=function(){return goog.ui.ControlRenderer.CSS_CLASS};goog.ui.ControlRenderer.prototype.getStructuralCssClass=function(){return this.getCssClass()};goog.ui.ControlRenderer.prototype.getClassNames=function(a){var b=this.getCssClass(),c=[b],d=this.getStructuralCssClass();d!=b&&c.push(d);b=this.getClassNamesForState(a.getState());c.push.apply(c,b);(a=a.extraClassNames_)&&c.push.apply(c,a);return c}; goog.ui.ControlRenderer.prototype.getClassNamesForState=function(a){for(var b=[];a;){var c=a&-a;b.push(this.getClassForState(c));a&=~c}return b};goog.ui.ControlRenderer.prototype.getClassForState=function(a){this.classByState_||this.createClassByStateMap_();return this.classByState_[a]};goog.ui.ControlRenderer.prototype.getStateFromClass=function(a){this.stateByClass_||this.createStateByClassMap_();a=parseInt(this.stateByClass_[a],10);return isNaN(a)?0:a}; goog.ui.ControlRenderer.prototype.createClassByStateMap_=function(){var a=this.getStructuralCssClass(),b=!goog.string.contains(goog.string.normalizeWhitespace(a)," ");goog.asserts.assert(b,"ControlRenderer has an invalid css class: '"+a+"'");this.classByState_=module$contents$goog$object_create(goog.ui.Component.State.DISABLED,a+"-disabled",goog.ui.Component.State.HOVER,a+"-hover",goog.ui.Component.State.ACTIVE,a+"-active",goog.ui.Component.State.SELECTED,a+"-selected",goog.ui.Component.State.CHECKED, a+"-checked",goog.ui.Component.State.FOCUSED,a+"-focused",goog.ui.Component.State.OPENED,a+"-open")};goog.ui.ControlRenderer.prototype.createStateByClassMap_=function(){this.classByState_||this.createClassByStateMap_();this.stateByClass_=module$contents$goog$object_transpose(this.classByState_)};goog.ui.ButtonRenderer=function(){};goog.inherits(goog.ui.ButtonRenderer,goog.ui.ControlRenderer);goog.addSingletonGetter(goog.ui.ButtonRenderer);goog.ui.ButtonRenderer.CSS_CLASS="goog-button";goog.ui.ButtonRenderer.prototype.getAriaRole=function(){return goog.a11y.aria.Role.BUTTON}; goog.ui.ButtonRenderer.prototype.updateAriaState=function(a,b,c){switch(b){case goog.ui.Component.State.SELECTED:case goog.ui.Component.State.CHECKED:goog.asserts.assert(a,"The button DOM element cannot be null.");goog.a11y.aria.setState(a,goog.a11y.aria.State.PRESSED,c);break;default:case goog.ui.Component.State.OPENED:case goog.ui.Component.State.DISABLED:goog.ui.ButtonRenderer.superClass_.updateAriaState.call(this,a,b,c)}}; goog.ui.ButtonRenderer.prototype.createDom=function(a){var b=goog.ui.ButtonRenderer.superClass_.createDom.call(this,a);this.setTooltip(b,a.getTooltip());var c=a.getValue();c&&this.setValue(b,c);a.isSupportedState(goog.ui.Component.State.CHECKED)&&this.updateAriaState(b,goog.ui.Component.State.CHECKED,a.isChecked());return b}; goog.ui.ButtonRenderer.prototype.decorate=function(a,b){b=goog.ui.ButtonRenderer.superClass_.decorate.call(this,a,b);a.setValueInternal(this.getValue(b));a.setTooltipInternal(this.getTooltip(b));a.isSupportedState(goog.ui.Component.State.CHECKED)&&this.updateAriaState(b,goog.ui.Component.State.CHECKED,a.isChecked());return b};goog.ui.ButtonRenderer.prototype.getValue=function(){};goog.ui.ButtonRenderer.prototype.setValue=function(){};goog.ui.ButtonRenderer.prototype.getTooltip=function(a){return a.title}; goog.ui.ButtonRenderer.prototype.setTooltip=function(a,b){a&&(b?a.title=b:a.removeAttribute("title"))};goog.ui.ButtonRenderer.prototype.setCollapsed=function(a,b){var c=a.isRightToLeft(),d=this.getStructuralCssClass()+"-collapse-left",e=this.getStructuralCssClass()+"-collapse-right";a.enableClassName(c?e:d,!!(b&goog.ui.ButtonSide.START));a.enableClassName(c?d:e,!!(b&goog.ui.ButtonSide.END))};goog.ui.ButtonRenderer.prototype.getCssClass=function(){return goog.ui.ButtonRenderer.CSS_CLASS};goog.events.MouseEvents={};goog.events.MouseAsMouseEventType={MOUSEDOWN:goog.events.EventType.MOUSEDOWN,MOUSEUP:goog.events.EventType.MOUSEUP,MOUSECANCEL:goog.events.EventType.MOUSECANCEL,MOUSEMOVE:goog.events.EventType.MOUSEMOVE,MOUSEOVER:goog.events.EventType.MOUSEOVER,MOUSEOUT:goog.events.EventType.MOUSEOUT,MOUSEENTER:goog.events.EventType.MOUSEENTER,MOUSELEAVE:goog.events.EventType.MOUSELEAVE};goog.events.PointerFallbackEventType={POINTERDOWN:goog.events.eventTypeHelpers.getPointerFallbackEventName(goog.events.EventType.POINTERDOWN,goog.events.EventType.MOUSEDOWN),POINTERUP:goog.events.eventTypeHelpers.getPointerFallbackEventName(goog.events.EventType.POINTERUP,goog.events.EventType.MOUSEUP),POINTERCANCEL:goog.events.eventTypeHelpers.getPointerFallbackEventName(goog.events.EventType.POINTERCANCEL,goog.events.EventType.MOUSECANCEL),POINTERMOVE:goog.events.eventTypeHelpers.getPointerFallbackEventName(goog.events.EventType.POINTERMOVE, goog.events.EventType.MOUSEMOVE),POINTEROVER:goog.events.eventTypeHelpers.getPointerFallbackEventName(goog.events.EventType.POINTEROVER,goog.events.EventType.MOUSEOVER),POINTEROUT:goog.events.eventTypeHelpers.getPointerFallbackEventName(goog.events.EventType.POINTEROUT,goog.events.EventType.MOUSEOUT),POINTERENTER:goog.events.eventTypeHelpers.getPointerFallbackEventName(goog.events.EventType.POINTERENTER,goog.events.EventType.MOUSEENTER),POINTERLEAVE:goog.events.eventTypeHelpers.getPointerFallbackEventName(goog.events.EventType.POINTERLEAVE, goog.events.EventType.MOUSELEAVE)};goog.events.PointerAsMouseEventType={MOUSEDOWN:goog.events.PointerFallbackEventType.POINTERDOWN,MOUSEUP:goog.events.PointerFallbackEventType.POINTERUP,MOUSECANCEL:goog.events.PointerFallbackEventType.POINTERCANCEL,MOUSEMOVE:goog.events.PointerFallbackEventType.POINTERMOVE,MOUSEOVER:goog.events.PointerFallbackEventType.POINTEROVER,MOUSEOUT:goog.events.PointerFallbackEventType.POINTEROUT,MOUSEENTER:goog.events.PointerFallbackEventType.POINTERENTER,MOUSELEAVE:goog.events.PointerFallbackEventType.POINTERLEAVE};goog.ui.ComponentUtil={};goog.ui.ComponentUtil.getMouseEventType=function(a){return a.pointerEventsEnabled_?goog.events.PointerAsMouseEventType:goog.events.MouseAsMouseEventType};goog.ui.registry={};goog.ui.registry.getDefaultRenderer=function(a){for(var b;a;){b=goog.getUid(a);if(b=goog.ui.registry.defaultRenderers_[b])break;a=module$contents$goog$object_getSuperClass(a)}return b?typeof b.getInstance==="function"?b.getInstance():new b:null}; goog.ui.registry.setDefaultRenderer=function(a,b){if(typeof a!=="function")throw Error("Invalid component class "+a);if(typeof b!=="function")throw Error("Invalid renderer class "+b);a=goog.getUid(a);goog.ui.registry.defaultRenderers_[a]=b};goog.ui.registry.getDecoratorByClassName=function(a){return a in goog.ui.registry.decoratorFunctions_?goog.ui.registry.decoratorFunctions_[a]():null}; goog.ui.registry.setDecoratorByClassName=function(a,b){if(!a)throw Error("Invalid class name "+a);if(typeof b!=="function")throw Error("Invalid decorator function "+b);goog.ui.registry.decoratorFunctions_[a]=b};goog.ui.registry.getDecorator=function(a){goog.asserts.assert(a);for(var b=goog.dom.classlist.get(a),c=b.length,d=0;d<c;d++)if(a=goog.ui.registry.getDecoratorByClassName(b[d]))return a;return null}; goog.ui.registry.reset=function(){goog.ui.registry.defaultRenderers_={};goog.ui.registry.decoratorFunctions_={}};goog.ui.registry.defaultRenderers_={};goog.ui.registry.decoratorFunctions_={};goog.ui.Control=function(a,b,c){goog.ui.Component.call(this,c);this.renderer_=b||goog.ui.registry.getDefaultRenderer(this.constructor);this.setContentInternal(a!==void 0?a:null);this.ariaLabel_=null};goog.inherits(goog.ui.Control,goog.ui.Component);goog.ui.Control.registerDecorator=goog.ui.registry.setDecoratorByClassName;goog.ui.Control.getDecorator=goog.ui.registry.getDecorator;goog.ui.Control.prototype.content_=null;goog.ui.Control.prototype.state_=0; goog.ui.Control.prototype.supportedStates_=goog.ui.Component.State.DISABLED|goog.ui.Component.State.HOVER|goog.ui.Component.State.ACTIVE|goog.ui.Component.State.FOCUSED;goog.ui.Control.prototype.autoStates_=goog.ui.Component.State.ALL;goog.ui.Control.prototype.statesWithTransitionEvents_=0;goog.ui.Control.prototype.visible_=!0;goog.ui.Control.prototype.extraClassNames_=null;goog.ui.Control.prototype.handleMouseEvents_=!0;goog.ui.Control.prototype.allowTextSelection_=!1; goog.ui.Control.prototype.preferredAriaRole_=null;goog.ui.Control.prototype.setHandleMouseEvents=function(a){this.isInDocument()&&a!=this.handleMouseEvents_&&this.enableMouseEventHandling_(a);this.handleMouseEvents_=a};goog.ui.Control.prototype.getKeyEventTarget=function(){return this.renderer_.getKeyEventTarget(this)};goog.ui.Control.prototype.getKeyHandler=function(){return this.keyHandler_||(this.keyHandler_=new goog.events.KeyHandler)}; goog.ui.Control.prototype.addClassName=function(a){a&&(this.extraClassNames_?module$contents$goog$array_contains(this.extraClassNames_,a)||this.extraClassNames_.push(a):this.extraClassNames_=[a],this.renderer_.enableExtraClassName(this,a,!0))};goog.ui.Control.prototype.removeClassName=function(a){a&&this.extraClassNames_&&module$contents$goog$array_remove(this.extraClassNames_,a)&&(this.extraClassNames_.length==0&&(this.extraClassNames_=null),this.renderer_.enableExtraClassName(this,a,!1))}; goog.ui.Control.prototype.enableClassName=function(a,b){b?this.addClassName(a):this.removeClassName(a)};goog.ui.Control.prototype.createDom=function(){var a=this.renderer_.createDom(this);this.setElementInternal(a);this.renderer_.setAriaRole(a,this.getPreferredAriaRole());this.allowTextSelection_||this.renderer_.setAllowTextSelection(a,!1);this.isVisible()||this.renderer_.setVisible(a,!1)};goog.ui.Control.prototype.getPreferredAriaRole=function(){return this.preferredAriaRole_}; goog.ui.Control.prototype.setPreferredAriaRole=function(a){this.preferredAriaRole_=a};goog.ui.Control.prototype.setAriaLabel=function(a){this.ariaLabel_=a;var b=this.getElement();b&&this.renderer_.setAriaLabel(b,a)};goog.ui.Control.prototype.getContentElement=function(){return this.renderer_.getContentElement(this.getElement())};goog.ui.Control.prototype.canDecorate=function(a){return this.renderer_.canDecorate(a)}; goog.ui.Control.prototype.decorateInternal=function(a){a=this.renderer_.decorate(this,a);this.setElementInternal(a);this.renderer_.setAriaRole(a,this.getPreferredAriaRole());this.allowTextSelection_||this.renderer_.setAllowTextSelection(a,!1);this.visible_=a.style.display!="none"}; goog.ui.Control.prototype.enterDocument=function(){goog.ui.Control.superClass_.enterDocument.call(this);this.renderer_.setAriaStates(this,this.getElementStrict());this.renderer_.initializeDom(this);if(this.supportedStates_&~goog.ui.Component.State.DISABLED&&(this.handleMouseEvents_&&this.enableMouseEventHandling_(!0),this.isSupportedState(goog.ui.Component.State.FOCUSED))){var a=this.getKeyEventTarget();if(a){var b=this.getKeyHandler();b.attach(a);this.getHandler().listen(b,goog.events.KeyEvent.EventType.KEY, this.handleKeyEvent).listen(a,goog.events.EventType.FOCUS,this.handleFocus).listen(a,goog.events.EventType.BLUR,this.handleBlur)}}}; goog.ui.Control.prototype.enableMouseEventHandling_=function(a){var b=goog.ui.ComponentUtil.getMouseEventType(this),c=this.getHandler(),d=this.getElement();a?(c.listen(d,b.MOUSEDOWN,this.handleMouseDown).listen(d,[b.MOUSEUP,b.MOUSECANCEL],this.handleMouseUp).listen(d,goog.events.EventType.MOUSEOVER,this.handleMouseOver).listen(d,goog.events.EventType.MOUSEOUT,this.handleMouseOut),this.pointerEventsEnabled_&&c.listen(d,goog.events.EventType.GOTPOINTERCAPTURE,this.preventPointerCapture_),this.handleContextMenu!= goog.functions.UNDEFINED&&c.listen(d,goog.events.EventType.CONTEXTMENU,this.handleContextMenu)):(c.unlisten(d,b.MOUSEDOWN,this.handleMouseDown).unlisten(d,[b.MOUSEUP,b.MOUSECANCEL],this.handleMouseUp).unlisten(d,goog.events.EventType.MOUSEOVER,this.handleMouseOver).unlisten(d,goog.events.EventType.MOUSEOUT,this.handleMouseOut),this.pointerEventsEnabled_&&c.unlisten(d,goog.events.EventType.GOTPOINTERCAPTURE,this.preventPointerCapture_),this.handleContextMenu!=goog.functions.UNDEFINED&&c.unlisten(d, goog.events.EventType.CONTEXTMENU,this.handleContextMenu))};goog.ui.Control.prototype.exitDocument=function(){goog.ui.Control.superClass_.exitDocument.call(this);this.keyHandler_&&this.keyHandler_.detach();this.isVisible()&&this.isEnabled()&&this.renderer_.setFocusable(this,!1)}; goog.ui.Control.prototype.disposeInternal=function(){goog.ui.Control.superClass_.disposeInternal.call(this);this.keyHandler_&&(this.keyHandler_.dispose(),delete this.keyHandler_);delete this.renderer_;this.extraClassNames_=this.content_=null};goog.ui.Control.prototype.getContent=function(){return this.content_};goog.ui.Control.prototype.setContent=function(a){this.renderer_.setContent(this.getElement(),a);this.setContentInternal(a)}; goog.ui.Control.prototype.setContentInternal=function(a){this.content_=a};goog.ui.Control.prototype.getCaption=function(){var a=this.getContent();if(!a)return"";a=typeof a==="string"?a:Array.isArray(a)?a.map(goog.dom.getRawTextContent).join(""):goog.dom.getTextContent(a);return goog.string.collapseBreakingSpaces(a)};goog.ui.Control.prototype.setRightToLeft=function(a){goog.ui.Control.superClass_.setRightToLeft.call(this,a);var b=this.getElement();b&&this.renderer_.setRightToLeft(b,a)}; goog.ui.Control.prototype.setAllowTextSelection=function(a){this.allowTextSelection_=a;var b=this.getElement();b&&this.renderer_.setAllowTextSelection(b,a)};goog.ui.Control.prototype.isVisible=function(){return this.visible_}; goog.ui.Control.prototype.setVisible=function(a,b){return b||this.visible_!=a&&this.dispatchEvent(a?goog.ui.Component.EventType.SHOW:goog.ui.Component.EventType.HIDE)?((b=this.getElement())&&this.renderer_.setVisible(b,a),this.isEnabled()&&this.renderer_.setFocusable(this,a),this.visible_=a,!0):!1};goog.ui.Control.prototype.isEnabled=function(){return!this.hasState(goog.ui.Component.State.DISABLED)}; goog.ui.Control.prototype.isParentDisabled_=function(){var a=this.getParent();return!!a&&typeof a.isEnabled=="function"&&!a.isEnabled()};goog.ui.Control.prototype.setEnabled=function(a){!this.isParentDisabled_()&&this.isTransitionAllowed(goog.ui.Component.State.DISABLED,!a)&&(a||(this.setActive(!1),this.setHighlighted(!1)),this.isVisible()&&this.renderer_.setFocusable(this,a),this.setState(goog.ui.Component.State.DISABLED,!a,!0))};goog.ui.Control.prototype.isHighlighted=function(){return this.hasState(goog.ui.Component.State.HOVER)}; goog.ui.Control.prototype.setHighlighted=function(a){this.isTransitionAllowed(goog.ui.Component.State.HOVER,a)&&this.setState(goog.ui.Component.State.HOVER,a)};goog.ui.Control.prototype.isActive=function(){return this.hasState(goog.ui.Component.State.ACTIVE)};goog.ui.Control.prototype.setActive=function(a){this.isTransitionAllowed(goog.ui.Component.State.ACTIVE,a)&&this.setState(goog.ui.Component.State.ACTIVE,a)};goog.ui.Control.prototype.isSelected=function(){return this.hasState(goog.ui.Component.State.SELECTED)}; goog.ui.Control.prototype.setSelected=function(a){this.isTransitionAllowed(goog.ui.Component.State.SELECTED,a)&&this.setState(goog.ui.Component.State.SELECTED,a)};goog.ui.Control.prototype.isChecked=function(){return this.hasState(goog.ui.Component.State.CHECKED)};goog.ui.Control.prototype.setChecked=function(a){this.isTransitionAllowed(goog.ui.Component.State.CHECKED,a)&&this.setState(goog.ui.Component.State.CHECKED,a)};goog.ui.Control.prototype.isFocused=function(){return this.hasState(goog.ui.Component.State.FOCUSED)}; goog.ui.Control.prototype.setFocused=function(a){this.isTransitionAllowed(goog.ui.Component.State.FOCUSED,a)&&this.setState(goog.ui.Component.State.FOCUSED,a)};goog.ui.Control.prototype.isOpen=function(){return this.hasState(goog.ui.Component.State.OPENED)};goog.ui.Control.prototype.setOpen=function(a){this.isTransitionAllowed(goog.ui.Component.State.OPENED,a)&&this.setState(goog.ui.Component.State.OPENED,a)};goog.ui.Control.prototype.getState=function(){return this.state_}; goog.ui.Control.prototype.hasState=function(a){return!!(this.state_&a)};goog.ui.Control.prototype.setState=function(a,b,c){c||a!=goog.ui.Component.State.DISABLED?this.isSupportedState(a)&&b!=this.hasState(a)&&(this.renderer_.setState(this,a,b),this.state_=b?this.state_|a:this.state_&~a):this.setEnabled(!b)};goog.ui.Control.prototype.setStateInternal=function(a){this.state_=a};goog.ui.Control.prototype.isSupportedState=function(a){return!!(this.supportedStates_&a)}; goog.ui.Control.prototype.setSupportedState=function(a,b){if(this.isInDocument()&&this.hasState(a)&&!b)throw Error(goog.ui.Component.Error.ALREADY_RENDERED);!b&&this.hasState(a)&&this.setState(a,!1);this.supportedStates_=b?this.supportedStates_|a:this.supportedStates_&~a};goog.ui.Control.prototype.isAutoState=function(a){return!!(this.autoStates_&a)&&this.isSupportedState(a)};goog.ui.Control.prototype.setAutoStates=function(a,b){this.autoStates_=b?this.autoStates_|a:this.autoStates_&~a}; goog.ui.Control.prototype.setDispatchTransitionEvents=function(a,b){this.statesWithTransitionEvents_=b?this.statesWithTransitionEvents_|a:this.statesWithTransitionEvents_&~a};goog.ui.Control.prototype.isTransitionAllowed=function(a,b){return this.isSupportedState(a)&&this.hasState(a)!=b&&(!(this.statesWithTransitionEvents_&a)||this.dispatchEvent(goog.ui.Component.getStateTransitionEvent(a,b)))&&!this.isDisposed()}; goog.ui.Control.prototype.handleMouseOver=function(a){!goog.ui.Control.isMouseEventWithinElement_(a,this.getElement())&&this.dispatchEvent(goog.ui.Component.EventType.ENTER)&&this.isEnabled()&&this.isAutoState(goog.ui.Component.State.HOVER)&&this.setHighlighted(!0)}; goog.ui.Control.prototype.handleMouseOut=function(a){!goog.ui.Control.isMouseEventWithinElement_(a,this.getElement())&&this.dispatchEvent(goog.ui.Component.EventType.LEAVE)&&(this.isAutoState(goog.ui.Component.State.ACTIVE)&&this.setActive(!1),this.isAutoState(goog.ui.Component.State.HOVER)&&this.setHighlighted(!1))};goog.ui.Control.prototype.preventPointerCapture_=function(a){var b=a.target;b.releasePointerCapture&&b.releasePointerCapture(a.pointerId)}; goog.ui.Control.prototype.handleContextMenu=goog.functions.UNDEFINED;goog.ui.Control.isMouseEventWithinElement_=function(a,b){return!!a.relatedTarget&&goog.dom.contains(b,a.relatedTarget)}; goog.ui.Control.prototype.handleMouseDown=function(a){this.isEnabled()&&(this.isAutoState(goog.ui.Component.State.HOVER)&&this.setHighlighted(!0),a.isMouseActionButton()&&(this.isAutoState(goog.ui.Component.State.ACTIVE)&&this.setActive(!0),this.renderer_&&this.renderer_.isFocusable(this)&&this.getKeyEventTarget().focus()));!this.allowTextSelection_&&a.isMouseActionButton()&&a.preventDefault()}; goog.ui.Control.prototype.handleMouseUp=function(a){this.isEnabled()&&(this.isAutoState(goog.ui.Component.State.HOVER)&&this.setHighlighted(!0),this.isActive()&&this.performActionInternal(a)&&this.isAutoState(goog.ui.Component.State.ACTIVE)&&this.setActive(!1))};goog.ui.Control.prototype.handleDblClick=function(a){this.isEnabled()&&this.performActionInternal(a)}; goog.ui.Control.prototype.performActionInternal=function(a){this.isAutoState(goog.ui.Component.State.CHECKED)&&this.setChecked(!this.isChecked());this.isAutoState(goog.ui.Component.State.SELECTED)&&this.setSelected(!0);this.isAutoState(goog.ui.Component.State.OPENED)&&this.setOpen(!this.isOpen());var b=new goog.events.Event(goog.ui.Component.EventType.ACTION,this);a&&(b.altKey=a.altKey,b.ctrlKey=a.ctrlKey,b.metaKey=a.metaKey,b.shiftKey=a.shiftKey,b.platformModifierKey=a.platformModifierKey,b.timeStamp= a.timeStamp);return this.dispatchEvent(b)};goog.ui.Control.prototype.handleFocus=function(){this.isAutoState(goog.ui.Component.State.FOCUSED)&&this.setFocused(!0)};goog.ui.Control.prototype.handleBlur=function(){this.isAutoState(goog.ui.Component.State.ACTIVE)&&this.setActive(!1);this.isAutoState(goog.ui.Component.State.FOCUSED)&&this.setFocused(!1)}; goog.ui.Control.prototype.handleKeyEvent=function(a){return this.isVisible()&&this.isEnabled()&&this.handleKeyEventInternal(a)?(a.preventDefault(),a.stopPropagation(),!0):!1};goog.ui.Control.prototype.handleKeyEventInternal=function(a){return a.keyCode==goog.events.KeyCodes.ENTER&&this.performActionInternal(a)};goog.ui.registry.setDefaultRenderer(goog.ui.Control,goog.ui.ControlRenderer);goog.ui.registry.setDecoratorByClassName(goog.ui.ControlRenderer.CSS_CLASS,function(){return new goog.ui.Control(null)});goog.dom.InputType={BUTTON:"button",CHECKBOX:"checkbox",COLOR:"color",DATE:"date",DATETIME:"datetime",DATETIME_LOCAL:"datetime-local",EMAIL:"email",FILE:"file",HIDDEN:"hidden",IMAGE:"image",MENU:"menu",MONTH:"month",NUMBER:"number",PASSWORD:"password",RADIO:"radio",RANGE:"range",RESET:"reset",SEARCH:"search",SELECT_MULTIPLE:"select-multiple",SELECT_ONE:"select-one",SUBMIT:"submit",TEL:"tel",TEXT:"text",TEXTAREA:"textarea",TIME:"time",URL:"url",WEEK:"week"};goog.ui.NativeButtonRenderer=function(){};goog.inherits(goog.ui.NativeButtonRenderer,goog.ui.ButtonRenderer);goog.addSingletonGetter(goog.ui.NativeButtonRenderer);goog.ui.NativeButtonRenderer.prototype.getAriaRole=function(){}; goog.ui.NativeButtonRenderer.prototype.createDom=function(a){this.setUpNativeButton_(a);return a.getDomHelper().createDom(goog.dom.TagName.BUTTON,{"class":this.getClassNames(a).join(" "),disabled:!a.isEnabled(),title:a.getTooltip()||"",value:a.getValue()||""},a.getCaption()||"")}; goog.ui.NativeButtonRenderer.prototype.canDecorate=function(a){return a.tagName==goog.dom.TagName.BUTTON||a.tagName==goog.dom.TagName.INPUT&&(a.type==goog.dom.InputType.BUTTON||a.type==goog.dom.InputType.SUBMIT||a.type==goog.dom.InputType.RESET)}; goog.ui.NativeButtonRenderer.prototype.decorate=function(a,b){this.setUpNativeButton_(a);if(b.disabled){var c=goog.asserts.assertString(this.getClassForState(goog.ui.Component.State.DISABLED));goog.dom.classlist.add(b,c)}return goog.ui.NativeButtonRenderer.superClass_.decorate.call(this,a,b)};goog.ui.NativeButtonRenderer.prototype.initializeDom=function(a){a.getHandler().listen(a.getElement(),goog.events.EventType.CLICK,a.performActionInternal)}; goog.ui.NativeButtonRenderer.prototype.setAllowTextSelection=function(){};goog.ui.NativeButtonRenderer.prototype.setRightToLeft=function(){};goog.ui.NativeButtonRenderer.prototype.isFocusable=function(a){return a.isEnabled()};goog.ui.NativeButtonRenderer.prototype.setFocusable=function(){};goog.ui.NativeButtonRenderer.prototype.setState=function(a,b,c){goog.ui.NativeButtonRenderer.superClass_.setState.call(this,a,b,c);(a=a.getElement())&&b==goog.ui.Component.State.DISABLED&&(a.disabled=c)}; goog.ui.NativeButtonRenderer.prototype.getValue=function(a){return a.value};goog.ui.NativeButtonRenderer.prototype.setValue=function(a,b){a&&(a.value=b)};goog.ui.NativeButtonRenderer.prototype.updateAriaState=function(){};goog.ui.NativeButtonRenderer.prototype.setUpNativeButton_=function(a){a.setHandleMouseEvents(!1);a.setAutoStates(goog.ui.Component.State.ALL,!1);a.setSupportedState(goog.ui.Component.State.FOCUSED,!1)};goog.ui.Button=function(a,b,c){goog.ui.Control.call(this,a,b||goog.ui.NativeButtonRenderer.getInstance(),c)};goog.inherits(goog.ui.Button,goog.ui.Control);goog.ui.Button.Side=goog.ui.ButtonSide;goog.ui.Button.prototype.getValue=function(){return this.value_};goog.ui.Button.prototype.setValue=function(a){this.value_=a;var b=this.renderer_;b.setValue(this.getElement(),a)};goog.ui.Button.prototype.setValueInternal=function(a){this.value_=a};goog.ui.Button.prototype.getTooltip=function(){return this.tooltip_}; goog.ui.Button.prototype.setTooltip=function(a){this.tooltip_=a;this.renderer_.setTooltip(this.getElement(),a)};goog.ui.Button.prototype.setTooltipInternal=function(a){this.tooltip_=a};goog.ui.Button.prototype.setCollapsed=function(a){this.renderer_.setCollapsed(this,a)};goog.ui.Button.prototype.disposeInternal=function(){goog.ui.Button.superClass_.disposeInternal.call(this);delete this.value_;delete this.tooltip_}; goog.ui.Button.prototype.enterDocument=function(){goog.ui.Button.superClass_.enterDocument.call(this);if(this.isSupportedState(goog.ui.Component.State.FOCUSED)){var a=this.getKeyEventTarget();a&&this.getHandler().listen(a,goog.events.EventType.KEYUP,this.handleKeyEventInternal)}}; goog.ui.Button.prototype.handleKeyEventInternal=function(a){return a.keyCode==goog.events.KeyCodes.ENTER&&a.type==goog.events.KeyEvent.EventType.KEY||a.keyCode==goog.events.KeyCodes.SPACE&&a.type==goog.events.EventType.KEYUP?this.performActionInternal(a):a.keyCode==goog.events.KeyCodes.SPACE};goog.ui.registry.setDecoratorByClassName(goog.ui.ButtonRenderer.CSS_CLASS,function(){return new goog.ui.Button(null)});var module$contents$ocean$books$TocPanel_TocPanel=function(a,b,c,d){d=d===void 0?!1:d;module$contents$ocean$EventManager_EventManager.call(this);this.viewer_=a;this.anchorButton_=b;this.tocLines_=this.viewer_.volumeInfo_.tocLines_;this.canRenderListToc_=!!this.viewer_.volumeInfo_.tocLines_;this.canRenderImageToc_=!!this.viewer_.volumeInfo_.tocPageId_;this.useEntityPageStyling_=ocean.entitypage.Util.isSourceEntityPage(c);this.isTextViewport_=d;this.canRenderListToc_&&(this.selectedSectionIndex_=this.findContainingSection_())}; $jscomp.inherits(module$contents$ocean$books$TocPanel_TocPanel,module$contents$ocean$EventManager_EventManager); module$contents$ocean$books$TocPanel_TocPanel.prototype.render=function(a,b){b=b===void 0?2:b;this.outerTocDiv_=goog.dom.createElement("div");goog.dom.appendChild(goog.dom.getDocument().body,this.outerTocDiv_);goog.Timer.callOnce(goog.bind(this.setupListeners_,this));this.yAdjustment_=a;this.canRenderListToc_?(this.isTextViewport_&&(this.textViewportZoomStop_=b),this.renderListToc_()):this.canRenderImageToc_?this.renderImageToc_():this.dispose()}; module$contents$ocean$books$TocPanel_TocPanel.prototype.setupListeners_=function(){var a=this;this.getHandler().listen(goog.dom.getDocument(),goog.events.EventType.CLICK,this.dispose);this.getHandler().listen(goog.dom.getDocument(),goog.events.EventType.KEYDOWN,function(b){b.keyCode!=goog.events.KeyCodes.ENTER&&b.keyCode!=goog.events.KeyCodes.ESC||a.dispose()});this.getHandler().listen(this.viewer_,ocean.viewport.Viewer.EventType.RESIZE,this.position_)}; module$contents$ocean$books$TocPanel_TocPanel.prototype.renderImageToc_=function(){goog.dom.classlist.add(this.outerTocDiv_,"base-image-toc-div");var a=this.viewer_.volumeInfo_.tocPageId_,b=this.viewer_.pageInfoSet_.getPageInfoByPid(a);b&&this.addTocImage_(b);this.viewer_.volumeInfo_.numTocPages_>1&&(a=this.viewer_.pageInfoSet_.getPageInfoByOffset(a,1))&&this.addTocImage_(a);this.position_()}; module$contents$ocean$books$TocPanel_TocPanel.prototype.addTocImage_=function(a){var b=this,c=new goog.math.Size(128,0),d=goog.dom.createDom(goog.dom.TagName.IMG,{width:128});goog.dom.classlist.add(d,"toc-page-image");this.getHandler().listen(d,goog.events.EventType.CLICK,function(){b.viewer_.setPageInfo(a)});goog.userAgent.GECKO&&ocean.style.isPageRtl()&&this.getHandler().listen(d,goog.events.EventType.LOAD,this.position_);a.getSrc(c)?this.setImageSrc_(d,a,c):a.fetchServerInfo(goog.partial(this.setImageSrc_, d,a,c));goog.dom.appendChild(this.outerTocDiv_,d)};module$contents$ocean$books$TocPanel_TocPanel.prototype.setImageSrc_=function(a,b,c){goog.dom.setProperties(a,{src:b.getSrc(c)})}; module$contents$ocean$books$TocPanel_TocPanel.prototype.renderListToc_=function(){var a=this,b=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"toc-div"}),c;module$contents$goog$array_forEach(this.tocLines_,function(d,e){d=a.getTocRow_(d,e);goog.dom.appendChild(b,d);e==a.selectedSectionIndex_&&(c=d)});c&&goog.Timer.callOnce(function(){a.scrollRowIntoView_(c);c.focus()});goog.dom.appendChild(this.outerTocDiv_,b);goog.style.getSize(this.outerTocDiv_).height>module$contents$ocean$books$TocPanel_TocPanel.MAX_LIST_TOC_HEIGHT_&& (goog.style.setStyle(this.outerTocDiv_,"height",module$contents$ocean$books$TocPanel_TocPanel.MAX_LIST_TOC_HEIGHT_+"px"),goog.dom.classlist.add(this.outerTocDiv_,"scroll-toc-div-wide"));goog.dom.classlist.add(this.outerTocDiv_,"scroll-toc-div");this.position_();this.outerTocDiv_.tabIndex=-1;goog.a11y.aria.setRole(this.outerTocDiv_,goog.a11y.aria.Role.DIALOG);this.outerTocDiv_.focus()}; module$contents$ocean$books$TocPanel_TocPanel.prototype.scrollRowIntoView_=function(a){a.offsetTop+goog.style.getSize(a).height>module$contents$ocean$books$TocPanel_TocPanel.MAX_LIST_TOC_HEIGHT_&&(a=goog.dom.getPreviousElementSibling(a))&&(this.outerTocDiv_.scrollTop=a.offsetTop)}; module$contents$ocean$books$TocPanel_TocPanel.prototype.position_=function(){var a=this.useEntityPageStyling_?goog.positioning.Corner.TOP_START:goog.positioning.Corner.BOTTOM_END,b=this.useEntityPageStyling_?goog.positioning.Corner.BOTTOM_START:goog.positioning.Corner.TOP_END;var c=this.anchorButton_ instanceof goog.ui.Button?this.anchorButton_.getElement():this.anchorButton_;goog.positioning.positionAtAnchor(c,a,this.outerTocDiv_,b,new goog.math.Coordinate(0,-this.yAdjustment_))}; module$contents$ocean$books$TocPanel_TocPanel.prototype.getTocRow_=function(a,b){var c=this,d=a.getId(),e=this.viewer_.pageInfoSet_.getPageInfoByPid(d);d=a.pageNumberForDisplay_;var f=this.tocLines_[b+1]?"":"-last",g="toc-middle-cell"+f,h="toc-right-cell"+f;this.isTextViewport_?f=goog.dom.createDom(goog.dom.TagName.A,{"class":e?"toc-row":"toc-disabled-row"}):(f=goog.dom.createDom(goog.dom.TagName.DIV,{"class":e?"toc-row":"toc-disabled-row"}),goog.a11y.aria.setRole(f,goog.a11y.aria.Role.BUTTON),goog.dom.setFocusableTabIndex(f, !0));var k=goog.dom.createElement("div");goog.dom.classlist.add(k,"goog-inline-block");goog.dom.classlist.add(k,"toc-left-cell");b==this.selectedSectionIndex_&&(goog.dom.classlist.add(k,this.getSelectionMarkerClass_()),goog.dom.classlist.add(f,"toc-row-selected"));b=goog.dom.createElement("div");goog.dom.classlist.add(b,"goog-inline-block");goog.dom.classlist.add(b,g);goog.userAgent.GECKO&&!goog.userAgent.isVersionOrHigher("1.9")&&goog.style.setStyle(b,"overflow","hidden");var l=a.getTitle(),m=this.useEntityPageStyling_? l:goog.string.truncate(l,module$contents$ocean$books$TocPanel_TocPanel.MAX_TITLE_CHARACTERS_);(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(b,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(m));this.useEntityPageStyling_&&(b.title=l);l=goog.dom.createElement("div");goog.dom.classlist.add(l,"goog-inline-block");goog.dom.classlist.add(l,h);(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(l, (0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(goog.string.isEmptyOrWhitespace(goog.string.makeSafe(d))?" ":d));goog.dom.appendChild(f,k);goog.dom.appendChild(f,b);goog.dom.appendChild(f,l);e?this.isTextViewport_?(d=new goog.Uri(window.location.href),d.removeParameter("pg").removeParameter("printsec").setParameterValue("jtp",a.pageNumberForDisplay_),this.textViewportZoomStop_&&d.removeParameter("zoom").setParameterValue("zoom",this.textViewportZoomStop_), this.viewer_.searchState_.getQuery()||d.removeParameter("dq").removeParameter("num"),(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(f,d.toString())):(this.getHandler().listen(f,goog.events.EventType.CLICK,function(){c.viewer_.setPageInfo(goog.asserts.assertExists(e))}),this.getHandler().listen(f,goog.events.EventType.KEYDOWN,function(n){n.keyCode==goog.events.KeyCodes.ENTER&&c.viewer_.setPageInfo(goog.asserts.assertExists(e))})):(goog.dom.classlist.addRemove(b, g,"toc-middle-disabled-cell"),goog.dom.classlist.addRemove(l,h,"toc-right-disabled-cell"),goog.a11y.aria.setState(f,goog.a11y.aria.State.DISABLED,!0));return f};module$contents$ocean$books$TocPanel_TocPanel.prototype.getSelectionMarkerClass_=function(){return ocean.style.isPageRtl()?"SPRITE_toc_selected_item_arrow_right":"SPRITE_toc_selected_item_arrow_left"}; module$contents$ocean$books$TocPanel_TocPanel.prototype.findContainingSection_=function(){for(var a=this.viewer_.pageInfoSet_,b=0;b<this.tocLines_.length;b++){var c=a.getPageInfoByPid(this.tocLines_[b].getId());if(c){var d=this.nextValidTocPageInfo_(b);d=d?d.getOrderId()-1:module$contents$goog$array_peek(a.getPageInfoArray()).getOrderId();var e=this.viewer_.getPageInfo();e=e.getOrderId();if(e>=c.getOrderId()&&e<=d)return b}}return-1}; module$contents$ocean$books$TocPanel_TocPanel.prototype.nextValidTocPageInfo_=function(a){for(a+=1;a<this.tocLines_.length;a++){var b=this.viewer_.pageInfoSet_.getPageInfoByPid(this.tocLines_[a].getId());if(b)return b}return null};module$contents$ocean$books$TocPanel_TocPanel.prototype.disposeInternal=function(){module$contents$ocean$EventManager_EventManager.prototype.disposeInternal.call(this);goog.dom.removeNode(this.outerTocDiv_);this.anchorButton_.focus()}; module$contents$ocean$books$TocPanel_TocPanel.MAX_LIST_TOC_HEIGHT_=300;module$contents$ocean$books$TocPanel_TocPanel.MAX_TITLE_CHARACTERS_=35;ocean.books.TocPanel=module$contents$ocean$books$TocPanel_TocPanel;var module$contents$ocean$books$TwoPageLayout_TwoPageLayout=function(a){module$contents$ocean$layout$VerticalGridLayout_VerticalGridLayout.call(this,1);this.twoPageSize_=a;var b=new module$contents$ocean$books$LayoutTwoPage_LayoutTwoPage;b.setSize(a);this.addItem(b);this.calculate()};$jscomp.inherits(module$contents$ocean$books$TwoPageLayout_TwoPageLayout,module$contents$ocean$layout$VerticalGridLayout_VerticalGridLayout); module$contents$ocean$books$TwoPageLayout_TwoPageLayout.prototype.getPageWidth=function(){return this.twoPageSize_.width};module$contents$ocean$books$TwoPageLayout_TwoPageLayout.prototype.getCorrespondingItem=function(){return this.items[0]};module$contents$ocean$books$TwoPageLayout_TwoPageLayout.prototype.getZoomStop=function(){return this.getWidth()||0};module$contents$ocean$books$TwoPageLayout_TwoPageLayout.prototype.getZoomMode=function(){return ocean.layout.Layout.ZoomMode.FIXED_WIDTH}; ocean.books.TwoPageLayout=module$contents$ocean$books$TwoPageLayout_TwoPageLayout;ocean.books.TwoPageViewport=function(a){goog.asserts.assert(a.volumeInfo_.getZoomMode()==ocean.layout.Layout.ZoomMode.FIXED_WIDTH,"TwoPageViewport() is not compatible with FIXED_HEIGHT media");var b=a.viewportDiv_,c=new module$contents$ocean$viewport$ScrollWindow_ScrollWindow(this,b);goog.style.setStyle(b,{overflow:"hidden"});module$contents$ocean$viewport$DocumentViewport_DocumentViewport.call(this,a,c);this.renderer_=new module$contents$ocean$books$LayoutTwoPageRenderer_LayoutTwoPageRenderer(a); b=new module$contents$ocean$viewport$LayoutItemDispatcher_LayoutItemDispatcher;b.addRenderer(module$contents$ocean$books$LayoutTwoPage_LayoutTwoPage,this.renderer_);this.setDispatcher(b);b=a.pageInfoSet_;c=b.defaultSize_.aspectRatio();b=this.getSize();c=Math.floor(b.height*c)*2;b=Math.min(c,b.width);b=this.createLayoutForZoomStop(b);this.setLayout(b);this.messageBarController_=new module$contents$ocean$books$MessageBarController_MessageBarController(a,this);this.getHandler().listen(this.viewer,ocean.viewport.Viewer.EventType.PAGEMODECHANGE, this.handlePageModeChange_);goog.Timer.callOnce(this.updateDisplay,0,this)};goog.inherits(ocean.books.TwoPageViewport,module$contents$ocean$viewport$DocumentViewport_DocumentViewport);ocean.books.TwoPageViewport.prototype.getZoomStops=function(){var a=module$contents$goog$array_concat(ocean.books.TwoPageViewport.ADD_WIDTH_ZOOM_STOPS_,this.viewer.volumeInfo_.getZoomStops());return new module$contents$ocean$viewport$ZoomStops_ZoomStops(module$contents$goog$array_map(a,module$contents$ocean$books$TwoPage_TwoPage.getWidthForImageWidth))}; ocean.books.TwoPageViewport.prototype.zoomPageHelper=function(a){ocean.books.TwoPageViewport.superClass_.zoomPageHelper.call(this,a);this.dispatcher_.cleanup();this.updateDisplay()};ocean.books.TwoPageViewport.prototype.zoomIn=function(){this.zoomHelper(1)};ocean.books.TwoPageViewport.prototype.zoomOut=function(){this.zoomHelper(-1)};ocean.books.TwoPageViewport.prototype.handlePageModeChange_=function(){this.dispatcher_.cleanup();this.updateDisplay()}; ocean.books.TwoPageViewport.prototype.PAGE_TURN_STEP=2;ocean.books.TwoPageViewport.prototype.createLayoutForZoomStop=function(a){var b=this.getSize(),c=this.viewer.pageInfoSet_;c=c.defaultSize_.aspectRatio();var d=module$contents$ocean$books$TwoPage_TwoPage.getImageWidthForPageWidth(a);c=Math.floor(d/c);c=module$contents$ocean$books$TwoPage_TwoPage.getHeightForImageHeight(c);return ocean.books.TwoPageViewport.createLayoutForSizes_(new goog.math.Size(a,c),b)}; ocean.books.TwoPageViewport.createLayoutForSizes_=function(a){return new module$contents$ocean$books$TwoPageLayout_TwoPageLayout(a)};ocean.books.TwoPageViewport.ADD_WIDTH_ZOOM_STOPS_=[180,220,280];ocean.books.TwoPageViewport.prototype.handlePageChange=function(){var a=this.getPageInfoPair_(this.viewer.getPageInfo()),b=this.renderer_.twoPage_;b&&(this.messageBarController_.savePreviousPageInfos(b.getPageInfos()),b.setPageInfos(a[0],a[1]));this.dispatchEvent(ocean.books.TwoPageViewport.EventType.PAGE_CHANGE)}; ocean.books.TwoPageViewport.EventType={PAGE_CHANGE:"pagechange"};ocean.books.TwoPageViewport.prototype.getPageInfos=function(){return this.renderer_.twoPage_.getPageInfos()};ocean.books.TwoPageViewport.prototype.getPageInfoPair_=function(a){var b=this.viewer.pageInfoSet_;b=b.pairs_;return module$contents$goog$array_find(b,function(c){return module$contents$goog$array_contains(c,a)})}; ocean.books.TwoPageViewport.prototype.updateDisplay=function(){ocean.books.TwoPageViewport.superClass_.updateDisplay.call(this);this.handlePageChange()}; ocean.books.TwoPageViewport.prototype.getPageInfoForTurn=function(a,b){var c=this.viewer.pageInfoSet_;c=c.pairs_;a=a.getOrderId();for(var d,e,f=0;f<c.length;++f){var g=c[f];if(g[0]&&a==g[0].getOrderId()||g[1]&&a==g[1].getOrderId()){d=f;break}else if(e){e=e[0]||e[1];var h=g[0]||g[1];if(a>=e.getOrderId()&&a<h.getOrderId()){d=b>0?f-b:f;break}}e=g}b=typeof d==="number"?d+b:0;return(b=c[b])?b[0]||b[1]:null};var module$contents$ocean$info$BookshelfId_BookshelfId={FAVORITES:0,PURCHASED:1,TO_READ:2,READING_NOW:3,HAVE_READ:4,REVIEWED:5,RECENTLY_VIEWED:6,MY_EBOOKS:7,MY_RECOMMENDATIONS:8,BROWSING_HISTORY:9,MY_LIBRARY:1E3};ocean.info.BookshelfId=module$contents$ocean$info$BookshelfId_BookshelfId;var module$contents$ocean$books$VolumeInfo_VolumeInfo=function(a){this.title_=a.title||"";this.fullview_=!!a.fullview;this.tocPageId_=a.table_of_contents_page_id||"";this.numTocPages_=a.num_toc_pages||"";this.initialZoomWidth_=a.initial_zoom_width_override;this.maxZoomWidth_=a.max_resolution_image_width;this.pairedThumbnails_=!!a.paired_thumbnails;this.thumbnailToken_=a.thumbnail_token||"";this.containingBookshelves_=a.containing_bookshelves||[];this.volumeId_=a.volume_id||"";this.otherIssuesQuery_= a.other_issues_query||"";this.isBrowsable_=!!a.is_browsable;this.isPublicDomain_=!!a.is_public_domain;a.last_page&&(this.lastPageInfo_=new ocean.info.ProtoPageInfo(a.last_page));this.defaultPageSize_=new goog.math.Size(a.page_width,a.page_height);this.isEBook_=a.is_ebook||!1;var b=a.additional_info,c={};b&&(c=b["[JsonBookInfo]"]);c.BuyLinks&&(this.buyLinks_=module$contents$goog$array_map(c.BuyLinks,function(d){return new module$exports$ocean$books$ProtoBuyLink(d)},this));this.aboutUrl_=c.AboutUrl; this.previewUrl_=c.PreviewUrl;c.allowed_syndication_flags&&(this.canDisableViewportChrome_=c.allowed_syndication_flags.allow_disabling_chrome);c.TocLine&&(this.tocLines_=module$contents$goog$array_map(c.TocLine,function(d){return new module$exports$ocean$books$TocEntry(d)}));c.SubscribeLink&&(this.subscribeLink_=new module$exports$ocean$books$ProtoBuyLink(c.SubscribeLink));c=null;b&&(c=b["[NewspaperJSONVolumeInfo]"]);this.newspaperInfo_=c;this.tilingParams_=c==null?null:new module$contents$ocean$info$TilingParams_TilingParams(c.tile_h, c.tile_w,c.x_win,c.y_win);this.publisher_=a.publisher||"";this.numPages_=a.num_pages||-1;this.sampleUrl_=a.sample_url||"";this.isNewspaper_=a.is_newspaper||!1;(this.tileServingUrl_=a.newspaper_tile_base_url)&&this.tilingParams_&&this.tilingParams_.setUriRewriter(goog.bind(this.rewriteTileUris_,this));this.zoomStops_=c?c.res_h:module$contents$ocean$books$VolumeInfo_VolumeInfo.DEFAULT_WIDTH_ZOOM_STOPS_;this.zoomMode_=this.isNewspaper_?ocean.layout.Layout.ZoomMode.FIXED_HEIGHT:ocean.layout.Layout.ZoomMode.FIXED_WIDTH; this.viewOrderUrl_=a.view_order_url||"";this.preOrder_=a.is_pre_order||!1;this.onSaleDate_=a.on_sale_date||"";this.hasFlowingText_=a.volumeresult&&a.volumeresult.has_flowing_text;this.hasScannedText_=a.volumeresult&&a.volumeresult.has_scanned_text;this.canDownloadPdf_=a.volumeresult&&a.volumeresult.can_download_pdf;this.canDownloadEPub_=a.volumeresult&&a.volumeresult.can_download_epub;this.downloadPdfUrl_=a.volumeresult?a.volumeresult.download_pdf_url:"";this.downloadEpubUrl_=a.volumeresult?a.volumeresult.download_epub_url: ""};$jscomp.inherits(module$contents$ocean$books$VolumeInfo_VolumeInfo,module$contents$ocean$info$VolumeInfo_VolumeInfo);module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.getZoomHeights=function(){return this.newspaperInfo_.res_h||[]}; module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.getReadingZoomLevel=function(){typeof this.reading_zoom_level_!=="number"&&(this.reading_zoom_level_=this.newspaperInfo_.read_zm,this.reading_zoom_level_=typeof this.reading_zoom_level_==="number"?this.newspaperInfo_.read_zm:module$contents$ocean$books$VolumeInfo_VolumeInfo.DEFAULT_READING_ZOOM_LEVEL_,this.reading_zoom_level_=goog.math.clamp(this.reading_zoom_level_,module$contents$ocean$books$VolumeInfo_VolumeInfo.FIT_TO_HEIGHT_ZOOM_LEVEL, this.getZoomStops().length-1));return this.reading_zoom_level_};module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.getPreviewUrl=function(){return this.previewUrl_};module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.getInitialZoomWidth=function(){return this.initialZoomWidth_?this.initialZoomWidth_:this.defaultPageSize_&&this.defaultPageSize_.width?this.defaultPageSize_.width:575};module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.getVolumeId=function(){return this.volumeId_}; module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.isEBook=function(){return this.isEBook_};module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.getPublisher=function(){return this.publisher_};module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.getNumPages=function(){return this.numPages_};module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.setCanonicalAtbUrl=function(){};module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.getViewOrderUrl=function(){return this.viewOrderUrl_}; module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.setViewOrderUrl=function(a){this.viewOrderUrl_=a};module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.isPreOrder=function(){return this.preOrder_};module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.setPreOrder=function(a){this.preOrder_=a};module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.getOnSaleDate=function(){return this.onSaleDate_}; module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.setOnSaleDate=function(a){this.onSaleDate_=a};module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.getHasFlowingText=function(){return this.hasFlowingText_};module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.getHasScannedText=function(){return this.hasScannedText_};module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.getZoomStops=function(){return this.zoomStops_}; module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.getZoomMode=function(){return this.zoomMode_};module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.rewriteTileUris_=function(a){a=a.toString();var b=a.indexOf("?");b>=0&&(a=this.tileServingUrl_+a.substring(b));return new goog.Uri(a)};module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.getFocusArticleId=function(){return this.newspaperInfo_?this.newspaperInfo_.focus_aid:null}; module$contents$ocean$books$VolumeInfo_VolumeInfo.prototype.getFocusCoordinates=function(){var a=this.newspaperInfo_.focus_x,b=this.newspaperInfo_.focus_y;return a!==void 0&&b!==void 0?new goog.math.Coordinate(a,b):null};module$contents$ocean$books$VolumeInfo_VolumeInfo.DEFAULT_READING_ZOOM_LEVEL_=4;module$contents$ocean$books$VolumeInfo_VolumeInfo.FIT_TO_HEIGHT_ZOOM_LEVEL=-1;module$contents$ocean$books$VolumeInfo_VolumeInfo.DEFAULT_WIDTH_ZOOM_STOPS_=[350,410,495,575,685,800,910,1025]; ocean.books.VolumeInfo=module$contents$ocean$books$VolumeInfo_VolumeInfo;var module$contents$ocean$chrome$LinkBarPanel_LinkBarPanel=function(a){module$contents$ocean$EventManager_EventManager.call(this);this.containerDiv_=a;this.div_=null};$jscomp.inherits(module$contents$ocean$chrome$LinkBarPanel_LinkBarPanel,module$contents$ocean$EventManager_EventManager); module$contents$ocean$chrome$LinkBarPanel_LinkBarPanel.prototype.render=function(a,b){this.button_=a;a=a.getElement();var c=goog.style.getPageOffsetTop(a),d=goog.style.getSize(a);c=c+d.height+module$contents$ocean$chrome$LinkBarPanel_LinkBarPanel.PADDING_ADJUSTMENT_;d="";b&&(d=goog.style.getPageOffsetLeft(a));this.div_=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"linkbar-panel-div"});goog.style.setPosition(this.div_,d,c);this.closeButton_=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"SPRITE_close_v2 linkbar-panel-close"}); goog.dom.appendChild(this.div_,this.closeButton_);this.shouldUseiFrameMask_()&&(this.iFrameMask_=goog.dom.createDom(goog.dom.TagName.IFRAME,{style:"position: absolute;",frameborder:"0"}),goog.dom.appendChild(this.containerDiv_,this.iFrameMask_));goog.dom.appendChild(this.containerDiv_,this.div_);this.iFrameMask_&&(goog.style.setSize(this.iFrameMask_,goog.style.getSize(this.div_)),goog.style.setPosition(this.iFrameMask_,goog.style.getPosition(this.div_)));goog.Timer.callOnce(goog.bind(this.setupListeners, this))};module$contents$ocean$chrome$LinkBarPanel_LinkBarPanel.prototype.setupListeners=function(){this.getHandler().listen(this.closeButton_,goog.events.EventType.CLICK,this.dispose);this.getHandler().listen(this.button_,goog.ui.Component.EventType.ACTION,this.handleButtonAction_);this.getHandler().listen(goog.dom.getDocument(),goog.events.EventType.MOUSEDOWN,this.disposeOnClick_)}; module$contents$ocean$chrome$LinkBarPanel_LinkBarPanel.prototype.handleButtonAction_=function(){this.button_.hasState(goog.ui.Component.State.CHECKED)||this.dispose()};module$contents$ocean$chrome$LinkBarPanel_LinkBarPanel.prototype.disposeOnClick_=function(a){goog.dom.contains(this.div_,a.target)||goog.dom.contains(this.button_.getElement(),a.target)||this.dispose()}; module$contents$ocean$chrome$LinkBarPanel_LinkBarPanel.prototype.disposeInternal=function(){module$contents$ocean$EventManager_EventManager.prototype.disposeInternal.call(this);goog.dom.removeNode(this.div_);goog.dom.removeNode(this.iFrameMask_)};module$contents$ocean$chrome$LinkBarPanel_LinkBarPanel.prototype.shouldUseiFrameMask_=function(){return goog.userAgent.GECKO&&goog.userAgent.MAC&&!goog.userAgent.isVersionOrHigher("1.9")}; module$contents$ocean$chrome$LinkBarPanel_LinkBarPanel.prototype.getElement=function(){return this.div_};module$contents$ocean$chrome$LinkBarPanel_LinkBarPanel.PADDING_ADJUSTMENT_=3;ocean.chrome.LinkBarPanel=module$contents$ocean$chrome$LinkBarPanel_LinkBarPanel;var module$contents$ocean$chrome$LinkToPagePanel_LinkToPagePanel=function(a,b,c){module$contents$ocean$chrome$LinkBarPanel_LinkBarPanel.call(this,a);this.viewer_=b;this.showEmbeddingLink_=c};$jscomp.inherits(module$contents$ocean$chrome$LinkToPagePanel_LinkToPagePanel,module$contents$ocean$chrome$LinkBarPanel_LinkBarPanel); module$contents$ocean$chrome$LinkToPagePanel_LinkToPagePanel.prototype.render=function(a,b){module$contents$ocean$chrome$LinkBarPanel_LinkBarPanel.prototype.render.call(this,a,b);a=goog.dom.createDom(goog.dom.TagName.DIV,{style:"padding-top:5px; font-size: 13px;"});(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(a,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)("Paste link in <b>email</b> or <b>IM</b>"));goog.dom.appendChild(this.getElement(), a);this.linkToPageInput_=goog.dom.createElement("input");goog.style.setSize(this.linkToPageInput_,"100%","auto");goog.dom.appendChild(this.getElement(),this.linkToPageInput_);this.showEmbeddingLink_&&(a=goog.dom.createDom(goog.dom.TagName.DIV,{style:"font-size: 13px; padding-top: 7px;"},"Embed"),goog.dom.appendChild(this.getElement(),a),this.embedInput_=goog.dom.createElement("input"),goog.style.setSize(this.embedInput_,"100%","auto"),goog.dom.appendChild(this.getElement(),this.embedInput_));this.fillLinkdata_()}; module$contents$ocean$chrome$LinkToPagePanel_LinkToPagePanel.prototype.fillLinkdata_=function(){var a=this.viewer_.getPageInfo(),b=(new goog.Uri(window.location)).getFragment(),c=new goog.Uri(a.getPageUrl());c.setFragment(b);this.linkToPageInput_.value=c.toString();goog.Timer.callOnce(goog.partial(module$contents$ocean$chrome$LinkToPagePanel_LinkToPagePanel.selectInput_,this.linkToPageInput_));this.showEmbeddingLink_&&(a=new goog.Uri(a.getPageUrl()),a.setParameterValue("output","embed"),this.embedInput_.value= module$contents$ocean$chrome$LinkToPagePanel_LinkToPagePanel.createEmbeddingLink(a.toString()))}; module$contents$ocean$chrome$LinkToPagePanel_LinkToPagePanel.prototype.setupListeners=function(){module$contents$ocean$chrome$LinkBarPanel_LinkBarPanel.prototype.setupListeners.call(this);this.getHandler().listen(this.linkToPageInput_,goog.events.EventType.CLICK,goog.partial(module$contents$ocean$chrome$LinkToPagePanel_LinkToPagePanel.selectInput_,this.linkToPageInput_));this.showEmbeddingLink_&&this.getHandler().listen(this.embedInput_,goog.events.EventType.CLICK,goog.partial(module$contents$ocean$chrome$LinkToPagePanel_LinkToPagePanel.selectInput_, this.embedInput_))};module$contents$ocean$chrome$LinkToPagePanel_LinkToPagePanel.selectInput_=function(a){a.select()};module$contents$ocean$chrome$LinkToPagePanel_LinkToPagePanel.createEmbeddingLink=function(a){return goog.string.subs('<iframe frameborder="0" scrolling="no" style="border:0px" src="%s" width=500 height=500></iframe>',a)};ocean.chrome.LinkToPagePanel=module$contents$ocean$chrome$LinkToPagePanel_LinkToPagePanel;var module$exports$ocean$chrome$MobileResizeManager=function(a,b){var c=this;this.viewer_=a;this.viewportDiv_=b;this.viewportSizeMonitor_=goog.dom.ViewportSizeMonitor.getInstanceForWindow();this.isTextViewport_=goog.dom.getElement("flow-top-div")?!0:!1;this.handler_=(new goog.events.EventHandler(this)).listen(this.viewportSizeMonitor_,goog.events.EventType.RESIZE,function(){c.handleResizeEvent_()}).listen(this.viewer_,ocean.viewport.Viewer.EventType.SEARCHUPDATE,function(){c.handleSearchClearEvent_()}).listen(window, goog.events.EventType.LOAD,this.resize)};module$exports$ocean$chrome$MobileResizeManager.prototype.handleResizeEvent_=function(){var a=this.viewer_.getViewport(),b=a.layout_,c=a.getMiddleCoordinate();this.resize();this.viewer_.getViewport().fitToWidth();a=this.viewer_.getViewport();var d=a.layout_;b=new module$contents$ocean$layout$PointMapper_PointMapper(b,d);b=b.getDestCoordinate(c);b=a.middleToScroll(b);a.moveTo(b)}; module$exports$ocean$chrome$MobileResizeManager.prototype.handleSearchClearEvent_=function(){var a=goog.dom.getElement("gb-ogen-mobile-appbar");if(a){var b=this.viewportSizeMonitor_.getSize().height;a=a.getBoundingClientRect().height;b-=a;a=this.viewportSizeMonitor_.getSize().width;this.viewer_.setSize(new goog.math.Size(a,b));this.isTextViewport_&&goog.style.setSize(this.viewportDiv_,new goog.math.Size(a,b))}}; module$exports$ocean$chrome$MobileResizeManager.prototype.resize=function(){var a=this.viewportSizeMonitor_.getSize().height,b=this.viewportSizeMonitor_.getSize().width,c=Math.round(goog.style.getPageOffsetTop(this.viewportDiv_));a=Math.max(0,a-c);this.viewer_.setSize(new goog.math.Size(b,a));this.isTextViewport_&&goog.style.setSize(this.viewportDiv_,new goog.math.Size(b,a))};var module$exports$ocean$entitypage$FocusOutlineHandler={FocusOutlineHandler:function(){this.setUpListenForTab_()}};module$exports$ocean$entitypage$FocusOutlineHandler.FocusOutlineHandler.prototype.setUpListenForMouseDown_=function(){var a=this;(0,goog.events.unlistenByKey)(this.activeListenerKey_);this.activeListenerKey_=(0,goog.events.listenOnce)(document.body,goog.events.EventType.MOUSEDOWN,function(){a.stopKeyboardNavigation_()},{capture:!0})}; module$exports$ocean$entitypage$FocusOutlineHandler.FocusOutlineHandler.prototype.setUpListenForTab_=function(){var a=this;(0,goog.events.unlistenByKey)(this.activeListenerKey_);this.activeListenerKey_=(0,goog.events.listen)(document.body,goog.events.EventType.KEYDOWN,function(b){b.keyCode===goog.events.KeyCodes.TAB&&a.startKeyboardNavigation_()})}; module$exports$ocean$entitypage$FocusOutlineHandler.FocusOutlineHandler.prototype.stopKeyboardNavigation_=function(){goog.dom.classlist.remove(document.body,"focus-outline-enabled");this.setUpListenForTab_()};module$exports$ocean$entitypage$FocusOutlineHandler.FocusOutlineHandler.prototype.startKeyboardNavigation_=function(){goog.dom.classlist.add(document.body,"focus-outline-enabled");this.setUpListenForMouseDown_()};var module$exports$ocean$entitypage$PopupMenu=function(a,b,c,d){d=d===void 0?!1:d;goog.ui.Popup.call(this);var e=this;this.title_=a;this.content_=b;this.closeCallback_=c?goog.asserts.assertFunction(c):null;this.setElement(this.createPopupElement_());if(d){var f=goog.asserts.assertExists(goog.dom.getElement("ep-lb"));goog.events.listen(this,goog.ui.PopupBase.EventType.HIDE,function(){goog.style.setStyle(f,"visibility","hidden")});goog.events.listen(this,goog.ui.PopupBase.EventType.BEFORE_SHOW,function(){goog.style.setStyle(f, "visibility","visible");goog.dom.classlist.enable(e.getElement(),"lightbox-dialog",!0)})}};$jscomp.inherits(module$exports$ocean$entitypage$PopupMenu,goog.ui.Popup); module$exports$ocean$entitypage$PopupMenu.prototype.createPopupElement_=function(){var a=this,b=goog.dom.createDom(goog.dom.TagName.DIV);goog.dom.classlist.addAll(b,["popup-menu","goog-menu","goog-menu-vertical"]);goog.a11y.aria.setRole(b,goog.a11y.aria.Role.DIALOG);b.setAttribute("tabindex","-1");goog.dom.appendChild(document.body,b);if(this.title_!=""){var c=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"popup-menu-header"});goog.dom.appendChild(b,c);var d=goog.dom.createDom(goog.dom.TagName.SPAN, {"class":"popup-menu-title"});goog.dom.setTextContent(d,this.title_);goog.dom.appendChild(c,d);d=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"popup-menu-close"});goog.a11y.aria.setLabel(d,module$exports$ocean$entitypage$PopupMenu.MSG_CLOSE_POPUP_);var e=goog.dom.createDom(goog.dom.TagName.IMG);e.src="/googlebooks/images/material/close_black_24dp.png";goog.style.setSize(e,24,24);goog.a11y.aria.setState(e,goog.a11y.aria.State.HIDDEN,!0);goog.dom.appendChild(d,e);goog.events.listen(d,goog.events.EventType.CLICK, function(){a.setVisible(!1);a.closeCallback_&&a.closeCallback_()});goog.events.listen(d,goog.events.EventType.KEYDOWN,function(f){if(f.keyCode==goog.events.KeyCodes.SPACE||f.keyCode==goog.events.KeyCodes.ENTER)a.setVisible(!1),a.closeCallback_&&a.closeCallback_()});goog.a11y.aria.setRole(d,goog.a11y.aria.Role.BUTTON);goog.dom.setFocusableTabIndex(d,!0);goog.dom.appendChild(c,d)}goog.dom.appendChild(b,this.content_);return b};module$exports$ocean$entitypage$PopupMenu.MSG_CLOSE_POPUP_="Close popup";goog.positioning.AnchoredPosition=function(a,b,c){this.element=a;this.corner=b;this.overflow_=c};goog.inherits(goog.positioning.AnchoredPosition,goog.positioning.AbstractPosition);goog.positioning.AnchoredPosition.prototype.reposition=function(a,b,c){goog.positioning.positionAtAnchor(this.element,this.corner,a,b,void 0,c,this.overflow_)};goog.positioning.AnchoredViewportPosition=function(a,b,c,d){goog.positioning.AnchoredPosition.call(this,a,b);this.lastResortOverflow_=c?goog.positioning.Overflow.ADJUST_X|goog.positioning.Overflow.ADJUST_Y:goog.positioning.Overflow.IGNORE;this.overflowConstraint_=d||void 0};goog.inherits(goog.positioning.AnchoredViewportPosition,goog.positioning.AnchoredPosition);goog.positioning.AnchoredViewportPosition.prototype.getLastResortOverflow=function(){return this.lastResortOverflow_}; goog.positioning.AnchoredViewportPosition.prototype.setLastResortOverflow=function(a){this.lastResortOverflow_=a}; goog.positioning.AnchoredViewportPosition.prototype.reposition=function(a,b,c,d){var e=goog.positioning.positionAtAnchor(this.element,this.corner,a,b,null,c,goog.positioning.Overflow.FAIL_X|goog.positioning.Overflow.FAIL_Y,d,this.overflowConstraint_);if(e&goog.positioning.OverflowStatus.FAILED){var f=this.adjustCorner(e,this.corner);b=this.adjustCorner(e,b);e=goog.positioning.positionAtAnchor(this.element,f,a,b,null,c,goog.positioning.Overflow.FAIL_X|goog.positioning.Overflow.FAIL_Y,d,this.overflowConstraint_); e&goog.positioning.OverflowStatus.FAILED&&(f=this.adjustCorner(e,f),b=this.adjustCorner(e,b),goog.positioning.positionAtAnchor(this.element,f,a,b,null,c,this.lastResortOverflow_,d,this.overflowConstraint_))}};goog.positioning.AnchoredViewportPosition.prototype.adjustCorner=function(a,b){a&goog.positioning.OverflowStatus.FAILED_HORIZONTAL&&(b=goog.positioning.flipCornerHorizontal(b));a&goog.positioning.OverflowStatus.FAILED_VERTICAL&&(b=goog.positioning.flipCornerVertical(b));return b};var module$exports$ocean$entitypage$ViewportOnboardingFlow={ViewportOnboardingFlow:function(a,b,c,d,e){this.moreActionsMenuPopup_=a;this.viewer_=b;this.showPlainTextOnly_=c;this.welcomePanel_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("epo-welcome"));this.keyboardPanel_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("epo-keyboard"));this.plainTextPanel_=goog.dom.getElement("epo-plain-text");this.plainTextOnlyPanel_=goog.dom.getElement("epo-plain-text-only"); this.plainTextToggleLink_=goog.dom.getElement("entity-page-toggle-viewport-mode-link");this.shareLinkPanel_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("epo-share-link"));this.currentPanelNum_=e;this.initializeOnboardingPanels_(d);this.maybeUpdatePlainTextToggleUrl_(!1)}}; module$exports$ocean$entitypage$ViewportOnboardingFlow.ViewportOnboardingFlow.prototype.initializeOnboardingPanels_=function(a){var b=this;if(this.showPlainTextOnly_)this.plainTextOnlyPanel_&&this.showPlainTextPanelOnly_(a);else{var c=new module$exports$ocean$entitypage$PopupMenu("",this.welcomePanel_,function(){});goog.dom.classlist.addAll(c.getElement(),["onboarding-popup","onboarding-fixed-popup","onboarding-welcome-popup"]);c.setAutoHide(!1);var d=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("epo-keyboard-text")); (0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(d,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(goog.dom.getTextContent(d)));var e=new module$exports$ocean$entitypage$PopupMenu("",this.keyboardPanel_,function(){});goog.dom.classlist.addAll(e.getElement(),["onboarding-popup","onboarding-fixed-popup"]);e.setAutoHide(!1);d=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElementsByTagName(goog.dom.TagName.A, d)[0]);d.id="ep-keyboard-link";goog.dom.classlist.add(d,"onboarding-link");goog.dom.setFocusableTabIndex(d,!0);this.listenForSelection_(d,function(){b.viewer_.queueCommand(ocean.viewport.Viewer.Commands.SHOW_KEYBOARD_SHORTCUTS)});if(this.plainTextPanel_){var f=new module$exports$ocean$entitypage$PopupMenu("",this.plainTextPanel_,function(){});goog.dom.classlist.addAll(f.getElement(),["onboarding-popup","onboarding-plain-text-popup"])}d=new module$exports$ocean$entitypage$PopupMenu("",this.shareLinkPanel_, function(){});goog.dom.classlist.addAll(d.getElement(),["onboarding-popup","onboarding-share-popup"]);var g=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-clip"));d.setPinnedCorner(goog.positioning.Corner.BOTTOM_RIGHT);d.setPosition(new goog.positioning.AnchoredViewportPosition(g,goog.positioning.Corner.TOP_RIGHT,!0));d.setAutoHide(!1);this.setUpNextLinks_(c,e,f,d);this.setUpDismissLinks_(c,e,f,d);if(this.currentPanelNum_)switch(this.currentPanelNum_){case 0:c.setVisible(!0); break;case 1:e.setVisible(!0);break;case 2:f?this.showPlainTextPanelAndMoreActionsMenu_(f,a):d.setVisible(!0);break;default:d.setVisible(!0)}else c.setVisible(!0)}}; module$exports$ocean$entitypage$ViewportOnboardingFlow.ViewportOnboardingFlow.prototype.setUpNextLinks_=function(a,b,c,d){var e=this,f=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("epo-welcome-next"));this.listenForSelection_(f,function(){e.currentPanelNum_++;a.setVisible(!1);b.setVisible(!0);e.maybeUpdatePlainTextToggleUrl_(!1)});f=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("epo-keyboard-next"));this.listenForSelection_(f,function(){e.currentPanelNum_++; b.setVisible(!1);c?e.showPlainTextPanelAndMoreActionsMenu_(c):d.setVisible(!0);e.maybeUpdatePlainTextToggleUrl_(!1)});this.plainTextPanel_&&c&&(f=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("epo-plain-text-next")),this.listenForSelection_(f,function(){e.currentPanelNum_++;e.moreActionsMenuPopup_.setVisible(!1);e.moreActionsMenuPopup_.setAutoHide(!0);c.setVisible(!1);d.setVisible(!0);e.maybeUpdatePlainTextToggleUrl_(!1)}))}; module$exports$ocean$entitypage$ViewportOnboardingFlow.ViewportOnboardingFlow.prototype.setUpDismissLinks_=function(a,b,c,d){var e=this;document.querySelectorAll(".onboarding-link").forEach(function(g){g.id!="ep-keyboard-link"&&e.listenForSelection_(g,function(){a.setVisible(!1);b.setVisible(!1);c&&(c.setVisible(!1),e.moreActionsMenuPopup_.setVisible(!1),e.moreActionsMenuPopup_.setAutoHide(!0));d.setVisible(!1);e.handleOnboardingDismissed_()})});var f=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("epo-done")); this.listenForSelection_(f,function(){d.setVisible(!1);e.handleOnboardingDismissed_()})}; module$exports$ocean$entitypage$ViewportOnboardingFlow.ViewportOnboardingFlow.prototype.showPlainTextPanelOnly_=function(a){var b=this,c=new module$exports$ocean$entitypage$PopupMenu("",module$contents$goog$asserts$dom_assertIsElement(this.plainTextOnlyPanel_),function(){});goog.dom.classlist.addAll(c.getElement(),["onboarding-popup","onboarding-plain-text-popup"]);this.showPlainTextPanelAndMoreActionsMenu_(c,a);a=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("epo-done-only")); this.listenForSelection_(a,function(){c.setVisible(!1);b.moreActionsMenuPopup_.setVisible(!1);b.moreActionsMenuPopup_.setAutoHide(!0);b.handleOnboardingDismissed_()})}; module$exports$ocean$entitypage$ViewportOnboardingFlow.ViewportOnboardingFlow.prototype.showPlainTextPanelAndMoreActionsMenu_=function(a,b){b=b===void 0?!1:b;b||(this.moreActionsMenuPopup_.setAutoHide(!1),this.moreActionsMenuPopup_.setVisible(!0));b=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-more-menu-content"));a.setPinnedCorner(goog.positioning.Corner.TOP_LEFT);a.setPosition(new goog.positioning.AnchoredViewportPosition(b,goog.positioning.Corner.TOP_RIGHT, !0));a.setAutoHide(!1);a.setVisible(!0)};module$exports$ocean$entitypage$ViewportOnboardingFlow.ViewportOnboardingFlow.prototype.handleOnboardingDismissed_=function(){this.maybeUpdatePlainTextToggleUrl_(!0);this.plainTextPanel_?ocean.entitypage.EntityPageCommunicationUtil.propagateOnboardingDismissedEventToParent(!0):ocean.entitypage.EntityPageCommunicationUtil.propagateOnboardingDismissedEventToParent(!1)}; module$exports$ocean$entitypage$ViewportOnboardingFlow.ViewportOnboardingFlow.prototype.maybeUpdatePlainTextToggleUrl_=function(a){if(this.plainTextToggleLink_){var b=module$contents$goog$asserts$dom_assertIsHtmlAnchorElement(this.plainTextToggleLink_);b=new goog.Uri(b.href);a?(b.removeParameter("ovso"),b.removeParameter("ovsopt"),b.removeParameter("op")):this.showPlainTextOnly_&&this.plainTextOnlyPanel_?b.setParameterValue("ovsopt","1"):(b.setParameterValue("ovso","1"),b.setParameterValue("op",this.currentPanelNum_)); (0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(this.plainTextToggleLink_,b.toString())}};module$exports$ocean$entitypage$ViewportOnboardingFlow.ViewportOnboardingFlow.prototype.listenForSelection_=function(a,b){goog.events.listen(a,goog.events.EventType.CLICK,function(){b()});goog.events.listen(a,goog.events.EventType.KEYDOWN,function(c){c.keyCode!=goog.events.KeyCodes.SPACE&&c.keyCode!=goog.events.KeyCodes.ENTER||b()})};ocean.search={}; var module$contents$ocean$search$SnippetDrawable_SnippetDrawable=function(a,b){module$contents$ocean$EventManager_EventManager.call(this);this.viewport_=a;this.layoutItem_=b;this.snippetContainer_=goog.dom.createElement("div");goog.dom.appendChild(a.getCanvasDiv(),this.snippetContainer_);goog.dom.classlist.add(this.snippetContainer_,"sitb_result");goog.dom.setFocusableTabIndex(this.snippetContainer_,!0);goog.a11y.aria.setRole(this.snippetContainer_,goog.a11y.aria.Role.LINK);goog.a11y.aria.setState(this.snippetContainer_,goog.a11y.aria.State.DISABLED, !0);goog.userAgent.MOBILE?(goog.style.setStyle(this.snippetContainer_,"width",b.getSize().width+"px"),goog.style.setStyle(this.snippetContainer_,"min-height",b.getSize().height+"px")):(goog.style.setPosition(this.snippetContainer_,b.getPosition()),goog.style.setSize(this.snippetContainer_,b.getSize()));a=goog.dom.createElement("div");goog.dom.classlist.add(a,"sitb-result-header");goog.dom.appendChild(this.snippetContainer_,a);this.pageLink_=goog.dom.createElement("div");goog.dom.classlist.add(this.pageLink_, "sitb-result-page-link");b=b.searchResult_.getPageNumber();b=goog.dom.textAssert.assertHtmlFree(b?module$contents$ocean$msg_getGooglePrintPageNumber(b):"Page");goog.dom.setTextContent(this.pageLink_,b);goog.a11y.aria.setLabel(this.pageLink_,"Search result: "+b);goog.dom.appendChild(a,this.pageLink_);this.snippetContents_=goog.dom.createElement("div");goog.dom.classlist.add(this.snippetContents_,"sitb-result-content");goog.dom.appendChild(this.snippetContainer_,this.snippetContents_);if(a=this.getPageInfo_()){b= this.viewport_.viewer_.searchState_.getQuery();var c=a.getSnippetSrc();c&&b==ocean.info.SearchState.parseQueryFromUrl(c)?this.renderImageSnippet_(c):(b=a.getFetchUri(),b.getParameterValue("source")=="entity_page"?b.setParameterValue("source","entity_page_gbs_snippet"):b.setParameterValue("source","gbs_snippet"),a.fetchServerInfoWithUri(b,goog.bind(this.handlePageInfoFetch_,this)))}else this.renderTextSnippet_()};$jscomp.inherits(module$contents$ocean$search$SnippetDrawable_SnippetDrawable,module$contents$ocean$viewport$Drawable_Drawable); module$contents$ocean$search$SnippetDrawable_SnippetDrawable.prototype.getPageInfo_=function(){return this.viewport_.viewer_.pageInfoSet_.getPageInfoByPid(this.layoutItem_.searchResult_.getPageId())};module$contents$ocean$search$SnippetDrawable_SnippetDrawable.prototype.handleSnippetClick_=function(a){this.viewport_.goToResult(a.searchResult_)}; module$contents$ocean$search$SnippetDrawable_SnippetDrawable.prototype.handlePageInfoFetch_=function(a){(a=a.getSnippetSrc())?this.renderImageSnippet_(a):this.renderTextSnippet_()}; module$contents$ocean$search$SnippetDrawable_SnippetDrawable.prototype.renderImageSnippet_=function(a){goog.dom.removeChildren(this.snippetContents_);var b=goog.dom.createElement(goog.dom.TagName.IMG);b.src=a;this.makeClickable_();a=this.layoutItem_.getSize().width-25;goog.style.setStyle(b,{width:a+"px"});goog.dom.appendChild(this.snippetContents_,b)}; module$contents$ocean$search$SnippetDrawable_SnippetDrawable.prototype.makeClickable_=function(){var a=this;goog.dom.classlist.add(this.snippetContainer_,"sitb-result-clickable");goog.dom.classlist.add(this.pageLink_,"sitb-result-link");var b=goog.dom.getTextContent(this.pageLink_);(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(this.pageLink_,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(b+" »")); goog.a11y.aria.setState(this.snippetContainer_,goog.a11y.aria.State.DISABLED,!1);this.getHandler().listen(this.snippetContainer_,goog.events.EventType.CLICK,goog.bind(this.handleSnippetClick_,this,this.layoutItem_));this.getHandler().listen(this.snippetContainer_,goog.events.EventType.KEYDOWN,function(c){c.keyCode!=goog.events.KeyCodes.SPACE&&c.keyCode!=goog.events.KeyCodes.ENTER||a.handleSnippetClick_(a.layoutItem_)})}; module$contents$ocean$search$SnippetDrawable_SnippetDrawable.prototype.renderTextSnippet_=function(){goog.dom.removeChildren(this.snippetContents_);var a=goog.dom.createElement("div");goog.dom.classlist.add(a,"sitb-result-snippet");goog.dom.appendChild(this.snippetContents_,a);goog.userAgent.MOBILE||goog.style.setStyle(a,{width:Math.floor(this.layoutItem_.getSize().width*.75)+"px"});(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(a,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtml)(this.layoutItem_.searchResult_.snippetText_)); a=goog.dom.createElement("div");goog.dom.classlist.add(a,"sitb-result-explanatory-link");goog.dom.appendChild(this.snippetContents_,a);var b=this.getPageInfo_();if(b&&b.getSrc()&&b.isViewable()&&b.hasFlag(ocean.info.ProtoPageInfo.FLAGS.CACHABLE)){this.makeClickable_();b=goog.userAgent.MOBILE?"No image for result.":"We couldn't make an image for this result.";(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(a,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(b+ " "));b=goog.dom.createElement("span");var c=goog.userAgent.MOBILE||ocean.entitypage.Util.isSourceEntityPage()?"Click to view":"Click to view the whole page.";(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(b,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(c));goog.dom.appendChild(a,b);goog.dom.classlist.add(b,"sitb-result-link")}else(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(a, (0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)("No preview available for this page. ")),goog.userAgent.MOBILE||(b=goog.dom.createElement("a"),goog.dom.classlist.add(b,"sitb-result-buy-link"),(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(b,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)("Buy this book.")),goog.dom.appendChild(a,b),a=new goog.Uri(window.location.href), a.setParameterValue("sitesec","buy"),a.setParameterValue("source","gbs_snippet"),a.removeParameter("printsec"),b.href=a.toString())};module$contents$ocean$search$SnippetDrawable_SnippetDrawable.prototype.cleanup=function(){goog.dom.removeNode(this.snippetContainer_);this.dispose()};ocean.search.SnippetDrawable=module$contents$ocean$search$SnippetDrawable_SnippetDrawable;var module$contents$ocean$search$SnippetItemRenderer_SnippetItemRenderer=function(a){this.viewport_=a};$jscomp.inherits(module$contents$ocean$search$SnippetItemRenderer_SnippetItemRenderer,module$contents$ocean$viewport$LayoutItemRenderer_LayoutItemRenderer);module$contents$ocean$search$SnippetItemRenderer_SnippetItemRenderer.prototype.render=function(a){return a=new module$contents$ocean$search$SnippetDrawable_SnippetDrawable(this.viewport_,a)};ocean.search.SnippetItemRenderer=module$contents$ocean$search$SnippetItemRenderer_SnippetItemRenderer;var module$contents$ocean$search$SnippetLayoutItem_SnippetLayoutItem=function(a){this.searchResult_=a};$jscomp.inherits(module$contents$ocean$search$SnippetLayoutItem_SnippetLayoutItem,module$contents$ocean$layout$LayoutItem_LayoutItem);ocean.search.SnippetLayoutItem=module$contents$ocean$search$SnippetLayoutItem_SnippetLayoutItem;var module$contents$ocean$search$SnippetLayout_SnippetLayout=function(a,b){module$contents$ocean$layout$VerticalGridLayout_VerticalGridLayout.call(this,1);this.searchResults_=a;this.viewportWidth_=b;this.verticalSpacing=this.marginBottom=this.marginTop=20;a.resultItemArray_&&(a.resultItemArray_.forEach(goog.bind(this.addResult_,this)),this.calculate())};$jscomp.inherits(module$contents$ocean$search$SnippetLayout_SnippetLayout,module$contents$ocean$layout$VerticalGridLayout_VerticalGridLayout); module$contents$ocean$search$SnippetLayout_SnippetLayout.prototype.addResult_=function(a){a=new module$contents$ocean$search$SnippetLayoutItem_SnippetLayoutItem(a);var b=this.viewportWidth_-16;b=Math.min(b,module$contents$ocean$search$SnippetLayout_SnippetLayout.SNIPPET_WIDTH_);var c=module$contents$ocean$search$SnippetLayout_SnippetLayout.SNIPPET_HEIGHT_-module$contents$ocean$search$SnippetLayout_SnippetLayout.SNIPPET_HEADER_HEIGHT_;c=c/module$contents$ocean$search$SnippetLayout_SnippetLayout.SNIPPET_WIDTH_* b+module$contents$ocean$search$SnippetLayout_SnippetLayout.SNIPPET_HEADER_HEIGHT_;b=new goog.math.Size(b,Math.round(c));a.setSize(b);this.addItem(a)};module$contents$ocean$search$SnippetLayout_SnippetLayout.SNIPPET_HEIGHT_=166;module$contents$ocean$search$SnippetLayout_SnippetLayout.SNIPPET_HEADER_HEIGHT_=42;module$contents$ocean$search$SnippetLayout_SnippetLayout.SNIPPET_WIDTH_=600;ocean.search.SnippetLayout=module$contents$ocean$search$SnippetLayout_SnippetLayout;ocean.search.SnippetViewport=function(a){var b=a.viewportDiv_;goog.style.setStyle(b,"overflow","hidden");var c=new module$contents$ocean$viewport$ScrollWindow_ScrollWindow(this,b);ocean.viewport.Viewport.call(this,c);this.viewer_=a;goog.userAgent.MOBILE||this.setClipper(new module$contents$ocean$viewport$ContinuousClipper_ContinuousClipper(this));this.getHandler().listen(this,ocean.viewport.Viewport.EventType.MOVE,this.updateDisplay);var d=goog.dom.getElement("subscription-bar");d&&(this.fadeOutInstitutionalSubscriptionBar(d), goog.Timer.callOnce(function(){goog.style.setElementShown(d,!1)},600));this.setDispatcher(this.createDispatcher_());ocean.search.SnippetViewport.applyOverflowStyles_(b)};goog.inherits(ocean.search.SnippetViewport,ocean.viewport.Viewport);ocean.search.SnippetViewport.prototype.setSearchResults=function(a){a!=this.searchResults_&&(this.searchResults_=a,this.setLayoutForSearchResults_(a))}; ocean.search.SnippetViewport.applyOverflowStyles_=function(a){goog.style.setStyle(a,"overflow","auto");goog.style.setStyle(a,{overflowX:"auto",overflowY:"scroll"});goog.dom.setProperties(a,{dir:"ltr"})}; ocean.search.SnippetViewport.prototype.createDispatcher_=function(){var a=new module$contents$ocean$viewport$LayoutItemDispatcher_LayoutItemDispatcher,b=new module$contents$ocean$search$SnippetItemRenderer_SnippetItemRenderer(this);a.addRenderer(module$contents$ocean$search$SnippetLayoutItem_SnippetLayoutItem,b);return a};ocean.search.SnippetViewport.prototype.resize=function(){this.setLayoutForSearchResults_(this.searchResults_)}; ocean.search.SnippetViewport.prototype.setLayoutForSearchResults_=function(){var a=new module$contents$ocean$search$SnippetLayout_SnippetLayout(this.searchResults_,this.getSize().width);this.setLayout(a);this.updateDisplay()};ocean.search.SnippetViewport.prototype.setGoToResultFunction=function(a){this.goToResult_=a};ocean.search.SnippetViewport.prototype.goToResult=function(a,b){return this.goToResult_(a,b)};var module$exports$ocean$history$HistoryEntry=function(a){this.values_=a||{}};module$exports$ocean$history$HistoryEntry.prototype.getValues=function(){return this.values_};module$exports$ocean$history$HistoryEntry.prototype.setViewportClass=function(a){var b=module$contents$goog$object_findKey(module$exports$ocean$history$HistoryEntry.ViewportTypes_,function(c){return c==a});this.values_[module$exports$ocean$history$HistoryEntry.StateType_.VIEWPORT]=b}; module$exports$ocean$history$HistoryEntry.prototype.getViewportClass=function(){var a=this.values_[module$exports$ocean$history$HistoryEntry.StateType_.VIEWPORT];return module$exports$ocean$history$HistoryEntry.ViewportTypes_[a]||ocean.books.VerticalViewport};module$exports$ocean$history$HistoryEntry.prototype.setQuery=function(a){this.values_[module$exports$ocean$history$HistoryEntry.StateType_.QUERY]=a};module$exports$ocean$history$HistoryEntry.prototype.getQuery=function(){return this.values_[module$exports$ocean$history$HistoryEntry.StateType_.QUERY]}; module$exports$ocean$history$HistoryEntry.prototype.setFullscreen=function(a){this.values_[module$exports$ocean$history$HistoryEntry.StateType_.FULLSCREEN]=a};module$exports$ocean$history$HistoryEntry.prototype.getFullscreen=function(){return!!this.values_[module$exports$ocean$history$HistoryEntry.StateType_.FULLSCREEN]};module$exports$ocean$history$HistoryEntry.StateType_={VIEWPORT:"v",QUERY:"q",FULLSCREEN:"f"}; module$exports$ocean$history$HistoryEntry.ViewportTypes_={onepage:ocean.books.VerticalViewport,twopage:ocean.books.TwoPageViewport,thumbnail:ocean.books.ThumbnailViewport,snippet:ocean.search.SnippetViewport};goog.history={};goog.history.EventType={NAVIGATE:"navigate"};goog.history.Event=function(a){goog.events.Event.call(this,goog.history.EventType.NAVIGATE);this.token=a};goog.inherits(goog.history.Event,goog.events.Event);goog.dom.tags={};goog.dom.tags.VOID_TAGS_={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};goog.dom.tags.isVoidTag=function(a){return goog.dom.tags.VOID_TAGS_[a]===!0};goog.html={};goog.html.deprecated={}; function module$contents$goog$html$deprecated_safeStyleSheetCreateRule(a,b){if((0,goog.string.internal.contains)(a,"<"))throw Error("Selector does not allow '<', got: "+a);var c=a.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g,"");if(!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=\\^$|]+$/.test(c))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=\\^$|] and strings, got: "+a);if(!module$contents$goog$html$deprecated_hasBalancedBrackets(c))throw Error("() and [] in selector must be balanced, got: "+a); b=typeof b==="string"?b:Object.entries(b).map(function(d){var e=(0,$jscomp.makeIterator)(d);d=e.next().value;e=e.next().value;return d+":"+e+";"}).join("");a=a+"{"+b.replace(/</g,"\\3C ")+"}";return module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_styleSheetSafeByReview(a,{justification:"Deprecated, but safe closure/html builder"})}goog.html.deprecated.safeStyleSheetCreateRule=module$contents$goog$html$deprecated_safeStyleSheetCreateRule; function module$contents$goog$html$deprecated_safeStyleSheetConcat(a){var b="",c=function(d){Array.isArray(d)?d.forEach(c):b+=module$contents$google3$third_party$javascript$safevalues$internals$style_sheet_impl_unwrapStyleSheet(d)};Array.prototype.forEach.call(arguments,c);return module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_styleSheetSafeByReview(b,{justification:"Deprecated, but safe closure/html builder"})}goog.html.deprecated.safeStyleSheetConcat=module$contents$goog$html$deprecated_safeStyleSheetConcat; function module$contents$goog$html$deprecated_safeStyleSheetFromConstant(a){a=goog.string.Const.unwrap(a);(0,goog.asserts.assert)(!(0,goog.string.internal.contains)(a,"<"),"Forbidden '<' character in style sheet string: "+a);return module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_styleSheetSafeByReview(a,{justification:"Deprecated, but safe closure/html builder"})}goog.html.deprecated.safeStyleSheetFromConstant=module$contents$goog$html$deprecated_safeStyleSheetFromConstant; function module$contents$goog$html$deprecated_hasBalancedBrackets(a){for(var b={"(":")","[":"]"},c=[],d=0;d<a.length;d++){var e=a[d];if(b[e])c.push(b[e]);else if(module$contents$goog$object_containsValue(b,e)&&c.pop()!=e)return!1}return c.length==0} function module$contents$goog$html$deprecated_trustedResourceUrlCloneWithParams(a,b,c){a=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(a);var d=module$contents$goog$html$deprecated_URL_PARAM_PARSER_.exec(a);a=d[1];var e=d[2]||"";d=d[3]||"";return module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_resourceUrlSafeByReview(a+module$contents$goog$html$deprecated_stringifyParams("?",e,b)+module$contents$goog$html$deprecated_stringifyParams("#", d,c),{justification:"Deprecated, but safe closure/html builder"})}goog.html.deprecated.trustedResourceUrlCloneWithParams=module$contents$goog$html$deprecated_trustedResourceUrlCloneWithParams; function module$contents$goog$html$deprecated_trustedResourceUrlFormat(a,b){var c=goog.string.Const.unwrap(a);if(!module$contents$goog$html$deprecated_BASE_URL_.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(module$contents$goog$html$deprecated_FORMAT_MARKER_,function(d,e){if(!Object.prototype.hasOwnProperty.call(b,e))throw Error('Found marker, "'+e+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));d=b[e];return d instanceof goog.string.Const? goog.string.Const.unwrap(d):encodeURIComponent(String(d))});return module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_resourceUrlSafeByReview(a,{justification:"Deprecated, but safe closure/html builder"})}goog.html.deprecated.trustedResourceUrlFormat=module$contents$goog$html$deprecated_trustedResourceUrlFormat; var module$contents$goog$html$deprecated_FORMAT_MARKER_=/%{(\w+)}/g,module$contents$goog$html$deprecated_BASE_URL_=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),module$contents$goog$html$deprecated_URL_PARAM_PARSER_=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/; function module$contents$goog$html$deprecated_trustedResourceUrlFormatWithParams(a,b,c,d){a=module$contents$goog$html$deprecated_trustedResourceUrlFormat(a,b);return module$contents$goog$html$deprecated_trustedResourceUrlCloneWithParams(a,c,d)}goog.html.deprecated.trustedResourceUrlFormatWithParams=module$contents$goog$html$deprecated_trustedResourceUrlFormatWithParams; function module$contents$goog$html$deprecated_trustedResourceUrlFromConstant(a){return module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_resourceUrlSafeByReview(goog.string.Const.unwrap(a),{justification:"Deprecated, but safe closure/html builder"})}goog.html.deprecated.trustedResourceUrlFromConstant=module$contents$goog$html$deprecated_trustedResourceUrlFromConstant; function module$contents$goog$html$deprecated_trustedResourceUrlFromConstants(a){for(var b="",c=0;c<a.length;c++)b+=goog.string.Const.unwrap(a[c]);return module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_resourceUrlSafeByReview(b,{justification:"Deprecated, but safe closure/html builder"})}goog.html.deprecated.trustedResourceUrlFromConstants=module$contents$goog$html$deprecated_trustedResourceUrlFromConstants; function module$contents$goog$html$deprecated_stringifyParams(a,b,c){if(c==null)return b;if(typeof c==="string")return c?a+encodeURIComponent(c):"";for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)){var e=c[d];e=Array.isArray(e)?e:[e];for(var f=0;f<e.length;f++){var g=e[f];g!=null&&(b||(b=a),b+=(b.length>a.length?"&":"")+encodeURIComponent(d)+"="+encodeURIComponent(String(g)))}}return b} function module$contents$goog$html$deprecated_safeHtmlCreateIframe(a,b,c,d){a&&module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(a);var e={};e.src=a||null;e.srcdoc=b&&(0,module$exports$google3$third_party$javascript$safevalues$index.unwrapHtml)(b).toString();a={sandbox:""};c=module$contents$goog$html$deprecated_combineAttributes(e,a,c);return module$contents$goog$html$deprecated_createTagInternal("iframe",c,d)} goog.html.deprecated.safeHtmlCreateIframe=module$contents$goog$html$deprecated_safeHtmlCreateIframe; function module$contents$goog$html$deprecated_safeHtmlCreateSandboxIframe(a,b,c,d){var e={};e.src=a?module$contents$google3$third_party$javascript$safevalues$internals$url_impl_unwrapUrl(module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizeUrl(a)):null;e.srcdoc=b||null;e.sandbox="";a=module$contents$goog$html$deprecated_combineAttributes(e,{},c);return module$contents$goog$html$deprecated_createTagInternal("iframe",a,d)} goog.html.deprecated.safeHtmlCreateSandboxIframe=module$contents$goog$html$deprecated_safeHtmlCreateSandboxIframe; function module$contents$goog$html$deprecated_createTagInternal(a,b,c){var d="<"+a,e=a,f="";if(b)for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)){if(!module$contents$goog$html$deprecated_VALID_NAMES_IN_TAG.test(l))throw Error(module$contents$goog$html$deprecated_ENABLE_ERROR_MESSAGES?'Invalid attribute name "'+l+'".':"");var g=b[l];if(g!=null){var h=e,k=l;if(k.toLowerCase()=="style")g=String(g);else{if(/^on/i.test(k))throw Error(module$contents$goog$html$deprecated_ENABLE_ERROR_MESSAGES?'Event handler attribute "'+ k+'" is not allowed as it would break under go/strict-csp':"");if(k.toLowerCase()in module$contents$goog$html$deprecated_URL_ATTRIBUTES)if(g instanceof module$exports$google3$third_party$javascript$safevalues$internals$resource_url_impl.TrustedResourceUrl)g=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(g).toString();else if(module$contents$google3$third_party$javascript$safevalues$internals$url_impl_isUrl(g))g=module$contents$google3$third_party$javascript$safevalues$internals$url_impl_unwrapUrl(g); else if(typeof g==="string")g=module$contents$google3$third_party$javascript$safevalues$builders$url_builders_sanitizeUrl(g).toString();else throw Error(module$contents$goog$html$deprecated_ENABLE_ERROR_MESSAGES?'Attribute "'+k+'" on tag "'+h+'" requires safevalues.SafeUrl or string, value "'+g+'" given.':"");}(0,goog.asserts.assert)(module$contents$google3$third_party$javascript$safevalues$internals$url_impl_isUrl(g)||g instanceof module$exports$google3$third_party$javascript$safevalues$internals$resource_url_impl.TrustedResourceUrl|| g instanceof module$exports$google3$third_party$javascript$safevalues$internals$html_impl.SafeHtml||typeof g==="string"||typeof g==="number","String or number value expected, got "+typeof g+" with value: "+g);g=k+'="'+(0,goog.string.internal.htmlEscape)(String(g))+'"';f+=" "+g}}var l=f;d+=l;c==null?c=[]:Array.isArray(c)||(c=[c]);goog.dom.tags.isVoidTag(a.toLowerCase())?((0,goog.asserts.assert)(!c.length,"Void tag <"+a+"> does not allow content."),d+=">"):(c=(0,module$exports$google3$third_party$javascript$safevalues$index.concatHtmls)(c), d+=">"+(0,module$exports$google3$third_party$javascript$safevalues$index.unwrapHtml)(c)+"</"+a+">");return module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_htmlSafeByReview(d,{justification:"Deprecated, but safe closure/html builder"})} function module$contents$goog$html$deprecated_combineAttributes(a,b,c){var d={};for(g in a)Object.prototype.hasOwnProperty.call(a,g)&&((0,goog.asserts.assert)(g.toLowerCase()==g,"Must be lower case"),d[g]=a[g]);for(var e in b)Object.prototype.hasOwnProperty.call(b,e)&&((0,goog.asserts.assert)(e.toLowerCase()==e,"Must be lower case"),d[e]=b[e]);if(c)for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=f.toLowerCase();if(g in a)throw Error(module$contents$goog$html$deprecated_ENABLE_ERROR_MESSAGES? 'Cannot override "'+g+'" attribute, got "'+f+'" with value "'+c[f]+'"':"");g in b&&delete d[g];d[f]=c[f]}return d}var module$contents$goog$html$deprecated_ENABLE_ERROR_MESSAGES=goog.DEBUG,module$contents$goog$html$deprecated_TextOrHtml;goog.html.deprecated.TextOrHtml=module$contents$goog$html$deprecated_TextOrHtml; var module$contents$goog$html$deprecated_VALID_NAMES_IN_TAG=/^[a-zA-Z0-9-]+$/,module$contents$goog$html$deprecated_URL_ATTRIBUTES={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},module$contents$goog$html$deprecated_AttributeValue;goog.html.deprecated.AttributeValue=module$contents$goog$html$deprecated_AttributeValue;var module$contents$goog$memoize_MODULE_LOCAL_CACHE=new WeakMap; function module$contents$goog$memoize_memoize(a,b){b=b===void 0?module$contents$goog$memoize_simpleSerializer:b;var c=goog.getUid(a),d=function(g){g=(0,$jscomp.makeIterator)(g);g.next();g=(0,$jscomp.arrayFromIterator)(g);return b(c,g)},e=function(g){var h=(0,$jscomp.makeIterator)(g);g=h.next().value;h=(0,$jscomp.arrayFromIterator)(h);return a.apply(g,h)},f=function(){var g=$jscomp.getRestArguments.apply(0,arguments);if(module$contents$goog$memoize_memoize.ENABLE_MEMOIZE){var h=this||goog.global,k= module$contents$goog$memoize_MODULE_LOCAL_CACHE.get(h);k||(k={},module$contents$goog$memoize_MODULE_LOCAL_CACHE.set(h,k));return goog.reflect.cache(k,[this].concat((0,$jscomp.arrayFromIterable)(g)),e,d)}return a.apply(this,g)};return f}goog.memoize=module$contents$goog$memoize_memoize;module$contents$goog$memoize_memoize.ENABLE_MEMOIZE=!0;var module$contents$goog$memoize_simpleSerializer=function(a,b){a=[a];for(var c=b.length-1;c>=0;--c)a.push(typeof b[c],b[c]);return a.join("\v")};goog.History=function(a,b,c,d){goog.events.EventTarget.call(this);if(a&&!b)throw Error("Can't use invisible history without providing a blank page.");if(c)var e=c;else{e="history_state"+goog.History.historyCount_;var f=module$exports$google3$third_party$javascript$safevalues$index.createHtml("input",{type:goog.dom.InputType.TEXT,name:e,id:e,style:"display:none"});module$contents$google3$third_party$javascript$safevalues$dom$globals$document_write(document,f);e=goog.dom.getElement(e)}this.hiddenInput_= e;this.window_=c?goog.dom.getWindow(goog.dom.getOwnerDocument(c)):window;this.iframeSrc_=b;this.timer_=new goog.Timer(goog.History.PollingType.NORMAL);this.registerDisposable(this.timer_);this.userVisible_=!a;this.eventHandler_=new goog.events.EventHandler(this);a&&(d?a=d:(a="history_iframe"+goog.History.historyCount_,b=module$contents$goog$html$deprecated_safeHtmlCreateIframe(this.iframeSrc_,null,{id:a,style:"display:none",sandbox:void 0}),module$contents$google3$third_party$javascript$safevalues$dom$globals$document_write(document, b),a=goog.dom.getElement(a)),this.iframe_=a,this.unsetIframe_=!0);this.userVisible_?this.setHash_(this.getToken(),!0):this.setIframeToken_(this.hiddenInput_.value);goog.History.historyCount_++};goog.inherits(goog.History,goog.events.EventTarget);goog.History.prototype.enabled_=!1;goog.History.prototype.longerPolling_=!1;goog.History.prototype.lastToken_=null;goog.History.isOnHashChangeSupported=module$contents$goog$memoize_memoize(function(){return"onhashchange"in goog.global}); goog.History.prototype.lockedToken_=null;goog.History.prototype.disposeInternal=function(){goog.History.superClass_.disposeInternal.call(this);this.eventHandler_.dispose();this.setEnabled(!1)}; goog.History.prototype.setEnabled=function(a){a!=this.enabled_&&(a?(goog.userAgent.GECKO&&this.eventHandler_.listen(this.window_,"pageshow",this.onShow_),goog.History.isOnHashChangeSupported()&&this.userVisible_?(this.eventHandler_.listen(this.window_,goog.events.EventType.HASHCHANGE,this.onHashChange_),this.enabled_=!0,this.dispatchEvent(new goog.history.Event(this.getToken(),!1))):(this.eventHandler_.listen(this.timer_,goog.Timer.TICK,goog.bind(this.check_,this,!0)),this.enabled_=!0,this.lastToken_= this.getToken(),this.dispatchEvent(new goog.history.Event(this.getToken(),!1)),this.timer_.start())):(this.enabled_=!1,this.eventHandler_.removeAll(),this.timer_.stop()))};goog.History.prototype.onShow_=function(a){a.event_.persisted&&(this.setEnabled(!1),this.setEnabled(!0))};goog.History.prototype.onHashChange_=function(){var a=this.getLocationFragment_(this.window_);a!=this.lastToken_&&this.update_(a,!0)}; goog.History.prototype.getToken=function(){return this.lockedToken_!=null?this.lockedToken_:this.userVisible_?this.getLocationFragment_(this.window_):this.getIframeToken_()||""};goog.History.prototype.setToken=function(a,b){this.setHistoryState_(a,!1,b)};goog.History.prototype.getLocationFragment_=function(a){a=a.location.href;var b=a.indexOf("#");return b<0?"":a.substring(b+1)}; goog.History.prototype.setHistoryState_=function(a,b){this.getToken()!=a&&(this.userVisible_?(this.setHash_(a,b),this.enabled_&&this.check_(!1)):(this.setIframeToken_(a,b),this.lockedToken_=this.lastToken_=this.hiddenInput_.value=a,this.dispatchEvent(new goog.history.Event(a,!1))))}; goog.History.prototype.setHash_=function(a,b){var c=this.window_.location,d=c.href.split("#")[0],e=goog.string.contains(c.href,"#");if(e||a)d+="#"+a;d!=c.href&&(a=module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_urlSafeByReview(d,{justification:"URL taken from location.href."}),b?module$exports$google3$third_party$javascript$safevalues$dom$index.locationReplace(c,a):module$exports$google3$third_party$javascript$safevalues$dom$index.setLocationHref(c,a))}; goog.History.prototype.setIframeToken_=function(a,b){if(this.unsetIframe_||a!=this.getIframeToken_()){this.unsetIframe_=!1;a=goog.string.urlEncode(a);goog.asserts.assertInstanceof(this.iframeSrc_,module$exports$google3$third_party$javascript$safevalues$internals$resource_url_impl.TrustedResourceUrl,"this.iframeSrc_ must be set on calls to setIframeToken_");a=module$contents$google3$third_party$javascript$safevalues$internals$resource_url_impl_unwrapResourceUrl(this.iframeSrc_).toString()+"#"+a;var c= this.iframe_.contentWindow;c&&(b?module$exports$google3$third_party$javascript$safevalues$dom$index.locationReplace(c.location,a):module$exports$google3$third_party$javascript$safevalues$dom$index.setLocationHref(c.location,a))}}; goog.History.prototype.getIframeToken_=function(){var a=this.iframe_.contentWindow;if(a){try{var b=goog.string.urlDecode(this.getLocationFragment_(a))}catch(c){return this.longerPolling_||this.setLongerPolling_(!0),null}this.longerPolling_&&this.setLongerPolling_(!1);return b||null}return null}; goog.History.prototype.check_=function(a){if(this.userVisible_){var b=this.getLocationFragment_(this.window_);b!=this.lastToken_&&this.update_(b,a)}this.userVisible_||(b=this.getIframeToken_()||"",this.lockedToken_!=null&&b!=this.lockedToken_)||(this.lockedToken_=null,b!=this.lastToken_&&this.update_(b,a))}; goog.History.prototype.update_=function(a,b){this.lastToken_=this.hiddenInput_.value=a;this.userVisible_?this.setHash_(a):this.setIframeToken_(a);this.dispatchEvent(new goog.history.Event(this.getToken(),b))};goog.History.prototype.setLongerPolling_=function(a){this.longerPolling_!=a&&this.timer_.setInterval(a?goog.History.PollingType.LONG:goog.History.PollingType.NORMAL);this.longerPolling_=a};goog.History.historyCount_=0;goog.History.PollingType={NORMAL:150,LONG:1E4};goog.History.EventType=goog.history.EventType; goog.History.Event=goog.history.Event;ocean.history={};var module$contents$ocean$history$History_History=function(a,b){this.history_=new goog.History;goog.events.listen(this.history_,goog.history.EventType.NAVIGATE,goog.bind(this.replayEntry_,this));this.viewer_=a;this.fullscreen_=b};module$contents$ocean$history$History_History.prototype.replayEntry_=function(a){this.replayToken_(a.token)}; module$contents$ocean$history$History_History.prototype.replayToken_=function(a){if(!(this.initialReplay_&&a==""||this.ignoreReplay_))if((goog.userAgent.IE||goog.userAgent.WEBKIT)&&a=="")window.history.go(-2);else if(a){var b={},c=new goog.Uri.QueryData(a);module$contents$goog$array_forEach(c.getKeys(),function(e){var f=c.get(e);f in module$contents$ocean$history$History_History.BOOLEAN_STRING_MAP_&&(f=module$contents$ocean$history$History_History.BOOLEAN_STRING_MAP_[f]);b[e]=f});a=new module$exports$ocean$history$HistoryEntry(b); this.viewer_.setViewportClass(a.getViewportClass());this.fullscreen_.setFullscreen(a.getFullscreen());var d=a.getQuery();d!==void 0&&this.viewer_.searchState_.setQuery(a.getQuery())}};module$contents$ocean$history$History_History.prototype.setEnabled=function(a){this.initialReplay_=!0;this.history_.setEnabled(a);goog.userAgent.IE&&(a=(new goog.Uri(window.location)).getFragment(),this.replayToken_(a));this.initialReplay_=!1}; module$contents$ocean$history$History_History.prototype.update=function(){var a=new module$exports$ocean$history$HistoryEntry;a.setViewportClass(this.viewer_.getViewportClass());a.setQuery(this.viewer_.searchState_.getQuery());a.setFullscreen(this.fullscreen_.fullscreen_);a=goog.Uri.QueryData.createFromMap(a.getValues()).toString();this.ignoreReplay_=!0;this.history_.setToken(a);this.ignoreReplay_=!1};module$contents$ocean$history$History_History.BOOLEAN_STRING_MAP_={"true":!0,"false":!1}; ocean.history.History=module$contents$ocean$history$History_History;var module$exports$ocean$search$SearchSessionSortOrder={SearchSessionSortOrder:{PAGES:"n",RELEVANCE:"r"}};var module$exports$ocean$entitypage$EntityPageFooterToolbar={EntityPageFooterToolbar:function(a,b,c,d,e,f,g){var h=this;g=g===void 0?!1:g;a&&(this.viewer_=goog.asserts.assertExists(a),this.history_=b);if(this.clippingCallback_=c)this.inClipSelectionMode_=!1;this.hasTwoPageViewport_=!!d;this.hasThumbnailViewport_=!!e;this.flags_=f;this.pageLoadedAsViewModeToggle_=g;this.contentsButton_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-toc"));this.contentsText_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-toc-label")); this.canRenderToc_=!1;if(this.paginationButtons_=goog.dom.getElement("entity-page-pagination"))this.pagePreviousButton_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-prev")),this.pageNextButton_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-next")),this.floatingButtonHoverArea_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-floating-hover"));this.zoomInButton_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-zoom-in")); this.zoomOutButton_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-zoom-out"));this.onePageViewButton_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-one-page"));this.twoPageViewButton_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-two-page"));this.thumbnailViewButton_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-thumbnail"));this.linkButton_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-link")); this.linkMenuContent_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-link-menu-content"));this.linkMenuShareInput_=module$contents$goog$asserts$dom_assertIsHtmlInputElement(goog.dom.getElement("entity-page-share-input"));this.linkMenuEmbedInput_=module$contents$goog$asserts$dom_assertIsHtmlInputElement(goog.dom.getElement("entity-page-embed-input"));this.clipButton_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-clip"));this.moreActionsButton_= module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-more"));this.moreActionsMenuContent_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-more-menu-content"));this.isMoreActionsMenuOpen_=!1;this.volumeInfoContainer_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-volume-info"));if(a=goog.dom.getElement("flow-top-div"))this.flowTopDiv_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("flow-top-div")), this.textViewportZoomStop_=(a=Number((new goog.Uri(window.location.href)).getParameterValue("zoom")))?a:2,this.setTextZoomStopClass_(this.textViewportZoomStop_),goog.events.listen(this.viewer_,ocean.viewport.Viewer.EventType.SEARCHUPDATE,function(){h.updateTextViewportNavigationUrls_()});this.isFadingFloatingButtonsPaused_=!0;this.initializeContentsButton_();this.initializePaginationButtons_();this.initializeZoomButtons_();this.initializePageViewButtons_();this.initializeLinkButton_();this.initializeClipButton_(); this.initializeMoreActionsMenu_();this.maybeAddKeyboardShortcutsDialog_();this.setUpFirstUserActionListeners_();this.setUpFadingFloatingButtonListeners_();new module$exports$ocean$entitypage$FocusOutlineHandler.FocusOutlineHandler;ocean.entitypage.EntityPageCommunicationUtil.setUpCommunicationWithParent(document,window,this.createRpcMethodsToRegisterMap_())}}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.initializeContentsButton_=function(){var a=this;if(this.viewer_){var b=goog.asserts.assertExists(this.viewer_.volumeInfo_),c=!!b.tocLines_;b=(b=b.tocPageId_)&&goog.asserts.assertExists(this.viewer_.pageInfoSet_)&&!!this.viewer_.pageInfoSet_.getPageInfoByPid(b);c||b?(this.canRenderToc_=!0,this.flowTopDiv_?(c=goog.dom.getElement("jtp"),c=(c=c.value)||"Contents",goog.dom.setTextContent(this.contentsText_,c)):(c= this.viewer_.getPageInfo(),c=c.getLabel()||"Contents",goog.dom.setTextContent(this.contentsText_,c)),this.listenForSelection(this.contentsButton_,function(){a.launchTocPanel_()}),goog.events.listen(this.viewer_,ocean.viewport.Viewer.EventType.PAGECHANGE,function(){a.handlePageChange_()})):(goog.dom.setTextContent(this.contentsText_,"Contents unavailable"),goog.dom.classlist.addAll(this.contentsButton_,["toolbar-button-disabled","toc-button-unavailable"]),goog.a11y.aria.setState(this.contentsButton_, goog.a11y.aria.State.DISABLED,!0))}else goog.dom.setTextContent(this.contentsText_,"Contents unavailable"),goog.dom.classlist.addAll(this.contentsButton_,["toolbar-button-disabled","toc-button-unavailable"]),goog.a11y.aria.setState(this.contentsButton_,goog.a11y.aria.State.DISABLED,!0)}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.initializePaginationButtons_=function(){var a=this;this.paginationButtons_&&(this.viewer_&&(this.listenForSelection(this.pagePreviousButton_,function(){a.pagePreviousButton_.hasAttribute("href")||a.viewer_.queueCommand(ocean.viewport.Viewer.Commands.PREVIOUS)}),this.listenForSelection(this.pageNextButton_,function(){a.pageNextButton_.hasAttribute("href")||a.viewer_.queueCommand(ocean.viewport.Viewer.Commands.NEXT)})), this.pagePreviousButton_.setAttribute("title","Previous Page"),this.pageNextButton_.setAttribute("title","Next Page"))}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.initializeZoomButtons_=function(){var a=this;this.listenForSelection(this.zoomInButton_,function(){a.flowTopDiv_?a.handleTextViewportZoomIn_():a.viewer_&&a.viewer_.queueCommand(ocean.viewport.Viewer.Commands.ZOOM_IN)});this.listenForSelection(this.zoomOutButton_,function(){a.flowTopDiv_?a.handleTextViewportZoomOut_():a.viewer_&&a.viewer_.queueCommand(ocean.viewport.Viewer.Commands.ZOOM_OUT)});this.flowTopDiv_&& goog.events.listen(document.body,goog.events.EventType.KEYDOWN,function(b){b.keyCode==goog.events.KeyCodes.NUM_PLUS||b.keyCode==goog.events.KeyCodes.EQUALS||b.keyCode==goog.events.KeyCodes.FF_EQUALS?a.handleTextViewportZoomIn_():(b.keyCode==goog.events.KeyCodes.NUM_MINUS||b.keyCode==goog.events.KeyCodes.DASH||b.keyCode==goog.events.KeyCodes.FF_DASH)&&a.handleTextViewportZoomOut_()});this.zoomInButton_.setAttribute("title","Zoom in");this.zoomOutButton_.setAttribute("title","Zoom out")}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.initializePageViewButtons_=function(){var a=this;this.listenForSelection(this.onePageViewButton_,function(){a.setViewportClass_(ocean.books.VerticalViewport)});this.onePageViewButton_.setAttribute("title","Single page view");this.hasTwoPageViewport_?(this.listenForSelection(this.twoPageViewButton_,function(){a.setViewportClass_(ocean.books.TwoPageViewport)}),this.twoPageViewButton_.setAttribute("title","Two page view")): (goog.dom.classlist.enable(this.twoPageViewButton_,"toolbar-button-disabled",!0),this.twoPageViewButton_.setAttribute("title","Two page view unavailable"),goog.a11y.aria.setState(this.twoPageViewButton_,goog.a11y.aria.State.DISABLED,!0));this.hasThumbnailViewport_?(this.listenForSelection(this.thumbnailViewButton_,function(){a.setViewportClass_(ocean.books.ThumbnailViewport)}),this.thumbnailViewButton_.setAttribute("title","Thumbnail view")):(goog.dom.classlist.enable(this.thumbnailViewButton_,"toolbar-button-disabled", !0),this.thumbnailViewButton_.setAttribute("title","Thumbnail view unavailable"),goog.a11y.aria.setState(this.thumbnailViewButton_,goog.a11y.aria.State.DISABLED,!0));this.viewer_&&(goog.events.listen(this.viewer_,ocean.viewport.Viewer.EventType.VIEWPORTMODECHANGE,function(){a.handleViewportChange_()}),this.handleViewportChange_())}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.initializeLinkButton_=function(){var a=this,b=(new ocean.entitypage.CopyToClipboardButton(this.linkMenuShareInput_)).getElement();goog.dom.getElement("entity-page-share-copy-container").appendChild(b);b=(new ocean.entitypage.CopyToClipboardButton(this.linkMenuEmbedInput_)).getElement();goog.dom.getElement("entity-page-embed-copy-container").appendChild(b);var c=new module$exports$ocean$entitypage$PopupMenu("Link to this result", this.linkMenuContent_,function(){a.linkButton_.focus()});c.setPinnedCorner(goog.positioning.Corner.BOTTOM_RIGHT);c.setPosition(new goog.positioning.AnchoredViewportPosition(this.linkButton_,goog.positioning.Corner.TOP_RIGHT,!0));c.setVisible(!1);b=this.linkMenuShareInput_.value;var d=new goog.Uri(b);this.listenForSelection(this.linkButton_,function(){if(c.isOrWasRecentlyVisible())c.setVisible(!1);else if(c.setVisible(!0),c.getElement().focus(),a.updateShareUrlWithCurrentState(d),a.linkMenuShareInput_.value= d.toString(),a.viewer_){var e=a.viewer_.getPageInfo();e=new goog.Uri(e.getPageUrl());e.removeParameter("source");e.setParameterValue("output","embed");a.linkMenuEmbedInput_.value=module$contents$ocean$chrome$LinkToPagePanel_LinkToPagePanel.createEmbeddingLink(e.toString())}});this.linkButton_.setAttribute("title","Link to this result")}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.initializeClipButton_=function(){var a=this;if(this.clippingCallback_){var b=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-selection-bar")),c=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-exit-selection")),d=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-toolbar"));this.listenForSelection(this.clipButton_, function(){a.inClipSelectionMode_=!a.inClipSelectionMode_;a.clippingCallback_(!0);goog.dom.classlist.enable(b,"menu-hidden",!1);c.focus();goog.a11y.aria.setState(d,goog.a11y.aria.State.HIDDEN,!0)});this.listenForSelection(c,function(){a.clippingCallback_(!1);goog.dom.classlist.enable(b,"menu-hidden",!0);a.clipButton_.focus();goog.a11y.aria.setState(d,goog.a11y.aria.State.HIDDEN,!1)});this.clipButton_.setAttribute("title","Select a clip")}else goog.dom.classlist.enable(this.clipButton_,"toolbar-button-disabled", !0),goog.a11y.aria.setState(this.clipButton_,goog.a11y.aria.State.DISABLED,!0),this.clipButton_.setAttribute("title","Select a clip unavailable")}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.initializeMoreActionsMenu_=function(){var a=this;this.maybeInitializeToggleViewportModeLink_();this.maybeInitializeCopyrightLink_();this.maybeInitializeKeyboardShortcutsLink_();var b=new module$exports$ocean$entitypage$PopupMenu("",this.moreActionsMenuContent_,function(){a.moreActionsButton_.focus()});b.setPinnedCorner(goog.positioning.Corner.TOP_RIGHT);b.setPosition(new goog.positioning.AnchoredViewportPosition(this.moreActionsButton_, goog.positioning.Corner.BOTTOM_RIGHT,!0));goog.dom.classlist.add(b.getElement(),"more-actions-popup");b.setVisible(!1);this.maybeInitializeFindInStoreButton_(b);var c=goog.dom.getElement("entity-page-toggle-viewport-mode-link");c&&this.pageLoadedAsViewModeToggle_&&(b.setVisible(!0),c.focus());this.listenForSelection(this.moreActionsButton_,function(){if(b.isOrWasRecentlyVisible())b.setVisible(!1),a.moreActionsButton_.focus();else if(b.setVisible(!0),b.getElement().focus(),c){var e=new goog.Uri(c.href); a.updateToggleViewportModeUrlWithCurrentState_(e);(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(c,e.toString())}});this.moreActionsButton_.setAttribute("title","More actions menu");goog.events.listen(b,goog.ui.PopupBase.EventType.SHOW,function(){a.isMoreActionsMenuOpen_=!0;a.isFadingFloatingButtonsPaused_=!0;a.resetFloatingButtons_()});goog.events.listen(b,goog.ui.PopupBase.EventType.HIDE,function(){a.isMoreActionsMenuOpen_=!1;a.isFadingFloatingButtonsPaused_= !1;a.maybeFadeOutFloatingButtons_()});if(this.flags_.showViewportOnboarding||this.flags_.showViewportPlainTextOnboarding){var d=Number((new goog.Uri(window.location.href)).getParameterValue("op"));new module$exports$ocean$entitypage$ViewportOnboardingFlow.ViewportOnboardingFlow(b,this.viewer_,!!this.flags_.showViewportPlainTextOnboarding,this.pageLoadedAsViewModeToggle_,d?d:0)}}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.maybeInitializeFindInStoreButton_=function(a){var b=this,c=goog.dom.getElement("entity-page-store"),d=goog.dom.getElement("gb-mobile-buy-section");if(c&&d&&(d=goog.dom.getElementByTagNameAndClass(goog.dom.TagName.TABLE,"gb-mobile-buy-table",d))){var e=new module$exports$ocean$entitypage$PopupMenu("",d,function(){b.moreActionsButton_.focus()});e.setPinnedCorner(goog.positioning.Corner.TOP_LEFT);e.setPosition(new goog.positioning.AnchoredViewportPosition(c, goog.positioning.Corner.TOP_RIGHT,!0));goog.dom.classlist.add(e.getElement(),"buy-table-popup");e.setVisible(!1);this.listenForSelection(c,function(){e.setVisible(!0);e.getElement().focus()},!0);a.getElement().querySelectorAll(".more-actions-menu-link").forEach(function(f){f!=c&&goog.events.listen(f,goog.events.EventType.MOUSEENTER,function(){e.setVisible(!1)})});goog.events.listen(e.getElement(),goog.events.EventType.MOUSELEAVE,function(){e.setVisible(!1)})}}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.maybeAddKeyboardShortcutsDialog_=function(){var a=goog.dom.getElement("ep-keyboard-shortcuts");if(a&&this.viewer_){var b=new module$exports$ocean$entitypage$PopupMenu("",a,function(){},!0);goog.dom.classlist.add(b.getElement(),"keyboard-shortcuts-popup");a=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("ep-keyboard-close"));this.listenForSelection(a,function(){b.setVisible(!1)});goog.events.listen(this.viewer_, ocean.viewport.Viewer.EventType.KEYBOARDSHORTCUTSOPENED,function(){b.setVisible(!0)})}};module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.maybeInitializeKeyboardShortcutsLink_=function(){var a=this,b=goog.dom.getElement("entity-page-keyboard");b&&this.viewer_&&this.listenForSelection(b,function(){a.viewer_.queueCommand(ocean.viewport.Viewer.Commands.SHOW_KEYBOARD_SHORTCUTS)})}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.maybeInitializeCopyrightLink_=function(){var a=this,b=goog.dom.getElement("entity-page-copyright-page-id");if(b&&this.viewer_){var c=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("entity-page-copyright"));b=goog.dom.getTextContent(b);var d=goog.asserts.assertExists(this.viewer_.pageInfoSet_.getPageInfoByPid(b));this.listenForSelection(c,function(){a.viewer_.setPageInfo(d)})}}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.maybeInitializeToggleViewportModeLink_=function(){var a=goog.dom.getElement("entity-page-toggle-viewport-mode-link");if(a){var b=this.flowTopDiv_?!0:!1;goog.dom.classlist.enable(a,"checked",b);goog.a11y.aria.setState(a,goog.a11y.aria.State.PRESSED,b);this.listenForSelection(a,function(){goog.dom.classlist.enable(a,"checked",!b);goog.a11y.aria.setState(a,goog.a11y.aria.State.PRESSED,!b)})}}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.launchTocPanel_=function(){var a=goog.dom.getElementByClass("scroll-toc-div"),b=goog.dom.getElementByClass("base-image-toc-div");a||b||(new module$contents$ocean$books$TocPanel_TocPanel(this.viewer_,this.contentsButton_,this.flags_,!!this.flowTopDiv_)).render(8,this.textViewportZoomStop_)}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.handlePageChange_=function(){var a=this.viewer_.getPageInfo();a=a.getLabel()||"Contents";this.contentsText_&&(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(this.contentsText_,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(a))}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.handleViewportChange_=function(){this.viewer_.getViewportClass()==ocean.books.VerticalViewport?(this.setPageViewButtonsEnabled_(!0),this.setZoomButtonsEnabled_(!0),this.setPaginationButtonsEnabled_(!0),this.maybeSetTocButtonEnabled_(!0),this.maybeSetClipButtonEnabled_(!0),goog.a11y.aria.setState(this.onePageViewButton_,goog.a11y.aria.State.CURRENT,"true"),goog.a11y.aria.setState(this.twoPageViewButton_,goog.a11y.aria.State.CURRENT, "false"),goog.a11y.aria.setState(this.thumbnailViewButton_,goog.a11y.aria.State.CURRENT,"false")):this.viewer_.getViewportClass()==ocean.books.TwoPageViewport?(this.setPageViewButtonsEnabled_(!0),this.setZoomButtonsEnabled_(!0),this.setPaginationButtonsEnabled_(!0),this.maybeSetTocButtonEnabled_(!0),this.maybeSetClipButtonEnabled_(!0),goog.a11y.aria.setState(this.onePageViewButton_,goog.a11y.aria.State.CURRENT,"false"),goog.a11y.aria.setState(this.twoPageViewButton_,goog.a11y.aria.State.CURRENT,"true"), goog.a11y.aria.setState(this.thumbnailViewButton_,goog.a11y.aria.State.CURRENT,"false")):this.viewer_.getViewportClass()==ocean.books.ThumbnailViewport?(this.setPageViewButtonsEnabled_(!0),this.setZoomButtonsEnabled_(!1),this.setPaginationButtonsEnabled_(!0),this.maybeSetTocButtonEnabled_(!0),this.maybeSetClipButtonEnabled_(!1),goog.a11y.aria.setState(this.onePageViewButton_,goog.a11y.aria.State.CURRENT,"false"),goog.a11y.aria.setState(this.twoPageViewButton_,goog.a11y.aria.State.CURRENT,"false"), goog.a11y.aria.setState(this.thumbnailViewButton_,goog.a11y.aria.State.CURRENT,"true")):(this.setPageViewButtonsEnabled_(!1),this.setZoomButtonsEnabled_(!1),this.setPaginationButtonsEnabled_(!1),this.maybeSetTocButtonEnabled_(!1),this.maybeSetClipButtonEnabled_(!1));this.setFloatingButtonsClass_(this.viewer_.getViewportClass())}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.setViewportClass_=function(a){this.viewer_&&this.viewer_.getViewportClass()!=a&&(this.viewer_.setViewportClass(a),!this.viewer_.searchState_.getQuery()&&this.history_&&this.history_.update())}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.setPageViewButtonsEnabled_=function(a){goog.dom.classlist.enable(this.onePageViewButton_,"toolbar-button-disabled",!a);goog.a11y.aria.setState(this.onePageViewButton_,goog.a11y.aria.State.DISABLED,!a);this.hasTwoPageViewport_&&(goog.dom.classlist.enable(this.twoPageViewButton_,"toolbar-button-disabled",!a),goog.a11y.aria.setState(this.twoPageViewButton_,goog.a11y.aria.State.DISABLED,!a));this.hasThumbnailViewport_&& (goog.dom.classlist.enable(this.thumbnailViewButton_,"toolbar-button-disabled",!a),goog.a11y.aria.setState(this.thumbnailViewButton_,goog.a11y.aria.State.DISABLED,!a))}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.setZoomButtonsEnabled_=function(a){goog.dom.classlist.enable(this.zoomOutButton_,"toolbar-button-disabled",!a);goog.a11y.aria.setState(this.zoomOutButton_,goog.a11y.aria.State.DISABLED,!a);goog.dom.classlist.enable(this.zoomInButton_,"toolbar-button-disabled",!a);goog.a11y.aria.setState(this.zoomInButton_,goog.a11y.aria.State.DISABLED,!a)}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.setPaginationButtonsEnabled_=function(a){goog.dom.classlist.enable(this.pagePreviousButton_,"toolbar-button-disabled",!a);goog.a11y.aria.setState(this.pagePreviousButton_,goog.a11y.aria.State.DISABLED,!a);goog.dom.classlist.enable(this.pageNextButton_,"toolbar-button-disabled",!a);goog.a11y.aria.setState(this.pageNextButton_,goog.a11y.aria.State.DISABLED,!a)}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.setFloatingButtonsClass_=function(a){this.paginationButtons_&&a!=ocean.search.SnippetViewport&&!this.flowTopDiv_&&(goog.dom.classlist.enable(this.paginationButtons_,"one-page-view",a==ocean.books.VerticalViewport),goog.dom.classlist.enable(this.volumeInfoContainer_,"one-page-view",a==ocean.books.VerticalViewport),goog.dom.classlist.enable(this.paginationButtons_,"two-page-view",a==ocean.books.TwoPageViewport), goog.dom.classlist.enable(this.volumeInfoContainer_,"two-page-view",a==ocean.books.TwoPageViewport),goog.dom.classlist.enable(this.paginationButtons_,"thumbnail-view",a==ocean.books.ThumbnailViewport),goog.dom.classlist.enable(this.volumeInfoContainer_,"thumbnail-view",a==ocean.books.ThumbnailViewport))}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.maybeSetTocButtonEnabled_=function(a){this.canRenderToc_&&(goog.dom.classlist.enable(this.contentsButton_,"toolbar-button-disabled",!a),goog.a11y.aria.setState(this.contentsButton_,goog.a11y.aria.State.DISABLED,!a))}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.maybeSetClipButtonEnabled_=function(a){this.clippingCallback_&&(goog.dom.classlist.enable(this.clipButton_,"toolbar-button-disabled",!a),goog.a11y.aria.setState(this.clipButton_,goog.a11y.aria.State.DISABLED,!a))}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.updateShareUrlWithCurrentState=function(a){if(this.viewer_){this.updateUrlWithCurrentPageInfo_(a);this.flowTopDiv_&&a.setParameterValue("bksoutput","text");var b=this.viewer_.searchState_.getQuery();b?this.viewer_.getViewportClass()==ocean.search.SnippetViewport?(a.removeParameter("dq"),a.removeParameter("pg"),a.setParameterValue("bsq",b)):(a.removeParameter("bsq"),a.setParameterValue("dq",b)):(a.removeParameter("bsq"), a.removeParameter("dq"))}else(b=(0,module$exports$google3$third_party$javascript$safevalues$index.unwrapHtml)((0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtml)((new goog.Uri(window.location.href)).getFragment())).toString())&&a.setParameterValue("bsq",b)}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.updateToggleViewportModeUrlWithCurrentState_=function(a){this.updateUrlWithCurrentPageInfo_(a);this.flowTopDiv_&&(a.removeParameter("zoom"),a.removeParameter("num"),a.removeParameter("scoring"));a.removeParameter("q");var b=this.viewer_.searchState_.getQuery();if(b){if(a.setParameterValue("dq",b),!this.flowTopDiv_){b=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("search-results-summ")); var c=b.hasAttribute("data-result-num")?b.getAttribute("data-result-num"):0;a.setParameterValue("num",c);b=b.hasAttribute("data-search-sort")?b.getAttribute("data-search-sort"):module$exports$ocean$search$SearchSessionSortOrder.SearchSessionSortOrder.PAGES;a.setParameterValue("scoring",b)}}else a.removeParameter("dq")}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.updateUrlWithCurrentPageInfo_=function(a){var b=this.viewer_.getPageInfo();b=new goog.Uri(b.getPageUrl());a.setParameterValue("pg",b.getParameterValue("pg"))};module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.handleTextViewportZoomIn_=function(){this.textViewportZoomStop_<5&&(this.textViewportZoomStop_+=1,this.setTextZoomStopClass_(this.textViewportZoomStop_))}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.handleTextViewportZoomOut_=function(){this.textViewportZoomStop_>1&&(--this.textViewportZoomStop_,this.setTextZoomStopClass_(this.textViewportZoomStop_))}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.setTextZoomStopClass_=function(a){goog.dom.classlist.enable(this.flowTopDiv_,"zoomstop1",a==1);goog.dom.classlist.enable(this.flowTopDiv_,"zoomstop2",a==2);goog.dom.classlist.enable(this.flowTopDiv_,"zoomstop3",a==3);goog.dom.classlist.enable(this.flowTopDiv_,"zoomstop4",a==4);goog.dom.classlist.enable(this.flowTopDiv_,"zoomstop5",a==5);goog.dom.classlist.enable(this.zoomOutButton_,"toolbar-button-disabled", a==1);goog.dom.classlist.enable(this.zoomInButton_,"toolbar-button-disabled",a==5);this.updateTextViewportNavigationUrls_()}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.updateTextViewportNavigationUrls_=function(){var a=this.pagePreviousButton_,b=new goog.Uri(a.href);this.updateTextViewportNavigationUrlHelper_(b);(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(a,b.toString());a=this.pageNextButton_;b=new goog.Uri(a.href);this.updateTextViewportNavigationUrlHelper_(b);(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(a, b.toString());a=goog.dom.getElement("text-viewport-prev");b=new goog.Uri(a.href);this.updateTextViewportNavigationUrlHelper_(b);(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(a,b.toString());a=goog.dom.getElement("text-viewport-next");b=new goog.Uri(a.href);this.updateTextViewportNavigationUrlHelper_(b);(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(a,b.toString());if(a=goog.dom.getElement("entity-page-copyright"))b=new goog.Uri(a.href), this.updateTextViewportNavigationUrlHelper_(b),(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(a,b.toString());if(a=goog.dom.getElement("search-result-prev"))b=(new goog.Uri(a.href)).setParameterValue("zoom",this.textViewportZoomStop_),(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(a,b.toString());if(a=goog.dom.getElement("search-result-next"))b=(new goog.Uri(a.href)).setParameterValue("zoom",this.textViewportZoomStop_),(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(a, b.toString())};module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.updateTextViewportNavigationUrlHelper_=function(a){a.setParameterValue("zoom",this.textViewportZoomStop_);a.removeParameter("q");var b=this.viewer_.searchState_.getQuery();b?a.setParameterValue("dq",b):a.removeParameter("dq").removeParameter("num").removeParameter("scoring")}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.listenForSelection=function(a,b,c){c=c===void 0?!1:c;goog.events.listen(a,goog.events.EventType.CLICK,function(){b()});goog.events.listen(a,goog.events.EventType.KEYDOWN,function(d){d.keyCode!=goog.events.KeyCodes.SPACE&&d.keyCode!=goog.events.KeyCodes.ENTER||b()});c&&goog.events.listen(a,goog.events.EventType.MOUSEOVER,function(){b()})}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.setUpFirstUserActionListeners_=function(){var a=this,b=function(c){goog.dom.classlist.enable(document.body,"opaque-background",!0);a.isFadingFloatingButtonsPaused_=!1;c&&a.maybeFadeOutFloatingButtons_()};this.pageLoadedAsViewModeToggle_?b(!0):(this.viewer_&&(goog.events.listenOnce(this.viewer_.getViewport(),ocean.viewport.Viewport.EventType.MOVE,function(){b(!0)}),goog.events.listenOnce(this.viewer_.viewportDiv_, goog.events.EventType.CLICK,function(){b(!0)})),goog.events.listenOnce(document.body,goog.events.EventType.CLICK,function(){b(!a.flowTopDiv_)}),goog.events.listenOnce(document.body,goog.events.EventType.KEYDOWN,function(c){c.keyCode!=goog.events.KeyCodes.ESC&&b(!a.flowTopDiv_)}))}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.setUpFadingFloatingButtonListeners_=function(){var a=this;this.viewer_&&(this.flowTopDiv_?goog.events.listen(window,goog.events.EventType.RESIZE,function(){a.maybeFadeOutFloatingButtons_()}):(goog.events.listen(this.viewer_,ocean.viewport.Viewer.EventType.VIEWPORTMODECHANGE,function(){a.maybeFadeOutFloatingButtons_()}),goog.events.listen(this.viewer_,ocean.viewport.Viewer.EventType.RESIZE,function(){a.maybeFadeOutFloatingButtons_()}), goog.events.listen(this.viewer_,ocean.viewport.Viewer.EventType.ZOOMCHANGE,function(){a.maybeFadeOutFloatingButtons_()})),goog.events.listen(this.floatingButtonHoverArea_,goog.events.EventType.MOUSEENTER,function(){a.isFadingFloatingButtonsPaused_=!0;a.resetFloatingButtons_()}),goog.events.listen(this.floatingButtonHoverArea_,goog.events.EventType.MOUSELEAVE,function(){a.isFadingFloatingButtonsPaused_=!1;a.maybeFadeOutFloatingButtons_()}),document.body.querySelectorAll(".floating-button-group").forEach(function(b){goog.events.listen(b, goog.events.EventType.MOUSEENTER,function(){a.isFadingFloatingButtonsPaused_=!0;a.resetFloatingButtons_()});goog.events.listen(b,goog.events.EventType.MOUSELEAVE,function(){a.isFadingFloatingButtonsPaused_=!1;a.maybeFadeOutFloatingButtons_()});goog.events.listen(b,goog.events.EventType.FOCUSIN,function(){a.isFadingFloatingButtonsPaused_=!0;a.resetFloatingButtons_()});goog.events.listen(b,goog.events.EventType.FOCUSOUT,function(){a.isFadingFloatingButtonsPaused_=!1;a.maybeFadeOutFloatingButtons_()})}))}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.maybeFadeOutFloatingButtons_=function(){var a=this;this.isFadingFloatingButtonsPaused_||this.isMoreActionsMenuOpen_||(this.resetFloatingButtons_(),this.isPageContentObscuredByFloatingButtons_()&&(this.fadingFloatingButtonsTimerId_=goog.Timer.callOnce(function(){a.showFloatingButtons_(!1);goog.dom.classlist.enable(a.floatingButtonHoverArea_,"listen-for-hover",!0)},3E3)))}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.isPageContentObscuredByFloatingButtons_=function(){if(!this.viewer_||this.viewer_.getViewportClass()==ocean.search.SnippetViewport)return!1;var a=this.volumeInfoContainer_.getBoundingClientRect();if(this.flowTopDiv_){var b=this.flowTopDiv_.getBoundingClientRect();return ocean.style.isPageRtl()?b.right-54>=a.left:b.left+54<=a.right}b=goog.dom.getElementByClass("scroll-background");if(!b)return!1;b=goog.dom.getFirstElementChild(b); if(!b)return!1;b=b.getBoundingClientRect();return ocean.style.isPageRtl()?b.right>=a.left:b.left<=a.right};module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.resetFloatingButtons_=function(){this.showFloatingButtons_(!0);goog.dom.classlist.enable(this.floatingButtonHoverArea_,"listen-for-hover",!1);this.fadingFloatingButtonsTimerId_&&goog.Timer.clear(this.fadingFloatingButtonsTimerId_)}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.showFloatingButtons_=function(a){goog.dom.classlist.enable(this.volumeInfoContainer_,"floating-button-group-hidden",!a);this.paginationButtons_&&goog.dom.classlist.enable(this.paginationButtons_,"floating-button-group-hidden",!a)}; module$exports$ocean$entitypage$EntityPageFooterToolbar.EntityPageFooterToolbar.prototype.createRpcMethodsToRegisterMap_=function(){var a=this,b={};b[module$contents$ocean$entitypage$Constants_Constants.FOCUS_SEARCH_RPC_METHOD]=function(){var c=goog.dom.getElement("search_form_input");c.focus()};b[module$contents$ocean$entitypage$Constants_Constants.UPDATE_SEARCH_RPC_METHOD]=function(c){a.viewer_.searchState_.setQuery(c);a.history_&&a.history_.update()};b[module$contents$ocean$entitypage$Constants_Constants.GO_TO_PAGE_RPC_METHOD]= function(c){c&&a.viewer_.setPageId(c)};return b};var module$exports$ocean$entitypage$SearchResultSnippet={SearchResultSnippet:function(a,b){this.result_=a;this.pageInfo_=b}}; module$exports$ocean$entitypage$SearchResultSnippet.SearchResultSnippet.prototype.renderImageSnippet=function(){if(this.result_.getPageUrl()==null)return null;var a=this.renderSnippetWithHeader_(!1);goog.dom.setFocusableTabIndex(a,!0);var b=goog.dom.createElement(goog.dom.TagName.IMG);goog.dom.classlist.add(b,"sitb-img");b.src=this.result_.getPageUrl();goog.dom.appendChild(a,b);return a}; module$exports$ocean$entitypage$SearchResultSnippet.SearchResultSnippet.prototype.renderTextSnippet=function(){if(!this.result_.snippetText_)return null;var a=this.renderSnippetWithHeader_(!0),b=goog.dom.createElement(goog.dom.TagName.DIV);goog.dom.classlist.add(b,"sitb-snippet-text");(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(b,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtml)(this.result_.snippetText_));goog.dom.appendChild(a, b);return a}; module$exports$ocean$entitypage$SearchResultSnippet.SearchResultSnippet.prototype.renderSnippetWithHeader_=function(a){var b=goog.dom.createElement(goog.dom.TagName.DIV);goog.dom.classlist.add(b,"sitb-content");var c=goog.dom.createElement(goog.dom.TagName.H4);goog.dom.classlist.add(c,"sitb-result-header");var d=goog.dom.createElement(goog.dom.TagName.DIV),e=this.result_.getPageNumber();e=goog.dom.textAssert.assertHtmlFree(e?module$contents$ocean$msg_getGooglePrintPageNumber(e):"Page");goog.dom.setTextContent(d, e);goog.a11y.aria.setLabel(c,"Search result: "+e);goog.dom.appendChild(c,d);a&&!this.pageInfo_&&(a=goog.dom.createElement(goog.dom.TagName.SPAN),goog.dom.classlist.add(a,"sitb-no-preview-msg"),goog.dom.setTextContent(a,goog.dom.textAssert.assertHtmlFree("No preview available for this page.")),goog.dom.appendChild(c,a));goog.dom.appendChild(b,c);return b}; module$exports$ocean$entitypage$SearchResultSnippet.SearchResultSnippet.renderImageSnippet=function(a){a=new module$exports$ocean$entitypage$SearchResultSnippet.SearchResultSnippet(a,null);return a.renderImageSnippet()};module$exports$ocean$entitypage$SearchResultSnippet.SearchResultSnippet.renderTextSnippet=function(a,b){a=new module$exports$ocean$entitypage$SearchResultSnippet.SearchResultSnippet(a,b);return a.renderTextSnippet()};goog.ui.ContainerRenderer=function(a){this.ariaRole_=a};goog.addSingletonGetter(goog.ui.ContainerRenderer);goog.ui.ContainerRenderer.getCustomRenderer=function(a,b){a=new a;a.getCssClass=function(){return b};return a};goog.ui.ContainerRenderer.CSS_CLASS="goog-container";goog.ui.ContainerRenderer.prototype.getAriaRole=function(){return this.ariaRole_};goog.ui.ContainerRenderer.prototype.enableTabIndex=function(a,b){a&&(a.tabIndex=b?0:-1)}; goog.ui.ContainerRenderer.prototype.createDom=function(a){return a.getDomHelper().createDom(goog.dom.TagName.DIV,this.getClassNames(a).join(" "))};goog.ui.ContainerRenderer.prototype.getContentElement=function(a){return a};goog.ui.ContainerRenderer.prototype.canDecorate=function(a){return a.tagName=="DIV"}; goog.ui.ContainerRenderer.prototype.decorate=function(a,b){b.id&&a.setId(b.id);var c=this.getCssClass(),d=!1,e=goog.dom.classlist.get(b);e&&Array.prototype.forEach.call(e,function(f){f==c?d=!0:f&&this.setStateFromClassName(a,f,c)},this);d||goog.dom.classlist.add(b,c);this.decorateChildren(a,this.getContentElement(b));return b}; goog.ui.ContainerRenderer.prototype.setStateFromClassName=function(a,b,c){b==c+"-disabled"?a.setEnabled(!1):b==c+"-horizontal"?a.setOrientation(goog.ui.Container.Orientation.HORIZONTAL):b==c+"-vertical"&&a.setOrientation(goog.ui.Container.Orientation.VERTICAL)}; goog.ui.ContainerRenderer.prototype.decorateChildren=function(a,b,c){if(b){c=c||b.firstChild;for(var d;c&&c.parentNode==b;){d=c.nextSibling;if(c.nodeType==goog.dom.NodeType.ELEMENT){var e=this.getDecoratorForChild(c);e&&(e.setElementInternal(c),a.isEnabled()||e.setEnabled(!1),a.addChild(e),e.decorate(c))}else c.nodeValue&&goog.string.trim(c.nodeValue)!=""||b.removeChild(c);c=d}}};goog.ui.ContainerRenderer.prototype.getDecoratorForChild=function(a){return goog.ui.registry.getDecorator(a)}; goog.ui.ContainerRenderer.prototype.initializeDom=function(a){a=a.getElement();goog.asserts.assert(a,"The container DOM element cannot be null.");goog.style.setUnselectable(a,!0,goog.userAgent.GECKO);var b=this.getAriaRole();b&&goog.a11y.aria.setRole(a,b)};goog.ui.ContainerRenderer.prototype.getKeyEventTarget=function(a){return a.getElement()};goog.ui.ContainerRenderer.prototype.getCssClass=function(){return goog.ui.ContainerRenderer.CSS_CLASS}; goog.ui.ContainerRenderer.prototype.getClassNames=function(a){var b=this.getCssClass(),c=a.orientation_==goog.ui.Container.Orientation.HORIZONTAL;c=[b,c?b+"-horizontal":b+"-vertical"];a.isEnabled()||c.push(b+"-disabled");return c};goog.ui.ContainerRenderer.prototype.getDefaultOrientation=function(){return goog.ui.Container.Orientation.VERTICAL};goog.ui.Container=function(a,b,c){goog.ui.Component.call(this,c);this.renderer_=b||goog.ui.ContainerRenderer.getInstance();this.orientation_=a||this.renderer_.getDefaultOrientation()};goog.inherits(goog.ui.Container,goog.ui.Component);goog.ui.Container.EventType={AFTER_SHOW:"aftershow",AFTER_HIDE:"afterhide"};goog.ui.Container.Orientation={HORIZONTAL:"horizontal",VERTICAL:"vertical"};goog.ui.Container.prototype.keyEventTarget_=null;goog.ui.Container.prototype.keyHandler_=null; goog.ui.Container.prototype.renderer_=null;goog.ui.Container.prototype.orientation_=null;goog.ui.Container.prototype.visible_=!0;goog.ui.Container.prototype.enabled_=!0;goog.ui.Container.prototype.focusable_=!0;goog.ui.Container.prototype.highlightedIndex_=-1;goog.ui.Container.prototype.openItem_=null;goog.ui.Container.prototype.mouseButtonPressed_=!1;goog.ui.Container.prototype.allowFocusableChildren_=!1;goog.ui.Container.prototype.openFollowsHighlight_=!0; goog.ui.Container.prototype.childElementIdMap_=null;goog.ui.Container.prototype.getKeyEventTarget=function(){return this.keyEventTarget_||this.renderer_.getKeyEventTarget(this)};goog.ui.Container.prototype.getKeyHandler=function(){return this.keyHandler_||(this.keyHandler_=new goog.events.KeyHandler(this.getKeyEventTarget()))};goog.ui.Container.prototype.createDom=function(){this.setElementInternal(this.renderer_.createDom(this))};goog.ui.Container.prototype.getContentElement=function(){return this.renderer_.getContentElement(this.getElement())}; goog.ui.Container.prototype.canDecorate=function(a){return this.renderer_.canDecorate(a)};goog.ui.Container.prototype.decorateInternal=function(a){this.setElementInternal(this.renderer_.decorate(this,a));a.style.display=="none"&&(this.visible_=!1)}; goog.ui.Container.prototype.enterDocument=function(){goog.ui.Container.superClass_.enterDocument.call(this);this.forEachChild(function(c){c.isInDocument()&&this.registerChildId_(c)},this);var a=this.getElement();this.renderer_.initializeDom(this);this.setVisible(this.visible_,!0);var b=goog.ui.ComponentUtil.getMouseEventType(this);this.getHandler().listen(this,goog.ui.Component.EventType.ENTER,this.handleEnterItem).listen(this,goog.ui.Component.EventType.HIGHLIGHT,this.handleHighlightItem).listen(this, goog.ui.Component.EventType.UNHIGHLIGHT,this.handleUnHighlightItem).listen(this,goog.ui.Component.EventType.OPEN,this.handleOpenItem).listen(this,goog.ui.Component.EventType.CLOSE,this.handleCloseItem).listen(a,b.MOUSEDOWN,this.handleMouseDown).listen(goog.dom.getOwnerDocument(a),[b.MOUSEUP,b.MOUSECANCEL],this.handleDocumentMouseUp).listen(a,[b.MOUSEDOWN,b.MOUSEUP,b.MOUSECANCEL,goog.events.EventType.MOUSEOVER,goog.events.EventType.MOUSEOUT,goog.events.EventType.CONTEXTMENU],this.handleChildMouseEvents); this.pointerEventsEnabled_&&this.getHandler().listen(a,goog.events.EventType.GOTPOINTERCAPTURE,this.preventPointerCapture_);this.isFocusable()&&this.enableFocusHandling_(!0)};goog.ui.Container.prototype.preventPointerCapture_=function(a){var b=a.target;b.releasePointerCapture&&b.releasePointerCapture(a.pointerId)}; goog.ui.Container.prototype.enableFocusHandling_=function(a){var b=this.getHandler(),c=this.getKeyEventTarget();a?b.listen(c,goog.events.EventType.FOCUS,this.handleFocus).listen(c,goog.events.EventType.BLUR,this.handleBlur).listen(this.getKeyHandler(),goog.events.KeyEvent.EventType.KEY,this.handleKeyEvent):b.unlisten(c,goog.events.EventType.FOCUS,this.handleFocus).unlisten(c,goog.events.EventType.BLUR,this.handleBlur).unlisten(this.getKeyHandler(),goog.events.KeyEvent.EventType.KEY,this.handleKeyEvent)}; goog.ui.Container.prototype.exitDocument=function(){this.setHighlightedIndex(-1);this.openItem_&&this.openItem_.setOpen(!1);this.mouseButtonPressed_=!1;goog.ui.Container.superClass_.exitDocument.call(this)};goog.ui.Container.prototype.disposeInternal=function(){goog.ui.Container.superClass_.disposeInternal.call(this);this.keyHandler_&&(this.keyHandler_.dispose(),this.keyHandler_=null);this.renderer_=this.openItem_=this.childElementIdMap_=this.keyEventTarget_=null}; goog.ui.Container.prototype.handleEnterItem=function(){return!0}; goog.ui.Container.prototype.handleHighlightItem=function(a){var b=this.indexOfChild(a.target);if(b>-1&&b!=this.highlightedIndex_){var c=this.getHighlighted();c&&c.setHighlighted(!1);this.highlightedIndex_=b;c=this.getHighlighted();this.mouseButtonPressed_&&c.setActive(!0);this.openFollowsHighlight_&&this.openItem_&&c!=this.openItem_&&(c.isSupportedState(goog.ui.Component.State.OPENED)?c.setOpen(!0):this.openItem_.setOpen(!1))}b=this.getElement();goog.asserts.assert(b,"The DOM element for the container cannot be null."); a.target.getElement()!=null&&goog.a11y.aria.setState(b,goog.a11y.aria.State.ACTIVEDESCENDANT,a.target.getElement().id)};goog.ui.Container.prototype.handleUnHighlightItem=function(a){a.target==this.getHighlighted()&&(this.highlightedIndex_=-1);a=this.getElement();goog.asserts.assert(a,"The DOM element for the container cannot be null.");goog.a11y.aria.removeState(a,goog.a11y.aria.State.ACTIVEDESCENDANT)}; goog.ui.Container.prototype.handleOpenItem=function(a){(a=a.target)&&a!=this.openItem_&&a.getParent()==this&&(this.openItem_&&this.openItem_.setOpen(!1),this.openItem_=a)};goog.ui.Container.prototype.handleCloseItem=function(a){a.target==this.openItem_&&(this.openItem_=null);var b=this.getElement(),c=a.target.getElement();b&&a.target.isHighlighted()&&c&&goog.a11y.aria.setActiveDescendant(b,c)}; goog.ui.Container.prototype.handleMouseDown=function(a){this.enabled_&&this.setMouseButtonPressed(!0);var b=this.getKeyEventTarget();b&&goog.dom.isFocusableTabIndex(b)?b.focus():a.preventDefault()};goog.ui.Container.prototype.handleDocumentMouseUp=function(){this.setMouseButtonPressed(!1)}; goog.ui.Container.prototype.handleChildMouseEvents=function(a){var b=goog.ui.ComponentUtil.getMouseEventType(this),c=this.getOwnerControl(a.target);if(c)switch(a.type){case b.MOUSEDOWN:c.handleMouseDown(a);break;case b.MOUSEUP:case b.MOUSECANCEL:c.handleMouseUp(a);break;case goog.events.EventType.MOUSEOVER:c.handleMouseOver(a);break;case goog.events.EventType.MOUSEOUT:c.handleMouseOut(a);break;case goog.events.EventType.CONTEXTMENU:c.handleContextMenu(a)}}; goog.ui.Container.prototype.getOwnerControl=function(a){if(this.childElementIdMap_)for(var b=this.getElement();a&&a!==b;){var c=a.id;if(c in this.childElementIdMap_)return this.childElementIdMap_[c];a=a.parentNode}return null};goog.ui.Container.prototype.handleFocus=function(){};goog.ui.Container.prototype.handleBlur=function(){this.setHighlightedIndex(-1);this.setMouseButtonPressed(!1);this.openItem_&&this.openItem_.setOpen(!1)}; goog.ui.Container.prototype.handleKeyEvent=function(a){return this.isEnabled()&&this.isVisible()&&(this.getChildCount()!=0||this.keyEventTarget_)&&this.handleKeyEventInternal(a)?(a.preventDefault(),a.stopPropagation(),!0):!1}; goog.ui.Container.prototype.handleKeyEventInternal=function(a){var b=this.getHighlighted();if(b&&typeof b.handleKeyEvent=="function"&&b.handleKeyEvent(a)||this.openItem_&&this.openItem_!=b&&typeof this.openItem_.handleKeyEvent=="function"&&this.openItem_.handleKeyEvent(a))return!0;if(a.shiftKey||a.ctrlKey||a.metaKey||a.altKey)return!1;switch(a.keyCode){case goog.events.KeyCodes.ESC:if(this.isFocusable())this.getKeyEventTarget().blur();else return!1;break;case goog.events.KeyCodes.HOME:this.highlightFirst(); break;case goog.events.KeyCodes.END:this.highlightLast();break;case goog.events.KeyCodes.UP:if(this.orientation_==goog.ui.Container.Orientation.VERTICAL)this.highlightPrevious();else return!1;break;case goog.events.KeyCodes.LEFT:if(this.orientation_==goog.ui.Container.Orientation.HORIZONTAL)this.isRightToLeft()?this.highlightNext():this.highlightPrevious();else return!1;break;case goog.events.KeyCodes.DOWN:if(this.orientation_==goog.ui.Container.Orientation.VERTICAL)this.highlightNext();else return!1; break;case goog.events.KeyCodes.RIGHT:if(this.orientation_==goog.ui.Container.Orientation.HORIZONTAL)this.isRightToLeft()?this.highlightPrevious():this.highlightNext();else return!1;break;default:return!1}return!0};goog.ui.Container.prototype.registerChildId_=function(a){var b=a.getElement();b=b.id||(b.id=a.getId());this.childElementIdMap_||(this.childElementIdMap_={});this.childElementIdMap_[b]=a}; goog.ui.Container.prototype.addChild=function(a,b){goog.asserts.assertInstanceof(a,goog.ui.Control,"The child of a container must be a control");goog.ui.Container.superClass_.addChild.call(this,a,b)}; goog.ui.Container.prototype.addChildAt=function(a,b,c){goog.asserts.assertInstanceof(a,goog.ui.Control);a.setDispatchTransitionEvents(goog.ui.Component.State.HOVER,!0);a.setDispatchTransitionEvents(goog.ui.Component.State.OPENED,!0);!this.isFocusable()&&this.allowFocusableChildren_||a.setSupportedState(goog.ui.Component.State.FOCUSED,!1);a.setHandleMouseEvents(!1);var d=a.getParent()==this?this.indexOfChild(a):-1;goog.ui.Container.superClass_.addChildAt.call(this,a,b,c);a.isInDocument()&&this.isInDocument()&& this.registerChildId_(a);this.updateHighlightedIndex_(d,b)};goog.ui.Container.prototype.updateHighlightedIndex_=function(a,b){a==-1&&(a=this.getChildCount());a==this.highlightedIndex_?this.highlightedIndex_=Math.min(this.getChildCount()-1,b):a>this.highlightedIndex_&&b<=this.highlightedIndex_?this.highlightedIndex_++:a<this.highlightedIndex_&&b>this.highlightedIndex_&&this.highlightedIndex_--}; goog.ui.Container.prototype.removeChild=function(a,b){a=typeof a==="string"?this.getChild(a):a;goog.asserts.assertInstanceof(a,goog.ui.Control);if(a){var c=this.indexOfChild(a);c!=-1&&(c==this.highlightedIndex_?(a.setHighlighted(!1),this.highlightedIndex_=-1):c<this.highlightedIndex_&&this.highlightedIndex_--);(c=a.getElement())&&c.id&&this.childElementIdMap_&&module$contents$goog$object_remove(this.childElementIdMap_,c.id)}a=goog.ui.Container.superClass_.removeChild.call(this,a,b);a.setHandleMouseEvents(!0); return a};goog.ui.Container.prototype.setOrientation=function(a){if(this.getElement())throw Error(goog.ui.Component.Error.ALREADY_RENDERED);this.orientation_=a};goog.ui.Container.prototype.isVisible=function(){return this.visible_}; goog.ui.Container.prototype.setVisible=function(a,b){if(b||this.visible_!=a&&this.dispatchEvent(a?goog.ui.Component.EventType.SHOW:goog.ui.Component.EventType.HIDE)){this.visible_=a;var c=this.getElement();c&&(goog.style.setElementShown(c,a),this.isFocusable()&&this.renderer_.enableTabIndex(this.getKeyEventTarget(),this.enabled_&&this.visible_),b||this.dispatchEvent(this.visible_?goog.ui.Container.EventType.AFTER_SHOW:goog.ui.Container.EventType.AFTER_HIDE));return!0}return!1}; goog.ui.Container.prototype.isEnabled=function(){return this.enabled_}; goog.ui.Container.prototype.setEnabled=function(a){this.enabled_!=a&&this.dispatchEvent(a?goog.ui.Component.EventType.ENABLE:goog.ui.Component.EventType.DISABLE)&&(a?(this.enabled_=!0,this.forEachChild(function(b){b.wasDisabled?delete b.wasDisabled:b.setEnabled(!0)})):(this.forEachChild(function(b){b.isEnabled()?b.setEnabled(!1):b.wasDisabled=!0}),this.enabled_=!1,this.setMouseButtonPressed(!1)),this.isFocusable()&&this.renderer_.enableTabIndex(this.getKeyEventTarget(),a&&this.visible_))}; goog.ui.Container.prototype.isFocusable=function(){return this.focusable_};goog.ui.Container.prototype.setFocusable=function(a){a!=this.focusable_&&this.isInDocument()&&this.enableFocusHandling_(a);this.focusable_=a;this.enabled_&&this.visible_&&this.renderer_.enableTabIndex(this.getKeyEventTarget(),a)};goog.ui.Container.prototype.setHighlightedIndex=function(a){(a=this.getChildAt(a))?a.setHighlighted(!0):this.highlightedIndex_>-1&&this.getHighlighted().setHighlighted(!1)}; goog.ui.Container.prototype.setHighlighted=function(a){this.setHighlightedIndex(this.indexOfChild(a))};goog.ui.Container.prototype.getHighlighted=function(){return this.getChildAt(this.highlightedIndex_)};goog.ui.Container.prototype.highlightFirst=function(){this.highlightHelper(function(a,b){return(a+1)%b},this.getChildCount()-1)};goog.ui.Container.prototype.highlightLast=function(){this.highlightHelper(function(a,b){a--;return a<0?b-1:a},0)}; goog.ui.Container.prototype.highlightNext=function(){this.highlightHelper(function(a,b){return(a+1)%b},this.highlightedIndex_)};goog.ui.Container.prototype.highlightPrevious=function(){this.highlightHelper(function(a,b){a--;return a<0?b-1:a},this.highlightedIndex_)}; goog.ui.Container.prototype.highlightHelper=function(a,b){b=b<0?this.indexOfChild(this.openItem_):b;var c=this.getChildCount();b=a.call(this,b,c);for(var d=0;d<=c;){var e=this.getChildAt(b);if(e&&this.canHighlightItem(e))return this.setHighlightedIndexFromKeyEvent(b),!0;d++;b=a.call(this,b,c)}return!1};goog.ui.Container.prototype.canHighlightItem=function(a){return a.isVisible()&&a.isEnabled()&&a.isSupportedState(goog.ui.Component.State.HOVER)}; goog.ui.Container.prototype.setHighlightedIndexFromKeyEvent=function(a){this.setHighlightedIndex(a)};goog.ui.Container.prototype.setMouseButtonPressed=function(a){this.mouseButtonPressed_=a};var module$exports$ocean$mobilebooks$MobileGetBookMenu=function(a){goog.ui.Component.call(this);this.backgroundDiv_=a?a:null;var b=this.getDomHelper();a=b.getElement("gb-mobile-buy-panel");var c=b.getElement("gb-mobile-buy-button"),d=b.getElement("gb-mobile-buy-close-button");b=b.getElement("volume-left");a&&c&&d&&b&&(this.buyPanel_=new goog.ui.Container,this.buyPanel_.decorate(a),this.buyButton_=goog.asserts.assert(c),this.buyPanelCloseButton_=goog.asserts.assert(d),this.decorate(goog.asserts.assert(b)), this.buyPanel_.setVisible(!1))};$jscomp.inherits(module$exports$ocean$mobilebooks$MobileGetBookMenu,goog.ui.Component); module$exports$ocean$mobilebooks$MobileGetBookMenu.prototype.enterDocument=function(){var a=this;this.getHandler().listen(this.buyButton_,goog.events.EventType.CLICK,this.toggleBuyPanel_).listen(this.buyButton_,goog.events.EventType.KEYDOWN,function(b){b.keyCode!=goog.events.KeyCodes.SPACE&&b.keyCode!=goog.events.KeyCodes.ENTER||a.toggleBuyPanel_()}).listen(this.buyPanelCloseButton_,goog.events.EventType.CLICK,this.toggleBuyPanel_).listen(this.buyPanelCloseButton_,goog.events.EventType.KEYDOWN,function(b){b.keyCode!= goog.events.KeyCodes.SPACE&&b.keyCode!=goog.events.KeyCodes.ENTER||a.toggleBuyPanel_()})}; module$exports$ocean$mobilebooks$MobileGetBookMenu.prototype.toggleBuyPanel_=function(){this.buyPanel_.isVisible()?(this.buyPanel_.setVisible(!1),goog.dom.classlist.remove(this.buyPanel_.getContentElement(),"gb-mobile-buy-panel-visible"),this.backgroundDiv_&&(this.backgroundDiv_.style.overflowX="auto",this.backgroundDiv_.style.overflowY="scroll"),this.buyButton_.focus(),this.releaseFocusFromMenu_()):(this.buyPanel_.setVisible(!0),goog.dom.classlist.add(this.buyPanel_.getContentElement(),"gb-mobile-buy-panel-visible"), this.backgroundDiv_&&(this.backgroundDiv_.style.overflowX="hidden",this.backgroundDiv_.style.overflowY="hidden"),this.buyPanel_.getContentElement().focus(),this.trapFocusInMenu_())}; module$exports$ocean$mobilebooks$MobileGetBookMenu.prototype.trapFocusInMenu_=function(){var a=this.buyPanel_.getContentElement().querySelectorAll('[role="button"],[href]'),b=a[0],c=a[a.length-1];this.getHandler().listen(this.buyPanel_.getContentElement(),goog.events.EventType.KEYDOWN,function(e){e.keyCode==goog.events.KeyCodes.TAB&&(e.shiftKey?document.activeElement===b&&(e.preventDefault(),c.focus()):document.activeElement===c&&(e.preventDefault(),b.focus()))});a=document.querySelectorAll('[role="alert"],#volume-center,.aria-hide-on-menu-open'); a=(0,$jscomp.makeIterator)(a);for(var d=a.next();!d.done;d=a.next())d=d.value,goog.a11y.aria.setState(d,goog.a11y.aria.State.HIDDEN,!0)};module$exports$ocean$mobilebooks$MobileGetBookMenu.prototype.releaseFocusFromMenu_=function(){var a=document.querySelectorAll('[role="alert"],#volume-center,.aria-hide-on-menu-open');a=(0,$jscomp.makeIterator)(a);for(var b=a.next();!b.done;b=a.next())b=b.value,goog.a11y.aria.removeState(b,goog.a11y.aria.State.HIDDEN)};var uf={screenshots:{}},module$contents$uf$screenshots$ImageData_ImageData=function(a){this.contentType=a};uf.screenshots.ImageData=module$contents$uf$screenshots$ImageData_ImageData;var jspb$uservoice$common$flags$MutableAlohaFlags=function(a){module$contents$jspb_internal_public_for_gencode_GeneratedMessage.call(this,a)};$jscomp.inherits(jspb$uservoice$common$flags$MutableAlohaFlags,module$contents$jspb_internal_public_for_gencode_GeneratedMessage);jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableSsEngine=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,2)}; jspb$uservoice$common$flags$MutableAlohaFlags.prototype.setEnableSsEngine=function(a){return jspb_internal_adapters.setProto3BooleanField(this,2,a)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableAwr=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,3)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.setEnableHelpSuggestions=function(a){return jspb_internal_adapters.setProto3BooleanField(this,4,a)}; jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getAlohaAutoGaRollout=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,5)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.setAlohaAutoGaRollout=function(a){return jspb_internal_adapters.setProto3BooleanField(this,5,a)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableConfigurator=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,6)}; jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableMweb=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,7)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.setEnableMweb=function(a){return jspb_internal_adapters.setProto3BooleanField(this,7,a)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableCtlConsentCheckbox=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,8)}; jspb$uservoice$common$flags$MutableAlohaFlags.prototype.setEnableCtlConsentCheckbox=function(a){return jspb_internal_adapters.setProto3BooleanField(this,8,a)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableIframe=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,9)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.setEnableIframe=function(a){return jspb_internal_adapters.setProto3BooleanField(this,9,a)}; jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableScreenshotNudge=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,10)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.setEnableScreenshotNudge=function(a){return jspb_internal_adapters.setProto3BooleanField(this,10,a)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableWebStartupConfigEndpoint=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,11)}; jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableJunkNudge=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,12)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.setEnableJunkNudge=function(a){return jspb_internal_adapters.setProto3BooleanField(this,12,a)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableConfiguratorLocale=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,13)}; jspb$uservoice$common$flags$MutableAlohaFlags.prototype.setEnableConfiguratorLocale=function(a){return jspb_internal_adapters.setProto3BooleanField(this,13,a)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableTinyNoPointer=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,14)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.setEnableTinyNoPointer=function(a){return jspb_internal_adapters.setProto3BooleanField(this,14,a)}; jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableSupportSessionLogging=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,15)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.setEnableSupportSessionLogging=function(a){return jspb_internal_adapters.setProto3BooleanField(this,15,a)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableFileUploadForScreenshot=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,16)}; jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableDirectDeflectionForSingleCategory=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,17)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableImageSanitization=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,18)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableAlohaBinarySplit=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,19)}; jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableDbFeedbackIntents=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,20)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.setEnableDbFeedbackIntents=function(a){return jspb_internal_adapters.setProto3BooleanField(this,20,a)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableMarkMandatoryFieldsWithRequired=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,21)}; jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableFeedbackCategoryCustomUi=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,22)};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.getEnableRealtimeCtl=function(){return jspb_internal_adapters.getBooleanFieldWithDefault(this,23)};jspb$uservoice$common$flags$MutableAlohaFlags.deserialize=module$contents$jspb_internal_public_for_gencode_makeMutableDeserializeFunction(jspb$uservoice$common$flags$MutableAlohaFlags); jspb$uservoice$common$flags$MutableAlohaFlags.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasMutableInstance(jspb$uservoice$common$flags$MutableAlohaFlags);module$exports$jspb$internal_options.GENERATE_TYPE_NAME_PROPERTIES&&(jspb$uservoice$common$flags$MutableAlohaFlags.internalDoNotUse_debugOnlyProtoTypeName="uservoice.common.flags.AlohaFlags");var jspb$uservoice$common$flags$ImmutableAlohaFlags=function(){};jspb$uservoice$common$flags$ImmutableAlohaFlags.deserialize=module$contents$jspb_internal_public_for_gencode_makeImmutableDeserializeFunction(jspb$uservoice$common$flags$MutableAlohaFlags);jspb$uservoice$common$flags$ImmutableAlohaFlags.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasImmutableInstance(jspb$uservoice$common$flags$MutableAlohaFlags);var jspb$o$uservoice$common$flags$AlohaFlags={internal_toObject:function(a){if(a!=null)return module$contents$jspb_internal_public_for_gencode_assertMutable(a),{alohaLaunch:jspb_internal_adapters.getBooleanFieldWithDefault(a,1),enableSsEngine:jspb_internal_adapters.getBooleanFieldWithDefault(a,2),enableAwr:jspb_internal_adapters.getBooleanFieldWithDefault(a,3),enableHelpSuggestions:jspb_internal_adapters.getBooleanFieldWithDefault(a,4),alohaAutoGaRollout:jspb_internal_adapters.getBooleanFieldWithDefault(a, 5),enableConfigurator:jspb_internal_adapters.getBooleanFieldWithDefault(a,6),enableMweb:jspb_internal_adapters.getBooleanFieldWithDefault(a,7),enableCtlConsentCheckbox:jspb_internal_adapters.getBooleanFieldWithDefault(a,8),enableIframe:jspb_internal_adapters.getBooleanFieldWithDefault(a,9),enableScreenshotNudge:jspb_internal_adapters.getBooleanFieldWithDefault(a,10),enableWebStartupConfigEndpoint:jspb_internal_adapters.getBooleanFieldWithDefault(a,11),enableJunkNudge:jspb_internal_adapters.getBooleanFieldWithDefault(a, 12),enableConfiguratorLocale:jspb_internal_adapters.getBooleanFieldWithDefault(a,13),enableTinyNoPointer:jspb_internal_adapters.getBooleanFieldWithDefault(a,14),enableSupportSessionLogging:jspb_internal_adapters.getBooleanFieldWithDefault(a,15),enableFileUploadForScreenshot:jspb_internal_adapters.getBooleanFieldWithDefault(a,16),enableDirectDeflectionForSingleCategory:jspb_internal_adapters.getBooleanFieldWithDefault(a,17),enableImageSanitization:jspb_internal_adapters.getBooleanFieldWithDefault(a, 18),enableAlohaBinarySplit:jspb_internal_adapters.getBooleanFieldWithDefault(a,19),enableDbFeedbackIntents:jspb_internal_adapters.getBooleanFieldWithDefault(a,20),enableMarkMandatoryFieldsWithRequired:jspb_internal_adapters.getBooleanFieldWithDefault(a,21),enableFeedbackCategoryCustomUi:jspb_internal_adapters.getBooleanFieldWithDefault(a,22),enableRealtimeCtl:jspb_internal_adapters.getBooleanFieldWithDefault(a,23)}}};jspb$uservoice$common$flags$MutableAlohaFlags.prototype.toObject=function(){return jspb$o$uservoice$common$flags$AlohaFlags.internal_toObject(this)}; module$contents$jspb_internal_public_for_gencode_GENERATE_FROM_OBJECT&&(jspb$o$uservoice$common$flags$AlohaFlags.fromObject=function(a){var b=new jspb$uservoice$common$flags$MutableAlohaFlags;jspb_internal_adapters.setProto3BooleanField(b,1,a.alohaLaunch);jspb_internal_adapters.setProto3BooleanField(b,2,a.enableSsEngine);jspb_internal_adapters.setProto3BooleanField(b,3,a.enableAwr);jspb_internal_adapters.setProto3BooleanField(b,4,a.enableHelpSuggestions);jspb_internal_adapters.setProto3BooleanField(b, 5,a.alohaAutoGaRollout);jspb_internal_adapters.setProto3BooleanField(b,6,a.enableConfigurator);jspb_internal_adapters.setProto3BooleanField(b,7,a.enableMweb);jspb_internal_adapters.setProto3BooleanField(b,8,a.enableCtlConsentCheckbox);jspb_internal_adapters.setProto3BooleanField(b,9,a.enableIframe);jspb_internal_adapters.setProto3BooleanField(b,10,a.enableScreenshotNudge);jspb_internal_adapters.setProto3BooleanField(b,11,a.enableWebStartupConfigEndpoint);jspb_internal_adapters.setProto3BooleanField(b, 12,a.enableJunkNudge);jspb_internal_adapters.setProto3BooleanField(b,13,a.enableConfiguratorLocale);jspb_internal_adapters.setProto3BooleanField(b,14,a.enableTinyNoPointer);jspb_internal_adapters.setProto3BooleanField(b,15,a.enableSupportSessionLogging);jspb_internal_adapters.setProto3BooleanField(b,16,a.enableFileUploadForScreenshot);jspb_internal_adapters.setProto3BooleanField(b,17,a.enableDirectDeflectionForSingleCategory);jspb_internal_adapters.setProto3BooleanField(b,18,a.enableImageSanitization); jspb_internal_adapters.setProto3BooleanField(b,19,a.enableAlohaBinarySplit);jspb_internal_adapters.setProto3BooleanField(b,20,a.enableDbFeedbackIntents);jspb_internal_adapters.setProto3BooleanField(b,21,a.enableMarkMandatoryFieldsWithRequired);jspb_internal_adapters.setProto3BooleanField(b,22,a.enableFeedbackCategoryCustomUi);jspb_internal_adapters.setProto3BooleanField(b,23,a.enableRealtimeCtl);return b});proto.uservoice={};proto.uservoice.common={};proto.uservoice.common.flags={};proto.uservoice.common.flags.ReadonlyAlohaFlags={};proto.uservoice.common.flags.AlohaFlags=jspb$uservoice$common$flags$MutableAlohaFlags;jspb$uservoice$common$flags$MutableAlohaFlags.fromObject=jspb$o$uservoice$common$flags$AlohaFlags.fromObject;proto.uservoice.common.flags.MutableAlohaFlags=jspb$uservoice$common$flags$MutableAlohaFlags;proto.uservoice.common.flags.ImmutableAlohaFlags=jspb$uservoice$common$flags$ImmutableAlohaFlags;var jspb$uservoice$common$flags$MutableAlohaFormPropertiesResponse=function(a){module$contents$jspb_internal_public_for_gencode_GeneratedMessage.call(this,a)};$jscomp.inherits(jspb$uservoice$common$flags$MutableAlohaFormPropertiesResponse,module$contents$jspb_internal_public_for_gencode_GeneratedMessage); jspb$uservoice$common$flags$MutableAlohaFormPropertiesResponse.prototype.getAlohaFlags=function(){return jspb_internal_adapters.getWrapperFieldOrUndefined(this,jspb$uservoice$common$flags$MutableAlohaFlags,1)};jspb$uservoice$common$flags$MutableAlohaFormPropertiesResponse.prototype.setAlohaFlags=function(a){return jspb_internal_adapters.setWrapperField(this,jspb$uservoice$common$flags$MutableAlohaFlags,1,a)};jspb$uservoice$common$flags$MutableAlohaFormPropertiesResponse.deserialize=module$contents$jspb_internal_public_for_gencode_makeMutableDeserializeFunction(jspb$uservoice$common$flags$MutableAlohaFormPropertiesResponse); jspb$uservoice$common$flags$MutableAlohaFormPropertiesResponse.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasMutableInstance(jspb$uservoice$common$flags$MutableAlohaFormPropertiesResponse);module$exports$jspb$internal_options.GENERATE_TYPE_NAME_PROPERTIES&&(jspb$uservoice$common$flags$MutableAlohaFormPropertiesResponse.internalDoNotUse_debugOnlyProtoTypeName="uservoice.common.flags.AlohaFormPropertiesResponse");var jspb$uservoice$common$flags$ImmutableAlohaFormPropertiesResponse=function(){};jspb$uservoice$common$flags$ImmutableAlohaFormPropertiesResponse.deserialize=module$contents$jspb_internal_public_for_gencode_makeImmutableDeserializeFunction(jspb$uservoice$common$flags$MutableAlohaFormPropertiesResponse);jspb$uservoice$common$flags$ImmutableAlohaFormPropertiesResponse.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasImmutableInstance(jspb$uservoice$common$flags$MutableAlohaFormPropertiesResponse);var jspb$o$uservoice$common$flags$AlohaFormPropertiesResponse={internal_toObject:function(a){if(a!=null)return module$contents$jspb_internal_public_for_gencode_assertMutable(a),{alohaFlags:jspb$o$uservoice$common$flags$AlohaFlags.internal_toObject(a.getAlohaFlags())}}};jspb$uservoice$common$flags$MutableAlohaFormPropertiesResponse.prototype.toObject=function(){return jspb$o$uservoice$common$flags$AlohaFormPropertiesResponse.internal_toObject(this)}; module$contents$jspb_internal_public_for_gencode_GENERATE_FROM_OBJECT&&(jspb$o$uservoice$common$flags$AlohaFormPropertiesResponse.fromObject=function(a){var b=new jspb$uservoice$common$flags$MutableAlohaFormPropertiesResponse,c=jspb_internal_adapters,d=c.setWrapperField;a=a.alohaFlags;a=a==null?a:(0,jspb$o$uservoice$common$flags$AlohaFlags.fromObject)(a);d.call(c,b,jspb$uservoice$common$flags$MutableAlohaFlags,1,a);return b});proto.uservoice.common.flags.ReadonlyAlohaFormPropertiesResponse={};proto.uservoice.common.flags.AlohaFormPropertiesResponse=jspb$uservoice$common$flags$MutableAlohaFormPropertiesResponse;jspb$uservoice$common$flags$MutableAlohaFormPropertiesResponse.fromObject=jspb$o$uservoice$common$flags$AlohaFormPropertiesResponse.fromObject;proto.uservoice.common.flags.MutableAlohaFormPropertiesResponse=jspb$uservoice$common$flags$MutableAlohaFormPropertiesResponse; proto.uservoice.common.flags.ImmutableAlohaFormPropertiesResponse=jspb$uservoice$common$flags$ImmutableAlohaFormPropertiesResponse;var module$exports$google3$uservoice$feedback$client$web$shared$constants={},module$contents$google3$uservoice$feedback$client$web$shared$constants_enumFeedbackIntent=jspb$e.engage$enums$uservoice$feedback$UserVoiceFeedbackConfigEnums$FeedbackIntent;module$exports$google3$uservoice$feedback$client$web$shared$constants.DEFAULT_MIN_CHAR_COUNT_FOR_DESCRIPTION=1;module$exports$google3$uservoice$feedback$client$web$shared$constants.DEFAULT_FORM_LANGUAGE="en"; module$exports$google3$uservoice$feedback$client$web$shared$constants.DEFAULT_FORM_CONTENT={locale:module$exports$google3$uservoice$feedback$client$web$shared$constants.DEFAULT_FORM_LANGUAGE};module$exports$google3$uservoice$feedback$client$web$shared$constants.FEEDBACK_INTENT_ISSUE="FEEDBACK_INTENT_ISSUE";module$exports$google3$uservoice$feedback$client$web$shared$constants.FEEDBACK_INTENT_SUGGESTION="FEEDBACK_INTENT_SUGGESTION"; module$exports$google3$uservoice$feedback$client$web$shared$constants.FEEDBACK_INTENT_GENERIC="FEEDBACK_INTENT_GENERIC";module$exports$google3$uservoice$feedback$client$web$shared$constants.FEEDBACK_INTENT_UNKNOWN="FEEDBACK_INTENT_UNKNOWN";module$exports$google3$uservoice$feedback$client$web$shared$constants.TOOLTIP_SEEN_STORAGE_KEY="feedback-fre-tooltip-seen-storage-key";module$exports$google3$uservoice$feedback$client$web$shared$constants.MULTISTEP_TOOLTIP_SEEN_STORAGE_KEY="feedback-fre-multistep-seen-storage-key"; module$exports$google3$uservoice$feedback$client$web$shared$constants.MULTISTEP_TOOLTIP_SEEN_MAX_COUNT=3;module$exports$google3$uservoice$feedback$client$web$shared$constants.ALOHA_FEEDBACK_ENABLE_SSENGINE="aloha_feedback_enable_ssengine";module$exports$google3$uservoice$feedback$client$web$shared$constants.ALOHA_FEEDBACK_ENABLE_AWR="aloha_feedback_enable_awr";module$exports$google3$uservoice$feedback$client$web$shared$constants.ALOHA_FEEDBACK_ENABLE_HELP_SUGGESTIONS="aloha_feedback_enable_help_suggestions"; function module$contents$google3$uservoice$feedback$client$web$shared$constants_defaultAlohaFormProperties(){return(new jspb$uservoice$common$flags$MutableAlohaFormPropertiesResponse).setAlohaFlags((new jspb$uservoice$common$flags$MutableAlohaFlags).setAlohaAutoGaRollout(!0).setEnableSsEngine(!0).setEnableHelpSuggestions(!1).setEnableCtlConsentCheckbox(!0).setEnableIframe(!0).setEnableMweb(!0).setEnableScreenshotNudge(!0).setEnableJunkNudge(!0).setEnableConfiguratorLocale(!1).setEnableTinyNoPointer(!0).setEnableSupportSessionLogging(!0).setEnableDbFeedbackIntents(!1))} module$exports$google3$uservoice$feedback$client$web$shared$constants.defaultAlohaFormProperties=module$contents$google3$uservoice$feedback$client$web$shared$constants_defaultAlohaFormProperties;module$exports$google3$uservoice$feedback$client$web$shared$constants.GOOGLER_EMAIL_SUFFIX="@google.com";module$exports$google3$uservoice$feedback$client$web$shared$constants.MY_FEEDBACK_GO_LINK="go/myfeedback";module$exports$google3$uservoice$feedback$client$web$shared$constants.Z_INDEX_FOR_OVERLAYS=1E7; module$exports$google3$uservoice$feedback$client$web$shared$constants.FEEDBACK_MANAGER_OPEN_CLOSE_ANIMATION=500;module$exports$google3$uservoice$feedback$client$web$shared$constants.DEFAULT_LOCALE="en";module$exports$google3$uservoice$feedback$client$web$shared$constants.PRODUCT_IDS_BYPASS_EXP_CHECK=new Set(["17","1026354"]);module$exports$google3$uservoice$feedback$client$web$shared$constants.IFRAME_INTERNAL_WRAPPER="iframe-internal-wrapper"; module$exports$google3$uservoice$feedback$client$web$shared$constants.FeedbackOneplatformRealms={PROD:"prod",STAGING_QUAL:"qual",AUTOPUSH:"autopush"}; module$exports$google3$uservoice$feedback$client$web$shared$constants.FEEDBACK_ONEPLATFORM_URLS=new Map([[module$exports$google3$uservoice$feedback$client$web$shared$constants.FeedbackOneplatformRealms.PROD,"https://feedback-pa.clients6.google.com"],[module$exports$google3$uservoice$feedback$client$web$shared$constants.FeedbackOneplatformRealms.STAGING_QUAL,"https://stagingqual-feedback-pa-googleapis.sandbox.google.com"],[module$exports$google3$uservoice$feedback$client$web$shared$constants.FeedbackOneplatformRealms.AUTOPUSH, "https://autopush-feedback-pa-googleapis.sandbox.google.com"]]);module$exports$google3$uservoice$feedback$client$web$shared$constants.FEEDBACK_ONEPLATFORM_API_KEY="AIzaSyCZpWLY6vArGGMkRnpLtdPfz3yR-5xoKRs";function module$contents$google3$uservoice$feedback$client$web$shared$constants_isTestDataRealm(a){return module$contents$google3$uservoice$feedback$client$web$shared$constants_TEST_DATA_SUBMISSION_URLS.some(function(b){return b.test(a)})} module$exports$google3$uservoice$feedback$client$web$shared$constants.isTestDataRealm=module$contents$google3$uservoice$feedback$client$web$shared$constants_isTestDataRealm;var module$contents$google3$uservoice$feedback$client$web$shared$constants_TEST_DATA_SUBMISSION_URLS=[/https:\/\/sandbox\.google\.com\/tools\/feedback/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/inapp/,/https:\/\/feedback-frontend-qual[a-z0-9.]*\.google\.com\/tools\/feedback/,/https:\/\/.*\.googleusercontent\.com\/inapp/]; module$exports$google3$uservoice$feedback$client$web$shared$constants.ALOHA_FORM_WIDTH_PX=412;var module$contents$google3$uservoice$feedback$client$web$shared$constants_DEFAULT_ISSUE_CATEGORIES=[{key:"",msg:"",msgInEnglish:""}]; module$exports$google3$uservoice$feedback$client$web$shared$constants.DEFAULT_FEEDBACK_FORM_MODEL_PARAMS={announcement:"",feedbackIssueCategories:module$contents$google3$uservoice$feedback$client$web$shared$constants_DEFAULT_ISSUE_CATEGORIES,selectedFeedbackIssueCategoryIndex:-1,selectedFeedbackCategoryKey:"",selectedFeedbackCategoryMessage:"",feedbackUrgencyLevel:"",description:"",imageData:new module$contents$uf$screenshots$ImageData_ImageData("image","base64"),feedbackUserCtlConsent:!1,feedbackJunkNudgeShown:!1, helpArticles:[],title:"",helpArticlesHtml:[],realTimeCtlDetails:[],csatImpression:[],additionalDataConsent:!1};module$exports$google3$uservoice$feedback$client$web$shared$constants.DEFLECTION_INTENTS=[module$contents$google3$uservoice$feedback$client$web$shared$constants_enumFeedbackIntent.FEEDBACK_INTENT_PII,module$contents$google3$uservoice$feedback$client$web$shared$constants_enumFeedbackIntent.FEEDBACK_INTENT_LEGAL]; module$exports$google3$uservoice$feedback$client$web$shared$constants.EVENT_TO_DISPATCH_WHEN_EXPANSION_PANEL_EXPANDS_OR_COLLAPSED="expansionpanelexpandsorcollapsed";module$exports$google3$uservoice$feedback$client$web$shared$constants.CUSTOMER_SUPPORT_DMA_PRODUCT_ID=72366329;module$exports$google3$uservoice$feedback$client$web$shared$constants.StorageAccessRequestStatus={UNAVAILABLE:0,AUTO_GRANTED:1,ACCESS_ALREADY_GRANTED:2,SHOULD_REQUEST:3,API_ERROR:4}; module$exports$google3$uservoice$feedback$client$web$shared$constants.StorageAccessRequestStatus[module$exports$google3$uservoice$feedback$client$web$shared$constants.StorageAccessRequestStatus.UNAVAILABLE]="UNAVAILABLE";module$exports$google3$uservoice$feedback$client$web$shared$constants.StorageAccessRequestStatus[module$exports$google3$uservoice$feedback$client$web$shared$constants.StorageAccessRequestStatus.AUTO_GRANTED]="AUTO_GRANTED"; module$exports$google3$uservoice$feedback$client$web$shared$constants.StorageAccessRequestStatus[module$exports$google3$uservoice$feedback$client$web$shared$constants.StorageAccessRequestStatus.ACCESS_ALREADY_GRANTED]="ACCESS_ALREADY_GRANTED";module$exports$google3$uservoice$feedback$client$web$shared$constants.StorageAccessRequestStatus[module$exports$google3$uservoice$feedback$client$web$shared$constants.StorageAccessRequestStatus.SHOULD_REQUEST]="SHOULD_REQUEST"; module$exports$google3$uservoice$feedback$client$web$shared$constants.StorageAccessRequestStatus[module$exports$google3$uservoice$feedback$client$web$shared$constants.StorageAccessRequestStatus.API_ERROR]="API_ERROR";module$exports$google3$uservoice$feedback$client$web$shared$constants.PostMessageId={UNKNOWN:0,MAIN_RSA_CALLBACK:1}; module$exports$google3$uservoice$feedback$client$web$shared$constants.PostMessageId[module$exports$google3$uservoice$feedback$client$web$shared$constants.PostMessageId.UNKNOWN]="UNKNOWN";module$exports$google3$uservoice$feedback$client$web$shared$constants.PostMessageId[module$exports$google3$uservoice$feedback$client$web$shared$constants.PostMessageId.MAIN_RSA_CALLBACK]="MAIN_RSA_CALLBACK";var module$contents$google3$uservoice$feedback$client$web$languages$languages_SUPPORTED_LANGUAGES="af am ar-EG ar-JO ar-MA ar-SA ar-XB ar az be bg bn bs ca cs cy da de-AT de-CH de el en en-GB en-AU en-CA en-IE en-IN en-NZ en-SG en-XA en-XC en-ZA es es-419 es-AR es-BO es-CL es-CO es-CR es-DO es-EC es-GT es-HN es-MX es-NI es-PA es-PE es-PR es-PY es-SV es-US es-UY es-VE et eu fa fi fil fr-CA fr-CH fr gl gsw gu he hi hr hu hy id in is it iw ja ka kk km kn ko ky ln lo lt lv mk ml mn mo mr ms my nb ne nl no pa pl pt pt-BR pt-PT ro ru si sk sl sq sr-Latn sr sv sw ta te th tl tr uk ur uz vi zh zh-CN zh-HK zh-TW zu".split(" ");var $jscomp$templatelit$20303395$4=$jscomp.createTemplateTagFirstArg(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),$jscomp$templatelit$20303395$5=$jscomp.createTemplateTagFirstArg(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]); function module$contents$google3$uservoice$feedback$client$web$loader$loader_util_getFeedbackJsUrl(a,b){var c;var d;var e=(d=a.formContent)==null?void 0:d.locale;var f;d=(f=e)==null?void 0:f.split("-")[0];e=e&&module$contents$google3$uservoice$feedback$client$web$languages$languages_SUPPORTED_LANGUAGES.includes(e)?e:d&&module$contents$google3$uservoice$feedback$client$web$languages$languages_SUPPORTED_LANGUAGES.includes(d)?d:void 0;e=(c=e)!=null?c:module$exports$google3$uservoice$feedback$client$web$shared$constants.DEFAULT_FORM_LANGUAGE; c=e.replaceAll("-","_").toLowerCase();var g;a=((g=a.initializationData)==null?0:g.useNightlyRelease)?"nightly":"live";var h,k,l;return((h=b)==null?0:(l=(k=h).getEnableAlohaBinarySplit)==null?0:l.call(k))?module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_trustedResourceUrl($jscomp$templatelit$20303395$4,a):module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_trustedResourceUrl($jscomp$templatelit$20303395$5,a,c)};var module$contents$google3$uservoice$feedback$client$web$loader$loader_loadFeedbackScriptPromise,module$contents$google3$uservoice$feedback$client$web$loader$loader_loadFeedbackScriptPromisUsingMainLightBinary; function module$contents$google3$uservoice$feedback$client$web$loader$loader_getFeedbackClientInitializerAsync(a,b,c,d){if(module$contents$google3$uservoice$feedback$client$web$loader$loader_loadFeedbackScriptPromise)return module$contents$google3$uservoice$feedback$client$web$loader$loader_loadFeedbackScriptPromise;var e=module$contents$google3$uservoice$feedback$client$web$loader$loader_util_getFeedbackJsUrl(a,d);return module$contents$google3$uservoice$feedback$client$web$loader$loader_loadFeedbackScriptPromise= b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(f,g){var h=goog.dom.createElement(goog.dom.TagName.SCRIPT);(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setScriptSrc)(h,e);h.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):g("feedbackV2GlobalObject not found on window.")};h.onerror=function(){g("Feedback binary script tag failed to load: "+e.toString())};c.body.appendChild(h)})} function module$contents$google3$uservoice$feedback$client$web$loader$loader_getFeedbackClientInitializerAsyncUsingMainLightBinary(a,b,c,d){if(module$contents$google3$uservoice$feedback$client$web$loader$loader_loadFeedbackScriptPromisUsingMainLightBinary)return module$contents$google3$uservoice$feedback$client$web$loader$loader_loadFeedbackScriptPromisUsingMainLightBinary;var e=module$contents$google3$uservoice$feedback$client$web$loader$loader_util_getFeedbackJsUrl(a,d);return module$contents$google3$uservoice$feedback$client$web$loader$loader_loadFeedbackScriptPromisUsingMainLightBinary= b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(f,g){var h=goog.dom.createElement(goog.dom.TagName.SCRIPT);(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setScriptSrc)(h,e);h.onload=function(){b.feedbackV2GlobalObject?f(b.feedbackV2GlobalObject):g("feedbackV2GlobalObject not found on window.")};h.onerror=function(){g("Feedback binary script tag failed to load: "+e.toString())};c.body.appendChild(h)})} function module$contents$google3$uservoice$feedback$client$web$loader$loader_load(a,b,c,d,e){e=e===void 0?!0:e;var f,g,h,k,l;return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(m){switch(m.nextAddress){case 1:return f=Date.now(),m.yield(module$contents$google3$uservoice$feedback$client$web$loader$loader_getFeedbackClientInitializerAsync(a,c,d,b),2);case 2:g=m.yieldResult;if(!(e||((k=a.initializationData)==null?0:k.useNightlyRelease)||((l=a.initializationData)==null?0:l.isLocalServer))){h= g.initializeFeedbackClient(a,f,b);m.jumpTo(3);break}return m.yield(g.initializeFeedbackClientAsync(a,f,b),4);case 4:h=m.yieldResult;case 3:return h.initiateAloha(),m.return(h)}})} function module$contents$google3$uservoice$feedback$client$web$loader$loader_loadMainLightBinary(a,b,c,d){var e,f,g;return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(h){if(h.nextAddress==1)return e=Date.now(),h.yield(module$contents$google3$uservoice$feedback$client$web$loader$loader_getFeedbackClientInitializerAsyncUsingMainLightBinary(a,c,d.document,b),2);if(h.nextAddress!=3)return f=h.yieldResult,h.yield(f.initializeFeedbackClientAsync(a,e,b,d),3);g=h.yieldResult;g.initiateAloha(); return h.return(g)})} function module$contents$google3$uservoice$feedback$client$web$loader$loader_loadAndInitializeFeedbackClient(a,b,c,d){d=d===void 0?!0:d;var e,f,g,h,k,l,m,n,p,q;return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(r){e=c||goog.global;if((f=b)==null?0:(h=(g=f).getEnableAlohaBinarySplit)==null?0:h.call(g)){k=e;if(k.isFormOpened)throw l=Error("Form is either loading or already opened"),l.name="DuplicateFormError",l;k.isFormOpened=!0;a.callbacks=a.callbacks||{};m=a.callbacks.onClose||function(){}; a.callbacks.onClose=function(t){k.isFormOpened=!1;m(t)};try{return r.return(module$contents$google3$uservoice$feedback$client$web$loader$loader_loadMainLightBinary(a,b,k,e,d))}catch(t){throw k.isFormOpened=!1,t;}}else{n=e;if(n.isFormOpened)throw p=Error("Form is either loading or already opened"),p.name="DuplicateFormError",p;n.isFormOpened=!0;a.callbacks=a.callbacks||{};q=a.callbacks.onClose||function(){};a.callbacks.onClose=function(t){n.isFormOpened=!1;q(t)};try{return r.return(module$contents$google3$uservoice$feedback$client$web$loader$loader_load(a, b,n,e.document,d))}catch(t){throw n.isFormOpened=!1,t;}}r.jumpToEnd()})};function module$contents$google3$uservoice$feedback$client$web$service$properties_fetch_service_getAlohaFormProperties(a,b){return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(c){return c.return(new Promise(function(d){var e,f=module$contents$google3$uservoice$feedback$client$web$service$properties_fetch_service_sanitizeServerUri((e=b)!=null?e:"")+"/aloha_form_properties?productId="+a;goog.net.XhrIo.send(f,function(g){g=g.target;var h=null;try{h=module$exports$jspb.Message.deserializeWithCtor(jspb$uservoice$common$flags$MutableAlohaFormPropertiesResponse, JSON.stringify(g.getResponseJson(")]}'\n")))}catch(k){h=module$contents$google3$uservoice$feedback$client$web$shared$constants_defaultAlohaFormProperties()}d(h)},"GET","",{},2E3,!0)}))})}function module$contents$google3$uservoice$feedback$client$web$service$properties_fetch_service_sanitizeServerUri(a){return module$contents$google3$uservoice$feedback$client$web$shared$constants_isTestDataRealm(a)?a:"https://www.google.com/tools/feedback"};var userfeedback={api:{}};userfeedback.api.LOCALE="locale";userfeedback.api.SERVER_ENVIRONMENT="serverEnvironment";userfeedback.api.SERVER_URI="serverUri";userfeedback.api.FEEDBACK_SERVER_URI="feedbackServerUri";userfeedback.api.GAIA_URI="gaiaUri";userfeedback.api.PRODUCT_ID="productId";userfeedback.api.AUTH_USER="authuser";userfeedback.api.PAGE_ID="pageId";userfeedback.api.BUCKET="bucket";userfeedback.api.FLOW="flow";userfeedback.api.SVG="svg";userfeedback.api.CUSTOM_Z_INDEX="customZIndex"; userfeedback.api.HTTPS="https";userfeedback.api.REPORT="report";userfeedback.api.CALLBACK="callback";userfeedback.api.PREP_FRAMED_CONTENT_FUNCTION="prepFramedContentFunction";userfeedback.api.ON_LOAD_CALLBACK="onLoadCallback";userfeedback.api.SERVER_URI_DEFAULT="//www.google.com/tools/feedback";userfeedback.api.ABUSE_LINK="abuseLink";userfeedback.api.PRODUCT_VERSION="productVersion";userfeedback.api.ENABLE_ANONYMOUS_FEEDBACK="enableAnonymousFeedback"; userfeedback.api.ALLOW_NON_LOGGED_IN_FEEDBACK="allowNonLoggedInFeedback";userfeedback.api.TINY_NO_POINTER="tinyNoPointer";userfeedback.api.ADDITIONAL_DATA_CONSENT="additionalDataConsent";userfeedback.api.SUPPORTED_LOCALES_="af am ar az be bg bn bs ca cs cy da de el en en-AU en-GB es es-419 et eu fa fi fil fr fr-CA gl gu hi hr hu hy id is it iw ja ka kk km ko ky lo lt lv kn mk ml mn mr ms my ne nl no pa pl pt-BR pt-PT ro ru si sk sl sq sr sv sw ta te th tr uk ur uz vi zh zh-CN zh-HK zh-TW zu".split(" "); userfeedback.api.ANCHOR="anchor";userfeedback.api.HELP_CENTER_PATH="helpCenterPath";userfeedback.api.HELP_CENTER_DOMAIN="helpCenterDomain";userfeedback.api.ENABLE_SEND_FEEDBACK="enableSendFeedback";userfeedback.api.SHOW_CONTACT_LINK="showContactLink";userfeedback.api.HELP_CENTER_CONTEXT="helpCenterContext";userfeedback.api.DEFAULT_HELP_ARTICLE_ID="defaultHelpArticleId";userfeedback.api.SHOW_HELP_CENTER_LINK="showHelpCenterLink";userfeedback.api.MAX_PSD_JSON=1200;userfeedback.api.MAX_PAGE_HREF=1200; userfeedback.api.DISABLE_SUBMIT="disableSubmit";userfeedback.api.DISABLE_SCREENSHOTTING="disableScreenshotting";userfeedback.api.CONFIGURATOR_ID="configuratorId";userfeedback.api.TRIGGER_ID="triggerId";userfeedback.api.REPORT_DATA_CALLBACK="reportDataCallback";userfeedback.api.COLOR_SCHEME="colorScheme";userfeedback.api.reportDataKey={};userfeedback.api.reportDataKey.ANNOTATIONS="annotations";userfeedback.api.reportDataKey.PAGE_INFORMATION="pageInformation"; userfeedback.api.reportDataKey.BROWSER_INFORMATION="browserInformation";userfeedback.api.reportDataKey.PAGE_STRUCTURE="pageStructure";userfeedback.api.reportDataKey.PRODUCT_INFORMATION="productInformation"; var $jscomp$scope$589139393$3$startFeedbackClassic=function(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||goog.global,e=d.document,f=a.nonce||module$exports$google3$third_party$javascript$safevalues$dom$index.getScriptNonce(d);f&&!a.nonce&&(a.nonce=f);if(a[userfeedback.api.FLOW]=="help"){var g=userfeedback.api.HELP_CENTER_CONTEXT,h=goog.getObjectByName("document.location.href",d);!a[g]&&h&&(a[g]=h.substring(0,userfeedback.api.MAX_PAGE_HREF));g=!0;b&&JSON&&JSON.stringify&&(h=JSON.stringify(b), (g=h.length<=userfeedback.api.MAX_PSD_JSON)&&(a.psdJson=h));g||(b={invalidPsd:!0})}b=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a[userfeedback.api.FEEDBACK_SERVER_URI]||userfeedback.api.SERVER_URI_DEFAULT;if(g=d.GOOGLE_FEEDBACK_START)g.apply(d,b);else{d=c+"/load.js?";for(var k in a)b=a[k],b==null||goog.isObject(b)||(d+=encodeURIComponent(k)+"="+encodeURIComponent(b)+"&");a=goog.dom.getDomHelper(e).createElement(goog.dom.TagName.SCRIPT);f&&a.setAttribute("nonce",f);module$exports$google3$third_party$javascript$safevalues$dom$index.setScriptSrc(a, module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_resourceUrlSafeByReview(d,{justification:"serverUri is the endpoint of our own Help API"}));e.body.appendChild(a)}},$jscomp$scope$589139393$0$startFeedbackAloha=function(a,b,c,d){var e,f;return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(g){e=c||goog.global;var h=a;var k=b;var l=h[userfeedback.api.SERVER_ENVIRONMENT]==="DEV",m=c||goog.global;m=h.nonce||module$exports$google3$third_party$javascript$safevalues$dom$index.getScriptNonce(m); h={integrationKeys:{productId:h[userfeedback.api.PRODUCT_ID],feedbackBucket:h[userfeedback.api.BUCKET],triggerId:h[userfeedback.api.TRIGGER_ID]},callbacks:{onClose:h[userfeedback.api.CALLBACK],onLoad:h[userfeedback.api.ON_LOAD_CALLBACK]},formContent:{locale:h[userfeedback.api.LOCALE],disableScreenshot:h[userfeedback.api.DISABLE_SCREENSHOTTING],productDisplayName:void 0,announcement:void 0,issueCategories:void 0,includeSeveritySelection:void 0,customImageSrc:void 0,thankYouMessage:void 0,userEmail:void 0, defaultFormInputValues:void 0,defaultFormInputValuesString:void 0,abuseLink:h[userfeedback.api.ABUSE_LINK],additionalDataConsent:h[userfeedback.api.ADDITIONAL_DATA_CONSENT]},initializationData:{isLocalServer:l,nonce:m,useNightlyRelease:l,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:h[userfeedback.api.FEEDBACK_SERVER_URI],colorScheme:h[userfeedback.api.COLOR_SCHEME]},extraData:{productVersion:h[userfeedback.api.PRODUCT_VERSION], authUser:h[userfeedback.api.AUTH_USER],configuratorId:h[userfeedback.api.CONFIGURATOR_ID],customZIndex:h[userfeedback.api.CUSTOM_Z_INDEX],tinyNoPointer:h[userfeedback.api.TINY_NO_POINTER],allowNonLoggedInFeedback:h[userfeedback.api.ALLOW_NON_LOGGED_IN_FEEDBACK],enableAnonymousFeedback:h[userfeedback.api.ENABLE_ANONYMOUS_FEEDBACK]}};k&&(k=new Map(Object.entries(k)),h.extraData.productSpecificData=k);f=k=h;return g.yield(module$contents$google3$uservoice$feedback$client$web$loader$loader_loadAndInitializeFeedbackClient(f, d,e,!0),0)})}; userfeedback.api.startFeedback=function(a,b,c){try{if(a[userfeedback.api.FLOW]==="help"){var d=a[userfeedback.api.HELP_CENTER_PATH].replace(/^\//,"");module$exports$google3$third_party$javascript$safevalues$dom$index.windowOpen(c||window,"https://support.google.com/"+d)}else if(a[userfeedback.api.FLOW]==="submit")$jscomp$scope$589139393$3$startFeedbackClassic(a,b,c);else{var e=module$contents$google3$uservoice$feedback$client$web$service$properties_fetch_service_getAlohaFormProperties(a[userfeedback.api.PRODUCT_ID],a[userfeedback.api.FEEDBACK_SERVER_URI]); e.then(function(f){f=f.getAlohaFlags();var g,h=!goog.userAgent.MOBILE||((g=f)==null?void 0:g.getEnableMweb()),k;g=!a[userfeedback.api.TINY_NO_POINTER]||((k=f)==null?void 0:k.getEnableTinyNoPointer());!f||f.getAlohaAutoGaRollout()&&h&&g?$jscomp$scope$589139393$0$startFeedbackAloha(a,b,c,f):$jscomp$scope$589139393$3$startFeedbackClassic(a,b,c)},function(f){f&&f.name!=="DuplicateFormError"&&$jscomp$scope$589139393$3$startFeedbackClassic(a,b,c)})}}catch(f){$jscomp$scope$589139393$0$startFeedbackAloha(a, b,c,null)}};goog.exportSymbol("userfeedback.api.startFeedback",userfeedback.api.startFeedback); userfeedback.api.startFeedbackAsync=function(a,b,c){var d,e,f,g,h,k,l;return(0,$jscomp.asyncExecutePromiseGeneratorProgram)(function(m){switch(m.nextAddress){case 1:if(a[userfeedback.api.FLOW]==="submit"||a[userfeedback.api.FLOW]==="help")return $jscomp$scope$589139393$3$startFeedbackClassic(a,b,c),m.return();m.setCatchFinallyBlocks(2);return m.yield(module$contents$google3$uservoice$feedback$client$web$service$properties_fetch_service_getAlohaFormProperties(a[userfeedback.api.PRODUCT_ID],a[userfeedback.api.FEEDBACK_SERVER_URI]), 4);case 4:d=m.yieldResult;e=d.getAlohaFlags();g=!goog.userAgent.MOBILE||((f=e)==null?void 0:f.getEnableMweb());k=!a[userfeedback.api.TINY_NO_POINTER]||((h=e)==null?void 0:h.getEnableTinyNoPointer());if(e&&!(e.getAlohaAutoGaRollout()&&g&&k)){$jscomp$scope$589139393$3$startFeedbackClassic(a,b,c);m.jumpTo(5);break}return m.yield($jscomp$scope$589139393$0$startFeedbackAloha(a,b,c,e),5);case 5:m.leaveTryBlock(0);break;case 2:(l=m.enterCatchBlock())&&l.name!=="DuplicateFormError"&&$jscomp$scope$589139393$3$startFeedbackClassic(a, b,c),m.jumpToEnd()}})};ocean.mobilebooks={}; var module$contents$ocean$mobilebooks$MobileAppbar_MobileAppbar=function(a,b,c){goog.ui.Component.call(this);var d=this;if(this.backButton_=goog.dom.getElement("gb-mobile-appbar-back-button"))this.getHandler().listen(this.backButton_,goog.events.EventType.CLICK,this.backAction_),this.maybeSuppressBackButton_();(this.moreMenuButton_=goog.dom.getElement("gb-mobile-appbar-more"))&&this.addMoreActionsMenu_();var e=goog.dom.getElement("gb-mobile-appbar-search-button");e&&b&&(goog.events.listen(e,goog.events.EventType.CLICK, function(){d.toggleMobileSearchBar_(b,c)}),goog.events.listen(e,goog.events.EventType.KEYDOWN,function(f){f.keyCode!=goog.events.KeyCodes.SPACE&&f.keyCode!=goog.events.KeyCodes.ENTER||d.toggleMobileSearchBar_(b,c)}));new module$exports$ocean$mobilebooks$MobileGetBookMenu(a)};$jscomp.inherits(module$contents$ocean$mobilebooks$MobileAppbar_MobileAppbar,goog.ui.Component); module$contents$ocean$mobilebooks$MobileAppbar_MobileAppbar.prototype.addMoreActionsMenu_=function(){var a=this,b=goog.dom.getElement("gb-mobile-more-menu");if(b){var c=new goog.ui.Popup(b);c.setPinnedCorner(goog.positioning.Corner.TOP_RIGHT);c.setPosition(new goog.positioning.AnchoredViewportPosition(this.moreMenuButton_,goog.positioning.Corner.TOP_RIGHT));c.setVisible(!1);goog.events.listen(this.moreMenuButton_,goog.events.EventType.CLICK,function(){a.initializeAndShowMoreActionsMenu_(b,c)});goog.events.listen(this.moreMenuButton_, goog.events.EventType.KEYDOWN,function(d){d.keyCode!=goog.events.KeyCodes.SPACE&&d.keyCode!=goog.events.KeyCodes.ENTER||a.initializeAndShowMoreActionsMenu_(b,c)})}else goog.dom.removeNode(this.moreMenuButton_)}; module$contents$ocean$mobilebooks$MobileAppbar_MobileAppbar.prototype.initializeAndShowMoreActionsMenu_=function(a,b){goog.dom.classlist.remove(a,"more-menu-hidden");b.setVisible(!0);b.getElement().focus();a=goog.dom.getElementsByClass("more-menu-link");for(var c=0;c<a.length;c++)goog.events.listen(a[c],goog.events.EventType.CLICK,function(){b.setVisible(!1)}),goog.events.listen(a[c],goog.events.EventType.KEYDOWN,function(d){d.keyCode!=goog.events.KeyCodes.SPACE&&d.keyCode!=goog.events.KeyCodes.ENTER|| b.setVisible(!1)})};module$contents$ocean$mobilebooks$MobileAppbar_MobileAppbar.prototype.toggleMobileSearchBar_=function(a,b){var c=goog.asserts.assertExists(goog.dom.getElement("gb-mobile-search")),d=goog.style.isElementShown(c);goog.style.setElementShown(c,!d);a=goog.asserts.assertExists(a);d?a.blur():a.focus();b&&b.resize()}; module$contents$ocean$mobilebooks$MobileAppbar_MobileAppbar.prototype.backAction_=function(){window.history.back();goog.userAgent.ANDROID&&goog.userAgent.product.CHROME&&window.history.length==1&&window.close()};module$contents$ocean$mobilebooks$MobileAppbar_MobileAppbar.prototype.maybeSuppressBackButton_=function(){if(this.isIGSA_()){goog.dom.classlist.add(this.backButton_,"igsa-hide");var a=this.getDomHelper().getElement("gb-mobile-appbar-logo");goog.dom.classlist.add(a,"igsa-shift")}}; module$contents$ocean$mobilebooks$MobileAppbar_MobileAppbar.prototype.isIGSA_=function(){return goog.userAgent.IOS&&goog.string.contains(goog.userAgent.getUserAgentString(),"GSA")};ocean.mobilebooks.MobileAppbar=module$contents$ocean$mobilebooks$MobileAppbar_MobileAppbar;goog.exportSymbol("_OC_startFeedback",userfeedback.api.startFeedback);goog.dom.FontSizeMonitor=function(a){goog.events.EventTarget.call(this);a=a||goog.dom.getDomHelper();this.sizeElement_=a.createDom(goog.dom.TagName.IFRAME,{style:"position:absolute;width:9em;height:9em;top:-99em",tabIndex:-1,"aria-hidden":"true"});a=a.getDocument().body;a.insertBefore(this.sizeElement_,a.firstChild);this.resizeTarget_=goog.dom.getFrameContentWindow(this.sizeElement_);goog.userAgent.GECKO&&(a=this.resizeTarget_.document,a.open(),a.close());goog.events.listen(this.resizeTarget_,goog.events.EventType.RESIZE, this.handleResize_,!1,this);this.lastWidth_=this.sizeElement_.offsetWidth};goog.inherits(goog.dom.FontSizeMonitor,goog.events.EventTarget);goog.dom.FontSizeMonitor.EventType={CHANGE:"fontsizechange"};goog.dom.FontSizeMonitor.CHANGE_EVENT=goog.dom.FontSizeMonitor.EventType.CHANGE; goog.dom.FontSizeMonitor.prototype.disposeInternal=function(){goog.dom.FontSizeMonitor.superClass_.disposeInternal.call(this);goog.events.unlisten(this.resizeTarget_,goog.events.EventType.RESIZE,this.handleResize_,!1,this);this.resizeTarget_=null;goog.dom.removeNode(this.sizeElement_);delete this.sizeElement_};goog.dom.FontSizeMonitor.prototype.handleResize_=function(){var a=this.sizeElement_.offsetWidth;this.lastWidth_!=a&&(this.lastWidth_=a,this.dispatchEvent(goog.dom.FontSizeMonitor.EventType.CHANGE))};var module$contents$ocean$util$Resizer_Resizer=function(a){this.divToResize_=a;a=goog.bind(this.handleResizeEvent_,this);this.viewportSizeMonitor_=new goog.dom.ViewportSizeMonitor;goog.events.listen(this.viewportSizeMonitor_,goog.events.EventType.RESIZE,a);var b=new goog.dom.FontSizeMonitor;goog.events.listen(b,goog.dom.FontSizeMonitor.EventType.CHANGE,a);goog.events.listen(window,goog.events.EventType.DOMCONTENTLOADED,goog.bind(this.resize,this))}; module$contents$ocean$util$Resizer_Resizer.prototype.handleResizeEvent_=function(){this.resize();goog.Timer.callOnce(goog.bind(this.resize,this),100)};module$contents$ocean$util$Resizer_Resizer.prototype.resize=function(){var a=this.viewportSizeMonitor_.getSize(),b=Math.round(goog.style.getPageOffsetTop(this.divToResize_));this.divToResize_.style.height=a.height-b+"px"}; module$contents$ocean$util$Resizer_Resizer.initById=function(a){var b=null;if(a=goog.dom.getElement(a))b=new module$contents$ocean$util$Resizer_Resizer(a),b.resize();return b};ocean.util.Resizer=module$contents$ocean$util$Resizer_Resizer;var jfk={ButterBar:function(a,b){goog.ui.Component.call(this,b);this.content_=a}};goog.inherits(jfk.ButterBar,goog.ui.Component);jfk.ButterBar.Type={INFO:"info",ERROR:"error",PROMO:"promo",WARNING:"warning"};jfk.ButterBar.prototype.type_=jfk.ButterBar.Type.INFO;jfk.ButterBar.prototype.mini_=!1;jfk.ButterBar.CSS_NAME_="jfk-butterBar";jfk.ButterBar.SHOWN_CSS_NAME_=jfk.ButterBar.CSS_NAME_+"-shown";jfk.ButterBar.MINI_CSS_NAME_=jfk.ButterBar.CSS_NAME_+"-mini"; jfk.ButterBar.TYPE_CSS_NAMES_=module$contents$goog$object_create(jfk.ButterBar.Type.INFO,jfk.ButterBar.CSS_NAME_+"-info",jfk.ButterBar.Type.ERROR,jfk.ButterBar.CSS_NAME_+"-error",jfk.ButterBar.Type.WARNING,jfk.ButterBar.CSS_NAME_+"-warning",jfk.ButterBar.Type.PROMO,jfk.ButterBar.CSS_NAME_+"-promo");jfk.ButterBar.prototype.getType=function(){return this.type_}; jfk.ButterBar.prototype.setType=function(a){var b=this.getContentElement();b&&goog.dom.classlist.addRemove(this.getElement(),jfk.ButterBar.TYPE_CSS_NAMES_[this.type_],jfk.ButterBar.TYPE_CSS_NAMES_[a]);this.type_=a};jfk.ButterBar.prototype.setContent=function(a){this.content_=a;if(a=this.getElement()){var b=this.getDomHelper();b.removeChildren(a);b.append(a,this.content_)}};jfk.ButterBar.prototype.isVisible=function(){var a=this.getElement();return a!=null&&goog.dom.classlist.contains(a,jfk.ButterBar.SHOWN_CSS_NAME_)}; jfk.ButterBar.prototype.setVisible=function(a){goog.asserts.assert(this.isInDocument(),"setVisible must only be called after the butter bar is rendered.");goog.dom.classlist.enable(this.getElement(),jfk.ButterBar.SHOWN_CSS_NAME_,a)};jfk.ButterBar.prototype.setMini=function(a){this.mini_=a;(a=this.getElement())&&goog.dom.classlist.enable(a,jfk.ButterBar.MINI_CSS_NAME_,this.mini_)}; jfk.ButterBar.prototype.createDom=function(){this.setElementInternal(this.getDomHelper().createDom(goog.dom.TagName.DIV,jfk.ButterBar.CSS_NAME_));goog.asserts.assert(this.getElement(),"The DOM element for the butter bar cannot be null.");this.applyAriaLiveAttributes();this.setContent(this.content_);this.setMini(this.mini_);this.setType(this.type_)}; jfk.ButterBar.prototype.applyAriaLiveAttributes=function(){var a=this.getElement();a&&(goog.a11y.aria.setState(a,goog.a11y.aria.State.LIVE,goog.a11y.aria.LivePriority.ASSERTIVE),goog.a11y.aria.setState(a,goog.a11y.aria.State.ATOMIC,"true"))};var module$contents$ocean$chrome$ResizeManager_ResizeManager=function(a,b,c,d,e){this.viewer_=a;this.viewportDiv_=b;this.menuSize_=goog.style.getSize(c);this.menuScrollableDiv_=null;d&&(this.menuScrollableDiv_=d,goog.style.setStyle(this.menuScrollableDiv_,{overflow:"auto"}));this.hasLeftSidebar_=e;a=goog.bind(this.handleResizeEvent_,this);this.viewportSizeMonitor_=new goog.dom.ViewportSizeMonitor;goog.events.listen(this.viewportSizeMonitor_,goog.events.EventType.RESIZE,a);b=new goog.dom.FontSizeMonitor; goog.events.listen(b,goog.dom.FontSizeMonitor.EventType.CHANGE,a);goog.events.listen(window,goog.events.EventType.DOMCONTENTLOADED,goog.bind(this.resize,this))};module$contents$ocean$chrome$ResizeManager_ResizeManager.prototype.handleResizeEvent_=function(){this.resize();goog.Timer.callOnce(goog.bind(this.resize,this),100)}; module$contents$ocean$chrome$ResizeManager_ResizeManager.prototype.resize=function(){var a=!1;this.hasLeftSidebar_?this.fullscreen_&&(a=this.fullscreen_.fullscreen_):a=!0;var b=this.viewportSizeMonitor_.getSize(),c=a?0:this.menuSize_.width;a=Math.round(goog.style.getPageOffsetTop(this.viewportDiv_));c=Math.max(0,b.width-c);a=Math.max(0,b.height-a);this.viewer_.setSize(new goog.math.Size(c,a));this.menuScrollableDiv_&&(a=this.menuScrollableDiv_,goog.style.setStyle(a,"border","0px"),c=Math.round(goog.style.getPageOffsetTop(a)), b=Math.max(0,b.height-c),goog.style.setStyle(a,"height",b+"px"),a.clientWidth<a.offsetWidth&&goog.style.setStyle(a,{borderTop:goog.string.subs("%spx solid #ebeff9",2),height:Math.max(0,b-2)+"px"}))};module$contents$ocean$chrome$ResizeManager_ResizeManager.prototype.setFullscreen=function(a){this.fullscreen_=a;goog.events.listen(a,ocean.chrome.Fullscreen.EventType.CHANGE,goog.bind(this.resize,this))};ocean.chrome.ResizeManager=module$contents$ocean$chrome$ResizeManager_ResizeManager;goog.ui.LabelInput=function(a,b){goog.ui.Component.call(this,b);this.label_=a||""};goog.inherits(goog.ui.LabelInput,goog.ui.Component);goog.ui.LabelInput.prototype.ffKeyRestoreValue_=null;goog.ui.LabelInput.prototype.labelRestoreDelayMs=10;goog.ui.LabelInput.isPlaceholderSupported_=function(){goog.ui.LabelInput.supportsPlaceholder_==null&&(goog.ui.LabelInput.supportsPlaceholder_="placeholder"in goog.dom.createElement(goog.dom.TagName.INPUT));return goog.ui.LabelInput.supportsPlaceholder_}; goog.ui.LabelInput.prototype.hasFocus_=!1;goog.ui.LabelInput.prototype.createDom=function(){this.setElementInternal(this.getDomHelper().createDom(goog.dom.TagName.INPUT,{type:goog.dom.InputType.TEXT}))}; goog.ui.LabelInput.prototype.decorateInternal=function(a){goog.ui.LabelInput.superClass_.decorateInternal.call(this,a);this.label_||(this.label_=a.getAttribute("label")||"");goog.dom.getActiveElement(goog.dom.getOwnerDocument(a))==a&&(this.hasFocus_=!0,a=this.getElement(),goog.asserts.assert(a),goog.dom.classlist.remove(a,this.labelCssClassName));goog.ui.LabelInput.isPlaceholderSupported_()&&(this.getElement().placeholder=this.label_);a=this.getElement();goog.asserts.assert(a,"The label input element cannot be null."); goog.a11y.aria.setState(a,goog.a11y.aria.State.LABEL,this.label_)};goog.ui.LabelInput.prototype.enterDocument=function(){goog.ui.LabelInput.superClass_.enterDocument.call(this);this.attachEvents_();this.check_();this.getElement().labelInput_=this};goog.ui.LabelInput.prototype.exitDocument=function(){goog.ui.LabelInput.superClass_.exitDocument.call(this);this.detachEvents_();this.getElement().labelInput_=null}; goog.ui.LabelInput.prototype.attachEvents_=function(){var a=new goog.events.EventHandler(this);a.listen(this.getElement(),goog.events.EventType.FOCUS,this.handleFocus_);a.listen(this.getElement(),goog.events.EventType.BLUR,this.handleBlur_);if(goog.ui.LabelInput.isPlaceholderSupported_())this.eventHandler_=a;else{goog.userAgent.GECKO&&a.listen(this.getElement(),[goog.events.EventType.KEYPRESS,goog.events.EventType.KEYDOWN,goog.events.EventType.KEYUP],this.handleEscapeKeys_);var b=goog.dom.getOwnerDocument(this.getElement()); b=goog.dom.getWindow(b);a.listen(b,goog.events.EventType.LOAD,this.handleWindowLoad_);this.eventHandler_=a;this.attachEventsToForm_()}};goog.ui.LabelInput.prototype.attachEventsToForm_=function(){!this.formAttached_&&this.eventHandler_&&this.getElement().form&&(this.eventHandler_.listen(this.getElement().form,goog.events.EventType.SUBMIT,this.handleFormSubmit_),this.formAttached_=!0)}; goog.ui.LabelInput.prototype.detachEvents_=function(){this.eventHandler_&&(this.eventHandler_.dispose(),this.eventHandler_=null)};goog.ui.LabelInput.prototype.disposeInternal=function(){goog.ui.LabelInput.superClass_.disposeInternal.call(this);this.detachEvents_()};goog.ui.LabelInput.prototype.labelCssClassName="label-input-label"; goog.ui.LabelInput.prototype.handleFocus_=function(){this.hasFocus_=!0;var a=this.getElement();goog.asserts.assert(a);goog.dom.classlist.remove(a,this.labelCssClassName);goog.ui.LabelInput.isPlaceholderSupported_()||this.hasChanged()||this.inFocusAndSelect_||(a=this,a.getElement()&&(a.getElement().value=""))}; goog.ui.LabelInput.prototype.handleBlur_=function(){goog.ui.LabelInput.isPlaceholderSupported_()||(this.eventHandler_.unlisten(this.getElement(),goog.events.EventType.CLICK,this.handleFocus_),this.ffKeyRestoreValue_=null);this.hasFocus_=!1;this.check_()}; goog.ui.LabelInput.prototype.handleEscapeKeys_=function(a){a.keyCode==27&&(a.type==goog.events.EventType.KEYDOWN?this.ffKeyRestoreValue_=this.getElement().value:a.type==goog.events.EventType.KEYPRESS?this.getElement().value=this.ffKeyRestoreValue_:a.type==goog.events.EventType.KEYUP&&(this.ffKeyRestoreValue_=null),a.preventDefault())};goog.ui.LabelInput.prototype.handleFormSubmit_=function(){this.hasChanged()||(this.getElement().value="",goog.Timer.callOnce(this.handleAfterSubmit_,10,this))}; goog.ui.LabelInput.prototype.handleAfterSubmit_=function(){this.hasChanged()||(this.getElement().value=this.label_)};goog.ui.LabelInput.prototype.handleWindowLoad_=function(){this.check_()};goog.ui.LabelInput.prototype.hasFocus=function(){return this.hasFocus_};goog.ui.LabelInput.prototype.hasChanged=function(){return!!this.getElement()&&this.getElement().value!=""&&this.getElement().value!=this.label_}; goog.ui.LabelInput.prototype.clear=function(){this.getElement().value="";this.ffKeyRestoreValue_!=null&&(this.ffKeyRestoreValue_="")};goog.ui.LabelInput.prototype.reset=function(){this.hasChanged()&&(this.clear(),this.check_())};goog.ui.LabelInput.prototype.setValue=function(a){this.ffKeyRestoreValue_!=null&&(this.ffKeyRestoreValue_=a);this.getElement().value=a;this.check_()}; goog.ui.LabelInput.prototype.getValue=function(){return this.ffKeyRestoreValue_!=null?this.ffKeyRestoreValue_:this.hasChanged()?this.getElement().value:""};goog.ui.LabelInput.prototype.setLabel=function(a){var b=this.getElement();goog.ui.LabelInput.isPlaceholderSupported_()?(b&&(b.placeholder=a),this.label_=a):this.hasChanged()||(b&&(b.value=""),this.label_=a,this.restoreLabel_());b&&goog.a11y.aria.setState(b,goog.a11y.aria.State.LABEL,this.label_)};goog.ui.LabelInput.prototype.getLabel=function(){return this.label_}; goog.ui.LabelInput.prototype.check_=function(){var a=this.getElement();goog.asserts.assert(a,"The label input element cannot be null.");goog.ui.LabelInput.isPlaceholderSupported_()?this.getElement().placeholder!=this.label_&&(this.getElement().placeholder=this.label_):this.attachEventsToForm_();goog.a11y.aria.setState(a,goog.a11y.aria.State.LABEL,this.label_);this.hasChanged()?(a=this.getElement(),goog.asserts.assert(a),goog.dom.classlist.remove(a,this.labelCssClassName)):(this.inFocusAndSelect_|| this.hasFocus_||(a=this.getElement(),goog.asserts.assert(a),goog.dom.classlist.add(a,this.labelCssClassName)),goog.ui.LabelInput.isPlaceholderSupported_()||goog.Timer.callOnce(this.restoreLabel_,this.labelRestoreDelayMs,this))};goog.ui.LabelInput.prototype.setEnabled=function(a){this.getElement().disabled=!a;var b=this.getElement();goog.asserts.assert(b);goog.dom.classlist.enable(b,this.labelCssClassName+"-disabled",!a)};goog.ui.LabelInput.prototype.isEnabled=function(){return!this.getElement().disabled}; goog.ui.LabelInput.prototype.restoreLabel_=function(){!this.getElement()||this.hasChanged()||this.hasFocus_||(this.getElement().value=this.label_)};var module$exports$ocean$chrome$SearchInput=function(a,b,c){c=c!=null?c:"Search in this book";goog.ui.LabelInput.call(this,c);this.decorateInternal(a);this.enterDocument();b&&this.setValue(b)};$jscomp.inherits(module$exports$ocean$chrome$SearchInput,goog.ui.LabelInput);var module$exports$ocean$entitypage$TextViewportSearchManager={TextViewportSearchManager:function(a,b,c){this.searchResults_=a;this.sortOrder_=b;this.pageInfoSet_=c;this.snippetContainer_=module$contents$goog$asserts$dom_assertIsElement(goog.dom.getElement("text-viewport-snippet-container"));this.htmlDiv_=module$contents$goog$asserts$dom_assertIsHtmlElement(goog.dom.getElementByClass("html-div"))}}; module$exports$ocean$entitypage$TextViewportSearchManager.TextViewportSearchManager.prototype.renderSearchSnippets=function(){var a=this;this.clearSnippetResults_();this.searchResults_.resultItemArray_.forEach(function(b,c){var d=a.pageInfoSet_.getPageInfoByPid(b.getPageId()),e=module$exports$ocean$entitypage$SearchResultSnippet.SearchResultSnippet.renderTextSnippet(goog.asserts.assertExists(b),d?d:null);if(e&&b.getPageId()){var f=d?goog.dom.createElement(goog.dom.TagName.A):goog.dom.createElement(goog.dom.TagName.DIV); goog.dom.classlist.add(f,"text-viewport-snippet-link");d?(b=(new goog.Uri(window.location.href)).removeParameter("jtp").removeParameter("q").setFragment("").setParameterValue("pg",b.getPageId()).setParameterValue("dq",goog.string.unescapeEntities(a.searchResults_.getEscapedUserQuery())).setParameterValue("num",c).setParameterValue("scoring",a.sortOrder_),(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(module$contents$goog$asserts$dom_assertIsHtmlAnchorElement(f), b.toString())):(goog.dom.setFocusableTabIndex(f,!0),goog.a11y.aria.setRole(f,goog.a11y.aria.Role.LINK),goog.a11y.aria.setState(f,goog.a11y.aria.State.DISABLED,!0));goog.dom.appendChild(f,e);goog.dom.appendChild(a.snippetContainer_,f)}})}; module$exports$ocean$entitypage$TextViewportSearchManager.TextViewportSearchManager.prototype.enableSnippetView=function(a){var b=goog.userAgent.MOBILE?module$contents$goog$asserts$dom_assertIsHtmlElement(goog.dom.getElement("viewport")):this.htmlDiv_;goog.dom.classlist.enable(document.body,"text-viewport-snippet-view",a);goog.dom.classlist.enable(b,"exit-search-view",!a);a&&(b.scrollTop=0)}; module$exports$ocean$entitypage$TextViewportSearchManager.TextViewportSearchManager.prototype.clearSnippetResults_=function(){goog.dom.removeChildren(this.snippetContainer_)};goog.positioning.AbsolutePosition=function(a,b){this.coordinate=a instanceof goog.math.Coordinate?a:new goog.math.Coordinate(a,b)};goog.inherits(goog.positioning.AbsolutePosition,goog.positioning.AbstractPosition);goog.positioning.AbsolutePosition.prototype.reposition=function(a,b,c,d){goog.positioning.positionAtCoordinate(this.coordinate,a,b,c,null,null,d)};goog.positioning.ViewportPosition=function(a,b){this.coordinate=a instanceof goog.math.Coordinate?a:new goog.math.Coordinate(a,b)};goog.inherits(goog.positioning.ViewportPosition,goog.positioning.AbstractPosition);goog.positioning.ViewportPosition.prototype.reposition=function(a,b,c,d){goog.positioning.positionAtAnchor(goog.style.getClientViewportElement(a),goog.positioning.Corner.TOP_LEFT,a,b,this.coordinate,c,null,d)};goog.structs.Collection=function(){};goog.structs.Set=function(a){this.map_=new goog.structs.Map;this.size=0;a&&this.addAll(a)};goog.structs.Set.getUid_=goog.getUid;goog.structs.Set.getKey_=function(a){var b=typeof a;return b=="object"&&a||b=="function"?"o"+goog.getUid(a):b.slice(0,1)+a};goog.structs.Set.prototype.getCount=function(){return this.map_.size};goog.structs.Set.prototype.add=function(a){this.map_.set(goog.structs.Set.getKey_(a),a);this.setSizeInternal_(this.map_.size)}; goog.structs.Set.prototype.addAll=function(a){a=goog.structs.getValues(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c]);this.setSizeInternal_(this.map_.size)};goog.structs.Set.prototype.removeAll=function(a){a=goog.structs.getValues(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c]);this.setSizeInternal_(this.map_.size)};goog.structs.Set.prototype.delete=function(a){a=this.map_.remove(goog.structs.Set.getKey_(a));this.setSizeInternal_(this.map_.size);return a};goog.structs.Set.prototype.remove=function(a){return this.delete(a)}; goog.structs.Set.prototype.clear=function(){this.map_.clear();this.setSizeInternal_(0)};goog.structs.Set.prototype.isEmpty=function(){return this.map_.size===0};goog.structs.Set.prototype.has=function(a){return this.map_.containsKey(goog.structs.Set.getKey_(a))};goog.structs.Set.prototype.contains=function(a){return this.map_.containsKey(goog.structs.Set.getKey_(a))}; goog.structs.Set.prototype.intersection=function(a){var b=new goog.structs.Set;a=goog.structs.getValues(a);for(var c=0;c<a.length;c++){var d=a[c];this.contains(d)&&b.add(d)}return b};goog.structs.Set.prototype.difference=function(a){var b=this.clone();b.removeAll(a);return b};goog.structs.Set.prototype.getValues=function(){return this.map_.getValues()};goog.structs.Set.prototype.values=function(){return this.map_.values()};goog.structs.Set.prototype.clone=function(){return new goog.structs.Set(this)}; goog.structs.Set.prototype.equals=function(a){return this.getCount()==goog.structs.getCount(a)&&this.isSubsetOf(a)};goog.structs.Set.prototype.isSubsetOf=function(a){var b=goog.structs.getCount(a);if(this.getCount()>b)return!1;!(a instanceof goog.structs.Set)&&b>5&&(a=new goog.structs.Set(a));return goog.structs.every(this,function(c){return goog.structs.contains(a,c)})};goog.structs.Set.prototype.__iterator__=function(){return this.map_.__iterator__(!1)}; goog.structs.Set.prototype[Symbol.iterator]=function(){return this.values()};goog.structs.Set.prototype.setSizeInternal_=function(a){this.size=a};goog.ui.Tooltip=function(a,b,c){this.dom_=c||(a?goog.dom.getDomHelper(goog.dom.getElement(a)):goog.dom.getDomHelper());goog.ui.Popup.call(this,this.dom_.createDom(goog.dom.TagName.DIV,{style:"position:absolute;display:none;"}));this.cursorPosition=new goog.math.Coordinate(1,1);this.elements_=new goog.structs.Set;this.tooltipFocusHandler_=null;a&&this.attach(a);b!=null&&this.setText(b)};goog.inherits(goog.ui.Tooltip,goog.ui.Popup);goog.ui.Tooltip.activeInstances_=[]; goog.ui.Tooltip.prototype.activeEl_=null;goog.ui.Tooltip.prototype.className="goog-tooltip";goog.ui.Tooltip.prototype.showDelayMs_=500;goog.ui.Tooltip.prototype.hideDelayMs_=0;goog.ui.Tooltip.State={INACTIVE:0,WAITING_TO_SHOW:1,SHOWING:2,WAITING_TO_HIDE:3,UPDATING:4};goog.ui.Tooltip.Activation={CURSOR:0,FOCUS:1};goog.ui.Tooltip.prototype.getDomHelper=function(){return this.dom_}; goog.ui.Tooltip.prototype.attach=function(a){a=goog.dom.getElement(a);this.elements_.add(a);goog.events.listen(a,goog.events.EventType.MOUSEOVER,this.handleMouseOver,!1,this);goog.events.listen(a,goog.events.EventType.MOUSEOUT,this.handleMouseOutAndBlur,!1,this);goog.events.listen(a,goog.events.EventType.MOUSEMOVE,this.handleMouseMove,!1,this);goog.events.listen(a,goog.events.EventType.FOCUS,this.handleFocus,!1,this);goog.events.listen(a,goog.events.EventType.BLUR,this.handleMouseOutAndBlur,!1,this)}; goog.ui.Tooltip.prototype.detach=function(a){if(a)a=goog.dom.getElement(a),this.detachElement_(a),this.elements_.remove(a);else{a=this.elements_.getValues();for(var b,c=0;b=a[c];c++)this.detachElement_(b);this.elements_.clear()}}; goog.ui.Tooltip.prototype.detachElement_=function(a){goog.events.unlisten(a,goog.events.EventType.MOUSEOVER,this.handleMouseOver,!1,this);goog.events.unlisten(a,goog.events.EventType.MOUSEOUT,this.handleMouseOutAndBlur,!1,this);goog.events.unlisten(a,goog.events.EventType.MOUSEMOVE,this.handleMouseMove,!1,this);goog.events.unlisten(a,goog.events.EventType.FOCUS,this.handleFocus,!1,this);goog.events.unlisten(a,goog.events.EventType.BLUR,this.handleMouseOutAndBlur,!1,this)}; goog.ui.Tooltip.prototype.setShowDelayMs=function(a){this.showDelayMs_=a};goog.ui.Tooltip.prototype.setHideDelayMs=function(a){this.hideDelayMs_=a};goog.ui.Tooltip.prototype.getHideDelayMs=function(){return this.hideDelayMs_};goog.ui.Tooltip.prototype.setText=function(a){goog.dom.setTextContent(this.getElement(),a)};goog.ui.Tooltip.prototype.setSafeHtml=function(a){var b=this.getElement();b&&module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml(b,a)}; goog.ui.Tooltip.prototype.setElement=function(a){var b=this.getElement();b&&goog.dom.removeNode(b);goog.ui.Tooltip.superClass_.setElement.call(this,a);a?(b=this.dom_.getDocument().body,b.insertBefore(a,b.lastChild),this.registerContentFocusEvents_()):(module$contents$goog$dispose_dispose(this.tooltipFocusHandler_),this.tooltipFocusHandler_=null)}; goog.ui.Tooltip.prototype.registerContentFocusEvents_=function(){module$contents$goog$dispose_dispose(this.tooltipFocusHandler_);this.tooltipFocusHandler_=new goog.events.FocusHandler(goog.asserts.assert(this.getElement()));this.registerDisposable(this.tooltipFocusHandler_);goog.events.listen(this.tooltipFocusHandler_,goog.events.FocusHandler.EventType.FOCUSIN,this.clearHideTimer,void 0,this);goog.events.listen(this.tooltipFocusHandler_,goog.events.FocusHandler.EventType.FOCUSOUT,this.startHideTimer, void 0,this)};goog.ui.Tooltip.prototype.getText=function(){return goog.dom.getTextContent(this.getElement())};goog.ui.Tooltip.prototype.getState=function(){return this.showTimer?this.isVisible()?goog.ui.Tooltip.State.UPDATING:goog.ui.Tooltip.State.WAITING_TO_SHOW:this.hideTimer?goog.ui.Tooltip.State.WAITING_TO_HIDE:this.isVisible()?goog.ui.Tooltip.State.SHOWING:goog.ui.Tooltip.State.INACTIVE}; goog.ui.Tooltip.prototype.isCoordinateInTooltip=function(a){if(!this.isVisible())return!1;var b=goog.style.getPageOffset(this.getElement()),c=goog.style.getSize(this.getElement());return b.x<=a.x&&a.x<=b.x+c.width&&b.y<=a.y&&a.y<=b.y+c.height}; goog.ui.Tooltip.prototype.onBeforeShow=function(){if(!goog.ui.PopupBase.prototype.onBeforeShow.call(this))return!1;if(this.anchor)for(var a,b=0;a=goog.ui.Tooltip.activeInstances_[b];b++)goog.dom.contains(a.getElement(),this.anchor)||a.setVisible(!1);module$contents$goog$array_insert(goog.ui.Tooltip.activeInstances_,this);a=this.getElement();a.className=this.className;this.clearHideTimer();goog.events.listen(a,goog.events.EventType.MOUSEOVER,this.handleTooltipMouseOver,!1,this);goog.events.listen(a, goog.events.EventType.MOUSEOUT,this.handleTooltipMouseOut,!1,this);this.clearShowTimer();return!0}; goog.ui.Tooltip.prototype.onHide=function(){module$contents$goog$array_remove(goog.ui.Tooltip.activeInstances_,this);for(var a=this.getElement(),b,c=0;b=goog.ui.Tooltip.activeInstances_[c];c++)b.anchor&&goog.dom.contains(a,b.anchor)&&b.setVisible(!1);this.parentTooltip_&&this.parentTooltip_.startHideTimer();goog.events.unlisten(a,goog.events.EventType.MOUSEOVER,this.handleTooltipMouseOver,!1,this);goog.events.unlisten(a,goog.events.EventType.MOUSEOUT,this.handleTooltipMouseOut,!1,this);this.anchor= void 0;this.getState()==goog.ui.Tooltip.State.INACTIVE&&(this.seenInteraction_=!1);goog.ui.PopupBase.prototype.onHide.call(this)};goog.ui.Tooltip.prototype.maybeShow=function(a,b){this.anchor==a&&this.elements_.contains(this.anchor)&&(this.seenInteraction_||!this.requireInteraction_?(this.setVisible(!1),this.isVisible()||this.positionAndShow_(a,b)):this.anchor=void 0);this.showTimer=void 0};goog.ui.Tooltip.prototype.getActiveElement=function(){return this.activeEl_}; goog.ui.Tooltip.prototype.setActiveElement=function(a){this.activeEl_=a};goog.ui.Tooltip.prototype.showForElement=function(a,b){this.attach(a);this.activeEl_=a;this.positionAndShow_(a,b)};goog.ui.Tooltip.prototype.positionAndShow_=function(a,b){this.anchor=a;this.setPosition(b||this.getPositioningStrategy(goog.ui.Tooltip.Activation.CURSOR));this.setVisible(!0)}; goog.ui.Tooltip.prototype.maybeHide=function(a){this.hideTimer=void 0;if(a==this.anchor){a=this.getDomHelper();var b=a.getActiveElement();a=b&&this.getElement()&&a.contains(this.getElement(),b);this.activeEl_!=null&&(this.activeEl_==this.getElement()||this.elements_.contains(this.activeEl_))||a||this.hasActiveChild()||this.setVisible(!1)}};goog.ui.Tooltip.prototype.hasActiveChild=function(){return!(!this.childTooltip_||!this.childTooltip_.activeEl_)}; goog.ui.Tooltip.prototype.saveCursorPosition_=function(a){var b=this.dom_.getDocumentScroll();this.cursorPosition.x=a.clientX+b.x;this.cursorPosition.y=a.clientY+b.y};goog.ui.Tooltip.prototype.handleMouseOver=function(a){var b=this.getAnchorFromElement(a.target);this.activeEl_=b;this.clearHideTimer();b!=this.anchor&&(this.anchor=b,this.startShowTimer(b),this.checkForParentTooltip_(),this.saveCursorPosition_(a))}; goog.ui.Tooltip.prototype.getAnchorFromElement=function(a){try{for(;a&&!this.elements_.contains(a);)a=a.parentNode;return a}catch(b){return null}};goog.ui.Tooltip.prototype.handleMouseMove=function(a){this.saveCursorPosition_(a);this.seenInteraction_=!0}; goog.ui.Tooltip.prototype.handleFocus=function(a){this.activeEl_=a=this.getAnchorFromElement(a.target);this.seenInteraction_=!0;if(this.anchor!=a){this.anchor=a;var b=this.getPositioningStrategy(goog.ui.Tooltip.Activation.FOCUS);this.clearHideTimer();this.startShowTimer(a,b);this.checkForParentTooltip_()}};goog.ui.Tooltip.prototype.getPositioningStrategy=function(a){return a==goog.ui.Tooltip.Activation.CURSOR?(a=this.cursorPosition.clone(),new goog.ui.Tooltip.CursorTooltipPosition(a)):new goog.ui.Tooltip.ElementTooltipPosition(this.activeEl_)}; goog.ui.Tooltip.prototype.checkForParentTooltip_=function(){if(this.anchor)for(var a,b=0;a=goog.ui.Tooltip.activeInstances_[b];b++)goog.dom.contains(a.getElement(),this.anchor)&&(a.childTooltip_=this,this.parentTooltip_=a)}; goog.ui.Tooltip.prototype.handleMouseOutAndBlur=function(a){var b=this.getAnchorFromElement(a.target),c=this.getAnchorFromElement(a.relatedTarget);b!=c&&(b==this.activeEl_&&(this.activeEl_=null),this.clearShowTimer(),this.seenInteraction_=!1,!this.isVisible()||a.relatedTarget&&goog.dom.contains(this.getElement(),a.relatedTarget)?this.anchor=void 0:this.startHideTimer())}; goog.ui.Tooltip.prototype.handleTooltipMouseOver=function(){var a=this.getElement();this.activeEl_!=a&&(this.clearHideTimer(),this.activeEl_=a)};goog.ui.Tooltip.prototype.handleTooltipMouseOut=function(a){var b=this.getElement();this.activeEl_!=b||a.relatedTarget&&goog.dom.contains(b,a.relatedTarget)||(this.activeEl_=null,this.startHideTimer())};goog.ui.Tooltip.prototype.startShowTimer=function(a,b){this.showTimer||(this.showTimer=goog.Timer.callOnce(goog.bind(this.maybeShow,this,a,b),this.showDelayMs_))}; goog.ui.Tooltip.prototype.clearShowTimer=function(){this.showTimer&&(goog.Timer.clear(this.showTimer),this.showTimer=void 0)};goog.ui.Tooltip.prototype.startHideTimer=function(){this.getState()==goog.ui.Tooltip.State.SHOWING&&(this.hideTimer=goog.Timer.callOnce(goog.bind(this.maybeHide,this,this.anchor),this.getHideDelayMs()))};goog.ui.Tooltip.prototype.clearHideTimer=function(){this.hideTimer&&(goog.Timer.clear(this.hideTimer),this.hideTimer=void 0)}; goog.ui.Tooltip.prototype.disposeInternal=function(){this.setVisible(!1);this.clearShowTimer();this.detach();this.getElement()&&goog.dom.removeNode(this.getElement());this.activeEl_=null;delete this.dom_;goog.ui.Tooltip.superClass_.disposeInternal.call(this)};goog.ui.Tooltip.CursorTooltipPosition=function(a,b){goog.positioning.ViewportPosition.call(this,a,b)};goog.inherits(goog.ui.Tooltip.CursorTooltipPosition,goog.positioning.ViewportPosition); goog.ui.Tooltip.CursorTooltipPosition.prototype.reposition=function(a,b,c){b=goog.style.getClientViewportElement(a);b=goog.style.getVisibleRectForElement(b);c=c?new goog.math.Box(c.top+10,c.right,c.bottom,c.left+10):new goog.math.Box(10,0,0,10);goog.positioning.positionAtCoordinate(this.coordinate,a,goog.positioning.Corner.TOP_START,c,b,goog.positioning.Overflow.ADJUST_X|goog.positioning.Overflow.FAIL_Y)&goog.positioning.OverflowStatus.FAILED&&goog.positioning.positionAtCoordinate(this.coordinate, a,goog.positioning.Corner.TOP_START,c,b,goog.positioning.Overflow.ADJUST_X|goog.positioning.Overflow.ADJUST_Y)};goog.ui.Tooltip.ElementTooltipPosition=function(a){goog.positioning.AnchoredPosition.call(this,a,goog.positioning.Corner.BOTTOM_RIGHT)};goog.inherits(goog.ui.Tooltip.ElementTooltipPosition,goog.positioning.AnchoredPosition); goog.ui.Tooltip.ElementTooltipPosition.prototype.reposition=function(a,b,c){var d=new goog.math.Coordinate(10,0);goog.positioning.positionAtAnchor(this.element,this.corner,a,b,d,c,goog.positioning.Overflow.ADJUST_X|goog.positioning.Overflow.FAIL_Y)&goog.positioning.OverflowStatus.FAILED&&goog.positioning.positionAtAnchor(this.element,goog.positioning.Corner.TOP_RIGHT,a,goog.positioning.Corner.BOTTOM_LEFT,d,c,goog.positioning.Overflow.ADJUST_X|goog.positioning.Overflow.ADJUST_Y)};ocean.search.ScrollbarAnnotation=function(a,b){goog.events.EventTarget.call(this);this.annotation_=goog.dom.createElement("div");goog.dom.appendChild(a,this.annotation_);goog.style.setStyle(this.annotation_,{position:"absolute",backgroundColor:"#b2c4e9",width:"100%",height:"5px",cursor:"pointer"});this.tooltip_=new ocean.search.AnnotationTooltip_(this.annotation_,b);goog.events.listen(this.annotation_,"click",goog.bind(this.dispatchEvent,this,"click"));goog.events.listen(this.tooltip_.getElement(), "click",goog.bind(this.dispatchEvent,this,"click"));goog.events.listen(this.annotation_,"mouseover",goog.bind(this.setCursorHint_,this,!0));goog.events.listen(this.annotation_,"mouseout",goog.bind(this.setCursorHint_,this,!1))};$jscomp.inherits(ocean.search.ScrollbarAnnotation,goog.events.EventTarget);ocean.search.ScrollbarAnnotation.prototype.setHighlight=function(a){goog.style.setStyle(this.annotation_,{backgroundColor:a?"#ffcc00":"#b2c4e9"});this.highlighted_=a}; ocean.search.ScrollbarAnnotation.prototype.setCursorHint_=function(a){this.highlighted_||goog.style.setStyle(this.annotation_,{backgroundColor:a?"#ffffcc":"#b2c4e9"})};ocean.search.ScrollbarAnnotation.prototype.setYPosition=function(a){goog.style.setPosition(this.annotation_,0,a)};ocean.search.ScrollbarAnnotation.prototype.disposeInternal=function(){this.tooltip_.dispose();goog.events.EventTarget.prototype.disposeInternal.call(this)}; ocean.search.AnnotationTooltip_=function(a,b){goog.ui.Tooltip.call(this,a);this.annotationDiv_=a;this.setShowDelayMs(200);this.setHideDelayMs(500);a=this.getElement();goog.style.setStyle(a,{backgroundColor:"#FFF",color:"#333",border:"1px solid #6b90da",padding:"6px",fontSize:"83%",width:"350px",cursor:"pointer"});var c=goog.dom.createElement("div");goog.style.setStyle(c,{fontWeight:"bold"});goog.dom.appendChild(c,goog.dom.createTextNode(module$contents$ocean$msg_getGooglePrintPageNumber(b.getPageNumber()))); goog.dom.appendChild(a,c);c=goog.dom.createElement("div");module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml(c,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged(b.snippetText_));goog.dom.appendChild(a,c)};$jscomp.inherits(ocean.search.AnnotationTooltip_,goog.ui.Tooltip); ocean.search.AnnotationTooltip_.prototype.maybeShow=function(a){var b=goog.style.getPageOffset(this.annotationDiv_),c=goog.style.getSize(this.getElement()),d=goog.dom.getViewportSize();goog.ui.Tooltip.prototype.maybeShow.call(this,a,new goog.positioning.AbsolutePosition(b.x-c.width,Math.min(b.y,d.height-c.height)))};ocean.util.ScrollbarStyle={};var module$contents$ocean$util$ScrollbarStyle_getVerticalMarginTop=function(){return goog.userAgent.MAC?5:15},module$contents$ocean$util$ScrollbarStyle_getVerticalMarginBottom=function(){return goog.userAgent.MAC?30:15};ocean.util.ScrollbarStyle.getVerticalMarginBottom=module$contents$ocean$util$ScrollbarStyle_getVerticalMarginBottom;ocean.util.ScrollbarStyle.getVerticalMarginTop=module$contents$ocean$util$ScrollbarStyle_getVerticalMarginTop;var module$contents$ocean$search$AnnotatedScrollbar_AnnotatedScrollbar=function(a,b,c){module$contents$ocean$EventManager_EventManager.call(this);var d=this;this.viewer_=a;this.searchResults_=b;this.goToResultCallback_=c;this.annotations_={};this.viewportEventHandler_=new goog.events.EventHandler;this.annotationOverlay_=goog.dom.createElement("div");goog.style.setStyle(this.annotationOverlay_,{backgroundColor:"#fcfcff",position:"absolute"});goog.dom.appendChild(this.viewer_.controlsDiv_,this.annotationOverlay_); a=this.searchResults_.resultItemArray_;a.forEach(function(e){d.createAnnotation_(e)});this.getHandler().listen(this.viewer_,ocean.viewport.Viewer.EventType.PAGECHANGE,this.updateHighlight_);this.updateHighlight_();this.getHandler().listen(this.viewer_,ocean.viewport.Viewer.EventType.RESIZE,this.schedulePosition_);this.getHandler().listen(this.viewer_,ocean.viewport.Viewer.EventType.VIEWPORTMODECHANGE,this.handleViewportModeChange_);(a=this.viewer_.getViewport())&&this.handleViewportModeChange_()}; $jscomp.inherits(module$contents$ocean$search$AnnotatedScrollbar_AnnotatedScrollbar,module$contents$ocean$EventManager_EventManager);module$contents$ocean$search$AnnotatedScrollbar_AnnotatedScrollbar.prototype.updateHighlight_=function(){this.highlightedAnnotation_&&(this.highlightedAnnotation_.setHighlight(!1),this.highlightedAnnotation_=null);var a=this.annotations_[this.viewer_.getPageInfo().getPageId()];a&&(this.highlightedAnnotation_=a,a.setHighlight(!0))}; module$contents$ocean$search$AnnotatedScrollbar_AnnotatedScrollbar.prototype.handleViewportModeChange_=function(){var a=this,b=this.viewer_.getViewport(),c=b instanceof ocean.books.VerticalViewport;c&&this.schedulePosition_();this.viewportEventHandler_.removeAll();this.viewportEventHandler_.listen(b,ocean.viewport.Viewport.EventType.LAYOUTCHANGE,function(){a.schedulePosition_()});goog.style.setElementShown(this.annotationOverlay_,c)}; module$contents$ocean$search$AnnotatedScrollbar_AnnotatedScrollbar.prototype.schedulePosition_=function(){var a=this;goog.Timer.callOnce(function(){a.position_()},10)}; module$contents$ocean$search$AnnotatedScrollbar_AnnotatedScrollbar.prototype.position_=function(){var a=this.viewer_.getViewport();a&&a instanceof ocean.books.VerticalViewport&&(a=a.getWindow().getCroppingDiv(),goog.style.setSize(this.annotationOverlay_,module$contents$ocean$search$AnnotatedScrollbar_AnnotatedScrollbar.WIDTH_,a.clientHeight),goog.style.setPosition(this.annotationOverlay_,a.clientWidth-module$contents$ocean$search$AnnotatedScrollbar_AnnotatedScrollbar.WIDTH_,0),this.positionSearchResults_())}; module$contents$ocean$search$AnnotatedScrollbar_AnnotatedScrollbar.prototype.positionSearchResults_=function(){var a=this,b=this.viewer_.getViewport();b=b.layout_.getItems(function(d){return d instanceof module$contents$ocean$layout$LayoutPage_LayoutPage});var c={};b.forEach(function(d){c[d.getPageInfo().getPageId()]=d});b=this.searchResults_.resultItemArray_;b.forEach(function(d){a.positionResult_(c,d)})}; module$contents$ocean$search$AnnotatedScrollbar_AnnotatedScrollbar.prototype.positionResult_=function(a,b){var c=this.viewer_.getViewport();c=c.getCanvasDiv().clientHeight;if(a=a[b.getPageId()]){var d=module$contents$ocean$util$ScrollbarStyle_getVerticalMarginTop(),e=module$contents$ocean$util$ScrollbarStyle_getVerticalMarginBottom();e=this.annotationOverlay_.clientHeight-d-e;c=Math.floor(a.getTop()/c*e)+d;this.annotations_[b.getPageId()].setYPosition(c)}}; module$contents$ocean$search$AnnotatedScrollbar_AnnotatedScrollbar.prototype.createAnnotation_=function(a){var b=this,c=new ocean.search.ScrollbarAnnotation(this.annotationOverlay_,a);this.annotations_[a.getPageId()]=c;this.getHandler().listen(c,"click",function(){b.goToResultCallback_(a)})}; module$contents$ocean$search$AnnotatedScrollbar_AnnotatedScrollbar.prototype.disposeInternal=function(){goog.dom.removeNode(this.annotationOverlay_);module$contents$goog$object_forEach(this.annotations_,function(a){a.disposeInternal.call(a)});module$contents$ocean$EventManager_EventManager.prototype.disposeInternal.call(this)};module$contents$ocean$search$AnnotatedScrollbar_AnnotatedScrollbar.WIDTH_=15;ocean.search.AnnotatedScrollbar=module$contents$ocean$search$AnnotatedScrollbar_AnnotatedScrollbar;var module$exports$ocean$search$SearchSession={SearchSession:function(a){module$contents$ocean$EventManager_EventManager.call(this);this.manager_=a;this.sort_=module$exports$ocean$search$SearchSessionSortOrder.SearchSessionSortOrder.PAGES}};$jscomp.inherits(module$exports$ocean$search$SearchSession.SearchSession,module$contents$ocean$EventManager_EventManager); module$exports$ocean$search$SearchSession.SearchSession.prototype.initializeWithQuery=function(a,b){var c=this;this.manager_.searchBar_.renderLoading();var d=new goog.Uri(window.location.href);d.setParameterValue("jscmd","SearchWithinVolume");d.setParameterValue("q",a);d.setParameterValue("scoring",b);a=new module$contents$ocean$net$XhrRequest_XhrRequest(d);a.fetch(function(e){c.initializeWithProto(!1,e)});this.sort_=b}; module$exports$ocean$search$SearchSession.SearchSession.prototype.initializeWithProto=function(a,b,c,d){var e=this;b.search_results&&(b.search_results=module$contents$goog$array_filter(b.search_results,function(g){return g.snippet_text!==void 0&&g.snippet_text}),b.number_of_results=b.search_results.length);this.searchResults_=new module$contents$ocean$books$SearchResults_SearchResults(b);ocean.entitypage.Util.isOutputTextViewport()&&(d&&(this.sort_=d),b=goog.asserts.assertExists(this.manager_.viewer_.pageInfoSet_), this.textViewportSearchManager_=new module$exports$ocean$entitypage$TextViewportSearchManager.TextViewportSearchManager(this.searchResults_,this.sort_,b));b=this.manager_.viewer_;b.getViewportClass()||b.setViewportClass(ocean.books.VerticalViewport);d=this.searchResults_.resultItemArray_;var f=d.length;f==0?this.manager_.searchBar_.renderNoResults():a?c?(a=d.find(function(g){return c==g.getPageId()}))?this.goToResult(a):this.goToResult(d[0],c):this.goToResult(d[0]):this.renderAllResults();this.scrollbar_= new module$contents$ocean$search$AnnotatedScrollbar_AnnotatedScrollbar(b,this.searchResults_,function(g){e.goToResult(g)})}; module$exports$ocean$search$SearchSession.SearchSession.prototype.renderAllResults=function(){var a=this,b=this.manager_.viewer_,c=b.getViewportClass();c!=ocean.books.VerticalViewport&&c!=ocean.books.TwoPageViewport||this.manager_.setPreviousViewportClass(c);b.setViewportClass(ocean.search.SnippetViewport);b=b.getViewport();this.manager_.searchBar_.renderSnippetView();ocean.entitypage.Util.isOutputTextViewport()?(this.textViewportSearchManager_.renderSearchSnippets(),this.textViewportSearchManager_.enableSnippetView(!0)): (b.setSearchResults(this.searchResults_),b.setGoToResultFunction(function(d,e){return a.goToResult(goog.asserts.assertExists(d),e)}),b.setScroll(new goog.math.Coordinate(0,0)))}; module$exports$ocean$search$SearchSession.SearchSession.prototype.goToResult=function(a,b,c){module$contents$ocean$viewport$DocumentViewport_DocumentViewport.enableSearchAutoUpdate(!0);this.manager_.searchBar_.renderResult(a);var d=this.manager_.viewer_;a=d.pageInfoSet_.getPageInfoByPid(a.getPageId());if(!a)return null;var e=d.getViewport();e instanceof ocean.books.VerticalViewport||e instanceof ocean.books.TwoPageViewport||(e=this.manager_.previousViewportClass_,e==ocean.books.TwoPageViewport?d.setViewportClass(ocean.books.TwoPageViewport): d.setViewportClass(ocean.books.VerticalViewport));if(b)return d.setPageId(b),null;if(c)return d.goToPageLabel(c),null;d.goToSearchResult(a);return a};module$exports$ocean$search$SearchSession.SearchSession.prototype.endSession=function(){this.manager_.viewer_.searchState_.setQuery("");ocean.entitypage.Util.isOutputTextViewport()&&this.textViewportSearchManager_.enableSnippetView(!1)}; module$exports$ocean$search$SearchSession.SearchSession.prototype.disposeInternal=function(){module$contents$goog$dispose_dispose(this.scrollbar_);module$contents$ocean$EventManager_EventManager.prototype.disposeInternal.call(this)};ocean.util.uri={}; var module$contents$ocean$util$uri_BASE_URL_ARGS_TO_CARRY="ganpub ganclk dapp source_ip source_country source_domain authuser".split(" "),module$contents$ocean$util$uri_setDefaultParameters=function(a,b){b=b===void 0?window.location.href:b;var c=new goog.Uri(b);a.setParameterValue("hl","en");(b=c.getParameterValue("output"))&&a.setParameterValue("output",b);b=c.getParameterValue("source");b=="ge-ipad-app"?(a.setParameterValue("dapp","2"),a.removeParameter("output")):b=="ge-tablet-app"?(a.setParameterValue("dapp", "4"),a.removeParameter("output")):b=="ge-ip-app"?a.setParameterValue("dapp","1"):b=="ge-android-app"&&a.setParameterValue("dapp","3");c.getParameterValue("authuser")||a.removeParameter("authuser");module$contents$ocean$util$uri_BASE_URL_ARGS_TO_CARRY.forEach(function(d){var e=c.getParameterValue(d);e&&a.setParameterValue(d,e)})},module$contents$ocean$util$uri_getAcsHelpUrl=function(a){var b=new goog.Uri(window.location.href);b=b.getPath().split("/");goog.asserts.assert(b.length,"Must have at least one entry for path"); goog.asserts.assert(b[1].match(/(e|)books/),"Path start should either be books or ebooks");b=new goog.Uri("/"+b[1]);module$contents$ocean$util$uri_setDefaultParameters(b);b.setParameterValue("output","acs_help");b.setParameterValue("id",a);return b.toString()},module$contents$ocean$util$uri_maybeAddLangParam=function(a){var b=new goog.Uri(window.location.href),c=new goog.Uri(a);return b.getParameterValue("hl")?c.setParameterValue("hl",b.getParameterValue("hl")).toString():a}; ocean.util.uri.BASE_URL_ARGS_TO_CARRY=module$contents$ocean$util$uri_BASE_URL_ARGS_TO_CARRY;ocean.util.uri.getAcsHelpUrl=module$contents$ocean$util$uri_getAcsHelpUrl;ocean.util.uri.maybeAddLangParam=module$contents$ocean$util$uri_maybeAddLangParam;ocean.util.uri.setDefaultParameters=module$contents$ocean$util$uri_setDefaultParameters;goog.dom.Attr={ACCEPT:"accept",ACCEPT_CHARSET:"accept-charset",ACCESSKEY:"accesskey",ACTION:"action",ALIGN:"align",ALT:"alt",ARIA_ACTIVEDESCENDANT:"aria-activedescendant",ARIA_ATOMIC:"aria-atomic",ARIA_AUTOCOMPLETE:"aria-autocomplete",ARIA_BUSY:"aria-busy",ARIA_CHECKED:"aria-checked",ARIA_COLCOUNT:"aria-colcount",ARIA_COLINDEX:"aria-colindex",ARIA_COLSPAN:"aria-colspan",ARIA_CONTROLS:"aria-controls",ARIA_CURRENT:"aria-current",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_DETAILS:"aria-details",ARIA_DISABLED:"aria-disabled", ARIA_DROPEFFECT:"aria-dropeffect",ARIA_ERRORMESSAGE:"aria-errormessage",ARIA_EXPANDED:"aria-expanded",ARIA_FLOWTO:"aria-flowto",ARIA_GRABBED:"aria-grabbed",ARIA_HASPOPUP:"aria-haspopup",ARIA_HIDDEN:"aria-hidden",ARIA_INVALID:"aria-invalid",ARIA_KEYSHORTCUTS:"aria-keyshortcuts",ARIA_LABEL:"aria-label",ARIA_LABELLEDBY:"aria-labelledby",ARIA_LEVEL:"aria-level",ARIA_LIVE:"aria-live",ARIA_MODAL:"aria-modal",ARIA_MULTILINE:"aria-multiline",ARIA_MULTISELECTABLE:"aria-multiselectable",ARIA_ORIENTATION:"aria-orientation", ARIA_OWNS:"aria-owns",ARIA_PLACEHOLDER:"aria-placeholder",ARIA_POSINSET:"aria-posinset",ARIA_PRESSED:"aria-pressed",ARIA_READONLY:"aria-readonly",ARIA_RELEVANT:"aria-relevant",ARIA_REQUIRED:"aria-required",ARIA_ROLEDESCRIPTION:"aria-roledescription",ARIA_ROWCOUNT:"aria-rowcount",ARIA_ROWINDEX:"aria-rowindex",ARIA_ROWSPAN:"aria-rowspan",ARIA_SELECTED:"aria-selected",ARIA_SETSIZE:"aria-setsize",ARIA_SORT:"aria-sort",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUENOW:"aria-valuenow", ARIA_VALUETEXT:"aria-valuetext",ASYNC:"async",AUTOCOMPLETE:"autocomplete",AUTOFOCUS:"autofocus",AUTOPLAY:"autoplay",AUTOSAVE:"autosave",BGCOLOR:"bgcolor",BORDER:"border",BUFFERED:"buffered",CHALLENGE:"challenge",CELLPADDING:"cellpadding",CELLSPACING:"cellspacing",CHARSET:"charset",CHECKED:"checked",CITE:"cite",CLASS:"class",CODE:"code",CODEBASE:"codebase",COLOR:"color",COLS:"cols",COLSPAN:"colspan",CONTENT:"content",CONTENTEDITABLE:"contenteditable",CONTEXTMENU:"contextmenu",CONTROLS:"controls",COORDS:"coords", DATA:"data",DATETIME:"datetime",DEFAULT:"default",DEFER:"defer",DIR:"dir",DIRNAME:"dirname",DISABLED:"disabled",DOWNLOAD:"download",DRAGGABLE:"draggable",DROPZONE:"dropzone",ENCTYPE:"enctype",FOR:"for",FORM:"form",FORMACTION:"formaction",HEADERS:"headers",HEIGHT:"height",HIDDEN:"hidden",HIGH:"high",HREF:"href",HREFLANG:"hreflang",HTTP_EQUIV:"http-equiv",ICON:"icon",ID:"id",ISMAP:"ismap",ITEMPROP:"itemprop",KEYTYPE:"keytype",KIND:"kind",LABEL:"label",LANG:"lang",LANGUAGE:"language",LIST:"list",LOOP:"loop", LOW:"low",MANIFEST:"manifest",MAX:"max",MAXLENGTH:"maxlength",MEDIA:"media",METHOD:"method",MIN:"min",MULTIPLE:"multiple",MUTED:"muted",NAME:"name",NOVALIDATE:"novalidate",ONBLUR:"onblur",ONCHANGE:"onchange",ONCLICK:"onclick",ONDBLCLICK:"ondblclick",ONFOCUS:"onfocus",ONKEYDOWN:"onkeydown",ONKEYPRESS:"onkeypress",ONKEYUP:"onkeyup",ONLOAD:"onload",ONMOUSEDOWN:"onmousedown",ONMOUSEMOVE:"onmousemove",ONMOUSEOUT:"onmouseout",ONMOUSEOVER:"onmouseover",ONMOUSEUP:"onmouseup",ONRESET:"onreset",ONSELECT:"onselect", ONSUBMIT:"onsubmit",ONUNLOAD:"onunload",OPEN:"open",OPTIMUM:"optimum",PATTERN:"pattern",PING:"ping",PLACEHOLDER:"placeholder",POSTER:"poster",PRELOAD:"preload",RADIOGROUP:"radiogroup",READONLY:"readonly",REL:"rel",REQUIRED:"required",REVERSED:"reversed",ROLE:"role",ROWS:"rows",ROWSPAN:"rowspan",SANDBOX:"sandbox",SCOPE:"scope",SCOPED:"scoped",SEAMLESS:"seamless",SELECTED:"selected",SHAPE:"shape",SIZE:"size",SIZES:"sizes",SPAN:"span",SPELLCHECK:"spellcheck",SRC:"src",SRCDOC:"srcdoc",SRCLANG:"srclang", SRCSET:"srcset",START:"start",STEP:"step",STYLE:"style",SUMMARY:"summary",TABINDEX:"tabindex",TARGET:"target",TITLE:"title",TRANSLATE:"translate",TYPE:"type",USEMAP:"usemap",VALUE:"value",WIDTH:"width",WRAP:"wrap"};goog.ui.MenuItemRenderer=function(){this.classNameCache_=[]};goog.inherits(goog.ui.MenuItemRenderer,goog.ui.ControlRenderer);goog.addSingletonGetter(goog.ui.MenuItemRenderer);goog.ui.MenuItemRenderer.CSS_CLASS="goog-menuitem";goog.ui.MenuItemRenderer.CompositeCssClassIndex_={HOVER:0,CHECKBOX:1,CONTENT:2}; goog.ui.MenuItemRenderer.prototype.getCompositeCssClass_=function(a){var b=this.classNameCache_[a];if(!b){switch(a){case goog.ui.MenuItemRenderer.CompositeCssClassIndex_.HOVER:b=this.getStructuralCssClass()+"-highlight";break;case goog.ui.MenuItemRenderer.CompositeCssClassIndex_.CHECKBOX:b=this.getStructuralCssClass()+"-checkbox";break;case goog.ui.MenuItemRenderer.CompositeCssClassIndex_.CONTENT:b=this.getStructuralCssClass()+"-content"}this.classNameCache_[a]=b}return b}; goog.ui.MenuItemRenderer.prototype.getAriaRole=function(){return goog.a11y.aria.Role.MENUITEM};goog.ui.MenuItemRenderer.prototype.createDom=function(a){var b=a.getDomHelper().createDom(goog.dom.TagName.DIV,this.getClassNames(a).join(" "),this.createContent(a.getContent(),a.getDomHelper()));this.setEnableCheckBoxStructure(a,b,a.isSupportedState(goog.ui.Component.State.SELECTED)||a.isSupportedState(goog.ui.Component.State.CHECKED));return b}; goog.ui.MenuItemRenderer.prototype.getContentElement=function(a){return a&&a.firstChild};goog.ui.MenuItemRenderer.prototype.decorate=function(a,b){goog.asserts.assert(b);this.hasContentStructure(b)||b.appendChild(this.createContent(b.childNodes,a.getDomHelper()));goog.dom.classlist.contains(b,"goog-option")&&(a.setCheckable(!0),this.setCheckable(a,b,!0));return goog.ui.MenuItemRenderer.superClass_.decorate.call(this,a,b)}; goog.ui.MenuItemRenderer.prototype.setContent=function(a,b){var c=this.getContentElement(a),d=this.hasCheckBoxStructure(a)?c.firstChild:null;goog.ui.MenuItemRenderer.superClass_.setContent.call(this,a,b);d&&!this.hasCheckBoxStructure(a)&&c.insertBefore(d,c.firstChild||null)}; goog.ui.MenuItemRenderer.prototype.hasContentStructure=function(a){a=goog.dom.getFirstElementChild(a);var b=this.getCompositeCssClass_(goog.ui.MenuItemRenderer.CompositeCssClassIndex_.CONTENT);return!!a&&goog.dom.classlist.contains(a,b)};goog.ui.MenuItemRenderer.prototype.createContent=function(a,b){var c=this.getCompositeCssClass_(goog.ui.MenuItemRenderer.CompositeCssClassIndex_.CONTENT);return b.createDom(goog.dom.TagName.DIV,c,a)}; goog.ui.MenuItemRenderer.prototype.setSelectable=function(a,b,c){a&&b&&this.setEnableCheckBoxStructure(a,b,c)};goog.ui.MenuItemRenderer.prototype.setCheckable=function(a,b,c){a&&b&&this.setEnableCheckBoxStructure(a,b,c)};goog.ui.MenuItemRenderer.prototype.hasCheckBoxStructure=function(a){if(a=this.getContentElement(a)){a=a.firstChild;var b=this.getCompositeCssClass_(goog.ui.MenuItemRenderer.CompositeCssClassIndex_.CHECKBOX);return!!a&&goog.dom.isElement(a)&&goog.dom.classlist.contains(a,b)}return!1}; goog.ui.MenuItemRenderer.prototype.setEnableCheckBoxStructure=function(a,b,c){this.setAriaRole(b,a.getPreferredAriaRole());this.setAriaStates(a,b);c!=this.hasCheckBoxStructure(b)&&(goog.dom.classlist.enable(b,"goog-option",c),b=this.getContentElement(b),c?(c=this.getCompositeCssClass_(goog.ui.MenuItemRenderer.CompositeCssClassIndex_.CHECKBOX),b.insertBefore(a.getDomHelper().createDom(goog.dom.TagName.DIV,c),b.firstChild||null)):b.removeChild(b.firstChild))}; goog.ui.MenuItemRenderer.prototype.getClassForState=function(a){switch(a){case goog.ui.Component.State.HOVER:return this.getCompositeCssClass_(goog.ui.MenuItemRenderer.CompositeCssClassIndex_.HOVER);case goog.ui.Component.State.CHECKED:case goog.ui.Component.State.SELECTED:return"goog-option-selected";default:return goog.ui.MenuItemRenderer.superClass_.getClassForState.call(this,a)}}; goog.ui.MenuItemRenderer.prototype.getStateFromClass=function(a){var b=this.getCompositeCssClass_(goog.ui.MenuItemRenderer.CompositeCssClassIndex_.HOVER);switch(a){case "goog-option-selected":return goog.ui.Component.State.CHECKED;case b:return goog.ui.Component.State.HOVER;default:return goog.ui.MenuItemRenderer.superClass_.getStateFromClass.call(this,a)}};goog.ui.MenuItemRenderer.prototype.getCssClass=function(){return goog.ui.MenuItemRenderer.CSS_CLASS};goog.ui.MenuItem=function(a,b,c,d){goog.ui.Control.call(this,a,d||goog.ui.MenuItemRenderer.getInstance(),c);this.setValue(b)};goog.inherits(goog.ui.MenuItem,goog.ui.Control);goog.ui.MenuItem.MNEMONIC_WRAPPER_CLASS_="goog-menuitem-mnemonic-separator";goog.ui.MenuItem.ACCELERATOR_CLASS="goog-menuitem-accel";goog.ui.MenuItem.prototype.getValue=function(){var a=this.model_;return a!=null?a:this.getCaption()};goog.ui.MenuItem.prototype.setValue=function(a){this.setModel(a)}; goog.ui.MenuItem.prototype.setSupportedState=function(a,b){goog.ui.MenuItem.superClass_.setSupportedState.call(this,a,b);switch(a){case goog.ui.Component.State.SELECTED:this.setSelectableInternal_(b);break;case goog.ui.Component.State.CHECKED:this.setCheckableInternal_(b)}};goog.ui.MenuItem.prototype.setSelectable=function(a){this.setSupportedState(goog.ui.Component.State.SELECTED,a)}; goog.ui.MenuItem.prototype.setSelectableInternal_=function(a){this.isChecked()&&!a&&this.setChecked(!1);var b=this.getElement();b&&this.renderer_.setSelectable(this,b,a)};goog.ui.MenuItem.prototype.setCheckable=function(a){this.setSupportedState(goog.ui.Component.State.CHECKED,a)};goog.ui.MenuItem.prototype.setCheckableInternal_=function(a){var b=this.getElement();b&&this.renderer_.setCheckable(this,b,a)}; goog.ui.MenuItem.prototype.getCaption=function(){var a=this.getContent();if(Array.isArray(a)){var b=goog.ui.MenuItem.ACCELERATOR_CLASS,c=goog.ui.MenuItem.MNEMONIC_WRAPPER_CLASS_;a=module$contents$goog$array_map(a,function(d){return goog.dom.isElement(d)&&(goog.dom.classlist.contains(d,b)||goog.dom.classlist.contains(d,c))?"":goog.dom.getRawTextContent(d)}).join("");return goog.string.collapseBreakingSpaces(a)}return goog.ui.MenuItem.superClass_.getCaption.call(this)}; goog.ui.MenuItem.prototype.handleMouseUp=function(a){var b=this.getParent();if(b){var c=b.openingCoords;b.openingCoords=null;if(c&&typeof a.clientX==="number"&&(b=new goog.math.Coordinate(a.clientX,a.clientY),goog.math.Coordinate.equals(c,b)))return}goog.ui.MenuItem.superClass_.handleMouseUp.call(this,a)}; goog.ui.MenuItem.prototype.handleKeyEventInternal=function(a){return a.keyCode==this.mnemonicKey_&&this.performActionInternal(a)?!0:goog.ui.MenuItem.superClass_.handleKeyEventInternal.call(this,a)};goog.ui.MenuItem.prototype.getMnemonic=function(){return this.mnemonicKey_};goog.ui.registry.setDecoratorByClassName(goog.ui.MenuItemRenderer.CSS_CLASS,function(){return new goog.ui.MenuItem(null)}); goog.ui.MenuItem.prototype.getPreferredAriaRole=function(){return this.isSupportedState(goog.ui.Component.State.CHECKED)?goog.a11y.aria.Role.MENUITEMCHECKBOX:this.isSupportedState(goog.ui.Component.State.SELECTED)?goog.a11y.aria.Role.MENUITEMRADIO:goog.ui.MenuItem.superClass_.getPreferredAriaRole.call(this)};goog.ui.MenuItem.prototype.getParent=function(){return goog.ui.Control.prototype.getParent.call(this)};goog.ui.MenuItem.prototype.getParentEventTarget=function(){return goog.ui.Control.prototype.getParentEventTarget.call(this)};goog.positioning.MenuAnchoredPosition=function(a,b,c,d){goog.positioning.AnchoredViewportPosition.call(this,a,b,c||d);if(c||d)a=goog.positioning.Overflow.ADJUST_X_EXCEPT_OFFSCREEN,d=d?goog.positioning.Overflow.RESIZE_HEIGHT:goog.positioning.Overflow.ADJUST_Y_EXCEPT_OFFSCREEN,this.setLastResortOverflow(a|d)};goog.inherits(goog.positioning.MenuAnchoredPosition,goog.positioning.AnchoredViewportPosition);goog.ui.MenuHeaderRenderer=function(){};goog.inherits(goog.ui.MenuHeaderRenderer,goog.ui.ControlRenderer);goog.addSingletonGetter(goog.ui.MenuHeaderRenderer);goog.ui.MenuHeaderRenderer.CSS_CLASS="goog-menuheader";goog.ui.MenuHeaderRenderer.prototype.getCssClass=function(){return goog.ui.MenuHeaderRenderer.CSS_CLASS};goog.ui.MenuHeader=function(a,b,c){goog.ui.Control.call(this,a,c||goog.ui.MenuHeaderRenderer.getInstance(),b);this.setSupportedState(goog.ui.Component.State.DISABLED,!1);this.setSupportedState(goog.ui.Component.State.HOVER,!1);this.setSupportedState(goog.ui.Component.State.ACTIVE,!1);this.setSupportedState(goog.ui.Component.State.FOCUSED,!1);this.setStateInternal(goog.ui.Component.State.DISABLED)};goog.inherits(goog.ui.MenuHeader,goog.ui.Control); goog.ui.registry.setDecoratorByClassName(goog.ui.MenuHeaderRenderer.CSS_CLASS,function(){return new goog.ui.MenuHeader(null)});goog.ui.MenuSeparatorRenderer=function(){};goog.inherits(goog.ui.MenuSeparatorRenderer,goog.ui.ControlRenderer);goog.addSingletonGetter(goog.ui.MenuSeparatorRenderer);goog.ui.MenuSeparatorRenderer.CSS_CLASS="goog-menuseparator";goog.ui.MenuSeparatorRenderer.prototype.createDom=function(a){return a.getDomHelper().createDom(goog.dom.TagName.DIV,this.getCssClass())}; goog.ui.MenuSeparatorRenderer.prototype.decorate=function(a,b){b.id&&a.setId(b.id);if(b.tagName==goog.dom.TagName.HR){var c=b;b=this.createDom(a);goog.dom.insertSiblingBefore(b,c);goog.dom.removeNode(c)}else goog.dom.classlist.add(b,this.getCssClass());return b};goog.ui.MenuSeparatorRenderer.prototype.setContent=function(){};goog.ui.MenuSeparatorRenderer.prototype.getCssClass=function(){return goog.ui.MenuSeparatorRenderer.CSS_CLASS};goog.ui.Separator=function(a,b){goog.ui.Control.call(this,null,a||goog.ui.MenuSeparatorRenderer.getInstance(),b);this.setSupportedState(goog.ui.Component.State.DISABLED,!1);this.setSupportedState(goog.ui.Component.State.HOVER,!1);this.setSupportedState(goog.ui.Component.State.ACTIVE,!1);this.setSupportedState(goog.ui.Component.State.FOCUSED,!1);this.setStateInternal(goog.ui.Component.State.DISABLED)};goog.inherits(goog.ui.Separator,goog.ui.Control); goog.ui.Separator.prototype.enterDocument=function(){goog.ui.Separator.superClass_.enterDocument.call(this);var a=this.getElement();goog.asserts.assert(a,"The DOM element for the separator cannot be null.");goog.a11y.aria.setRole(a,"separator")};goog.ui.registry.setDecoratorByClassName(goog.ui.MenuSeparatorRenderer.CSS_CLASS,function(){return new goog.ui.Separator});goog.ui.MenuRenderer=function(a){goog.ui.ContainerRenderer.call(this,a||goog.a11y.aria.Role.MENU)};goog.inherits(goog.ui.MenuRenderer,goog.ui.ContainerRenderer);goog.addSingletonGetter(goog.ui.MenuRenderer);goog.ui.MenuRenderer.CSS_CLASS="goog-menu";goog.ui.MenuRenderer.prototype.canDecorate=function(a){return a.tagName==goog.dom.TagName.UL||goog.ui.MenuRenderer.superClass_.canDecorate.call(this,a)}; goog.ui.MenuRenderer.prototype.getDecoratorForChild=function(a){return a.tagName==goog.dom.TagName.HR?new goog.ui.Separator:goog.ui.MenuRenderer.superClass_.getDecoratorForChild.call(this,a)};goog.ui.MenuRenderer.prototype.containsElement=function(a,b){return goog.dom.contains(a.getElement(),b)};goog.ui.MenuRenderer.prototype.getCssClass=function(){return goog.ui.MenuRenderer.CSS_CLASS}; goog.ui.MenuRenderer.prototype.initializeDom=function(a){goog.ui.MenuRenderer.superClass_.initializeDom.call(this,a);a=a.getElement();goog.asserts.assert(a,"The menu DOM element cannot be null.");goog.a11y.aria.setState(a,goog.a11y.aria.State.HASPOPUP,"true")};goog.ui.MenuSeparator=function(a){goog.ui.Separator.call(this,goog.ui.MenuSeparatorRenderer.getInstance(),a)};goog.inherits(goog.ui.MenuSeparator,goog.ui.Separator);goog.ui.registry.setDecoratorByClassName(goog.ui.MenuSeparatorRenderer.CSS_CLASS,function(){return new goog.ui.Separator});goog.ui.Menu=function(a,b){goog.ui.Container.call(this,goog.ui.Container.Orientation.VERTICAL,b||goog.ui.MenuRenderer.getInstance(),a);this.setFocusable(!1)};goog.inherits(goog.ui.Menu,goog.ui.Container);goog.ui.Menu.EventType={BEFORE_SHOW:goog.ui.Component.EventType.BEFORE_SHOW,SHOW:goog.ui.Component.EventType.SHOW,BEFORE_HIDE:goog.ui.Component.EventType.HIDE,HIDE:goog.ui.Component.EventType.HIDE};goog.ui.Menu.CSS_CLASS=goog.ui.MenuRenderer.CSS_CLASS;goog.ui.Menu.prototype.allowAutoFocus_=!0; goog.ui.Menu.prototype.allowHighlightDisabled_=!1;goog.ui.Menu.prototype.getCssClass=function(){return this.renderer_.getCssClass()};goog.ui.Menu.prototype.containsElement=function(a){if(this.renderer_.containsElement(this,a))return!0;for(var b=this.getChildCount(),c=0;c<b;c++){var d=this.getChildAt(c);if(typeof d.containsElement=="function"&&d.containsElement(a))return!0}return!1};goog.ui.Menu.prototype.addItem=function(a){this.addChild(a,!0)}; goog.ui.Menu.prototype.addItemAt=function(a,b){this.addChildAt(a,b,!0)};goog.ui.Menu.prototype.removeItem=function(a){(a=this.removeChild(a,!0))&&a.dispose()};goog.ui.Menu.prototype.getItemAt=function(a){return this.getChildAt(a)};goog.ui.Menu.prototype.getItemCount=function(){return this.getChildCount()};goog.ui.Menu.prototype.getItems=function(){var a=[];this.forEachChild(function(b){a.push(b)});return a}; goog.ui.Menu.prototype.setPosition=function(a,b){var c=this.isVisible();c||goog.style.setElementShown(this.getElement(),!0);goog.style.setPageOffset(this.getElement(),a,b);c||goog.style.setElementShown(this.getElement(),!1)};goog.ui.Menu.prototype.getPosition=function(){return this.isVisible()?goog.style.getPageOffset(this.getElement()):null};goog.ui.Menu.prototype.setAllowAutoFocus=function(a){(this.allowAutoFocus_=a)&&this.setFocusable(!0)}; goog.ui.Menu.prototype.setVisible=function(a,b,c){(b=goog.ui.Menu.superClass_.setVisible.call(this,a,b))&&a&&this.isInDocument()&&this.allowAutoFocus_&&this.getKeyEventTarget().focus();this.openingCoords=a&&c&&typeof c.clientX==="number"?new goog.math.Coordinate(c.clientX,c.clientY):null;return b};goog.ui.Menu.prototype.handleEnterItem=function(a){this.allowAutoFocus_&&this.getKeyEventTarget().focus();return goog.ui.Menu.superClass_.handleEnterItem.call(this,a)}; goog.ui.Menu.prototype.canHighlightItem=function(a){return(this.allowHighlightDisabled_||a.isEnabled())&&a.isVisible()&&a.isSupportedState(goog.ui.Component.State.HOVER)};goog.ui.Menu.prototype.decorateInternal=function(a){this.decorateContent(a);goog.ui.Menu.superClass_.decorateInternal.call(this,a)}; goog.ui.Menu.prototype.handleKeyEventInternal=function(a){var b=goog.ui.Menu.superClass_.handleKeyEventInternal.call(this,a);b||this.forEachChild(function(c){!b&&c.getMnemonic&&c.mnemonicKey_==a.keyCode&&(this.isEnabled()&&this.setHighlighted(c),b=c.handleKeyEvent(a))},this);return b};goog.ui.Menu.prototype.setHighlightedIndex=function(a){goog.ui.Menu.superClass_.setHighlightedIndex.call(this,a);(a=this.getChildAt(a))&&goog.style.scrollIntoContainerView(a.getElement(),this.getElement())}; goog.ui.Menu.prototype.decorateContent=function(a){var b=this.renderer_;a=this.getDomHelper().getElementsByTagNameAndClass(goog.dom.TagName.DIV,b.getCssClass()+"-content",a);for(var c=a.length,d=0;d<c;d++)b.decorateChildren(this,a[d])};goog.ui.PopupMenu=function(a,b){goog.ui.Menu.call(this,a,b);this.setAllowAutoFocus(!0);this.setVisible(!1,!0);this.targets_=new goog.structs.Map};goog.inherits(goog.ui.PopupMenu,goog.ui.Menu);goog.ui.PopupMenu.prototype.toggleMode_=!1;goog.ui.PopupMenu.prototype.shiftOverride_=!1;goog.ui.PopupMenu.prototype.lastHide_=0; goog.ui.PopupMenu.prototype.decorateInternal=function(a){goog.ui.PopupMenu.superClass_.decorateInternal.call(this,a);(a=a.getAttribute("for")||a.htmlFor)&&this.attach(this.getDomHelper().getElement(a),goog.positioning.Corner.BOTTOM_LEFT)}; goog.ui.PopupMenu.prototype.enterDocument=function(){goog.ui.PopupMenu.superClass_.enterDocument.call(this);this.targets_.forEach(this.attachEvent_,this);var a=this.getHandler();a.listen(this,goog.ui.Component.EventType.ACTION,this.onAction_);a.listen(this.getDomHelper().getDocument(),goog.events.EventType.MOUSEDOWN,this.onDocClick,!0)}; goog.ui.PopupMenu.prototype.attach=function(a,b,c,d,e){this.isAttachTarget(a)||(b=this.createAttachTarget(a,b,c,d,e),this.isInDocument()&&this.attachEvent_(b),a=goog.partial(this.onMenuKeyboardAction_,a),this.getElement()&&this.getHandler().listen(this.getElement(),goog.events.EventType.KEYDOWN,a))}; goog.ui.PopupMenu.prototype.onMenuKeyboardAction_=function(a,b){if(b.keyCode==goog.events.KeyCodes.ESC)a.focus();else if(a=this.getChildAt(this.highlightedIndex_)){a=a.getElement();var c=new goog.events.BrowserEvent(b.event_,a);c.target=a;b.keyCode!=goog.events.KeyCodes.SPACE&&b.keyCode!=goog.events.KeyCodes.ENTER||goog.events.fireListeners(a,goog.events.EventType.KEYDOWN,!1,c);b.keyCode==goog.events.KeyCodes.SPACE&&this.hide()}}; goog.ui.PopupMenu.prototype.createAttachTarget=function(a,b,c,d,e){if(!a)return null;b={element_:a,targetCorner_:b,menuCorner_:c,eventType_:d?goog.events.EventType.CONTEXTMENU:goog.events.EventType.MOUSEDOWN,margin_:e};this.targets_.set(goog.getUid(a),b);return b};goog.ui.PopupMenu.prototype.isAttachTarget=function(a){return a?this.targets_.containsKey(goog.getUid(a)):!1}; goog.ui.PopupMenu.prototype.attachEvent_=function(a){this.getHandler().listen(a.element_,a.eventType_,this.onTargetClick_);a.eventType_!=goog.events.EventType.CONTEXTMENU&&this.getHandler().listen(a.element_,goog.events.EventType.KEYDOWN,this.onTargetKeyboardAction_)};goog.ui.PopupMenu.prototype.detach=function(a){if(!this.isAttachTarget(a))throw Error("Menu not attached to provided element, unable to detach.");a=goog.getUid(a);this.isInDocument()&&this.detachEvent_(this.targets_.get(a));this.targets_.remove(a)}; goog.ui.PopupMenu.prototype.detachEvent_=function(a){this.getHandler().unlisten(a.element_,a.eventType_,this.onTargetClick_)};goog.ui.PopupMenu.prototype.setToggleMode=function(a){this.toggleMode_=a}; goog.ui.PopupMenu.prototype.showWithPosition=function(a,b,c){var d=this.isVisible();this.isOrWasRecentlyVisible()&&this.toggleMode_?this.hide():this.dispatchEvent(goog.ui.Component.EventType.BEFORE_SHOW)&&(b=typeof b!="undefined"?b:goog.positioning.Corner.TOP_START,d||(this.getElement().style.visibility="hidden"),goog.style.setElementShown(this.getElement(),!0),a.reposition(this.getElement(),b,c),d||(this.getElement().style.visibility="visible"),this.setHighlightedIndex(-1),this.setVisible(!0))}; goog.ui.PopupMenu.prototype.showMenu=function(a,b,c){b=a.targetCorner_!==void 0?new goog.positioning.AnchoredViewportPosition(a.element_,a.targetCorner_,!0):new goog.positioning.ViewportClientPosition(b,c);b.setLastResortOverflow&&b.setLastResortOverflow(goog.positioning.Overflow.ADJUST_X|goog.positioning.Overflow.ADJUST_Y);this.showWithPosition(b,a.menuCorner_,a.margin_,a.element_)}; goog.ui.PopupMenu.prototype.showAtElement=function(a,b,c){this.showWithPosition(new goog.positioning.MenuAnchoredPosition(a,b,!0),c,null,a)};goog.ui.PopupMenu.prototype.hide=function(){this.isVisible()&&(this.setVisible(!1),this.isVisible()||(this.lastHide_=Date.now()))};goog.ui.PopupMenu.prototype.isOrWasRecentlyVisible=function(){return this.isVisible()||this.wasRecentlyHidden()};goog.ui.PopupMenu.prototype.wasRecentlyHidden=function(){return Date.now()-this.lastHide_<goog.ui.PopupBase.DEBOUNCE_DELAY_MS}; goog.ui.PopupMenu.prototype.onAction_=function(){this.hide()};goog.ui.PopupMenu.prototype.onTargetClick_=function(a){if(!this.shiftOverride_||!a.shiftKey||a.button!=goog.events.BrowserEvent.MouseButton.RIGHT)this.onTargetActivation_(a)};goog.ui.PopupMenu.prototype.onTargetKeyboardAction_=function(a){if(a.keyCode==goog.events.KeyCodes.SPACE||a.keyCode==goog.events.KeyCodes.ENTER||a.keyCode==goog.events.KeyCodes.DOWN)this.onTargetActivation_(a);a.keyCode==goog.events.KeyCodes.DOWN&&this.highlightFirst()}; goog.ui.PopupMenu.prototype.onTargetActivation_=function(a){for(var b=this.targets_.getKeys(),c=0;c<b.length;c++){var d=this.targets_.get(b[c]);if(d.element_==a.currentTarget){this.showMenu(d,a.clientX,a.clientY);a.preventDefault();a.stopPropagation();break}}};goog.ui.PopupMenu.prototype.onDocClick=function(a){this.isVisible()&&!this.containsElement(a.target)&&this.hide()};goog.ui.PopupMenu.prototype.handleBlur=function(a){goog.ui.PopupMenu.superClass_.handleBlur.call(this,a);this.hide()}; goog.ui.PopupMenu.prototype.disposeInternal=function(){goog.ui.PopupMenu.superClass_.disposeInternal.call(this);this.targets_&&(this.targets_.clear(),delete this.targets_)};var module$exports$ocean$search$SearchBar={SearchBar:function(a){module$contents$ocean$EventManager_EventManager.call(this);goog.asserts.assert(module$contents$ocean$search$SearchBar_searchElement_,"ocean.search.SearchBar.searchElement_ must have been set by this time.");this.flags_=a;this.useEntityPageStyling_=ocean.entitypage.Util.isSourceEntityPage(a);this.isOgenEligibleMobileViewport=goog.userAgent.MOBILE&&a&&a.isOgenEligibleMobileViewport;this.isOgenSearchBar_=this.useEntityPageStyling_||this.isOgenEligibleMobileViewport; this.selectedSortText_=this.sortDropdownButton_=null;this.isOgenSearchBar_?this.showOgenViewportSearchNav_(!0):(this.searchBar_=goog.dom.createElement(goog.dom.TagName.DIV),this.butterBar_=new jfk.ButterBar(this.searchBar_),this.butterBar_.render(module$contents$ocean$search$SearchBar_searchElement_),this.butterBar_.setVisible(!0),a=this.butterBar_.getElement(),goog.dom.classlist.add(a,"search-results-bar"),goog.dom.classlist.add(this.searchBar_,"search-results-bar-contents"));this.message_=this.isOgenSearchBar_? goog.asserts.assert(goog.dom.getElement("search-results-summ")):goog.dom.createElement(goog.dom.TagName.SPAN);this.isOgenSearchBar_||goog.dom.appendChild(this.searchBar_,this.message_);this.resultLinks_=this.isOgenSearchBar_?goog.asserts.assert(goog.dom.getElement("search-result-links")):goog.dom.createElement(goog.dom.TagName.SPAN);this.isOgenSearchBar_?this.renderOgenResultsBar_():(goog.dom.classlist.add(this.resultLinks_,"search-bar-result-links"),goog.dom.appendChild(this.searchBar_,this.resultLinks_), this.createDesktopResultLinks_());this.snippetLinks_=this.isOgenSearchBar_?goog.asserts.assert(goog.dom.getElement("search-snippet-links")):goog.dom.createElement(goog.dom.TagName.SPAN);this.isOgenSearchBar_?this.createAndDecorateSortDropdown_():(this.useEntityPageStyling_?(this.searchBarButtons_=goog.dom.createElement(goog.dom.TagName.DIV),this.createDesktopEntityPageSnippetLinks_()):(this.sortedByPagesLinks_=goog.dom.createElement(goog.dom.TagName.SPAN),this.sortedByRelevanceLinks_=goog.dom.createElement(goog.dom.TagName.SPAN), this.createDesktopClassicSnippetLinks_()),goog.dom.classlist.add(this.snippetLinks_,"search-bar-snippet-links"));this.isOgenSearchBar_||(this.createCloseLinks_(),goog.style.setUnselectable(this.searchBar_,!0))}};$jscomp.inherits(module$exports$ocean$search$SearchBar.SearchBar,module$contents$ocean$EventManager_EventManager);module$exports$ocean$search$SearchBar.SearchBar.prototype.setSession=function(a){this.session_=goog.asserts.assert(a)}; module$exports$ocean$search$SearchBar.SearchBar.setSearchElement=function(a){module$contents$ocean$search$SearchBar_searchElement_=a};module$exports$ocean$search$SearchBar.SearchBar.setToolbarElement=function(a){module$contents$ocean$search$SearchBar_toolbarElement_=a};module$exports$ocean$search$SearchBar.SearchBar.setResizeManager=function(a){module$contents$ocean$search$SearchBar_resizeManager_=a}; module$exports$ocean$search$SearchBar.SearchBar.prototype.renderSnippetView=function(){if(this.sortDropdownButton_)this.enableOrderByDropdown_(!0);else{var a=this.session_.sort_==module$exports$ocean$search$SearchSessionSortOrder.SearchSessionSortOrder.PAGES;goog.style.setElementShown(this.sortedByPagesLinks_,a);goog.style.setElementShown(this.sortedByRelevanceLinks_,!a)}this.isOgenSearchBar_?(this.showOgenViewportSearchNav_(!0),(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(this.message_, (0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(this.getMobileSnippetViewSummary(this.session_.searchResults_.resultItemArray_.length))),this.message_.removeAttribute(goog.dom.Attr.ARIA_LABEL)):(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(this.message_,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(module$contents$ocean$msg_getGoogleBooksSnippetViewSummary("<b>"+ this.session_.searchResults_.resultItemArray_.length+"</b>","<b>"+this.session_.searchResults_.getEscapedUserQuery()+"</b>")));this.showSnippetLinks_(!0)}; module$exports$ocean$search$SearchBar.SearchBar.prototype.renderResult=function(a){this.showSnippetLinks_(!1);this.index_=module$contents$goog$array_indexOf(this.session_.searchResults_.resultItemArray_,a);this.isOgenSearchBar_?(this.showOgenViewportSearchNav_(!0),(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(this.message_,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(this.getMobileResultViewSummary(this.index_+ 1,this.session_.searchResults_.resultItemArray_.length))),goog.a11y.aria.setLabel(this.message_,this.getMobileResultViewSummaryAriaLabel(this.index_+1,this.session_.searchResults_.resultItemArray_.length)),this.isOgenSearchBar_&&this.message_.setAttribute("data-result-num",this.index_)):(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(this.message_,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(module$contents$ocean$msg_getGoogleBooksResultViewSummary("<b>"+ (this.index_+1)+"</b>","<b>"+this.session_.searchResults_.resultItemArray_.length+"</b>","<b>"+this.session_.searchResults_.getEscapedUserQuery()+"</b>")))}; module$exports$ocean$search$SearchBar.SearchBar.prototype.renderOgenResultsBar_=function(){var a=this;ocean.entitypage.Util.isOutputTextViewport()||(this.createOgenButtonLink_(goog.asserts.assert(goog.dom.getElement("search-result-prev")),function(){a.handleMoveClick_(-1)},"Previous result"),this.createOgenButtonLink_(goog.asserts.assert(goog.dom.getElement("search-result-next")),function(){a.handleMoveClick_(1)},"Next result"));this.createOgenButtonLink_(goog.asserts.assert(goog.dom.getElement("search-result-viewall")), function(){a.handleViewAllClick_()},"View all");this.createOgenButtonLink_(goog.asserts.assert(goog.dom.getElement("search-close")),function(){a.handleReturnClick_()},"Close search")}; module$exports$ocean$search$SearchBar.SearchBar.prototype.createDesktopResultLinks_=function(){var a=this,b=goog.dom.createElement(goog.dom.TagName.SPAN);(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(b,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)("- "));goog.dom.classlist.add(b,"search-bar-link-spacer");goog.dom.appendChild(this.resultLinks_,b);this.createLink_(this.resultLinks_,"\u2039 Previous", function(){a.handleMoveClick_(-1)},"Previous");b=goog.dom.createElement(goog.dom.TagName.SPAN);(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(b,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(" "));goog.dom.classlist.add(b,"search-bar-link-spacer");goog.dom.appendChild(this.resultLinks_,b);this.createLink_(this.resultLinks_,"Next \u203a",function(){a.handleMoveClick_(1)},"Next");b=goog.dom.createElement(goog.dom.TagName.SPAN); (0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(b,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(" - "));goog.dom.classlist.add(b,"search-bar-link-spacer");goog.dom.appendChild(this.resultLinks_,b);this.createLink_(this.resultLinks_,"View all",function(){a.handleViewAllClick_()})}; module$exports$ocean$search$SearchBar.SearchBar.prototype.createDesktopClassicSnippetLinks_=function(){var a=this;goog.dom.appendChild(this.searchBar_,this.snippetLinks_);var b=goog.dom.createElement(goog.dom.TagName.SPAN);(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(b,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)("- "));goog.dom.classlist.add(b,"search-bar-link-spacer");goog.dom.appendChild(this.snippetLinks_, b);goog.dom.appendChild(this.snippetLinks_,goog.dom.createTextNode("Order by: "));goog.dom.appendChild(this.snippetLinks_,this.sortedByPagesLinks_);this.createLink_(this.sortedByPagesLinks_,"relevance",function(){a.handleSortClick_(module$exports$ocean$search$SearchSessionSortOrder.SearchSessionSortOrder.RELEVANCE)},"Order by relevance");b=goog.dom.createElement(goog.dom.TagName.SPAN);(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(b,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(" | <b>pages</b>")); goog.dom.appendChild(this.sortedByPagesLinks_,b);goog.dom.appendChild(this.snippetLinks_,this.sortedByRelevanceLinks_);b=goog.dom.createElement(goog.dom.TagName.SPAN);(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(b,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)("<b>relevance</b> | "));goog.dom.appendChild(this.sortedByRelevanceLinks_,b);this.createLink_(this.sortedByRelevanceLinks_,"pages",function(){a.handleSortClick_(module$exports$ocean$search$SearchSessionSortOrder.SearchSessionSortOrder.PAGES)}, "Order by pages")};module$exports$ocean$search$SearchBar.SearchBar.prototype.createDesktopEntityPageSnippetLinks_=function(){goog.dom.classlist.add(this.searchBarButtons_,"search-bar-result-buttons");goog.dom.appendChild(this.searchBar_,this.searchBarButtons_);goog.dom.appendChild(this.searchBarButtons_,this.snippetLinks_);goog.dom.classlist.addAll(this.snippetLinks_,["search-bar-sort-dropdown-button-container","search-bar-close-link"]);this.createAndDecorateSortDropdown_()}; module$exports$ocean$search$SearchBar.SearchBar.prototype.createAndDecorateSortDropdown_=function(){var a=this;this.sortDropdownButton_=this.isOgenSearchBar_?goog.asserts.assert(goog.dom.getElement("sort-dropdown-button")):goog.dom.createDom(goog.dom.TagName.A,{"class":"search-bar-sort-dropdown-link"});var b=this.isOgenSearchBar_?goog.asserts.assert(goog.dom.getElement("sort-dropdown-label")):goog.dom.createDom(goog.dom.TagName.SPAN,{"class":"search-bar-sort-dropdown-text"});goog.dom.setTextContent(b, "Order by ");this.selectedSortText_=goog.dom.createDom(goog.dom.TagName.SPAN,{"class":"search-bar-sort-dropdown-selected"});goog.dom.setTextContent(this.selectedSortText_,"pages");var c=goog.asserts.assert(this.sortDropdownButton_);goog.a11y.aria.setLabel(c,"Order by pages");c.setAttribute("title","Order by pages");goog.dom.appendChild(b,this.selectedSortText_);b=new goog.ui.PopupMenu;var d=new goog.ui.MenuItem("relevance");d.setAriaLabel("Order by relevance");b.addChild(d,!0);goog.dom.classlist.add(d.getElement(), "search-bar-sort-dropdown-item");var e=new goog.ui.MenuItem("pages");e.setAriaLabel("Order by pages");b.addChild(e,!0);goog.dom.classlist.addAll(e.getElement(),["search-bar-sort-dropdown-item","search-bar-sort-dropdown-item-selected"]);b.setToggleMode(!0);this.isOgenEligibleMobileViewport?b.render(this.snippetLinks_):b.render(document.body);goog.dom.classlist.add(b.getElement(),"sort-dropdown-menu");c=goog.dom.createElement(goog.dom.TagName.SPAN);c.id="current-sort-label";goog.dom.setTextContent(c, "Current");goog.style.setElementShown(c,!1);b.getElement().appendChild(c);goog.a11y.aria.setState(goog.asserts.assertExists(e.getElement()),goog.a11y.aria.State.DESCRIBEDBY,"current-sort-label");this.useEntityPageStyling_?(b.attach(this.sortDropdownButton_,goog.positioning.Corner.TOP_END,goog.positioning.Corner.BOTTOM_END),goog.dom.classlist.add(b.getElement(),"popup-menu")):b.attach(this.sortDropdownButton_,goog.positioning.Corner.BOTTOM_END,goog.positioning.Corner.TOP_END);this.getHandler().listen(b, goog.ui.Component.EventType.ACTION,function(f){a.handleOrderBySelection_(f,d.getElement(),e.getElement())});this.getHandler().listen(b,goog.events.EventType.KEYDOWN,function(f){f.keyCode!=goog.events.KeyCodes.SPACE&&f.keyCode!=goog.events.KeyCodes.ENTER||a.handleOrderBySelection_(f,d.getElement(),e.getElement())});this.isOgenEligibleMobileViewport&&this.getHandler().listen(b,goog.ui.PopupBase.EventType.BEFORE_SHOW,function(){var f=a.sortDropdownButton_.offsetWidth-32;goog.style.setWidth(d.getElement(), f);goog.style.setWidth(e.getElement(),f)})}; module$exports$ocean$search$SearchBar.SearchBar.prototype.createCloseLinks_=function(){var a=this,b=goog.dom.createElement(goog.dom.TagName.SPAN);goog.dom.classlist.add(b,"search-bar-close-link-container");this.useEntityPageStyling_?goog.dom.appendChild(this.searchBarButtons_,b):goog.dom.appendChild(this.searchBar_,b);this.getHandler().listen(b,goog.events.EventType.CLICK,this.handleReturnClick_);var c=this.createLink_(b,"Clear search",function(){a.handleReturnClick_()});goog.dom.classlist.add(c, "search-bar-close-link");c=goog.dom.createElement(goog.dom.TagName.IMG);c.src="/googlebooks/images/close_x.gif";goog.dom.classlist.add(c,"search-bar-close-img");goog.dom.appendChild(b,c)}; module$exports$ocean$search$SearchBar.SearchBar.prototype.showSnippetLinks_=function(a){goog.style.setElementShown(module$contents$ocean$search$SearchBar_toolbarElement_,!a);goog.style.setElementShown(this.snippetLinks_,a);this.isOgenSearchBar_?(goog.style.setElementShown(this.resultLinks_,!a),a=!a&&this.session_.searchResults_.resultItemArray_.length==1,goog.dom.classlist.enable(this.resultLinks_,"toolbar-button-disabled",a),goog.a11y.aria.setState(this.resultLinks_,goog.a11y.aria.State.DISABLED, a)):goog.style.setElementShown(this.resultLinks_,!a&&this.session_.searchResults_.resultItemArray_.length>1);this.searchBar_&&goog.style.setElementShown(this.searchBar_,!0);module$contents$ocean$search$SearchBar_resizeManager_!=null&&module$contents$ocean$search$SearchBar_resizeManager_.resize()}; module$exports$ocean$search$SearchBar.SearchBar.prototype.renderBlank_=function(){this.sortDropdownButton_?this.enableOrderByDropdown_(!1):goog.style.setElementShown(this.snippetLinks_,!1);this.isOgenEligibleMobileViewport&&goog.style.setElementShown(this.snippetLinks_,!0);goog.style.setElementShown(this.resultLinks_,!1);goog.dom.removeChildren(this.message_)}; module$exports$ocean$search$SearchBar.SearchBar.prototype.renderLoading=function(){this.renderBlank_();(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(this.message_,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)("Loading..."));this.isOgenSearchBar_&&this.message_.removeAttribute(goog.dom.Attr.ARIA_LABEL)}; module$exports$ocean$search$SearchBar.SearchBar.prototype.renderNoResults=function(){var a=this;this.renderBlank_();var b=this.session_.searchResults_,c=b.getSpellSuggestion(),d=null;c&&!this.isOgenSearchBar_&&(d=goog.dom.createElement(goog.dom.TagName.SPAN),(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(d,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)("Did you mean: ")),this.createLink_(d,c,function(){a.handleSpellSuggestionClick_(goog.asserts.assert(c))})); var e=goog.dom.createElement(goog.dom.TagName.SPAN);this.isOgenSearchBar_?(b=this.getMobileNoResultsMsg(),(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(e,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(b))):(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(e,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(goog.string.trim(module$contents$ocean$msg_getNoResultsFoundInBook(b.getEscapedUserQuery())))); b=goog.dom.createElement(goog.dom.TagName.A);this.isOgenSearchBar_||((0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(b,(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)("Search all books")),b.setAttribute("target","_top"),goog.dom.classlist.add(b,"sitb-action-link"));var f=ocean.util.Url.getFirstPathComponent();f=f=="patents"?new goog.Uri("https://www.google.com/search?tbm=pts&tbo=p&hl=en"):new goog.Uri("https://www.google.com/search?tbm=bks&tbo=p"); module$contents$ocean$util$uri_setDefaultParameters(f);f.getParameterValue("output")=="embed"&&f.removeParameter("output");f.setParameterValue("q",goog.string.unescapeEntities(this.session_.searchResults_.getEscapedUserQuery()));(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(module$contents$goog$asserts$dom_assertIsHtmlAnchorElement(b),f.toString());this.isOgenSearchBar_?(goog.dom.appendChild(this.message_,e),this.message_.removeAttribute(goog.dom.Attr.ARIA_LABEL)): this.useEntityPageStyling_?(goog.dom.appendChild(this.message_,e),goog.dom.appendChild(this.message_,b),d&&((0,module$exports$google3$third_party$javascript$safevalues$dom$index.elementInsertAdjacentHtml)(d,"afterbegin",(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(" · ")),goog.dom.appendChild(this.message_,d))):(d&&(goog.dom.appendChild(this.message_,d),goog.dom.appendChild(this.message_,goog.dom.createElement(goog.dom.TagName.BR))), (0,module$exports$google3$third_party$javascript$safevalues$dom$index.elementInsertAdjacentHtml)(e,"beforeend",(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(" - ")),goog.dom.appendChild(this.message_,e),(0,module$exports$google3$third_party$javascript$safevalues$dom$index.elementInsertAdjacentHtml)(b,"beforeend",(0,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtmlAssertUnchanged)(" »")),goog.dom.appendChild(this.message_, b));module$contents$ocean$search$SearchBar_resizeManager_!=null&&module$contents$ocean$search$SearchBar_resizeManager_.resize()}; module$exports$ocean$search$SearchBar.SearchBar.prototype.maybeUpdateOgenTextViewportResultLinks=function(){if(ocean.entitypage.Util.isOutputTextViewport()&&this.index_!==void 0){var a=this.session_.searchResults_.resultItemArray_,b=a.length,c=new goog.Uri(window.location.href),d=Number(c.getParameterValue("num"));d&&b>0&&(b=a[Number(d)],d=c.getParameterValue("jtp"),c=c.getParameterValue("pg"),d?this.session_.goToResult(b,"",d):c?this.session_.goToResult(b,c):this.session_.goToResult(b));c=this.index_; b=goog.asserts.assert(goog.dom.getElement("search-result-prev"));this.handleMoveClickTextViewport(b,a,c,-1);goog.a11y.aria.setLabel(b,"Previous result");b.setAttribute("title","Previous result");b=goog.asserts.assert(goog.dom.getElement("search-result-next"));this.handleMoveClickTextViewport(b,a,c,1);goog.a11y.aria.setLabel(b,"Next result");b.setAttribute("title","Next result")}}; module$exports$ocean$search$SearchBar.SearchBar.prototype.handleMoveClickTextViewport=function(a,b,c,d){this.index_+=d;this.index_>=b.length&&(this.index_=0);this.index_<0&&(this.index_=b.length-1);if(this.index_!=c){var e=b[this.index_],f=this.session_.goToResult(goog.asserts.assertExists(e));f?(d=(new goog.Uri(a.href)).setParameterValue("pg",e.getPageId()).setParameterValue("num",this.index_).setParameterValue("scoring",this.session_.sort_).setFragment(""),(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(a, d.toString()),this.session_.goToResult(b[c])):this.handleMoveClickTextViewport(a,b,c,d)}}; module$exports$ocean$search$SearchBar.SearchBar.prototype.disposeInternal=function(){module$contents$ocean$EventManager_EventManager.prototype.disposeInternal.call(this);module$contents$goog$dispose_dispose(this.butterBar_);goog.style.setElementShown(module$contents$ocean$search$SearchBar_toolbarElement_,!0);goog.dom.removeNode(this.searchBar_);module$contents$ocean$search$SearchBar_resizeManager_!=null&&module$contents$ocean$search$SearchBar_resizeManager_.resize();this.isOgenSearchBar_&&(this.showOgenViewportSearchNav_(!1), goog.dom.removeNode(goog.dom.getElementByClass("sort-dropdown-menu")),goog.dom.removeChildren(this.message_))}; module$exports$ocean$search$SearchBar.SearchBar.prototype.createLink_=function(a,b,c,d){var e=goog.dom.createElement(goog.dom.TagName.SPAN);goog.dom.classlist.add(e,"search-bar-link");goog.a11y.aria.setRole(e,goog.a11y.aria.Role.LINK);goog.a11y.aria.setLabel(e,d?d:b);goog.dom.setFocusableTabIndex(e,!0);goog.dom.appendChild(a,e);e.innerText=b;this.getHandler().listen(e,goog.events.EventType.CLICK,c);this.getHandler().listen(e,goog.events.EventType.KEYDOWN,function(f){f.keyCode!=goog.events.KeyCodes.SPACE&& f.keyCode!=goog.events.KeyCodes.ENTER||c()});return e};module$exports$ocean$search$SearchBar.SearchBar.prototype.createOgenButtonLink_=function(a,b,c){goog.a11y.aria.setLabel(a,c);a.setAttribute("title",c);this.getHandler().listen(a,goog.events.EventType.CLICK,b);this.getHandler().listen(a,goog.events.EventType.KEYDOWN,function(d){d.keyCode!=goog.events.KeyCodes.SPACE&&d.keyCode!=goog.events.KeyCodes.ENTER||b()})}; module$exports$ocean$search$SearchBar.SearchBar.prototype.handleReturnClick_=function(){this.session_.endSession();var a=this.session_.manager_;a&&a.history_&&a.history_.update()};module$exports$ocean$search$SearchBar.SearchBar.prototype.handleMoveClick_=function(a){this.handleMoveClickHelper_(this.index_,a)}; module$exports$ocean$search$SearchBar.SearchBar.prototype.handleMoveClickHelper_=function(a,b){var c=this.session_.searchResults_.resultItemArray_.length;this.index_+=b;this.index_>=c&&(this.index_=0);this.index_<0&&(this.index_=c-1);this.index_!=a&&(c=this.session_.searchResults_.resultItemArray_[this.index_],(c=this.session_.goToResult(goog.asserts.assertExists(c)))||this.handleMoveClickHelper_(a,b))}; module$exports$ocean$search$SearchBar.SearchBar.prototype.handleSortClick_=function(a){var b=this.session_.manager_;b&&b.update(a)};module$exports$ocean$search$SearchBar.SearchBar.prototype.handleViewAllClick_=function(){this.session_.renderAllResults()};module$exports$ocean$search$SearchBar.SearchBar.prototype.handleSpellSuggestionClick_=function(a){var b=this.session_.manager_;b&&(b.setQuery(goog.string.unescapeEntities(a)),b.history_&&b.history_.update())}; module$exports$ocean$search$SearchBar.SearchBar.prototype.handleOrderBySelection_=function(a,b,c){if((a=a.target.getContent())&&this.selectedSortText_){var d=goog.asserts.assert(this.sortDropdownButton_);switch(a){case "pages":this.handleSortClick_(module$exports$ocean$search$SearchSessionSortOrder.SearchSessionSortOrder.PAGES);goog.dom.setTextContent(this.selectedSortText_,"pages");goog.a11y.aria.setLabel(d,"Order by pages");d.setAttribute("title","Order by pages");goog.dom.classlist.enable(c,"search-bar-sort-dropdown-item-selected", !0);goog.a11y.aria.setState(goog.asserts.assertExists(c),goog.a11y.aria.State.DESCRIBEDBY,"current-sort-label");goog.dom.classlist.enable(b,"search-bar-sort-dropdown-item-selected",!1);goog.a11y.aria.removeState(goog.asserts.assertExists(b),goog.a11y.aria.State.DESCRIBEDBY);break;case "relevance":this.handleSortClick_(module$exports$ocean$search$SearchSessionSortOrder.SearchSessionSortOrder.RELEVANCE),goog.dom.setTextContent(this.selectedSortText_,"relevance"),goog.a11y.aria.setLabel(d,"Order by relevance"), d.setAttribute("title","Order by relevance"),goog.dom.classlist.enable(b,"search-bar-sort-dropdown-item-selected",!0),goog.a11y.aria.setState(goog.asserts.assertExists(b),goog.a11y.aria.State.DESCRIBEDBY,"current-sort-label"),goog.dom.classlist.enable(c,"search-bar-sort-dropdown-item-selected",!1),goog.a11y.aria.removeState(goog.asserts.assertExists(c),goog.a11y.aria.State.DESCRIBEDBY)}}}; module$exports$ocean$search$SearchBar.SearchBar.prototype.enableOrderByDropdown_=function(a){this.sortDropdownButton_&&(goog.dom.classlist.enable(this.sortDropdownButton_,"search-bar-sort-dropdown-disabled",!a),goog.a11y.aria.setState(this.sortDropdownButton_,goog.a11y.aria.State.DISABLED,!a));var b=this.session_.sort_==module$exports$ocean$search$SearchSessionSortOrder.SearchSessionSortOrder.PAGES;a&&!b&&(goog.dom.setTextContent(this.selectedSortText_,"relevance"),a=goog.asserts.assert(this.sortDropdownButton_), goog.a11y.aria.setLabel(a,"Order by relevance"),a.setAttribute("title","Order by relevance"),a=goog.dom.getElementsByClass("search-bar-sort-dropdown-item"),goog.dom.classlist.enable(a[0],"search-bar-sort-dropdown-item-selected",!0),goog.a11y.aria.setState(a[0],goog.a11y.aria.State.DESCRIBEDBY,"current-sort-label"),goog.dom.classlist.enable(a[1],"search-bar-sort-dropdown-item-selected",!1),goog.a11y.aria.removeState(a[1],goog.a11y.aria.State.DESCRIBEDBY));this.isOgenSearchBar_&&this.message_.setAttribute("data-search-sort", this.session_.sort_)}; module$exports$ocean$search$SearchBar.SearchBar.prototype.showOgenViewportSearchNav_=function(a){this.isOgenEligibleMobileViewport?(goog.style.setElementShown(goog.dom.getElement("gb-mobile-search"),a),goog.style.setElementShown(goog.dom.getElement("gb-mobile-search-buttons"),a)):(goog.dom.classlist.enable(goog.dom.getElement("entity-page-search-nav"),"hide-search-nav",!a),goog.dom.classlist.enable(goog.dom.getElement("search-results-summ"),"hide-search-nav",!a),goog.dom.classlist.enable(goog.dom.getElement("search-close"),"hide-search-nav", !a))};module$exports$ocean$search$SearchBar.SearchBar.prototype.getMobileSnippetViewSummary=function(a){return a+=" results"};module$exports$ocean$search$SearchBar.SearchBar.prototype.getMobileResultViewSummary=function(a,b){return a=a+" of "+b};module$exports$ocean$search$SearchBar.SearchBar.prototype.getMobileResultViewSummaryAriaLabel=function(a,b){return a="Result "+a+" of "+b};module$exports$ocean$search$SearchBar.SearchBar.prototype.getMobileNoResultsMsg=function(){return"No results"}; var module$contents$ocean$search$SearchBar_searchElement_,module$contents$ocean$search$SearchBar_toolbarElement_,module$contents$ocean$search$SearchBar_resizeManager_;var module$contents$ocean$search$SearchManager_SearchManager=function(a,b,c,d){module$contents$ocean$EventManager_EventManager.call(this);var e=this;this.viewer_=a;this.input_=b;this.history_=c;this.flags_=d;this.isOgenEligibleMobileViewport_=goog.userAgent.MOBILE&&d&&d.isOgenEligibleMobileViewport;this.getHandler().listen(a.searchState_,ocean.info.SearchState.EventType.CHANGE,function(){e.update(module$exports$ocean$search$SearchSessionSortOrder.SearchSessionSortOrder.RELEVANCE)})}; $jscomp.inherits(module$contents$ocean$search$SearchManager_SearchManager,module$contents$ocean$EventManager_EventManager); module$contents$ocean$search$SearchManager_SearchManager.prototype.update=function(a,b,c){if(this.searchSession_)this.searchSession_.dispose(),this.searchSession_=null;else{var d=this.viewer_.getViewportClass();d&&(this.previousViewportClass_=this.viewer_.getViewportClass());this.searchBar_=new module$exports$ocean$search$SearchBar.SearchBar(this.flags_)}d=this.viewer_.searchState_.getQuery();b&&!b.search_query_escaped&&b.number_of_results>0&&d&&(b.search_query_escaped=d);b&&b.search_query_escaped? (this.searchSession_=new module$exports$ocean$search$SearchSession.SearchSession(this),this.searchBar_.setSession(this.searchSession_),d=!ocean.info.SearchState.parseUserQueryFromPageUrl(),this.searchSession_.initializeWithProto(d,b,c,a),this.searchBar_.maybeUpdateOgenTextViewportResultLinks()):d?(this.searchSession_=new module$exports$ocean$search$SearchSession.SearchSession(this),this.searchBar_.setSession(this.searchSession_),this.searchSession_.initializeWithQuery(d,a),this.input_.setValue(d)): this.reset_()}; module$contents$ocean$search$SearchManager_SearchManager.prototype.reset_=function(){this.searchSession_&&(this.searchSession_.dispose(),this.searchSession_=null);if(this.viewer_.getViewport()instanceof ocean.search.SnippetViewport&&(this.viewer_.setViewportClass(this.previousViewportClass_),this.isOgenEligibleMobileViewport_&&!ocean.entitypage.Util.isOutputTextViewport())){var a=this.viewer_.getViewport();a.zoomToStop(this.viewer_.getViewport().getSize().width)}this.searchBar_&&(this.searchBar_.dispose(),this.searchBar_= null);this.input_.setValue("")};module$contents$ocean$search$SearchManager_SearchManager.prototype.setQuery=function(a){this.viewer_.searchState_.setQuery(a);this.input_.setValue(a)};module$contents$ocean$search$SearchManager_SearchManager.prototype.setPreviousViewportClass=function(a){this.previousViewportClass_=a};ocean.search.SearchManager=module$contents$ocean$search$SearchManager_SearchManager;var module$exports$ocean$viewport$KeyboardControl=function(a,b){var c=this;this.viewer_=goog.asserts.assertExists(a);b&&(this.textViewportDiv_=goog.asserts.assertExists(b));this.keyHandler_=new goog.events.KeyHandler(document);this.charActionMap_={};this.keyCodeActionMap_={};goog.events.listen(this.keyHandler_,goog.events.KeyEvent.EventType.KEY,function(d){c.handleKeyPress_(d)});this.addKeyCodeHandler_(goog.events.KeyCodes.PAGE_UP,function(){c.handlePagingEvent_(-1)},!1,!0);this.addKeyCodeHandler_(goog.events.KeyCodes.PAGE_DOWN, function(){c.handlePagingEvent_(1)},!1,!0);this.addKeyCodeHandler_(goog.events.KeyCodes.UP,function(){c.scrollViewport_(0,-20)},!1,!0);this.addKeyCodeHandler_(goog.events.KeyCodes.DOWN,function(){c.scrollViewport_(0,20)},!1,!0);this.textViewportDiv_||(this.addKeyCodeHandler_(goog.events.KeyCodes.LEFT,function(){c.handleLeftKeyPress_()},!1,!0),this.addKeyCodeHandler_(goog.events.KeyCodes.RIGHT,function(){c.handleRightKeyPress_()},!1,!0),this.addKeyCodeHandler_(goog.events.KeyCodes.SPACE,function(d){d.shiftKey? c.handlePagingEvent_(-1):c.handlePagingEvent_(1)},!0,!0),this.addKeyCodeHandler_(goog.events.KeyCodes.J,function(){c.queueCommand_(ocean.viewport.Viewer.Commands.NEXT)},!0),this.addKeyCodeHandler_(goog.events.KeyCodes.K,function(){c.queueCommand_(ocean.viewport.Viewer.Commands.PREVIOUS)},!0),this.addCharHandler_("+",function(){c.queueCommand_(ocean.viewport.Viewer.Commands.ZOOM_IN)},!0),this.addCharHandler_("-",function(){c.queueCommand_(ocean.viewport.Viewer.Commands.ZOOM_OUT)},!0),this.addCharHandler_("=", function(){c.queueCommand_(ocean.viewport.Viewer.Commands.ZOOM_IN)},!0));this.addCharHandler_("?",function(){c.queueCommand_(ocean.viewport.Viewer.Commands.SHOW_KEYBOARD_SHORTCUTS)},!0)};module$exports$ocean$viewport$KeyboardControl.prototype.addCharHandler_=function(a,b,c,d){if(goog.DEBUG&&this.charActionMap_[a])throw"This char code is being assigned twice: "+a;b=goog.partial(module$exports$ocean$viewport$KeyboardControl.keyEventHandler_,b,c,d);this.charActionMap_[a]=b}; module$exports$ocean$viewport$KeyboardControl.prototype.addKeyCodeHandler_=function(a,b,c,d){if(goog.DEBUG){if(!module$contents$goog$object_containsValue(goog.events.KeyCodes,a))throw"Key code not found in goog.events.KeyCodes: "+a;if(this.keyCodeActionMap_[a])throw"This key code is being assigned twice: "+a;}b=goog.partial(module$exports$ocean$viewport$KeyboardControl.keyEventHandler_,b,c,d);this.keyCodeActionMap_[a]=b}; module$exports$ocean$viewport$KeyboardControl.prototype.handleKeyPress_=function(a){var b=String.fromCharCode(a.charCode);(b=this.charActionMap_[b]||this.keyCodeActionMap_[a.keyCode])&&b(a)};module$exports$ocean$viewport$KeyboardControl.keyEventHandler_=function(a,b,c,d){b&&d.repeat||d.ctrlKey||d.altKey||d.metaKey||module$exports$ocean$viewport$KeyboardControl.IGNORE_TAG_NAMES_[d.target.tagName.toUpperCase()]||(c&&d.preventDefault(),a(d))}; module$exports$ocean$viewport$KeyboardControl.prototype.queueCommand_=function(a){this.viewer_.queueCommand(a)};module$exports$ocean$viewport$KeyboardControl.prototype.handleLeftKeyPress_=function(){this.viewer_.getViewportClass()==ocean.books.TwoPageViewport&&this.viewer_.getViewport().layout_.getSize().width>this.viewer_.getWidth()?this.scrollViewport_(-20,0):this.queueCommand_(ocean.viewport.Viewer.Commands.PREVIOUS)}; module$exports$ocean$viewport$KeyboardControl.prototype.handleRightKeyPress_=function(){this.viewer_.getViewportClass()==ocean.books.TwoPageViewport&&this.viewer_.getViewport().layout_.getSize().width>this.viewer_.getWidth()?this.scrollViewport_(20,0):this.queueCommand_(ocean.viewport.Viewer.Commands.NEXT)}; module$exports$ocean$viewport$KeyboardControl.prototype.handlePagingEvent_=function(a){var b=this.textViewportDiv_?this.textViewportDiv_.clientHeight:this.viewer_.getViewport().getSize().height;a=Math.floor(a*b*.75);this.scrollViewport_(0,a)};module$exports$ocean$viewport$KeyboardControl.prototype.scrollViewport_=function(a,b){this.textViewportDiv_?this.textViewportDiv_.scrollTop+=b:this.viewer_.getViewport().moveBy(new goog.math.Coordinate(a,b))}; module$exports$ocean$viewport$KeyboardControl.IGNORE_TAG_NAMES_=module$contents$goog$object_createSet(goog.dom.TagName.BUTTON,goog.dom.TagName.INPUT,goog.dom.TagName.SELECT,goog.dom.TagName.TEXTAREA);var jspb$webutil$html$types$MutableSafeScriptProto=function(a){module$contents$jspb_internal_public_for_gencode_GeneratedMessage.call(this,a)};$jscomp.inherits(jspb$webutil$html$types$MutableSafeScriptProto,module$contents$jspb_internal_public_for_gencode_GeneratedMessage);jspb$webutil$html$types$MutableSafeScriptProto.prototype.getPrivateDoNotAccessOrElseSafeScriptWrappedValue_legacyNullable=function(){return jspb_internal_adapters.getStringFieldNullable(this,6)}; jspb$webutil$html$types$MutableSafeScriptProto.deserialize=module$contents$jspb_internal_public_for_gencode_makeMutableDeserializeFunction(jspb$webutil$html$types$MutableSafeScriptProto);jspb$webutil$html$types$MutableSafeScriptProto.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasMutableInstance(jspb$webutil$html$types$MutableSafeScriptProto); module$exports$jspb$internal_options.GENERATE_TYPE_NAME_PROPERTIES&&(jspb$webutil$html$types$MutableSafeScriptProto.internalDoNotUse_debugOnlyProtoTypeName="webutil.html.types.SafeScriptProto");var jspb$webutil$html$types$ImmutableSafeScriptProto=function(){};jspb$webutil$html$types$ImmutableSafeScriptProto.deserialize=module$contents$jspb_internal_public_for_gencode_makeImmutableDeserializeFunction(jspb$webutil$html$types$MutableSafeScriptProto);jspb$webutil$html$types$ImmutableSafeScriptProto.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasImmutableInstance(jspb$webutil$html$types$MutableSafeScriptProto);var jspb$o$webutil$html$types$SafeScriptProto={internal_toObject:function(a){if(a!=null)return module$contents$jspb_internal_public_for_gencode_assertMutable(a),{privateDoNotAccessOrElseSafeScriptWrappedValue:module$contents$jspb_internal_public_for_gencode_toObjectPrimitive(jspb_internal_adapters.getStringFieldNullable(a,6))}}};jspb$webutil$html$types$MutableSafeScriptProto.prototype.toObject=function(){return jspb$o$webutil$html$types$SafeScriptProto.internal_toObject(this)}; module$contents$jspb_internal_public_for_gencode_GENERATE_FROM_OBJECT&&(jspb$o$webutil$html$types$SafeScriptProto.fromObject=function(a){var b=new jspb$webutil$html$types$MutableSafeScriptProto;jspb_internal_adapters.setStringField(b,6,a.privateDoNotAccessOrElseSafeScriptWrappedValue);return b});proto.html={};proto.html.ReadonlySafeScriptProto={};proto.html.SafeScriptProto=jspb$webutil$html$types$MutableSafeScriptProto;jspb$webutil$html$types$MutableSafeScriptProto.fromObject=jspb$o$webutil$html$types$SafeScriptProto.fromObject;proto.html.MutableSafeScriptProto=jspb$webutil$html$types$MutableSafeScriptProto;proto.html.ImmutableSafeScriptProto=jspb$webutil$html$types$ImmutableSafeScriptProto;var module$contents$google3$javascript$security$jsonps$content_script_data;var jspb$webutil$html$types$MutableSafeHtmlProto=function(a){module$contents$jspb_internal_public_for_gencode_GeneratedMessage.call(this,a)};$jscomp.inherits(jspb$webutil$html$types$MutableSafeHtmlProto,module$contents$jspb_internal_public_for_gencode_GeneratedMessage);jspb$webutil$html$types$MutableSafeHtmlProto.deserialize=module$contents$jspb_internal_public_for_gencode_makeMutableDeserializeFunction(jspb$webutil$html$types$MutableSafeHtmlProto); jspb$webutil$html$types$MutableSafeHtmlProto.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasMutableInstance(jspb$webutil$html$types$MutableSafeHtmlProto);module$exports$jspb$internal_options.GENERATE_TYPE_NAME_PROPERTIES&&(jspb$webutil$html$types$MutableSafeHtmlProto.internalDoNotUse_debugOnlyProtoTypeName="webutil.html.types.SafeHtmlProto");var jspb$webutil$html$types$ImmutableSafeHtmlProto=function(){};jspb$webutil$html$types$ImmutableSafeHtmlProto.deserialize=module$contents$jspb_internal_public_for_gencode_makeImmutableDeserializeFunction(jspb$webutil$html$types$MutableSafeHtmlProto);jspb$webutil$html$types$ImmutableSafeHtmlProto.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasImmutableInstance(jspb$webutil$html$types$MutableSafeHtmlProto);var jspb$o$webutil$html$types$SafeHtmlProto={internal_toObject:function(a){if(a!=null)return module$contents$jspb_internal_public_for_gencode_assertMutable(a),{privateDoNotAccessOrElseSafeHtmlWrappedValue:module$contents$jspb_internal_public_for_gencode_toObjectPrimitive(jspb_internal_adapters.getStringFieldNullable(a,2))}}};jspb$webutil$html$types$MutableSafeHtmlProto.prototype.toObject=function(){return jspb$o$webutil$html$types$SafeHtmlProto.internal_toObject(this)}; module$contents$jspb_internal_public_for_gencode_GENERATE_FROM_OBJECT&&(jspb$o$webutil$html$types$SafeHtmlProto.fromObject=function(a){var b=new jspb$webutil$html$types$MutableSafeHtmlProto;jspb_internal_adapters.setStringField(b,2,a.privateDoNotAccessOrElseSafeHtmlWrappedValue);return b});proto.html.ReadonlySafeHtmlProto={};proto.html.SafeHtmlProto=jspb$webutil$html$types$MutableSafeHtmlProto;jspb$webutil$html$types$MutableSafeHtmlProto.fromObject=jspb$o$webutil$html$types$SafeHtmlProto.fromObject;proto.html.MutableSafeHtmlProto=jspb$webutil$html$types$MutableSafeHtmlProto;proto.html.ImmutableSafeHtmlProto=jspb$webutil$html$types$ImmutableSafeHtmlProto;var jspb$webutil$html$types$MutableSafeStyleProto=function(a){module$contents$jspb_internal_public_for_gencode_GeneratedMessage.call(this,a)};$jscomp.inherits(jspb$webutil$html$types$MutableSafeStyleProto,module$contents$jspb_internal_public_for_gencode_GeneratedMessage);jspb$webutil$html$types$MutableSafeStyleProto.deserialize=module$contents$jspb_internal_public_for_gencode_makeMutableDeserializeFunction(jspb$webutil$html$types$MutableSafeStyleProto); jspb$webutil$html$types$MutableSafeStyleProto.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasMutableInstance(jspb$webutil$html$types$MutableSafeStyleProto);module$exports$jspb$internal_options.GENERATE_TYPE_NAME_PROPERTIES&&(jspb$webutil$html$types$MutableSafeStyleProto.internalDoNotUse_debugOnlyProtoTypeName="webutil.html.types.SafeStyleProto");var jspb$webutil$html$types$ImmutableSafeStyleProto=function(){};jspb$webutil$html$types$ImmutableSafeStyleProto.deserialize=module$contents$jspb_internal_public_for_gencode_makeImmutableDeserializeFunction(jspb$webutil$html$types$MutableSafeStyleProto);jspb$webutil$html$types$ImmutableSafeStyleProto.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasImmutableInstance(jspb$webutil$html$types$MutableSafeStyleProto);var jspb$o$webutil$html$types$SafeStyleProto={internal_toObject:function(a){if(a!=null)return module$contents$jspb_internal_public_for_gencode_assertMutable(a),{privateDoNotAccessOrElseSafeStyleWrappedValue:module$contents$jspb_internal_public_for_gencode_toObjectPrimitive(jspb_internal_adapters.getStringFieldNullable(a,5))}}};jspb$webutil$html$types$MutableSafeStyleProto.prototype.toObject=function(){return jspb$o$webutil$html$types$SafeStyleProto.internal_toObject(this)}; module$contents$jspb_internal_public_for_gencode_GENERATE_FROM_OBJECT&&(jspb$o$webutil$html$types$SafeStyleProto.fromObject=function(a){var b=new jspb$webutil$html$types$MutableSafeStyleProto;jspb_internal_adapters.setStringField(b,5,a.privateDoNotAccessOrElseSafeStyleWrappedValue);return b});proto.html.ReadonlySafeStyleProto={};proto.html.SafeStyleProto=jspb$webutil$html$types$MutableSafeStyleProto;jspb$webutil$html$types$MutableSafeStyleProto.fromObject=jspb$o$webutil$html$types$SafeStyleProto.fromObject;proto.html.MutableSafeStyleProto=jspb$webutil$html$types$MutableSafeStyleProto;proto.html.ImmutableSafeStyleProto=jspb$webutil$html$types$ImmutableSafeStyleProto;var jspb$webutil$html$types$MutableSafeStyleSheetProto=function(a){module$contents$jspb_internal_public_for_gencode_GeneratedMessage.call(this,a)};$jscomp.inherits(jspb$webutil$html$types$MutableSafeStyleSheetProto,module$contents$jspb_internal_public_for_gencode_GeneratedMessage);jspb$webutil$html$types$MutableSafeStyleSheetProto.deserialize=module$contents$jspb_internal_public_for_gencode_makeMutableDeserializeFunction(jspb$webutil$html$types$MutableSafeStyleSheetProto); jspb$webutil$html$types$MutableSafeStyleSheetProto.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasMutableInstance(jspb$webutil$html$types$MutableSafeStyleSheetProto);module$exports$jspb$internal_options.GENERATE_TYPE_NAME_PROPERTIES&&(jspb$webutil$html$types$MutableSafeStyleSheetProto.internalDoNotUse_debugOnlyProtoTypeName="webutil.html.types.SafeStyleSheetProto");var jspb$webutil$html$types$ImmutableSafeStyleSheetProto=function(){};jspb$webutil$html$types$ImmutableSafeStyleSheetProto.deserialize=module$contents$jspb_internal_public_for_gencode_makeImmutableDeserializeFunction(jspb$webutil$html$types$MutableSafeStyleSheetProto);jspb$webutil$html$types$ImmutableSafeStyleSheetProto.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasImmutableInstance(jspb$webutil$html$types$MutableSafeStyleSheetProto);var jspb$o$webutil$html$types$SafeStyleSheetProto={internal_toObject:function(a){if(a!=null)return module$contents$jspb_internal_public_for_gencode_assertMutable(a),{privateDoNotAccessOrElseSafeStyleSheetWrappedValue:module$contents$jspb_internal_public_for_gencode_toObjectPrimitive(jspb_internal_adapters.getStringFieldNullable(a,7))}}};jspb$webutil$html$types$MutableSafeStyleSheetProto.prototype.toObject=function(){return jspb$o$webutil$html$types$SafeStyleSheetProto.internal_toObject(this)}; module$contents$jspb_internal_public_for_gencode_GENERATE_FROM_OBJECT&&(jspb$o$webutil$html$types$SafeStyleSheetProto.fromObject=function(a){var b=new jspb$webutil$html$types$MutableSafeStyleSheetProto;jspb_internal_adapters.setStringField(b,7,a.privateDoNotAccessOrElseSafeStyleSheetWrappedValue);return b});proto.html.ReadonlySafeStyleSheetProto={};proto.html.SafeStyleSheetProto=jspb$webutil$html$types$MutableSafeStyleSheetProto;jspb$webutil$html$types$MutableSafeStyleSheetProto.fromObject=jspb$o$webutil$html$types$SafeStyleSheetProto.fromObject;proto.html.MutableSafeStyleSheetProto=jspb$webutil$html$types$MutableSafeStyleSheetProto;proto.html.ImmutableSafeStyleSheetProto=jspb$webutil$html$types$ImmutableSafeStyleSheetProto;var jspb$webutil$html$types$MutableSafeUrlProto=function(a){module$contents$jspb_internal_public_for_gencode_GeneratedMessage.call(this,a)};$jscomp.inherits(jspb$webutil$html$types$MutableSafeUrlProto,module$contents$jspb_internal_public_for_gencode_GeneratedMessage);jspb$webutil$html$types$MutableSafeUrlProto.deserialize=module$contents$jspb_internal_public_for_gencode_makeMutableDeserializeFunction(jspb$webutil$html$types$MutableSafeUrlProto); jspb$webutil$html$types$MutableSafeUrlProto.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasMutableInstance(jspb$webutil$html$types$MutableSafeUrlProto);module$exports$jspb$internal_options.GENERATE_TYPE_NAME_PROPERTIES&&(jspb$webutil$html$types$MutableSafeUrlProto.internalDoNotUse_debugOnlyProtoTypeName="webutil.html.types.SafeUrlProto");var jspb$webutil$html$types$ImmutableSafeUrlProto=function(){};jspb$webutil$html$types$ImmutableSafeUrlProto.deserialize=module$contents$jspb_internal_public_for_gencode_makeImmutableDeserializeFunction(jspb$webutil$html$types$MutableSafeUrlProto);jspb$webutil$html$types$ImmutableSafeUrlProto.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasImmutableInstance(jspb$webutil$html$types$MutableSafeUrlProto);var jspb$o$webutil$html$types$SafeUrlProto={internal_toObject:function(a){if(a!=null)return module$contents$jspb_internal_public_for_gencode_assertMutable(a),{privateDoNotAccessOrElseSafeUrlWrappedValue:module$contents$jspb_internal_public_for_gencode_toObjectPrimitive(jspb_internal_adapters.getStringFieldNullable(a,3))}}};jspb$webutil$html$types$MutableSafeUrlProto.prototype.toObject=function(){return jspb$o$webutil$html$types$SafeUrlProto.internal_toObject(this)}; module$contents$jspb_internal_public_for_gencode_GENERATE_FROM_OBJECT&&(jspb$o$webutil$html$types$SafeUrlProto.fromObject=function(a){var b=new jspb$webutil$html$types$MutableSafeUrlProto;jspb_internal_adapters.setStringField(b,3,a.privateDoNotAccessOrElseSafeUrlWrappedValue);return b});proto.html.ReadonlySafeUrlProto={};proto.html.SafeUrlProto=jspb$webutil$html$types$MutableSafeUrlProto;jspb$webutil$html$types$MutableSafeUrlProto.fromObject=jspb$o$webutil$html$types$SafeUrlProto.fromObject;proto.html.MutableSafeUrlProto=jspb$webutil$html$types$MutableSafeUrlProto;proto.html.ImmutableSafeUrlProto=jspb$webutil$html$types$ImmutableSafeUrlProto;var jspb$webutil$html$types$MutableTrustedResourceUrlProto=function(a){module$contents$jspb_internal_public_for_gencode_GeneratedMessage.call(this,a)};$jscomp.inherits(jspb$webutil$html$types$MutableTrustedResourceUrlProto,module$contents$jspb_internal_public_for_gencode_GeneratedMessage);jspb$webutil$html$types$MutableTrustedResourceUrlProto.deserialize=module$contents$jspb_internal_public_for_gencode_makeMutableDeserializeFunction(jspb$webutil$html$types$MutableTrustedResourceUrlProto); jspb$webutil$html$types$MutableTrustedResourceUrlProto.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasMutableInstance(jspb$webutil$html$types$MutableTrustedResourceUrlProto);module$exports$jspb$internal_options.GENERATE_TYPE_NAME_PROPERTIES&&(jspb$webutil$html$types$MutableTrustedResourceUrlProto.internalDoNotUse_debugOnlyProtoTypeName="webutil.html.types.TrustedResourceUrlProto");var jspb$webutil$html$types$ImmutableTrustedResourceUrlProto=function(){};jspb$webutil$html$types$ImmutableTrustedResourceUrlProto.deserialize=module$contents$jspb_internal_public_for_gencode_makeImmutableDeserializeFunction(jspb$webutil$html$types$MutableTrustedResourceUrlProto);jspb$webutil$html$types$ImmutableTrustedResourceUrlProto.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasImmutableInstance(jspb$webutil$html$types$MutableTrustedResourceUrlProto);var jspb$o$webutil$html$types$TrustedResourceUrlProto={internal_toObject:function(a){if(a!=null)return module$contents$jspb_internal_public_for_gencode_assertMutable(a),{privateDoNotAccessOrElseTrustedResourceUrlWrappedValue:module$contents$jspb_internal_public_for_gencode_toObjectPrimitive(jspb_internal_adapters.getStringFieldNullable(a,4))}}};jspb$webutil$html$types$MutableTrustedResourceUrlProto.prototype.toObject=function(){return jspb$o$webutil$html$types$TrustedResourceUrlProto.internal_toObject(this)}; module$contents$jspb_internal_public_for_gencode_GENERATE_FROM_OBJECT&&(jspb$o$webutil$html$types$TrustedResourceUrlProto.fromObject=function(a){var b=new jspb$webutil$html$types$MutableTrustedResourceUrlProto;jspb_internal_adapters.setStringField(b,4,a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue);return b});proto.html.ReadonlyTrustedResourceUrlProto={};proto.html.TrustedResourceUrlProto=jspb$webutil$html$types$MutableTrustedResourceUrlProto;jspb$webutil$html$types$MutableTrustedResourceUrlProto.fromObject=jspb$o$webutil$html$types$TrustedResourceUrlProto.fromObject;proto.html.MutableTrustedResourceUrlProto=jspb$webutil$html$types$MutableTrustedResourceUrlProto;proto.html.ImmutableTrustedResourceUrlProto=jspb$webutil$html$types$ImmutableTrustedResourceUrlProto;function module$contents$google3$third_party$javascript$safevalues$conversions$jspb$index_protoToScript(a){if(!a)return null;a=a.getPrivateDoNotAccessOrElseSafeScriptWrappedValue_legacyNullable();return a===null||a===void 0?null:module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_scriptSafeByReview(a,{justification:"Conversion from JSPB Proto"})};var module$exports$google3$javascript$security$jsonps$jsonpsandbox={JsonpSandbox:function(a,b){b=b===void 0?5E3:b;this.url=a;this.timeout=b;this.callbackParamName=this.callbackName="callback";this.fetchResolver=this.iframe=null}}; module$exports$google3$javascript$security$jsonps$jsonpsandbox.JsonpSandbox.prototype.fetch=function(a){var b=this;a=a===void 0?{}:a;this.fetchResolver=goog.Promise.withResolver();var c=new goog.Uri(this.url),d=new Map;this.callbackParamName&&d.set(this.callbackParamName,this.callbackName);c.getQueryData().extend(goog.Uri.QueryData.createFromMap(a),d);this.createSandbox().then(function(){b.sendMessageToSandbox(c.toString())}).then(function(){return b.fetchResolver.promise}).then(function(){b.destroySandbox()}, function(){b.destroySandbox()});this.timeout>0&&(this.timeoutId=setTimeout(function(){b.fetchResolver.reject("Timeout!")},this.timeout));return this.fetchResolver.promise};module$exports$google3$javascript$security$jsonps$jsonpsandbox.JsonpSandbox.prototype.sendMessageToSandbox=function(a){var b=this,c=new MessageChannel;a={url:a,callbackName:this.callbackName};this.iframe.contentWindow.postMessage(a,"*",[c.port2]);c.port1.onmessage=function(d){b.handleMessageFromSandbox(d)}}; module$exports$google3$javascript$security$jsonps$jsonpsandbox.JsonpSandbox.prototype.handleMessageFromSandbox=function(a){var b={};this.timeoutId!==void 0&&(clearTimeout(this.timeoutId),this.timeoutId=void 0);a.data===void 0&&this.fetchResolver.reject("Callback called, but no data received");typeof a.data!=="string"&&this.fetchResolver.reject("Exploitation attempt! Data is not a string!");try{b=JSON.parse(a.data)}catch(c){this.fetchResolver.reject("Invalid Data received: "+c.message)}this.fetchResolver.resolve(b)}; module$exports$google3$javascript$security$jsonps$jsonpsandbox.JsonpSandbox.createDocForIframe=function(a){return(0,module$exports$google3$third_party$javascript$safevalues$index.concatHtmls)([(0,module$exports$google3$third_party$javascript$safevalues$index.doctypeHtml)(),(0,module$exports$google3$third_party$javascript$safevalues$index.createHtml)("body",{},(0,module$exports$google3$third_party$javascript$safevalues$index.scriptToHtml)(a,{nonce:(0,module$exports$google3$third_party$javascript$safevalues$dom$index.getScriptNonce)(window)}))])}; module$exports$google3$javascript$security$jsonps$jsonpsandbox.JsonpSandbox.createUrlForIframe=function(a){return module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_resourceUrlSafeByReview("data:text/html;charset=UTF-8;base64,"+btoa((0,module$exports$google3$third_party$javascript$safevalues$index.unwrapHtml)(a).toString()),{justification:"data URL to be opened only in a sandbox"})}; module$exports$google3$javascript$security$jsonps$jsonpsandbox.JsonpSandbox.prototype.createSandbox=function(){var a=goog.Promise.withResolver(),b=goog.dom.createElement(goog.dom.TagName.IFRAME);if(!b.sandbox)throw Error("iframe sandboxes not supported");b.sandbox.value="allow-scripts";b.style.display="none";this.iframe=b;var c=module$contents$google3$third_party$javascript$safevalues$conversions$jspb$index_protoToScript(module$contents$google3$javascript$security$jsonps$content_script_data||(module$contents$google3$javascript$security$jsonps$content_script_data= jspb$webutil$html$types$ImmutableSafeScriptProto.deserialize('[null,null,null,null,null,"(function(){\'use strict\';var f\\u003dtypeof Object.defineProperties\\u003d\\u003d\\"function\\"?Object.defineProperty:function(a,c,b){if(a\\u003d\\u003dArray.prototype||a\\u003d\\u003dObject.prototype)return a;a[c]\\u003db.value;return a};function g(a){a\\u003d[\\"object\\"\\u003d\\u003dtypeof globalThis\\u0026\\u0026globalThis,a,\\"object\\"\\u003d\\u003dtypeof window\\u0026\\u0026window,\\"object\\"\\u003d\\u003dtypeof self\\u0026\\u0026self,\\"object\\"\\u003d\\u003dtypeof global\\u0026\\u0026global];for(var c\\u003d0;c\\u003ca.length;++c){var b\\u003da[c];if(b\\u0026\\u0026b.Math\\u003d\\u003dMath)return b}throw Error(\\"Cannot find global object\\");}var h\\u003dg(this);\\nfunction k(a,c){if(c)a:{var b\\u003dh;a\\u003da.split(\\".\\");for(var d\\u003d0;d\\u003ca.length-1;d++){var e\\u003da[d];if(!(e in b))break a;b\\u003db[e]}a\\u003da[a.length-1];d\\u003db[a];c\\u003dc(d);c!\\u003dd\\u0026\\u0026c!\\u003dnull\\u0026\\u0026f(b,a,{configurable:!0,writable:!0,value:c})}}k(\\"globalThis\\",function(a){return a||h});/*\\n\\n Copyright Google LLC\\n SPDX-License-Identifier: Apache-2.0\\n*/\\nvar l\\u003dglobalThis.trustedTypes,m;function n(){var a\\u003dnull;if(!l)return a;try{var c\\u003dfunction(b){return b};a\\u003dl.createPolicy(\\"goog#html\\",{createHTML:c,createScript:c,createScriptURL:c})}catch(b){}return a};function p(a){this.g\\u003da}p.prototype.toString\\u003dfunction(){return this.g+\\"\\"};function q(a){m\\u003d\\u003d\\u003dvoid 0\\u0026\\u0026(m\\u003dn());return new p(m?m.createScriptURL(a):a)};if(!function(){if(self.origin)return self.origin\\u003d\\u003d\\u003d\\"null\\";if(location.host!\\u003d\\u003d\\"\\")return!1;try{return window.parent.escape(\\"\\"),!1}catch(a){return!0}}())throw Error(\\"sandboxing error\\");\\nwindow.addEventListener(\\"message\\",function(a){var c\\u003da.ports[0];a\\u003da.data;var b\\u003da.callbackName.split(\\".\\"),d\\u003dwindow;b[0]\\u003d\\u003d\\u003d\\"window\\"\\u0026\\u0026b.shift();for(var e\\u003d0;e\\u003cb.length-1;e++)d[b[e]]\\u003d{},d\\u003dd[b[e]];d[b[b.length-1]]\\u003dfunction(r){c.postMessage(JSON.stringify(r))};b\\u003ddocument.createElement(\\"script\\");a\\u003dq(a.url);if(a instanceof p)a\\u003da.g;else throw Error(\\"\\");b.src\\u003da;document.body.appendChild(b)},!0);}).call(this);\\n"]'))); c=module$exports$google3$javascript$security$jsonps$jsonpsandbox.JsonpSandbox.createDocForIframe(c);(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setIframeSrcdoc)(b,c);c=module$exports$google3$javascript$security$jsonps$jsonpsandbox.JsonpSandbox.createUrlForIframe(c);(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setIframeSrc)(b,c);b.addEventListener("load",function(){return a.resolve(b)},!1);b.addEventListener("error",function(d){a.reject(d)},!1);document.documentElement.appendChild(b); return a.promise};module$exports$google3$javascript$security$jsonps$jsonpsandbox.JsonpSandbox.prototype.destroySandbox=function(){this.iframe!==null&&(document.documentElement.removeChild(this.iframe),this.iframe=null)};goog.security={};goog.security.JsonpSandbox=module$exports$google3$javascript$security$jsonps$jsonpsandbox.JsonpSandbox;var module$contents$ocean$net$JsonpRequest_JsonpRequest=function(a){module$exports$ocean$net$RemoteObjectRequest.call(this,a);this.jsonp_=new module$exports$google3$javascript$security$jsonps$jsonpsandbox.JsonpSandbox(a);this.isAborted_=!0};$jscomp.inherits(module$contents$ocean$net$JsonpRequest_JsonpRequest,module$exports$ocean$net$RemoteObjectRequest); module$contents$ocean$net$JsonpRequest_JsonpRequest.prototype.fetch=function(a,b){module$exports$ocean$net$RemoteObjectRequest.prototype.fetch.call(this,a,b);this.isAborted_=!1;this.jsonp_.fetch().then(goog.bind(this.handleSuccessResponse_,this,a),goog.bind(this.handleFailureResponse_,this,b))}; module$contents$ocean$net$JsonpRequest_JsonpRequest.prototype.handleSuccessResponse_=function(a,b){this.isAborted_||(this.setObject(b),this.dispatchEvent(goog.net.EventType.SUCCESS),a&&a(this.responseObject_),this.reset_())};module$contents$ocean$net$JsonpRequest_JsonpRequest.prototype.handleFailureResponse_=function(a){this.isAborted_||(this.dispatchEvent(goog.net.EventType.ERROR),a&&a(),this.reset_())}; module$contents$ocean$net$JsonpRequest_JsonpRequest.prototype.reset_=function(){this.isAborted_=!0};module$contents$ocean$net$JsonpRequest_JsonpRequest.prototype.abort=function(){this.reset_();return!0};ocean.net.JsonpRequest=module$contents$ocean$net$JsonpRequest_JsonpRequest;ocean.api={};ocean.api.PreviewUrlLookup=function(a,b,c,d,e){Array.isArray(a)||(a=[a]);this.identifiers_=a;this.successAction_=b;this.notFoundAction_=c;b=new goog.Uri((GBS_HOST||"https://books.google.com/")+"books?jscmd=viewapi");b.setParameterValue("bibkeys",a.join(","));b.setParameterValue("hl",e||"en");b.setParameterValue("source",d||"previewlib");a=new module$contents$ocean$net$JsonpRequest_JsonpRequest(b);a.fetch(goog.bind(this.handleApiFetch_,this))}; ocean.api.PreviewUrlLookup.prototype.handleApiFetch_=function(a){for(var b=0;b<this.identifiers_.length;b++){var c=this.identifiers_[b];if(c=a[c]){var d=c.preview_url;if(d&&ocean.api.PreviewUrlLookup.canEmbed_(c)){this.successAction_&&this.successAction_(d);return}}}this.notFoundAction_&&this.notFoundAction_()};ocean.api.PreviewUrlLookup.canEmbed_=function(a){var b=a.preview;a=a.embeddable;a===void 0&&(a=!0);return(b=="full"||b=="partial")&&a};jspb$e.jfk$ButtonStyle$Style={STANDARD:0,DEFAULT:1,ACTION:2,PRIMARY:3,FLAT:4,MINI:5,CONTRAST:6};jspb$e.jfk$ButtonStyle$Width={NORMAL:0,NARROW:1};var jspb$jfk$MutableButtonStyle=function(a){module$contents$jspb_internal_public_for_gencode_GeneratedMessage.call(this,a)};$jscomp.inherits(jspb$jfk$MutableButtonStyle,module$contents$jspb_internal_public_for_gencode_GeneratedMessage);jspb$jfk$MutableButtonStyle.deserialize=module$contents$jspb_internal_public_for_gencode_makeMutableDeserializeFunction(jspb$jfk$MutableButtonStyle);jspb$jfk$MutableButtonStyle.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasMutableInstance(jspb$jfk$MutableButtonStyle); module$exports$jspb$internal_options.GENERATE_TYPE_NAME_PROPERTIES&&(jspb$jfk$MutableButtonStyle.internalDoNotUse_debugOnlyProtoTypeName="jfk.ButtonStyle");var jspb$jfk$ImmutableButtonStyle=function(){};jspb$jfk$ImmutableButtonStyle.deserialize=module$contents$jspb_internal_public_for_gencode_makeImmutableDeserializeFunction(jspb$jfk$MutableButtonStyle);jspb$jfk$ImmutableButtonStyle.hasInstance=module$contents$jspb_internal_public_for_gencode_makeHasImmutableInstance(jspb$jfk$MutableButtonStyle);var jspb$o$jfk$ButtonStyle={internal_toObject:function(a){if(a!=null)return module$contents$jspb_internal_public_for_gencode_assertMutable(a),{}}};jspb$jfk$MutableButtonStyle.prototype.toObject=function(){return jspb$o$jfk$ButtonStyle.internal_toObject(this)};module$contents$jspb_internal_public_for_gencode_GENERATE_FROM_OBJECT&&(jspb$o$jfk$ButtonStyle.fromObject=function(){var a=new jspb$jfk$MutableButtonStyle;return a});proto.jfk={};proto.jfk.ReadonlyButtonStyle={};proto.jfk.ButtonStyle=jspb$jfk$MutableButtonStyle;jspb$jfk$MutableButtonStyle.fromObject=jspb$o$jfk$ButtonStyle.fromObject;proto.jfk.MutableButtonStyle=jspb$jfk$MutableButtonStyle;proto.jfk.ImmutableButtonStyle=jspb$jfk$ImmutableButtonStyle;jspb$jfk$MutableButtonStyle.Style=jspb$e.jfk$ButtonStyle$Style;jspb$jfk$MutableButtonStyle.Width=jspb$e.jfk$ButtonStyle$Width;goog.i18n.bidi={};goog.i18n.bidi.FORCE_RTL=!1;goog.i18n.bidi.IS_RTL=goog.i18n.bidi.FORCE_RTL||!1;goog.i18n.bidi.Format={LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"};goog.i18n.bidi.Dir={LTR:1,RTL:-1,NEUTRAL:0};goog.i18n.bidi.RIGHT="right";goog.i18n.bidi.LEFT="left";goog.i18n.bidi.I18N_RIGHT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.LEFT:goog.i18n.bidi.RIGHT;goog.i18n.bidi.I18N_LEFT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT; goog.i18n.bidi.toDir=function(a,b){return typeof a=="number"?a>0?goog.i18n.bidi.Dir.LTR:a<0?goog.i18n.bidi.Dir.RTL:b?null:goog.i18n.bidi.Dir.NEUTRAL:a==null?null:a?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR};goog.i18n.bidi.ltrChars_="A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff";goog.i18n.bidi.rtlChars_="\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc"; goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g;goog.i18n.bidi.stripHtmlIfNeeded_=function(a,b){return b?a.replace(goog.i18n.bidi.htmlSkipReg_,""):a};goog.i18n.bidi.rtlCharReg_=new RegExp("["+goog.i18n.bidi.rtlChars_+"]");goog.i18n.bidi.ltrCharReg_=new RegExp("["+goog.i18n.bidi.ltrChars_+"]");goog.i18n.bidi.hasAnyRtl=function(a,b){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a,b))};goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl; goog.i18n.bidi.hasAnyLtr=function(a,b){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a,b))};goog.i18n.bidi.ltrRe_=new RegExp("^["+goog.i18n.bidi.ltrChars_+"]");goog.i18n.bidi.rtlRe_=new RegExp("^["+goog.i18n.bidi.rtlChars_+"]");goog.i18n.bidi.isRtlChar=function(a){return goog.i18n.bidi.rtlRe_.test(a)};goog.i18n.bidi.isLtrChar=function(a){return goog.i18n.bidi.ltrRe_.test(a)};goog.i18n.bidi.isNeutralChar=function(a){return!goog.i18n.bidi.isLtrChar(a)&&!goog.i18n.bidi.isRtlChar(a)}; goog.i18n.bidi.ltrDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.rtlChars_+"]*["+goog.i18n.bidi.ltrChars_+"]");goog.i18n.bidi.rtlDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.ltrChars_+"]*["+goog.i18n.bidi.rtlChars_+"]");goog.i18n.bidi.startsWithRtl=function(a,b){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a,b))};goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl; goog.i18n.bidi.startsWithLtr=function(a,b){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a,b))};goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr;goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/;goog.i18n.bidi.isNeutralText=function(a,b){a=goog.i18n.bidi.stripHtmlIfNeeded_(a,b);return goog.i18n.bidi.isRequiredLtrRe_.test(a)||!goog.i18n.bidi.hasAnyLtr(a)&&!goog.i18n.bidi.hasAnyRtl(a)}; goog.i18n.bidi.ltrExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.ltrChars_+"][^"+goog.i18n.bidi.rtlChars_+"]*$");goog.i18n.bidi.rtlExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.rtlChars_+"][^"+goog.i18n.bidi.ltrChars_+"]*$");goog.i18n.bidi.endsWithLtr=function(a,b){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a,b))};goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr; goog.i18n.bidi.endsWithRtl=function(a,b){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(a,b))};goog.i18n.bidi.isRtlExitText=goog.i18n.bidi.endsWithRtl;goog.i18n.bidi.rtlLocalesRe_=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");goog.i18n.bidi.isRtlLanguage=function(a){return goog.i18n.bidi.rtlLocalesRe_.test(a)};goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g; goog.i18n.bidi.guardBracketInText=function(a,b){b=(b=b===void 0?goog.i18n.bidi.hasAnyRtl(a):b)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM;return a.replace(goog.i18n.bidi.bracketGuardTextRe_,b+"$&"+b)};goog.i18n.bidi.enforceRtlInHtml=function(a){return a.charAt(0)=="<"?a.replace(/<\w+/,"$& dir=rtl"):"\n<span dir=rtl>"+a+"</span>"};goog.i18n.bidi.enforceRtlInText=function(a){return goog.i18n.bidi.Format.RLE+a+goog.i18n.bidi.Format.PDF}; goog.i18n.bidi.enforceLtrInHtml=function(a){return a.charAt(0)=="<"?a.replace(/<\w+/,"$& dir=ltr"):"\n<span dir=ltr>"+a+"</span>"};goog.i18n.bidi.enforceLtrInText=function(a){return goog.i18n.bidi.Format.LRE+a+goog.i18n.bidi.Format.PDF};goog.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g;goog.i18n.bidi.leftRe_=/left/gi;goog.i18n.bidi.rightRe_=/right/gi;goog.i18n.bidi.tempRe_=/%%%%/g; goog.i18n.bidi.mirrorCSS=function(a){return a.replace(goog.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(goog.i18n.bidi.leftRe_,"%%%%").replace(goog.i18n.bidi.rightRe_,goog.i18n.bidi.LEFT).replace(goog.i18n.bidi.tempRe_,goog.i18n.bidi.RIGHT)};goog.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g;goog.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g; goog.i18n.bidi.normalizeHebrewQuote=function(a){return a.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1\u05f4").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1\u05f3")};goog.i18n.bidi.wordSeparatorRe_=/\s+/;goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/;goog.i18n.bidi.rtlDetectionThreshold_=.4; goog.i18n.bidi.estimateDirection=function(a,b){var c=0,d=0,e=!1;a=goog.i18n.bidi.stripHtmlIfNeeded_(a,b).split(goog.i18n.bidi.wordSeparatorRe_);for(b=0;b<a.length;b++){var f=a[b];goog.i18n.bidi.startsWithRtl(f)?(c++,d++):goog.i18n.bidi.isRequiredLtrRe_.test(f)?e=!0:goog.i18n.bidi.hasAnyLtr(f)?d++:goog.i18n.bidi.hasNumeralsRe_.test(f)&&(e=!0)}return d==0?e?goog.i18n.bidi.Dir.LTR:goog.i18n.bidi.Dir.NEUTRAL:c/d>goog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR}; goog.i18n.bidi.detectRtlDirectionality=function(a,b){return goog.i18n.bidi.estimateDirection(a,b)==goog.i18n.bidi.Dir.RTL};goog.i18n.bidi.setElementDirAndAlign=function(a,b){a&&(b=goog.i18n.bidi.toDir(b))&&(a.style.textAlign=b==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,a.dir=b==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")}; goog.i18n.bidi.setElementDirByTextDirectionality=function(a,b){switch(goog.i18n.bidi.estimateDirection(b)){case goog.i18n.bidi.Dir.LTR:a.dir!=="ltr"&&(a.dir="ltr");break;case goog.i18n.bidi.Dir.RTL:a.dir!=="rtl"&&(a.dir="rtl");break;default:a.removeAttribute("dir")}};goog.i18n.bidi.DirectionalString=function(){};goog.i18n.BidiFormatter=function(a){this.contextDir_=goog.i18n.bidi.toDir(a,!0)};goog.i18n.BidiFormatter.prototype.estimateDirection=goog.i18n.bidi.estimateDirection;goog.i18n.BidiFormatter.prototype.mark=function(){switch(this.contextDir_){case goog.i18n.bidi.Dir.LTR:return goog.i18n.bidi.Format.LRM;case goog.i18n.bidi.Dir.RTL:return goog.i18n.bidi.Format.RLM;default:return""}};goog.soy={};goog.soy.data={};goog.soy.data.SanitizedContentKind={HTML:goog.DEBUG?{sanitizedContentKindHtml:!0}:{},JS:goog.DEBUG?{sanitizedContentJsChars:!0}:{},URI:goog.DEBUG?{sanitizedContentUri:!0}:{},TRUSTED_RESOURCE_URI:goog.DEBUG?{sanitizedContentTrustedResourceUri:!0}:{},ATTRIBUTES:goog.DEBUG?{sanitizedContentHtmlAttribute:!0}:{},STYLE:goog.DEBUG?{sanitizedContentStyle:!0}:{},CSS:goog.DEBUG?{sanitizedContentCss:!0}:{}}; goog.soy.data.SanitizedContent=function(){throw Error("Do not instantiate directly");};goog.soy.data.SanitizedContent.prototype.contentDir=null;goog.soy.data.SanitizedContent.prototype.getContent=function(){return this.content};goog.soy.data.SanitizedContent.prototype.toString=function(){return this.content}; goog.soy.data.SanitizedContent.prototype.toSafeHtml=function(){if(this.contentKind!==goog.soy.data.SanitizedContentKind.HTML)throw Error("Sanitized content was not of kind HTML.");return module$contents$google3$third_party$javascript$safevalues$restricted$reviewed_htmlSafeByReview(this.toString(),{justification:"Soy SanitizedContent of kind HTML produces SafeHtml-contract-compliant value."})};goog.soy.data.SanitizedHtml=function(){goog.soy.data.SanitizedContent.call(this)}; goog.inherits(goog.soy.data.SanitizedHtml,goog.soy.data.SanitizedContent);goog.soy.data.SanitizedHtml.prototype.contentKind=goog.soy.data.SanitizedContentKind.HTML;goog.soy.data.SanitizedHtml.isCompatibleWith=function(a){return typeof a==="string"||goog.soy.data.SanitizedHtml.isCompatibleWithStrict(a)};goog.soy.data.SanitizedHtml.isCompatibleWithStrict=function(a){return a instanceof goog.soy.data.SanitizedHtml||a instanceof module$exports$google3$third_party$javascript$safevalues$internals$html_impl.SafeHtml}; goog.soy.data.SanitizedJs=function(){goog.soy.data.SanitizedContent.call(this)};goog.inherits(goog.soy.data.SanitizedJs,goog.soy.data.SanitizedContent);goog.soy.data.SanitizedJs.prototype.contentKind=goog.soy.data.SanitizedContentKind.JS;goog.soy.data.SanitizedJs.prototype.contentDir=goog.i18n.bidi.Dir.LTR;goog.soy.data.SanitizedJs.isCompatibleWith=function(a){return typeof a==="string"||goog.soy.data.SanitizedJs.isCompatibleWithStrict(a)}; goog.soy.data.SanitizedJs.isCompatibleWithStrict=function(a){return a instanceof goog.soy.data.SanitizedJs||a instanceof module$exports$google3$third_party$javascript$safevalues$internals$script_impl.SafeScript};goog.soy.data.SanitizedUri=function(){goog.soy.data.SanitizedContent.call(this)};goog.inherits(goog.soy.data.SanitizedUri,goog.soy.data.SanitizedContent);goog.soy.data.SanitizedUri.prototype.contentKind=goog.soy.data.SanitizedContentKind.URI; goog.soy.data.SanitizedUri.prototype.contentDir=goog.i18n.bidi.Dir.LTR;goog.soy.data.SanitizedUri.isCompatibleWith=function(a){return typeof a==="string"||goog.soy.data.SanitizedUri.isCompatibleWithStrict(a)}; goog.soy.data.SanitizedUri.isCompatibleWithStrict=function(a){return a instanceof goog.soy.data.SanitizedUri||module$contents$google3$third_party$javascript$safevalues$internals$url_impl_isUrl(a)||a instanceof module$exports$google3$third_party$javascript$safevalues$internals$resource_url_impl.TrustedResourceUrl||a instanceof goog.Uri};goog.soy.data.SanitizedTrustedResourceUri=function(){goog.soy.data.SanitizedContent.call(this)};goog.inherits(goog.soy.data.SanitizedTrustedResourceUri,goog.soy.data.SanitizedContent); goog.soy.data.SanitizedTrustedResourceUri.prototype.contentKind=goog.soy.data.SanitizedContentKind.TRUSTED_RESOURCE_URI;goog.soy.data.SanitizedTrustedResourceUri.prototype.contentDir=goog.i18n.bidi.Dir.LTR;goog.soy.data.SanitizedTrustedResourceUri.isCompatibleWith=function(a){return typeof a==="string"||goog.soy.data.SanitizedTrustedResourceUri.isCompatibleWithStrict(a)}; goog.soy.data.SanitizedTrustedResourceUri.isCompatibleWithStrict=function(a){return a instanceof goog.soy.data.SanitizedTrustedResourceUri||a instanceof module$exports$google3$third_party$javascript$safevalues$internals$resource_url_impl.TrustedResourceUrl};goog.soy.data.SanitizedHtmlAttribute=function(){goog.soy.data.SanitizedContent.call(this)};goog.inherits(goog.soy.data.SanitizedHtmlAttribute,goog.soy.data.SanitizedContent);goog.soy.data.SanitizedHtmlAttribute.prototype.contentKind=goog.soy.data.SanitizedContentKind.ATTRIBUTES; goog.soy.data.SanitizedHtmlAttribute.prototype.contentDir=goog.i18n.bidi.Dir.LTR;goog.soy.data.SanitizedHtmlAttribute.isCompatibleWith=function(a){return typeof a==="string"||goog.soy.data.SanitizedHtmlAttribute.isCompatibleWithStrict(a)};goog.soy.data.SanitizedHtmlAttribute.isCompatibleWithStrict=function(a){return a instanceof goog.soy.data.SanitizedHtmlAttribute};goog.soy.data.SanitizedCss=function(){goog.soy.data.SanitizedContent.call(this)};goog.inherits(goog.soy.data.SanitizedCss,goog.soy.data.SanitizedContent); goog.soy.data.SanitizedCss.prototype.contentKind=goog.soy.data.SanitizedContentKind.CSS;goog.soy.data.SanitizedCss.prototype.contentDir=goog.i18n.bidi.Dir.LTR;goog.soy.data.SanitizedCss.isCompatibleWith=function(a){return typeof a==="string"||goog.soy.data.SanitizedCss.isCompatibleWithStrict(a)};goog.soy.data.SanitizedCss.isCompatibleWithStrict=function(a){return a instanceof goog.soy.data.SanitizedCss||typeof a==="string"||a instanceof module$exports$google3$third_party$javascript$safevalues$internals$style_sheet_impl.SafeStyleSheet};var module$contents$soy_getContentDir=function(a){if(a!=null)switch(a.contentDir){case goog.i18n.bidi.Dir.LTR:return goog.i18n.bidi.Dir.LTR;case goog.i18n.bidi.Dir.RTL:return goog.i18n.bidi.Dir.RTL;case goog.i18n.bidi.Dir.NEUTRAL:return goog.i18n.bidi.Dir.NEUTRAL}return null},module$contents$soy_createSanitizedHtml=function(a){return module$contents$soy_isContentKind_(a,goog.soy.data.SanitizedContentKind.HTML,goog.soy.data.SanitizedHtml)?a:a instanceof module$exports$google3$third_party$javascript$safevalues$internals$html_impl.SafeHtml? module$contents$soy_VERY_UNSAFE.ordainSanitizedHtml((0,module$exports$google3$third_party$javascript$safevalues$index.unwrapHtml)(a).toString()):module$contents$soy_VERY_UNSAFE.ordainSanitizedHtml(module$contents$soy_$$escapeHtmlHelper(String(a)),module$contents$soy_getContentDir(a))},module$contents$soy_$$makeSanitizedContentFactory_=function(a){function b(d){this.content=d}function c(d,e){d=new b(String(d));e!==void 0&&(d.contentDir=e);return d}b.prototype=a.prototype;return c},module$contents$soy_$$makeSanitizedContentFactoryWithDefaultDirOnly_= function(a){function b(d){this.content=d}function c(d){return d=new b(String(d))}b.prototype=a.prototype;return c},module$contents$soy_VERY_UNSAFE={};module$contents$soy_VERY_UNSAFE.ordainSanitizedHtml=module$contents$soy_$$makeSanitizedContentFactory_(goog.soy.data.SanitizedHtml);module$contents$soy_VERY_UNSAFE.ordainSanitizedJs=module$contents$soy_$$makeSanitizedContentFactoryWithDefaultDirOnly_(goog.soy.data.SanitizedJs);module$contents$soy_VERY_UNSAFE.ordainSanitizedUri=module$contents$soy_$$makeSanitizedContentFactoryWithDefaultDirOnly_(goog.soy.data.SanitizedUri); module$contents$soy_VERY_UNSAFE.ordainSanitizedTrustedResourceUri=module$contents$soy_$$makeSanitizedContentFactoryWithDefaultDirOnly_(goog.soy.data.SanitizedTrustedResourceUri);module$contents$soy_VERY_UNSAFE.ordainSanitizedHtmlAttribute=module$contents$soy_$$makeSanitizedContentFactoryWithDefaultDirOnly_(goog.soy.data.SanitizedHtmlAttribute);module$contents$soy_VERY_UNSAFE.ordainSanitizedCss=module$contents$soy_$$makeSanitizedContentFactoryWithDefaultDirOnly_(goog.soy.data.SanitizedCss); var module$contents$soy_$$stubsMap=goog.DEBUG?{}:null,module$contents$soy_$$isTruthyNonEmpty=function(a){return a instanceof goog.soy.data.SanitizedContent?!!a.getContent():!!a},module$contents$soy_$$HTML5_VOID_ELEMENTS_=RegExp("^<(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\\b"),module$contents$soy_$$stripHtmlTags=function(a,b){if(!b)return module$contents$soy_$$replaceHtmlTags_(String(a),function(){return""}).replace(module$contents$soy_$$LT_REGEX_,"<"); a=String(a).replace(/\[/g,"[");var c=[],d=[];a=module$contents$soy_$$replaceHtmlTags_(a,function(f,g){if(g&&(g=g.toLowerCase(),b.hasOwnProperty(g)&&b[g])){var h=f.charAt(1)==="/",k=c.length,l="</",m="";if(!h){for(l="<";h=module$contents$soy_$$HTML_ATTRIBUTE_REGEX_.exec(f);)if(h[1]&&h[1].toLowerCase()==="dir"){if(f=h[2]){if(f.charAt(0)==="'"||f.charAt(0)==='"')f=f.substr(1,f.length-2);f=f.toLowerCase();if(f==="ltr"||f==="rtl"||f==="auto")m=' dir="'+f+'"'}break}module$contents$soy_$$HTML_ATTRIBUTE_REGEX_.lastIndex= 0}c[k]=l+g+">";d[k]=m;return"["+k+"]"}return""});a=module$contents$soy_$$normalizeHtmlHelper(a);var e=module$contents$soy_$$balanceTags_(c);a=a.replace(/\[(\d+)\]/g,function(f,g){return d[g]&&c[g]?c[g].substr(0,c[g].length-1)+d[g]+">":c[g]});return a+e},module$contents$soy_STATE={DEFAULT:0,TAG:1},module$contents$soy_hasNativeY=RegExp.prototype.hasOwnProperty("sticky"),module$contents$soy_$$HTML_TAG_FIRST_TOKEN_=new RegExp((module$contents$soy_hasNativeY?"":"^")+"(?:!|/?([a-zA-Z][a-zA-Z0-9:-]*))", module$contents$soy_hasNativeY?"gy":"g"); function module$contents$soy_$$replaceHtmlTags_(a,b){for(var c=[],d=a.length,e=module$contents$soy_STATE.DEFAULT,f=[],g,h,k=function(){e=module$contents$soy_STATE.DEFAULT;f=[];h=g=null},l=0;l<d;){switch(e){case module$contents$soy_STATE.DEFAULT:var m=a.indexOf("<",l);if(m<0){if(c.length===0)return a;c.push(a.substring(l));l=d}else c.push(a.substring(l,m)),h=m,l=m+1,m=void 0,module$contents$soy_hasNativeY?(module$contents$soy_$$HTML_TAG_FIRST_TOKEN_.lastIndex=l,m=module$contents$soy_$$HTML_TAG_FIRST_TOKEN_.exec(a)): (module$contents$soy_$$HTML_TAG_FIRST_TOKEN_.lastIndex=0,m=module$contents$soy_$$HTML_TAG_FIRST_TOKEN_.exec(a.substring(l))),m?(f=["<",m[0]],g=m[1],e=module$contents$soy_STATE.TAG,l+=m[0].length):c.push("<");break;case module$contents$soy_STATE.TAG:m=a.charAt(l++);switch(m){case "'":case '"':var n=a.indexOf(m,l);n<0?l=d:(f.push(m,a.substring(l,n+1)),l=n+1);break;case ">":f.push(m);c.push(b(f.join(""),g));k();break;default:f.push(m)}break;default:throw Error();}e===module$contents$soy_STATE.TAG&&l>= d&&(l=h+1,c.push("<"),k())}return c.join("")} var module$contents$soy_$$balanceTags_=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c];e.charAt(1)=="/"?(e=b.lastIndexOf(e),e<0?a[c]="":(a[c]=b.slice(e).reverse().join(""),b.length=e)):e=="<li>"&&b.lastIndexOf("</ol>")<0&&b.lastIndexOf("</ul>")<0?a[c]="":module$contents$soy_$$HTML5_VOID_ELEMENTS_.test(e)||b.push("</"+e.substring(1))}return b.reverse().join("")},module$contents$soy_$$escapeHtmlAttribute=function(a){return module$contents$soy_isContentKind_(a,goog.soy.data.SanitizedContentKind.HTML, goog.soy.data.SanitizedHtml)?module$contents$soy_$$normalizeHtmlHelper(module$contents$soy_$$stripHtmlTags(a.getContent())):module$contents$soy_$$escapeHtmlHelper(a)},module$contents$soy_assertParamType=function(a,b,c,d,e){module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS&&!a&&(goog.DEBUG&&goog.asserts.fail("expected "+d+" "+b+" of type "+e+", but got "+goog.debug.runtimeType(c)+"."),goog.asserts.fail("parameter type error. Enable DEBUG to see details."));return c}, module$contents$soy_$$internalCallMarkerDoNotUse={},module$contents$soy_$$areYouAnInternalCaller=function(a){goog.asserts.assert(a===module$contents$soy_$$internalCallMarkerDoNotUse,"found an incorrect call marker, was an internal function called from the top level?")},module$contents$soy_$$debugSoyTemplateInfo=!1,module$contents$soy_isContentKind_=function(a,b,c){(b=a!=null&&a.contentKind===b)&&c&&goog.asserts.assert(a.constructor===c);return b},module$contents$soy_$$ESCAPE_MAP_FOR_ESCAPE_HTML__AND__NORMALIZE_HTML__AND__ESCAPE_HTML_NOSPACE__AND__NORMALIZE_HTML_NOSPACE_= {"\x00":"�","\t":"	","\n":" ","\v":"","\f":"","\r":" "," ":" ",'"':""","&":"&","'":"'","-":"-","/":"/","<":"<","=":"=",">":">","`":"`","\u0085":"…","\u00a0":" ","\u2028":"
","\u2029":"
"},module$contents$soy_$$REPLACER_FOR_ESCAPE_HTML__AND__NORMALIZE_HTML__AND__ESCAPE_HTML_NOSPACE__AND__NORMALIZE_HTML_NOSPACE_=function(a){return module$contents$soy_$$ESCAPE_MAP_FOR_ESCAPE_HTML__AND__NORMALIZE_HTML__AND__ESCAPE_HTML_NOSPACE__AND__NORMALIZE_HTML_NOSPACE_[a]}, module$contents$soy_$$MATCHER_FOR_ESCAPE_HTML_=/[\x00\x22\x26\x27\x3c\x3e]/g,module$contents$soy_$$MATCHER_FOR_NORMALIZE_HTML_=/[\x00\x22\x27\x3c\x3e]/g,module$contents$soy_$$FILTER_FOR_FILTER_HTML_ATTRIBUTES_=/^(?!on|src|(?:action|archive|background|cite|classid|codebase|content|data|dsync|href|http-equiv|longdesc|style|usemap)\s*$)(?:[a-z0-9_$:-]*)$/i,module$contents$soy_$$escapeHtmlHelper=function(a){a=String(a);return a.replace(module$contents$soy_$$MATCHER_FOR_ESCAPE_HTML_,module$contents$soy_$$REPLACER_FOR_ESCAPE_HTML__AND__NORMALIZE_HTML__AND__ESCAPE_HTML_NOSPACE__AND__NORMALIZE_HTML_NOSPACE_)}, module$contents$soy_$$normalizeHtmlHelper=function(a){a=String(a);return a.replace(module$contents$soy_$$MATCHER_FOR_NORMALIZE_HTML_,module$contents$soy_$$REPLACER_FOR_ESCAPE_HTML__AND__NORMALIZE_HTML__AND__ESCAPE_HTML_NOSPACE__AND__NORMALIZE_HTML_NOSPACE_)},module$contents$soy_$$LT_REGEX_=/</g,module$contents$soy_$$HTML_ATTRIBUTE_REGEX_=/([a-zA-Z][a-zA-Z0-9:\-]*)[\t\n\r\u0020]*=[\t\n\r\u0020]*("[^"]*"|'[^']*')/g;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var module$contents$goog$soy_IjData=function(){};goog.soy.IjData=module$contents$goog$soy_IjData;var module$contents$goog$soy_CompatibleIj;goog.soy.CompatibleIj=module$contents$goog$soy_CompatibleIj;var module$contents$goog$soy_StrictTemplate;goog.soy.StrictTemplate=module$contents$goog$soy_StrictTemplate;var module$contents$goog$soy_StrictHtmlTemplate;goog.soy.StrictHtmlTemplate=module$contents$goog$soy_StrictHtmlTemplate;var module$contents$goog$soy_TextTemplate;goog.soy.TextTemplate=module$contents$goog$soy_TextTemplate; function module$contents$goog$soy_renderHtml(a,b){b&&b.renderElement?b.renderElement(goog.asserts.assert(a)):(a=goog.asserts.assert(a),b=module$contents$goog$soy_ensureTemplateOutputHtml(b),a.innerHTML=(0,module$exports$google3$third_party$javascript$safevalues$index.unwrapHtml)(b))}goog.soy.renderHtml=module$contents$goog$soy_renderHtml; function module$contents$goog$soy_renderElement(a,b,c,d){(b=b(c||module$contents$goog$soy_defaultTemplateData,d))&&b.renderElement&&a?b.renderElement(a):(b=module$contents$goog$soy_ensureTemplateOutputHtml(b),a=goog.asserts.assert(a),a.innerHTML=(0,module$exports$google3$third_party$javascript$safevalues$index.unwrapHtml)(b))}goog.soy.renderElement=module$contents$goog$soy_renderElement; function module$contents$goog$soy_renderAsFragment(a,b,c,d){d=d||goog.dom.getDomHelper();if((a=a(b||module$contents$goog$soy_defaultTemplateData,c))&&a.renderAsElement)return a.renderAsElement();a=module$contents$goog$soy_ensureTemplateOutputHtml(a);module$contents$goog$soy_assertFirstTagValid(a.toString());return d.safeHtmlToNode(a)}goog.soy.renderAsFragment=module$contents$goog$soy_renderAsFragment; function module$contents$goog$soy_renderAsElement(a,b,c,d){return module$contents$goog$soy_convertToElementInternal(a(b||module$contents$goog$soy_defaultTemplateData,c),d)}goog.soy.renderAsElement=module$contents$goog$soy_renderAsElement;function module$contents$goog$soy_convertToElement(a,b){return module$contents$goog$soy_convertToElementInternal(a,b)}goog.soy.convertToElement=module$contents$goog$soy_convertToElement; function module$contents$goog$soy_convertToElementInternal(a,b){b=b||goog.dom.getDomHelper();a&&a.renderAsElement?b=a.renderAsElement():(b=b.createElement(goog.dom.TagName.DIV),a=module$contents$goog$soy_ensureTemplateOutputHtml(a),module$contents$goog$soy_assertFirstTagValid(a.toString()),b.innerHTML=(0,module$exports$google3$third_party$javascript$safevalues$index.unwrapHtml)(a));return b.childNodes.length==1&&(a=b.firstChild,a.nodeType==goog.dom.NodeType.ELEMENT)?a:b} function module$contents$goog$soy_ensureTemplateOutputHtml(a){if(!goog.isObject(a))return(0,module$exports$google3$third_party$javascript$safevalues$index.htmlEscape)(String(a));if(a.toSafeHtml){var b=a.toSafeHtml();if(b instanceof module$exports$google3$third_party$javascript$safevalues$internals$html_impl.SafeHtml)return b}goog.asserts.fail("Soy template output is unsafe for use as HTML: "+a);return(0,module$exports$google3$third_party$javascript$safevalues$index.htmlEscape)("zSoyz")} function module$contents$goog$soy_assertFirstTagValid(a){if(module$exports$google3$javascript$common$asserts$enable_goog_asserts.ENABLE_GOOG_ASSERTS){var b=a.match(module$contents$goog$soy_INVALID_TAG_TO_RENDER);goog.asserts.assert(!b,"This template starts with a %s, which cannot be a child of a <div>, as required by soy internals. Consider using goog.soy.renderElement instead.\nTemplate output: %s",b&&b[0],a)}}var module$contents$goog$soy_INVALID_TAG_TO_RENDER=/^<(body|caption|col|colgroup|head|html|tr|td|th|tbody|thead|tfoot)>/i; function module$contents$goog$soy_renderAsText(a,b,c){a=a(b||module$contents$goog$soy_defaultTemplateData,c);goog.asserts.assertString(a,'renderText was called with a template of kind other than "text"');return String(a)}goog.soy.renderAsText=module$contents$goog$soy_renderAsText;var module$contents$goog$soy_defaultTemplateData={};jfk.templates={};jfk.templates.button={}; jfk.templates.button.strict=function(a,b){var c=b;if(goog.DEBUG&&module$contents$soy_$$stubsMap["jfk.templates.button.strict"])return module$contents$soy_$$stubsMap["jfk.templates.button.strict"](a,c);a=a||{};var d=a.attributes;b=a.content;var e=a.disabled,f=a.id,g=a.tabindex,h=a.title,k=a.usingKennedyTooltip,l=a.value,m,n=module$contents$soy_VERY_UNSAFE,p=n.ordainSanitizedHtml;a='<div role="button"'+(module$contents$soy_$$isTruthyNonEmpty(f)?' id="'+module$contents$soy_$$escapeHtmlAttribute(f)+'"': "")+' class="'+module$contents$soy_$$escapeHtmlAttribute(jfk.templates.button.classes_(a,c))+'"'+(module$contents$soy_$$isTruthyNonEmpty(e)?' aria-disabled="true"':' tabindex="'+(module$contents$soy_$$isTruthyNonEmpty(g)?module$contents$soy_$$escapeHtmlAttribute(g):"0")+'"')+(module$contents$soy_$$isTruthyNonEmpty(h)?module$contents$soy_$$isTruthyNonEmpty(k)?' data-tooltip="'+module$contents$soy_$$escapeHtmlAttribute(h)+'"':' title="'+module$contents$soy_$$escapeHtmlAttribute(h)+'"':"")+(module$contents$soy_$$isTruthyNonEmpty(l)? ' value="'+module$contents$soy_$$escapeHtmlAttribute(l)+'"':"");module$contents$soy_$$isTruthyNonEmpty(d)?(module$contents$soy_isContentKind_(d,goog.soy.data.SanitizedContentKind.ATTRIBUTES,goog.soy.data.SanitizedHtmlAttribute)?d=d.getContent():(d=String(d),module$contents$soy_$$FILTER_FOR_FILTER_HTML_ATTRIBUTES_.test(d)||(goog.asserts.fail("Bad value `%s` for |filterHtmlAttributes",[d]),d="zSoyz")),module$contents$soy_isContentKind_(d,goog.soy.data.SanitizedContentKind.ATTRIBUTES,goog.soy.data.SanitizedHtmlAttribute)&& (d=d.getContent()),d=(d&&!d.startsWith(" ")?" ":"")+d):d="";return p.call(n,a+d+(goog.DEBUG&&module$contents$soy_$$debugSoyTemplateInfo?' data-debug-soy="jfk.templates.button.strict javascript/jfk/button/button.soy:25"':"")+">"+module$contents$soy_createSanitizedHtml((m=b)!=null?m:"")+"</div>")};goog.DEBUG&&(jfk.templates.button.strict.soyTemplateName="jfk.templates.button.strict"); jfk.templates.button.classes_=function(a,b){a=a||{};return jfk.templates.button.classes_$(module$contents$soy_$$internalCallMarkerDoNotUse,b,a.classes,a.disabled,a.checked,a.style,a.width)}; jfk.templates.button.classes_$=function(a,b,c,d,e,f,g){module$contents$soy_$$areYouAnInternalCaller(a);if(goog.DEBUG&&module$contents$soy_$$stubsMap["jfk.templates.button.classes_"])return module$contents$soy_$$stubsMap["jfk.templates.button.classes_"]({classes:c,disabled:d,checked:e,style:f,width:g},b);a=c;b=g;g="goog-inline-block jfk-button ";switch(goog.isObject(f)?f.toString():f){case jspb$e.jfk$ButtonStyle$Style.STANDARD:g+="jfk-button-standard";break;case jspb$e.jfk$ButtonStyle$Style.ACTION:g+= "jfk-button-action";break;case jspb$e.jfk$ButtonStyle$Style.PRIMARY:g+="jfk-button-primary";break;case jspb$e.jfk$ButtonStyle$Style.DEFAULT:g+="jfk-button-default";break;case jspb$e.jfk$ButtonStyle$Style.FLAT:g+="jfk-button-flat";break;case jspb$e.jfk$ButtonStyle$Style.MINI:g+="jfk-button-mini";break;case jspb$e.jfk$ButtonStyle$Style.CONTRAST:g+="jfk-button-contrast";break;default:g+="jfk-button-standard"}f=b;b=jspb$e.jfk$ButtonStyle$Width.NARROW;f=f&&b&&f.isInvokableFn&&b.isInvokableFn?f.contentKind!== b.contentKind?!1:f.toString()===b.toString():f instanceof goog.soy.data.SanitizedContent&&b instanceof goog.soy.data.SanitizedContent?f.contentKind!=b.contentKind?!1:f.toString()==b.toString():f==b;return g+=(f?" jfk-button-narrow":"")+(module$contents$soy_$$isTruthyNonEmpty(e)?" jfk-button-checked":"")+(module$contents$soy_$$isTruthyNonEmpty(a)?" "+a:"")+(module$contents$soy_$$isTruthyNonEmpty(d)?" jfk-button-disabled":"")};goog.DEBUG&&(jfk.templates.button.classes_.soyTemplateName="jfk.templates.button.classes_"); jfk.templates.button.search=function(a,b){a=a||{};return jfk.templates.button.search$(module$contents$soy_$$internalCallMarkerDoNotUse,b,a.classes,a.tabindex)}; jfk.templates.button.search$=function(a,b,c,d){module$contents$soy_$$areYouAnInternalCaller(a);if(goog.DEBUG&&module$contents$soy_$$stubsMap["jfk.templates.button.search"])return module$contents$soy_$$stubsMap["jfk.templates.button.search"]({classes:c,tabindex:d},b);a=c;return module$contents$soy_VERY_UNSAFE.ordainSanitizedHtml(jfk.templates.button.strict({style:jspb$e.jfk$ButtonStyle$Style.ACTION,content:module$contents$soy_VERY_UNSAFE.ordainSanitizedHtml(""+jfk.templates.button.searchIcon_(null, b)),classes:a,tabindex:d},b))};goog.DEBUG&&(jfk.templates.button.search.soyTemplateName="jfk.templates.button.search"); jfk.templates.button.searchIcon_=function(a,b){return goog.DEBUG&&module$contents$soy_$$stubsMap["jfk.templates.button.searchIcon_"]?module$contents$soy_$$stubsMap["jfk.templates.button.searchIcon_"](a,b):module$contents$soy_VERY_UNSAFE.ordainSanitizedHtml('<img src="//ssl.gstatic.com/ui/v1/button/search-white.png" style="width: 21px; height: 21px;" class="'+module$contents$soy_$$escapeHtmlAttribute("jfk-button-img")+'"'+(goog.DEBUG&&module$contents$soy_$$debugSoyTemplateInfo?' data-debug-soy="jfk.templates.button.searchIcon_ javascript/jfk/button/button.soy:118"': "")+">")};goog.DEBUG&&(jfk.templates.button.searchIcon_.soyTemplateName="jfk.templates.button.searchIcon_");var module$contents$jfk$ArrowAlignment_ArrowAlignment={LEFT_OR_TOP:0,RIGHT_OR_BOTTOM:1,CENTER:2};jfk.ArrowAlignment=module$contents$jfk$ArrowAlignment_ArrowAlignment;jfk.PopupPosition={LEFT:0,BOTTOM:1,TOP:2,RIGHT:3};jfk.PopupPosition.FLIP_POSITION_=3;jfk.PopupPosition.flip=function(a){return a^jfk.PopupPosition.FLIP_POSITION_};jfk.ArrowPosition=function(a,b){this.className_=a;this.disableSubpixels_=!!b;this.arrowClassMap_=module$contents$goog$object_create(jfk.PopupPosition.LEFT,this.className_+"-arrowright",jfk.PopupPosition.BOTTOM,this.className_+"-arrowup",jfk.PopupPosition.TOP,this.className_+"-arrowdown",jfk.PopupPosition.RIGHT,this.className_+"-arrowleft")};$jscomp.inherits(jfk.ArrowPosition,goog.positioning.AbstractPosition);jfk.ArrowPosition.prototype.setAnchorElement=function(a){this.anchorElement_=a}; jfk.ArrowPosition.prototype.setPosition=function(a,b,c,d){a!=null&&(this.boxPosition_=a);b!=null&&(this.arrowAlignment_=b);typeof c==="number"&&(this.arrowOffset_=Math.max(c,jfk.ArrowPosition.MIN_ARROW_OFFSET_));typeof d==="number"&&(this.offsetFromAnchor_=d)};jfk.ArrowPosition.prototype.setElements=function(a,b){this.boxElement_=a;this.arrowElement_=b};jfk.ArrowPosition.prototype.setBoxOverflowAllowedOnPositioningFail=function(a){this.allowBoxOverflowOnPositioningFail_=a}; jfk.ArrowPosition.prototype.reposition=function(a,b,c){goog.asserts.assert(this.arrowElement_,"Must call setElements first.");a=this.boxPosition_;b=this.getEffectiveAlignment_(this.boxPosition_,this.arrowAlignment_);var d=this.getEffectiveArrowOffset_();this.reposition_(a,b,d,jfk.ArrowPosition.RetryStatus_.INITIAL_TRY,c)}; jfk.ArrowPosition.prototype.getEffectiveArrowOffset_=function(){return this.arrowAlignment_==module$contents$jfk$ArrowAlignment_ArrowAlignment.CENTER?jfk.ArrowPosition.isLeftOrRight_(this.boxPosition_)?this.boxElement_.offsetHeight/2:this.boxElement_.offsetWidth/2:this.arrowOffset_}; jfk.ArrowPosition.prototype.getEffectiveAlignment_=function(a,b){b==module$contents$jfk$ArrowAlignment_ArrowAlignment.CENTER&&(b=module$contents$jfk$ArrowAlignment_ArrowAlignment.LEFT_OR_TOP);return!jfk.ArrowPosition.isLeftOrRight_(a)&&goog.i18n.bidi.IS_RTL?b^jfk.ArrowPosition.FLIP_ALIGNMENT_:b};jfk.ArrowPosition.prototype.setAutoReposition=function(a){this.isAutoReposition_=a}; jfk.ArrowPosition.prototype.reposition_=function(a,b,c,d,e){if(this.anchorElement_){var f=jfk.ArrowPosition.getCorner_(a,b),g=jfk.ArrowPosition.getCenteringOffset_(this.anchorElement_,a,c,f,this.boxElement_,this.viewport_);g=jfk.ArrowPosition.isLeftOrRight_(a)?new goog.math.Coordinate(this.offsetFromAnchor_,g):new goog.math.Coordinate(g,this.offsetFromAnchor_);var h=jfk.ArrowPosition.isLeftOrRight_(a)?goog.positioning.Overflow.ADJUST_Y|goog.positioning.Overflow.FAIL_X:goog.positioning.Overflow.ADJUST_X| goog.positioning.Overflow.FAIL_Y;this.allowBoxOverflowOnPositioningFail_&&d==jfk.ArrowPosition.RetryStatus_.FINAL&&(h=jfk.ArrowPosition.isLeftOrRight_(a)?goog.positioning.Overflow.ADJUST_Y:goog.positioning.Overflow.ADJUST_X);var k=jfk.PopupPosition.flip(a);jfk.ArrowPosition.isLeftOrRight_(a)&&(goog.i18n.bidi.IS_RTL&&this.anchorElement_.dir=="ltr"||!goog.i18n.bidi.IS_RTL&&this.anchorElement_.dir=="rtl")&&(k=a);f=goog.positioning.positionAtAnchor(this.anchorElement_,jfk.ArrowPosition.getCorner_(k,b), this.boxElement_,f,g,e,this.isAutoReposition_?h:goog.positioning.Overflow.IGNORE,void 0,this.viewport_);if(d!=jfk.ArrowPosition.RetryStatus_.FINAL&&f&goog.positioning.OverflowStatus.FAILED){d=this.allowBoxOverflowOnPositioningFail_&&d==jfk.ArrowPosition.RetryStatus_.INITIAL_TRY?jfk.ArrowPosition.RetryStatus_.FLIPPED:jfk.ArrowPosition.RetryStatus_.FINAL;this.reposition_(jfk.PopupPosition.flip(a),b,c,d,e);return}!this.disableSubpixels_||f&goog.positioning.OverflowStatus.FAILED||(e=parseFloat(this.boxElement_.style.left), d=parseFloat(this.boxElement_.style.top),goog.asserts.assert(!isNaN(e)&&!isNaN(d),"Could not parse position."),goog.math.isInt(e)&&goog.math.isInt(d)||goog.style.setPosition(this.boxElement_,Math.round(e),Math.round(d)))}this.positionArrow_(a,b,c)}; jfk.ArrowPosition.prototype.positionArrow_=function(a,b,c){var d=this.arrowElement_;module$contents$goog$object_forEach(this.arrowClassMap_,function(e){goog.dom.classlist.enable(d,e,!1)},this);goog.dom.classlist.add(d,this.arrowClassMap_[a]);d.style.top=d.style.left=d.style.right=d.style.bottom="";this.anchorElement_?(c=goog.style.getRelativePosition(this.anchorElement_,this.boxElement_),b=jfk.ArrowPosition.getAnchorPointOffsetFromAnchorTopLeft_(this.anchorElement_,a),jfk.ArrowPosition.isLeftOrRight_(a)? (a=jfk.ArrowPosition.clamp_(c.y+b.y,jfk.ArrowPosition.MIN_ARROW_OFFSET_,this.boxElement_.offsetHeight-jfk.ArrowPosition.MIN_ARROW_OFFSET_),d.style.top=a+"px"):(a=jfk.ArrowPosition.clamp_(c.x+b.x,jfk.ArrowPosition.MIN_ARROW_OFFSET_,this.boxElement_.offsetWidth-jfk.ArrowPosition.MIN_ARROW_OFFSET_),d.style.left=a+"px")):(a=b==module$contents$jfk$ArrowAlignment_ArrowAlignment.LEFT_OR_TOP?jfk.ArrowPosition.isLeftOrRight_(a)?"top":"left":jfk.ArrowPosition.isLeftOrRight_(a)?"bottom":"right",d.style[a]=c+ "px")};jfk.ArrowPosition.clamp_=function(a,b,c){return b>c?b:goog.math.clamp(a,b,c)}; jfk.ArrowPosition.getCorner_=function(a,b){switch(a){case jfk.PopupPosition.TOP:return b==module$contents$jfk$ArrowAlignment_ArrowAlignment.LEFT_OR_TOP?goog.positioning.Corner.BOTTOM_LEFT:goog.positioning.Corner.BOTTOM_RIGHT;case jfk.PopupPosition.BOTTOM:return b==module$contents$jfk$ArrowAlignment_ArrowAlignment.LEFT_OR_TOP?goog.positioning.Corner.TOP_LEFT:goog.positioning.Corner.TOP_RIGHT;case jfk.PopupPosition.LEFT:return b==module$contents$jfk$ArrowAlignment_ArrowAlignment.LEFT_OR_TOP?goog.positioning.Corner.TOP_END: goog.positioning.Corner.BOTTOM_END;default:return b==module$contents$jfk$ArrowAlignment_ArrowAlignment.LEFT_OR_TOP?goog.positioning.Corner.TOP_START:goog.positioning.Corner.BOTTOM_START}};jfk.ArrowPosition.getCenteringOffset_=function(a,b,c,d,e,f){var g=goog.style.getSize(a);g=jfk.ArrowPosition.isLeftOrRight_(b)?g.height/2:g.width/2;c=g-c;return jfk.ArrowPosition.normalizeCenteringOffset_(c,a,b,d,e,f)}; jfk.ArrowPosition.normalizeCenteringOffset_=function(a,b,c,d,e,f){d=goog.positioning.getEffectiveCorner(b,d);if(f)f=f.clone(),e&&(e=goog.positioning.getOffsetParentPageOffset(e),f.left+=e.x,f.right+=e.x,f.top+=e.y,f.bottom+=e.y);else if(f=goog.style.getVisibleRectForElement(b),!f)return a;b=goog.style.getBounds(b).toBox();jfk.ArrowPosition.isLeftOrRight_(c)?b.top<f.top&&!(d&goog.positioning.CornerBit.BOTTOM)?a-=f.top-b.top:b.bottom>f.bottom&&d&goog.positioning.CornerBit.BOTTOM&&(a-=b.bottom-f.bottom): b.left<f.left&&!(d&goog.positioning.CornerBit.RIGHT)?a-=f.left-b.left:b.right>f.right&&d&goog.positioning.CornerBit.RIGHT&&(a-=b.right-f.right);return a}; jfk.ArrowPosition.getAnchorPointOffsetFromAnchorTopLeft_=function(a,b){var c=0,d=0;a=goog.style.getSize(a);switch(b){case jfk.PopupPosition.TOP:c=a.width/2;break;case jfk.PopupPosition.BOTTOM:c=a.width/2;d=a.height;break;case jfk.PopupPosition.LEFT:d=a.height/2;break;case jfk.PopupPosition.RIGHT:c=a.width,d=a.height/2}return new goog.math.Coordinate(c,d)};jfk.ArrowPosition.isLeftOrRight_=function(a){return a==jfk.PopupPosition.LEFT||a==jfk.PopupPosition.RIGHT}; jfk.ArrowPosition.RetryStatus_={INITIAL_TRY:0,FLIPPED:1,FINAL:2};jfk.ArrowPosition.FLIP_ALIGNMENT_=1;jfk.ArrowPosition.MIN_ARROW_OFFSET_=15;jfk.ArrowPosition.prototype.isAutoReposition_=!1;jfk.ArrowPosition.prototype.arrowAlignment_=module$contents$jfk$ArrowAlignment_ArrowAlignment.CENTER;jfk.ArrowPosition.prototype.arrowOffset_=20;jfk.ArrowPosition.prototype.boxPosition_=jfk.PopupPosition.RIGHT;jfk.ArrowPosition.prototype.viewport_=null;jfk.ArrowPosition.prototype.offsetFromAnchor_=-5; jfk.ArrowPosition.prototype.allowBoxOverflowOnPositioningFail_=!1;var module$exports$jfk$AbstractTooltipRenderer=function(a){goog.Disposable.call(this);this.dom=a||goog.dom.getDomHelper()};$jscomp.inherits(module$exports$jfk$AbstractTooltipRenderer,goog.Disposable);module$exports$jfk$AbstractTooltipRenderer.prototype.initAriaState=function(){goog.a11y.aria.setRole(this.getElement(),this.getAriaRole());goog.a11y.aria.setState(this.getElement(),goog.a11y.aria.State.LIVE,goog.a11y.aria.LivePriority.POLITE)}; module$exports$jfk$AbstractTooltipRenderer.prototype.getAriaRole=function(){return goog.a11y.aria.Role.TOOLTIP};var module$contents$jfk$TooltipRenderer_TooltipRenderer=function(a){module$exports$jfk$AbstractTooltipRenderer.call(this,a);this.contentEl_=this.dom.createDom(goog.dom.TagName.DIV,"jfk-tooltip-contentId");this.arrowEl_=this.dom.createDom(goog.dom.TagName.DIV,"jfk-tooltip-arrow",this.dom.createDom(goog.dom.TagName.DIV,"jfk-tooltip-arrowimplbefore"),this.dom.createDom(goog.dom.TagName.DIV,"jfk-tooltip-arrowimplafter"));this.tooltipEl_=this.dom.createDom(goog.dom.TagName.DIV,{"class":"jfk-tooltip",role:"tooltip"}, this.contentEl_,this.arrowEl_);this.initAriaState()};$jscomp.inherits(module$contents$jfk$TooltipRenderer_TooltipRenderer,module$exports$jfk$AbstractTooltipRenderer);module$contents$jfk$TooltipRenderer_TooltipRenderer.prototype.getElement=function(){return this.tooltipEl_};module$contents$jfk$TooltipRenderer_TooltipRenderer.prototype.getContentElement=function(){return this.contentEl_}; module$contents$jfk$TooltipRenderer_TooltipRenderer.prototype.disposeInternal=function(){module$exports$jfk$AbstractTooltipRenderer.prototype.disposeInternal.call(this);this.tooltipEl_&&goog.dom.removeNode(this.tooltipEl_)};jfk.TooltipRenderer=module$contents$jfk$TooltipRenderer_TooltipRenderer;var module$contents$jfk$SilentTooltipRenderer_SilentTooltipRenderer=function(a){module$contents$jfk$TooltipRenderer_TooltipRenderer.call(this,a)};$jscomp.inherits(module$contents$jfk$SilentTooltipRenderer_SilentTooltipRenderer,module$contents$jfk$TooltipRenderer_TooltipRenderer);module$contents$jfk$SilentTooltipRenderer_SilentTooltipRenderer.prototype.initAriaState=function(){goog.a11y.aria.setRole(this.getElement(),this.getAriaRole())};jfk.SilentTooltipRenderer=module$contents$jfk$SilentTooltipRenderer_SilentTooltipRenderer;goog.html.utils={};goog.html.utils.stripHtmlTags=function(a){return goog.string.unescapeEntities(goog.string.trim(a.replace(goog.html.utils.HTML_TAG_REGEX_,function(b,c){return goog.html.utils.INLINE_HTML_TAG_REGEX_.test(c)?"":" "}).replace(/[\t\n ]+/g," ")))};goog.html.utils.INLINE_HTML_TAG_REGEX_=/^(?:abbr|acronym|address|b|em|i|small|strong|su[bp]|u)$/i;goog.html.utils.HTML_TAG_REGEX_=/<[!\/]?([a-z0-9]+)([\/ ][^>]*)?>/gi;jfk.tooltipManager={};jfk.tooltipManager.install=function(a){a=a||goog.dom.getDomHelper();var b=goog.getUid(a.getDocument());jfk.tooltipManager.instances_[b]||(jfk.tooltipManager.instances_[b]=new jfk.TooltipManager_(a))};jfk.tooltipManager.uninstall=function(a){a=a||goog.dom.getDomHelper();a=goog.getUid(a.getDocument());jfk.tooltipManager.instances_[a]&&(jfk.tooltipManager.instances_[a].dispose(),delete jfk.tooltipManager.instances_[a])}; jfk.tooltipManager.setTooltipText=function(a,b,c){jfk.tooltipManager.setTooltipHelper_(a,b,c)};jfk.tooltipManager.setTooltipSafeHtml=function(a,b,c){jfk.tooltipManager.setTooltipHelper_(a,b,c)};jfk.tooltipManager.setTooltipFromTitle=function(a){var b=a.getAttribute("title");b&&jfk.tooltipManager.setTooltipHelper_(a,b)}; jfk.tooltipManager.setTooltipHelper_=function(a,b,c){c||(c=b instanceof module$exports$google3$third_party$javascript$safevalues$internals$html_impl.SafeHtml?goog.html.utils.stripHtmlTags(module$exports$google3$third_party$javascript$safevalues$index.unwrapHtml(b).toString()):b);a.removeAttribute("title");a.removeAttribute(jfk.tooltipManager.Attribute.TOOLTIP_CONTAINED_ATTR_);a.removeAttribute(jfk.tooltipManager.Attribute.TOOLTIP_ATTR_);b?(b instanceof module$exports$google3$third_party$javascript$safevalues$internals$html_impl.SafeHtml? a.jfkTooltipHtmlInternal=b:(a.setAttribute(jfk.tooltipManager.Attribute.TOOLTIP_ATTR_,b),a.jfkTooltipHtmlInternal=null),a.setAttribute("aria-label",c)):(a.jfkTooltipHtmlInternal=null,a.removeAttribute("aria-label"));jfk.tooltipManager.install(goog.dom.getDomHelper(a))};jfk.tooltipManager.setTooltipDelay=function(a,b){a.setAttribute(jfk.tooltipManager.Attribute.TOOLTIP_DELAY_ATTR,b)}; jfk.tooltipManager.setTooltipHideDelay=function(a,b){a.setAttribute(jfk.tooltipManager.Attribute.TOOLTIP_HIDE_DELAY_ATTR_,b)};jfk.tooltipManager.setTooltipPosition=function(a,b,c){a.setAttribute(jfk.tooltipManager.Attribute.TOOLTIP_ALIGNMENT_ATTR,jfk.TooltipManager_.computeAlignmentAttr_(b,c))};jfk.tooltipManager.setTooltipOffset=function(a,b){a.setAttribute(jfk.tooltipManager.Attribute.TOOLTIP_OFFSET_ATTR,b)}; jfk.tooltipManager.setTooltipTrigger=function(a,b){b==jfk.tooltipManager.TriggerType.ALL?a.removeAttribute(jfk.tooltipManager.Attribute.TOOLTIP_TRIGGER_ATTR):a.setAttribute(jfk.tooltipManager.Attribute.TOOLTIP_TRIGGER_ATTR,b)};jfk.tooltipManager.setTooltipClass=function(a,b){goog.string.isEmptyOrWhitespace(goog.string.makeSafe(b))||a.setAttribute(jfk.tooltipManager.Attribute.TOOLTIP_CLASS_ATTR_,b)}; jfk.tooltipManager.setTooltipSuspended=function(a,b){b?a.setAttribute(jfk.tooltipManager.Attribute.TOOLTIP_SUSPENDED_ATTR_,"true"):a.removeAttribute(jfk.tooltipManager.Attribute.TOOLTIP_SUSPENDED_ATTR_)};jfk.tooltipManager.setTooltipUnhoverable=function(a,b){b?a.setAttribute(jfk.tooltipManager.Attribute.TOOLTIP_UNHOVERABLE_ATTR_,"true"):a.removeAttribute(jfk.tooltipManager.Attribute.TOOLTIP_UNHOVERABLE_ATTR_)}; jfk.tooltipManager.setTooltipOnlyOnOverflow=function(a,b){b?a.setAttribute(jfk.tooltipManager.Attribute.TOOLTIP_ONLY_ON_OVERFLOW_ATTR_,"true"):a.removeAttribute(jfk.tooltipManager.Attribute.TOOLTIP_ONLY_ON_OVERFLOW_ATTR_)};jfk.tooltipManager.hide=function(a){a=a||goog.dom.getDomHelper();a=goog.getUid(a.getDocument());jfk.tooltipManager.instances_[a]&&jfk.tooltipManager.instances_[a].hideTooltip()};jfk.tooltipManager.TOOLTIP_ELEMENT_CLASS_="jfk-tooltip-data"; jfk.tooltipManager.Attribute={TOOLTIP_CONTAINED_ATTR_:"data-tooltip-contained",TOOLTIP_ATTR_:"data-tooltip",TOOLTIP_SUSPENDED_ATTR_:"data-tooltip-suspended",TOOLTIP_ONLY_ON_OVERFLOW_ATTR_:"data-tooltip-only-on-overflow",TOOLTIP_CLASS_ATTR_:"data-tooltip-class",TOOLTIP_ALIGNMENT_ATTR:"data-tooltip-align",TOOLTIP_OFFSET_ATTR:"data-tooltip-offset",TOOLTIP_UNHOVERABLE_ATTR_:"data-tooltip-unhoverable",TOOLTIP_DELAY_ATTR:"data-tooltip-delay",TOOLTIP_HIDE_DELAY_ATTR_:"data-tooltip-hide-delay",TOOLTIP_TRIGGER_ATTR:"data-tooltip-trigger"}; jfk.tooltipManager.TriggerType={ALL:"all",MOUSE:"mouse"};jfk.tooltipManager.SHOW_DELAY_MS=300;jfk.tooltipManager.HIDE_DELAY_MS=50;jfk.tooltipManager.TOOLTIP_OFFSET_PX=-1;jfk.tooltipManager.instances_={}; jfk.TooltipManager_=function(a){goog.events.EventHandler.call(this);this.domHelper_=a;this.delay_=new goog.async.Delay(this.throttledHover_,0,this);this.registerDisposable(this.delay_);var b=goog.dom.getWindow();this.mutationObserver_=typeof b.MutationObserver==="function"?new b.MutationObserver(goog.bind(this.handleAttributesChange_,this)):null;a=a.getDocument();this.listen(a,[goog.events.EventType.MOUSEOUT,goog.events.EventType.MOUSEDOWN,goog.events.EventType.CLICK,goog.events.EventType.BLUR,goog.events.EventType.FOCUSOUT, goog.events.EventType.KEYDOWN],this.clearActiveElement_,!0);this.listen(a,[goog.events.EventType.MOUSEOVER,goog.events.EventType.FOCUS,goog.events.EventType.FOCUSIN],this.setActiveElement_,!0)};$jscomp.inherits(jfk.TooltipManager_,goog.events.EventHandler);jfk.TooltipManager_.prototype.disposeInternal=function(){this.clearSecondaryTimer_();goog.events.EventHandler.prototype.disposeInternal.call(this)}; jfk.TooltipManager_.prototype.trackEventTrigger_=function(a){switch(a.type){case goog.events.EventType.MOUSEDOWN:case goog.events.EventType.MOUSEOVER:case goog.events.EventType.MOUSEOUT:case goog.events.EventType.CLICK:this.isKeyboardEvent_=!1;break;case goog.events.EventType.KEYDOWN:this.isKeyboardEvent_=!0}}; jfk.TooltipManager_.prototype.setActiveElement_=function(a){this.mutationObserver_&&this.mutationObserver_.disconnect();this.trackEventTrigger_(a);var b=a.target;a=a.type==goog.events.EventType.FOCUS||a.type==goog.events.EventType.FOCUSIN;var c=this.tooltip_&&goog.dom.contains(this.tooltip_.getContentElement(),b);this.isKeyboardEvent_||!a||c?(this.isFocusEvent_=a,b&&b.getAttribute&&this.mutationObserver_&&goog.a11y.aria.isContainerRole(b)&&(this.observeMutations_(b),(a=goog.a11y.aria.getActiveDescendant(b))&& (b=a)),this.activeEl_=b):this.activeEl_=null;this.resetTimer_()};jfk.TooltipManager_.prototype.observeMutations_=function(a){var b={attributes:!0};this.mutationObserver_.observe(a,b)};jfk.TooltipManager_.prototype.clearActiveElement_=function(a){this.trackEventTrigger_(a);var b=a.target;a=a.type==goog.events.EventType.MOUSEDOWN||a.type==goog.events.EventType.CLICK;b=this.tooltip_&&goog.dom.contains(this.tooltip_.getContentElement(),b);a&&b||(this.activeEl_=null,this.resetTimer_())}; jfk.TooltipManager_.prototype.handleAttributesChange_=function(a){module$contents$goog$array_forEach(a,goog.bind(function(b){var c=goog.a11y.aria.getActiveDescendant(b.target),d="aria-"+goog.a11y.aria.State.ACTIVEDESCENDANT;c&&b.attributeName==d&&(this.activeEl_=c,this.resetTimer_())},this))}; jfk.TooltipManager_.prototype.resetTimer_=function(){if(!(this.delay_.isActive()&&this.hoverEl_&&this.tooltipHideDelayMs_)){this.clearSecondaryTimer_();var a=this.tooltipHideDelayMs_!=null?this.tooltipHideDelayMs_:jfk.tooltipManager.HIDE_DELAY_MS;a=this.hoverEl_?a:jfk.tooltipManager.SHOW_DELAY_MS;this.delay_.start(a)}};jfk.TooltipManager_.prototype.clearSecondaryTimer_=function(){this.secondaryTimerId_&&(goog.Timer.clear(this.secondaryTimerId_),this.secondaryTimerId_=0,this.hoverEl_=null)}; jfk.TooltipManager_.getTooltipHtml_=function(a){return a.jfkTooltipHtmlInternal?a.jfkTooltipHtmlInternal:module$exports$google3$third_party$javascript$safevalues$index.htmlEscape(a.getAttribute(jfk.tooltipManager.Attribute.TOOLTIP_ATTR_),{preserveNewlines:!0})}; jfk.TooltipManager_.prototype.throttledHover_=function(){if(!this.activeEl_)this.hideTooltip();else if(!(this.hoverEl_&&this.tooltip_&&goog.dom.contains(this.tooltip_.getElement(),this.activeEl_))||this.hoverEl_.getAttribute(jfk.tooltipManager.Attribute.TOOLTIP_UNHOVERABLE_ATTR_)){var a=goog.dom.getAncestor(this.activeEl_,function(h){return h.getAttribute&&(h.getAttribute(jfk.tooltipManager.Attribute.TOOLTIP_CONTAINED_ATTR_)||h.getAttribute(jfk.tooltipManager.Attribute.TOOLTIP_ATTR_)||h.jfkTooltipHtmlInternal)&& !h.getAttribute(jfk.tooltipManager.Attribute.TOOLTIP_SUSPENDED_ATTR_)},!0),b=!1;this.hoverEl_&&this.hoverEl_!=a&&(this.hideTooltip(),b=!0);if(!this.hoverEl_&&a&&(this.hoverEl_=a,this.shouldShowTooltip_(a))){var c=module$exports$google3$third_party$javascript$safevalues$index.EMPTY_HTML;if(a.getAttribute(jfk.tooltipManager.Attribute.TOOLTIP_CONTAINED_ATTR_))for(var d=goog.dom.getElementsByClass(jfk.tooltipManager.TOOLTIP_ELEMENT_CLASS_,a),e=0;e<d.length;e++){if(d[e].parentNode==a){c=d[e].cloneNode(!0); break}}else c=jfk.TooltipManager_.getTooltipHtml_(a);d=a.getAttribute(jfk.tooltipManager.Attribute.TOOLTIP_ALIGNMENT_ATTR);e=a.getAttribute(jfk.tooltipManager.Attribute.TOOLTIP_CLASS_ATTR_);var f=a.getAttribute(jfk.tooltipManager.Attribute.TOOLTIP_OFFSET_ATTR);f=goog.string.isEmptyOrWhitespace(goog.string.makeSafe(f))?jfk.tooltipManager.TOOLTIP_OFFSET_PX:Number(f);var g=a.getAttribute(jfk.tooltipManager.Attribute.TOOLTIP_HIDE_DELAY_ATTR_);g=goog.string.isEmptyOrWhitespace(goog.string.makeSafe(g))? null:Number(g);if(!b&&(a=a.getAttribute(jfk.tooltipManager.Attribute.TOOLTIP_DELAY_ATTR),a=Math.max(0,a-jfk.tooltipManager.SHOW_DELAY_MS))){this.secondaryTimerId_=goog.Timer.callOnce(goog.partial(this.showTooltipImpl_,this.hoverEl_,c,d,f,e,g),a,this);return}this.showTooltipImpl_(this.hoverEl_,c,d,f,e,g)}}}; jfk.TooltipManager_.prototype.shouldShowTooltip_=function(a){return a.getAttribute(jfk.tooltipManager.Attribute.TOOLTIP_ONLY_ON_OVERFLOW_ATTR_)&&a.offsetWidth>=a.scrollWidth&&a.offsetHeight>=a.scrollHeight||this.isFocusEvent_&&(a=jfk.tooltipManager.TriggerType.MOUSE!=a.getAttribute(jfk.tooltipManager.Attribute.TOOLTIP_TRIGGER_ATTR),!a)?!1:!0}; jfk.TooltipManager_.computeAlignmentAttr_=function(a,b){var c="";switch(a){case jfk.PopupPosition.LEFT:c+="l";break;case jfk.PopupPosition.TOP:c+="t";break;case jfk.PopupPosition.RIGHT:c+="r";break;default:c+="b"}c+=",";switch(b){case module$contents$jfk$ArrowAlignment_ArrowAlignment.LEFT_OR_TOP:c+="l";break;case module$contents$jfk$ArrowAlignment_ArrowAlignment.RIGHT_OR_BOTTOM:c+="r";break;default:c+="c"}return c}; jfk.TooltipManager_.parsePosition_=function(a){if(a)switch(a=a.toLowerCase().split(","),a[0]){case "l":return jfk.PopupPosition.LEFT;case "t":return jfk.PopupPosition.TOP;case "r":return jfk.PopupPosition.RIGHT}return jfk.PopupPosition.BOTTOM};jfk.TooltipManager_.parseArrowAlignment_=function(a){if(a)switch(a=a.toLowerCase().split(","),a[1]){case "l":return module$contents$jfk$ArrowAlignment_ArrowAlignment.LEFT_OR_TOP;case "r":return module$contents$jfk$ArrowAlignment_ArrowAlignment.RIGHT_OR_BOTTOM}return module$contents$jfk$ArrowAlignment_ArrowAlignment.CENTER}; jfk.TooltipManager_.prototype.showTooltipImpl_=function(a,b,c,d,e,f){this.secondaryTimerId_=0;this.tooltipHideDelayMs_=f;this.tooltip_||(this.tooltip_=new module$contents$jfk$SilentTooltipRenderer_SilentTooltipRenderer(this.domHelper_),this.hideTooltipImpl_(),goog.dom.appendChild(this.domHelper_.getDocument().body,this.tooltip_.getElement()),this.registerDisposable(this.tooltip_),this.tooltipPos_=new jfk.ArrowPosition("jfk-tooltip",!0),this.tooltipPos_.setAutoReposition(!0),this.tooltipPos_.setBoxOverflowAllowedOnPositioningFail(!0), this.tooltipPos_.setElements(this.tooltip_.getElement(),this.tooltip_.arrowEl_));f=jfk.TooltipManager_.parseArrowAlignment_(c);c=jfk.TooltipManager_.parsePosition_(c);this.tooltipPos_.setPosition(c,f,void 0,d);goog.dom.classlist.remove(this.tooltip_.getElement(),jfk.TooltipManager_.HIDE_TOOLTIP_CLASS_NAME_);this.tooltipClass_!=e&&(this.tooltipClass_&&!goog.string.isEmptyOrWhitespace(goog.string.makeSafe(this.tooltipClass_))&&goog.dom.classlist.remove(this.tooltip_.getElement(),this.tooltipClass_), goog.string.isEmptyOrWhitespace(goog.string.makeSafe(e))||goog.dom.classlist.add(this.tooltip_.getElement(),e),this.tooltipClass_=e);goog.style.setPosition(this.tooltip_.getElement(),0,0);if(b instanceof module$exports$google3$third_party$javascript$safevalues$internals$html_impl.SafeHtml)module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml(this.tooltip_.getContentElement(),b);else for(goog.dom.removeChildren(this.tooltip_.getContentElement());d=b.firstChild;)this.tooltip_.getContentElement().appendChild(d); this.tooltipPos_.setAnchorElement(a);this.tooltipPos_.reposition(null,goog.positioning.Corner.TOP_LEFT)};jfk.TooltipManager_.prototype.hideTooltipImpl_=function(){this.tooltip_&&goog.dom.classlist.add(this.tooltip_.getElement(),jfk.TooltipManager_.HIDE_TOOLTIP_CLASS_NAME_)};jfk.TooltipManager_.prototype.hideTooltip=function(){this.hideTooltipImpl_();this.tooltipHideDelayMs_=this.hoverEl_=null};jfk.TooltipManager_.HIDE_TOOLTIP_CLASS_NAME_="jfk-tooltip-hide";goog.singleton={};var module$contents$goog$singleton_instantiatedSingletons=[];goog.singleton.getInstance=function(a){(0,goog.asserts.assert)(!Object.isSealed(a),"Cannot use getInstance() with a sealed constructor.");var b=a,c="instance_";if(b.instance_&&b.hasOwnProperty(c))return b.instance_;goog.DEBUG&&module$contents$goog$singleton_instantiatedSingletons.push(a);a=new a;b.instance_=a;(0,goog.asserts.assert)(b.hasOwnProperty(c),"Could not instantiate singleton.");return a}; goog.singleton.instantiatedSingletons=module$contents$goog$singleton_instantiatedSingletons;var $jscomp$templatelit$1935035818$0=$jscomp.createTemplateTagFirstArg(["value"]);jfk.Button=function(a,b,c,d){goog.ui.Button.call(this,a,jfk.ButtonRenderer_.getInstance(),b);this.style_=c||jfk.Button.Style.STANDARD;this.width_=d||jfk.Button.Width.NORMAL;this.usingKennedyTooltip_=!1};goog.inherits(jfk.Button,goog.ui.Button);jfk.Button.CSS_NAME="jfk-button";jfk.Button.prototype.getStyle=function(){return this.style_};jfk.Button.prototype.getWidth=function(){return this.width_}; jfk.Button.prototype.setStyle=function(a){this.style_!=a&&(this.style_=a,this.maybeUpdateElement_())};jfk.Button.prototype.setWidth=function(a){this.width_!=a&&(this.width_=a,this.maybeUpdateElement_())};jfk.Button.prototype.setUsingKennedyTooltip=function(a){this.usingKennedyTooltip_=a};jfk.Button.prototype.setTooltip=function(a){this.setTooltipInternal(a);var b=this.getElement();b&&(this.usingKennedyTooltip_?jfk.tooltipManager.setTooltipText(b,a):a?b.title=a:b.removeAttribute("title"))}; jfk.Button.prototype.setEnabled=function(a){this.isEnabled()!=a&&(jfk.Button.superClass_.setEnabled.call(this,a),this.maybeUpdateElement_())};jfk.Button.prototype.focus=function(){var a=this.getElementStrict();try{a.focus()}catch(b){}};jfk.Button.prototype.setFocused=function(a){jfk.Button.superClass_.setFocused.call(this,a);this.setNoFocusOutline_(!1)};jfk.Button.prototype.handleMouseDown=function(a){jfk.Button.superClass_.handleMouseDown.call(this,a);this.isEnabled()&&this.setNoFocusOutline_(!0)}; jfk.Button.prototype.handleMouseUp=function(a){jfk.Button.superClass_.handleMouseUp.call(this,a);this.isEnabled()&&this.setNoFocusOutline_(!0)};jfk.Button.prototype.setNoFocusOutline_=function(a){this.getElement()&&goog.dom.classlist.enable(this.getElement(),jfk.Button.CSS_NAME+"-clear-outline",a)};jfk.Button.prototype.maybeUpdateElement_=function(){this.getElement()&&this.renderer_.updateButtonStyles(this)};jfk.Button.Style=jspb$e.jfk$ButtonStyle$Style;jfk.Button.Width=jspb$e.jfk$ButtonStyle$Width; jfk.Button.createDefaultButton=function(a,b){return new jfk.Button(a,b,jfk.Button.Style.DEFAULT)};jfk.Button.createActionButton=function(a,b){return new jfk.Button(a,b,jfk.Button.Style.ACTION)};jfk.Button.createPrimaryButton=function(a,b){return new jfk.Button(a,b,jfk.Button.Style.PRIMARY)};jfk.Button.createFlatButton=function(a,b){return new jfk.Button(a,b,jfk.Button.Style.FLAT)};jfk.Button.createContrastButton=function(a,b){return new jfk.Button(a,b,jfk.Button.Style.CONTRAST)}; jfk.Button.createSearchButton=function(a){return jfk.Button.createActionButton(jfk.Button.createIconContent(jfk.Button.SEARCH_BUTTON_SRC_),a)};jfk.Button.createToggleButton=function(a,b){a=new jfk.Button(a,b);a.setSupportedState(goog.ui.Component.State.CHECKED,!0);return a};jfk.Button.createMiniButton=function(a,b){return new jfk.Button(a,b,jfk.Button.Style.MINI)};jfk.Button.SEARCH_BUTTON_SRC_="//ssl.gstatic.com/ui/v1/button/search-white.png"; jfk.Button.createIconContent=function(a,b){if(typeof a==="string"){var c=a;a=goog.dom.createElement(goog.dom.TagName.IMG);a.src=c;goog.style.setSize(a,21,21)}goog.dom.classlist.add(a,"jfk-button-img");c=[];c.push(a);b&&(a=goog.dom.createDom(goog.dom.TagName.SPAN,"jfk-button-label",b),c.push(a));return c}; jfk.ButtonRenderer_=function(){this.standardButtonClass_=this.getCssClass()+"-standard";this.actionButtonClass_=this.getCssClass()+"-action";this.primaryButtonClass_=this.getCssClass()+"-primary";this.defaultButtonClass_=this.getCssClass()+"-default";this.flatButtonClass_=this.getCssClass()+"-flat";this.narrowButtonClass_=this.getCssClass()+"-narrow";this.miniButtonClass_=this.getCssClass()+"-mini";this.contrastButtonClass_=this.getCssClass()+"-contrast"};goog.inherits(jfk.ButtonRenderer_,goog.ui.ButtonRenderer); jfk.ButtonRenderer_.getInstance=function(){return goog.singleton.getInstance(jfk.ButtonRenderer_)};jfk.ButtonRenderer_.prototype.updateButton_=function(a,b,c){a&&c.setStyle(a);b&&c.setWidth(b)};jfk.ButtonRenderer_.prototype.getCssClass=function(){return jfk.Button.CSS_NAME}; jfk.ButtonRenderer_.prototype.createDom=function(a){goog.asserts.assertInstanceof(a,jfk.Button,"Button is expected to be instance of jfk.Button");var b=a.getDomHelper(),c=module$contents$goog$soy_renderAsElement(jfk.templates.button.strict,{disabled:!a.isEnabled(),checked:a.isChecked(),style:a.getStyle(),title:a.getTooltip(),usingKennedyTooltip:a.usingKennedyTooltip_,value:a.getValue(),width:a.getWidth()},void 0,b);b.append(c,a.getContent());this.decorate(a,c);return c}; jfk.ButtonRenderer_.prototype.decorate=function(a,b){jfk.ButtonRenderer_.superClass_.decorate.call(this,a,b);this.classNamesToButtonUpdater_||(this.classNamesToButtonUpdater_=module$contents$goog$object_create(this.standardButtonClass_,goog.partial(this.updateButton_,jfk.Button.Style.STANDARD,null),this.actionButtonClass_,goog.partial(this.updateButton_,jfk.Button.Style.ACTION,null),this.primaryButtonClass_,goog.partial(this.updateButton_,jfk.Button.Style.PRIMARY,null),this.defaultButtonClass_,goog.partial(this.updateButton_, jfk.Button.Style.DEFAULT,null),this.flatButtonClass_,goog.partial(this.updateButton_,jfk.Button.Style.FLAT,null),this.miniButtonClass_,goog.partial(this.updateButton_,jfk.Button.Style.MINI,null),this.contrastButtonClass_,goog.partial(this.updateButton_,jfk.Button.Style.CONTRAST,null),this.narrowButtonClass_,goog.partial(this.updateButton_,null,jfk.Button.Width.NARROW)));for(var c=goog.dom.classlist.get(b),d=0;d<c.length;++d){var e=this.classNamesToButtonUpdater_[c[d]];e&&e(a)}if(c=b.getAttribute("data-tooltip"))a.setTooltipInternal(c), a.setUsingKennedyTooltip(!0);return b};jfk.ButtonRenderer_.VALUE_ATTRIBUTE_="value";jfk.ButtonRenderer_.VALUE_ATTRIBUTE_PREFIXES_=[module$contents$google3$third_party$javascript$safevalues$builders$attribute_builders_safeAttrPrefix($jscomp$templatelit$1935035818$0)];jfk.ButtonRenderer_.prototype.getValue=function(a){return a.getAttribute(jfk.ButtonRenderer_.VALUE_ATTRIBUTE_)||""}; jfk.ButtonRenderer_.prototype.setValue=function(a,b){a&&module$exports$google3$third_party$javascript$safevalues$dom$index.setElementPrefixedAttribute(jfk.ButtonRenderer_.VALUE_ATTRIBUTE_PREFIXES_,a,jfk.ButtonRenderer_.VALUE_ATTRIBUTE_,b)}; jfk.ButtonRenderer_.prototype.updateButtonStyles=function(a){function b(f,g){(f?c:d).push(g)}goog.asserts.assert(a.getElement(),"Button element must already exist when updating style.");var c=[],d=[],e=a.getStyle();b(e==jfk.Button.Style.STANDARD,this.standardButtonClass_);b(e==jfk.Button.Style.ACTION,this.actionButtonClass_);b(e==jfk.Button.Style.PRIMARY,this.primaryButtonClass_);b(e==jfk.Button.Style.FLAT,this.flatButtonClass_);b(e==jfk.Button.Style.MINI,this.miniButtonClass_);b(e==jfk.Button.Style.DEFAULT, this.defaultButtonClass_);b(e==jfk.Button.Style.CONTRAST,this.contrastButtonClass_);b(a.getWidth()==jfk.Button.Width.NARROW,this.narrowButtonClass_);b(!a.isEnabled(),this.getCssClass()+"-disabled");goog.dom.classlist.removeAll(a.getElement(),d);goog.dom.classlist.addAll(a.getElement(),c)};goog.ui.AdvancedTooltip=function(a,b,c){goog.ui.Tooltip.call(this,a,b,c)};goog.inherits(goog.ui.AdvancedTooltip,goog.ui.Tooltip);goog.ui.AdvancedTooltip.prototype.cursorTracking_=!1;goog.ui.AdvancedTooltip.prototype.cursorTrackingHideDelayMs_=100;goog.ui.AdvancedTooltip.prototype.tracking_=!1;goog.ui.AdvancedTooltip.prototype.setHotSpotPadding=function(a){this.hotSpotPadding_=a||null};goog.ui.AdvancedTooltip.prototype.setCursorTracking=function(a){this.cursorTracking_=a}; goog.ui.AdvancedTooltip.prototype.onShow=function(){goog.ui.AdvancedTooltip.superClass_.onShow.call(this);this.boundingBox_=goog.style.getBounds(this.getElement()).toBox();this.anchor&&(this.anchorBox_=goog.style.getBounds(this.anchor).toBox());this.tracking_=this.cursorTracking_;goog.events.listen(this.getDomHelper().getDocument(),goog.events.EventType.MOUSEMOVE,this.handleMouseMove,!1,this)}; goog.ui.AdvancedTooltip.prototype.onHide=function(){goog.events.unlisten(this.getDomHelper().getDocument(),goog.events.EventType.MOUSEMOVE,this.handleMouseMove,!1,this);this.anchorBox_=this.boundingBox_=null;this.tracking_=!1;goog.ui.AdvancedTooltip.superClass_.onHide.call(this)}; goog.ui.AdvancedTooltip.prototype.isCoordinateInTooltip=function(a){if(this.hotSpotPadding_){var b=goog.style.getPageOffset(this.getElement()),c=goog.style.getSize(this.getElement());return b.x-this.hotSpotPadding_.left<=a.x&&a.x<=b.x+c.width+this.hotSpotPadding_.right&&b.y-this.hotSpotPadding_.top<=a.y&&a.y<=b.y+c.height+this.hotSpotPadding_.bottom}return goog.ui.AdvancedTooltip.superClass_.isCoordinateInTooltip.call(this,a)}; goog.ui.AdvancedTooltip.prototype.isCoordinateActive_=function(a){if(this.anchorBox_&&this.anchorBox_.contains(a)||this.isCoordinateInTooltip(a))return!0;var b=this.childTooltip_;return!!b&&b.isCoordinateInTooltip(a)};goog.ui.AdvancedTooltip.prototype.maybeHide=function(a){this.hideTimer=void 0;a!=this.anchor||this.isCoordinateActive_(this.cursorPosition)||this.getActiveElement()||this.hasActiveChild()||goog.userAgent.GECKO&&this.cursorPosition.x==0&&this.cursorPosition.y==0||this.setVisible(!1)}; goog.ui.AdvancedTooltip.prototype.handleMouseMove=function(a){var b=this.isVisible();if(this.boundingBox_){var c=this.getDomHelper().getDocumentScroll();c=new goog.math.Coordinate(a.clientX+c.x,a.clientY+c.y);this.isCoordinateActive_(c)?b=!1:this.tracking_&&(b=goog.math.Box.distance(this.boundingBox_,this.cursorPosition),c=goog.math.Box.distance(this.boundingBox_,c),b=c>=b)}b?(this.startHideTimer(),this.setActiveElement(null),(b=this.childTooltip_)&&b.setActiveElement(null)):this.getState()==goog.ui.Tooltip.State.WAITING_TO_HIDE&& this.clearHideTimer();goog.ui.AdvancedTooltip.superClass_.handleMouseMove.call(this,a)};goog.ui.AdvancedTooltip.prototype.handleTooltipMouseOver=function(){this.getActiveElement()!=this.getElement()&&(this.tracking_=!1,this.setActiveElement(this.getElement()))};goog.ui.AdvancedTooltip.prototype.getHideDelayMs=function(){return this.tracking_?this.cursorTrackingHideDelayMs_:goog.ui.AdvancedTooltip.superClass_.getHideDelayMs.call(this)};function module$contents$ocean$atb_initBuyWidgetTooltip(a,b){a=new goog.ui.AdvancedTooltip(a);a.setSafeHtml(module$contents$google3$third_party$javascript$safevalues$restricted$legacy_superLenientlySanitizeHtml(b.innerHTML));a.className="buy-tip-card";a.setHotSpotPadding(new goog.math.Box(5,5,5,5));a.setCursorTracking(!0);a.setShowDelayMs(500);a.setHideDelayMs(250)};ocean.chrome.SliderDrawable=function(a,b){this.height_=a||ocean.chrome.SliderDrawable.DEFAULT_DRAWABLE_HEIGHT;this.width_=b||ocean.chrome.SliderDrawable.DEFAULT_DRAWABLE_WIDTH;module$contents$ocean$EventManager_EventManager.call(this)};goog.inherits(ocean.chrome.SliderDrawable,module$contents$ocean$EventManager_EventManager);ocean.chrome.SliderDrawable.prototype.getHeight=function(){return this.height_};ocean.chrome.SliderDrawable.prototype.getWidth=function(){return this.width_}; ocean.chrome.SliderDrawable.EventType={RENDER:"render"};ocean.chrome.SliderDrawable.DEFAULT_DRAWABLE_WIDTH=108;ocean.chrome.SliderDrawable.DEFAULT_DRAWABLE_HEIGHT=200;ocean.chrome.SliderDrawable.SMALL_DRAWABLE_HEIGHT=80;var module$contents$ocean$AbstractHoverCard_AbstractHoverCard=function(a){goog.ui.AdvancedTooltip.call(this,a);this.setEnableCrossIframeDismissal(!1);this.setCursorTracking(!0);this.setShowDelayMs(500)};$jscomp.inherits(module$contents$ocean$AbstractHoverCard_AbstractHoverCard,goog.ui.AdvancedTooltip); module$contents$ocean$AbstractHoverCard_AbstractHoverCard.prototype.startShowTimer=function(a,b){b||(b=new goog.positioning.AnchoredViewportPosition(a,goog.positioning.Corner.BOTTOM_START,!0));goog.ui.AdvancedTooltip.prototype.startShowTimer.call(this,a,b)};module$contents$ocean$AbstractHoverCard_AbstractHoverCard.prototype.initWithMouseOverEvent=function(a){this.handleMouseOver(a)};module$contents$ocean$AbstractHoverCard_AbstractHoverCard.prototype.className="unified-hovercard"; ocean.AbstractHoverCard=module$contents$ocean$AbstractHoverCard_AbstractHoverCard;var module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer=function(a,b,c){goog.Disposable.call(this);this.handler_=null;this.data=a;this.cssName=b;this.maxWidth=c||module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.MAX_WIDTH_};$jscomp.inherits(module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer,goog.Disposable); module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.prototype.disposeInternal=function(){this.handler_&&this.handler_.dispose()};module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.prototype.getHandler=function(){return this.handler_||(this.handler_=new goog.events.EventHandler(this))}; module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.prototype.isVolumePreviewable=function(){return module$contents$goog$object_containsValue(module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.PreviewableTypes_,this.data.data_.viewability)};module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.prototype.renderMetaSection=function(a){this.renderTitle(a);this.renderAuthorSection(a);this.renderSnippet(a)}; module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.prototype.renderTitle=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV),c=new goog.Uri(this.data.data_.infoUrl||this.data.getPreviewUrl());this.data.data_.source&&c.setParameterValue("source",this.data.data_.source);var d=this.data.getTitle();this.data.data_.subtitle&&(d+=": "+this.data.data_.subtitle);d=module$contents$goog$asserts$dom_assertIsHtmlAnchorElement(goog.dom.createDom(goog.dom.TagName.A,{},d));d.classList.add(this.cssName+ "-title");(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(d,c.toString());goog.dom.appendChild(b,d);goog.dom.appendChild(a,b)}; module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.prototype.renderAuthorSection=function(a){var b="",c=goog.dom.createDom(goog.dom.TagName.DIV),d=this.data.data_.authors;if(!goog.string.isEmptyOrWhitespace(goog.string.makeSafe(d))){b=d.split(/\s*,\s*/g);d=b.length;if(!d)return;var e=goog.dom.createDom(goog.dom.TagName.SPAN,"author"),f=d-1,g=goog.dom.createTextNode(", ");module$contents$goog$array_forEach(b,function(h,k){var l=module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.stripHtmlBoldTag(h); l=goog.string.collapseWhitespace(l);h=this.getAuthorSearchUrl(l);module$contents$ocean$util$uri_setDefaultParameters(h);l=module$contents$goog$asserts$dom_assertIsHtmlAnchorElement(goog.dom.createDom(goog.dom.TagName.A,{},l));(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(l,h.toString());goog.dom.appendChild(e,l);k<f&&goog.dom.appendChild(e,g.cloneNode(!0))},this);goog.dom.appendChild(c,e);b=module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.DASH_}this.data.data_.pubDate&& (goog.dom.appendChild(c,goog.dom.createDom(goog.dom.TagName.SPAN,this.cssName+"-pubdate",b+this.data.data_.pubDate)),b=module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.DASH_);this.data.getNumPages()&&(goog.dom.appendChild(c,goog.dom.createTextNode(b)),goog.dom.appendChild(c,goog.dom.createDom(goog.dom.TagName.SPAN,this.cssName+"-pagesnum",module$contents$ocean$msg_getPageCount(this.data.getNumPages()))));goog.dom.appendChild(a,c)}; module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.prototype.renderSnippet=function(a){if(this.data.data_.snippet){var b=new safevalues.HtmlSanitizer,c=goog.dom.createDom(goog.dom.TagName.DIV,this.cssName+"-snippet");(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(c,b.sanitize(this.data.data_.snippet+" "));this.renderMoreLink_(c);goog.dom.appendChild(a,c)}}; module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.prototype.renderMoreLink_=function(a){var b=module$contents$goog$asserts$dom_assertIsHtmlAnchorElement(goog.dom.createDom(goog.dom.TagName.A,{},module$contents$ocean$msg_getMoreWithRightArrows("\u00bb")));b.classList.add(this.cssName+"-more-link");(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(b,this.data.data_.infoUrl);goog.dom.appendChild(a,b)}; module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.prototype.renderButton=function(a,b,c,d,e,f,g){b=module$contents$goog$asserts$dom_assertIsHtmlAnchorElement(goog.dom.createDom(goog.dom.TagName.A,{id:g||""},b));(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(b,e?"#":c);b.classList.add(this.cssName+"-button");d&&b.classList.add(this.cssName+"-button-hilite");f&&b.classList.add("disabled");e&&(d=function(h){h.preventDefault();h=module$contents$goog$asserts$dom_assertIsHtmlFormElement(goog.dom.createDom(goog.dom.TagName.FORM, {method:"POST"}));(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setFormAction)(h,c);goog.style.setStyle(h,{position:"absolute",overflow:"hidden",width:"1px",height:"1px",visibility:"hidden"});goog.dom.appendChild(a,h);h.submit()},e=goog.userAgent.product.IPAD||goog.userAgent.product.ANDROID?goog.events.EventType.TOUCHSTART:goog.events.EventType.CLICK,this.getHandler().listenOnce(b,e,d,!1));goog.dom.appendChild(a,b)}; module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.stripHtmlBoldTag=function(a){return a?a.replace(module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.HTML_BOLD_TAG_PATTERN_,""):""};module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.HTML_BOLD_TAG_PATTERN_=/(<b\s*>)|(<\/b>)/ig;module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.MAX_WIDTH_=500; module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.DASH_="\u00a0-\u00a0";module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.PreviewableTypes_={VIEW_PAGES_PARTIAL:2,VIEW_PAGES_ALL:5,VIEW_PAGES_PARTIAL_FIXED:6,VIEW_PURCHASED:7,VIEW_GOOGLE_EDITIONS_PREVIEW:8};ocean.AbstractHoverCardRenderer=module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer;ocean.info.SearchResult=function(){this.data_={}};ocean.info.SearchResult.CancellationReason={CUSTOMER_REQUEST:0,AUTO_FULFILLMENT_ERROR:1,AUTO_PRICE_CHANGE:2,AUTO_PUBLISHER_CHANGE:3};ocean.info.SearchResult.RentalState={ACTIVE:1,EXPIRED:2};ocean.info.SearchResult.prototype.getTitle=function(){return this.data_.title};ocean.info.SearchResult.prototype.setTitle=function(a){this.data_.title=a};ocean.info.SearchResult.prototype.setSubtitle=function(a){this.data_.subtitle=a}; ocean.info.SearchResult.prototype.getVolumeId=function(){return this.data_.volumeId};ocean.info.SearchResult.prototype.setVolumeId=function(a){this.data_.volumeId=a};ocean.info.SearchResult.prototype.setAuthors=function(a){this.data_.authors=a};ocean.info.SearchResult.prototype.setAddToMyEbooksUrlIsOnPlay=function(a){this.data_.addToMyEbooksUrlIsOnPlay=a};ocean.info.SearchResult.prototype.setAddToMyEbooksUrl=function(a){this.data_.addToMyEbooksUrl=a}; ocean.info.SearchResult.prototype.getPreviewUrl=function(){return this.data_.previewUrl};ocean.info.SearchResult.prototype.setPreviewUrl=function(a){this.data_.previewUrl=a};ocean.info.SearchResult.prototype.setPreviewEBookUrl=function(a){this.data_.previewEBookUrl=a};ocean.info.SearchResult.prototype.setInfoUrl=function(a){this.data_.infoUrl=a};ocean.info.SearchResult.prototype.getViewOrderUrl=function(){return this.data_.viewOrderUrl}; ocean.info.SearchResult.prototype.setViewOrderUrl=function(a){this.data_.viewOrderUrl=a};ocean.info.SearchResult.prototype.setPubDate=function(a){this.data_.pubDate=a};ocean.info.SearchResult.prototype.getPublisher=function(){return this.data_.publisher};ocean.info.SearchResult.prototype.getNumPages=function(){return this.data_.numPages};ocean.info.SearchResult.prototype.setNumPages=function(a){this.data_.numPages=a}; ocean.info.SearchResult.prototype.setViewability=function(a){this.data_.viewability=a};ocean.info.SearchResult.prototype.setThumbnailUrl=function(a){this.data_.thumbUrl=a};ocean.info.SearchResult.prototype.setSubject=function(a){this.data_.subject=a};ocean.info.SearchResult.prototype.setSource=function(a){this.data_.source=a};ocean.info.SearchResult.prototype.setSnippet=function(a){this.data_.snippet=a};ocean.info.SearchResult.prototype.setSalePrice=function(a){this.data_.salePrice=a}; ocean.info.SearchResult.prototype.setListPrice=function(a){this.data_.listPrice=a};ocean.info.SearchResult.prototype.setOfferPrice=function(a){this.data_.offerPrice=a};ocean.info.SearchResult.prototype.setBuyUrl=function(a){this.data_.buyUrl=a};ocean.info.SearchResult.prototype.setReadUrl=function(a){this.data_.readUrl=a};ocean.info.SearchResult.prototype.setIsFree=function(a){this.data_.isFreeEBook=a};ocean.info.SearchResult.prototype.setIsInMyEbooks=function(a){this.data_.inMyEbooks=a}; ocean.info.SearchResult.prototype.setMyEbooksUrl=function(a){this.data_.myEbooksUrl=a};ocean.info.SearchResult.prototype.setRating=function(a){this.data_.rating=a};ocean.info.SearchResult.prototype.setNumReviews=function(a){this.data_.numReviews=a};ocean.info.SearchResult.prototype.isPurchased=function(){return this.data_.isPurchased};ocean.info.SearchResult.prototype.setPurchased=function(a){this.data_.isPurchased=a}; ocean.info.SearchResult.prototype.setReviewsUrl=function(a){this.data_.reviewsUrl=a};ocean.info.SearchResult.prototype.setWriteReviewUrl=function(a){this.data_.writeReviewUrl=a};ocean.info.SearchResult.prototype.setFreeEBookUrl=function(a){this.data_.freeEBookUrl=a};ocean.info.SearchResult.prototype.isEBook=function(){return this.data_.isEBbook};ocean.info.SearchResult.prototype.setIsEBook=function(a){this.data_.isEBbook=a}; ocean.info.SearchResult.prototype.setSalePriceBetter=function(a){this.data_.salePriceBetter_=a};ocean.info.SearchResult.prototype.getHasFlowingText=function(){return this.data_.hasFlowingText_};ocean.info.SearchResult.prototype.setHasFlowingText=function(a){this.data_.hasFlowingText_=a};ocean.info.SearchResult.prototype.getHasScannedText=function(){return this.data_.hasScannedText_};ocean.info.SearchResult.prototype.setHasScannedText=function(a){this.data_.hasScannedText_=a}; ocean.info.SearchResult.prototype.setCanonicalAtbUrl=function(a){this.data_.canonicalAtbUrl=a};ocean.info.SearchResult.prototype.isRentable=function(){return this.data_.isRentable};ocean.info.SearchResult.prototype.setIsRentable=function(a){this.data_.isRentable=a};ocean.info.SearchResult.prototype.isPreOrder=function(){return this.data_.preOrder_};ocean.info.SearchResult.prototype.setPreOrder=function(a){this.data_.preOrder_=a};ocean.info.SearchResult.prototype.getOnSaleDate=function(){return this.data_.onSaleDate_}; ocean.info.SearchResult.prototype.setOnSaleDate=function(a){this.data_.onSaleDate_=a};ocean.info.SearchResult.prototype.isPreOrdered=function(){return this.data_.isPreOrdered};ocean.info.SearchResult.prototype.setPreOrdered=function(a){this.data_.isPreOrdered=a};ocean.info.SearchResult.prototype.setIssueVolumeCount=function(a){this.data_.issueVolumeCount=a};ocean.info.SearchResult.prototype.isVolumeCancelled=function(){return this.data_.isVolumeCancelled}; ocean.info.SearchResult.prototype.setVolumeCancelled=function(a){this.data_.isVolumeCancelled=a};ocean.info.SearchResult.prototype.setCancelledReason=function(a){this.data_.cancelledReason=a};ocean.info.SearchResult.prototype.setRentalState=function(a){this.data_.rentalState=a};ocean.info.SearchResult.prototype.isActiveRental=function(){return this.data_.rentalState==ocean.info.SearchResult.RentalState.ACTIVE}; ocean.info.SearchResult.prototype.isExpiredRental=function(){return this.data_.rentalState==ocean.info.SearchResult.RentalState.EXPIRED};ocean.info.SearchResult.prototype.setRentalEndUtc=function(a){this.data_.rentalEndUtc=a};ocean.info.SearchResult.prototype.getRemainingRentalTime_=function(){return this.data_.rentalEndUtc-goog.now()/1E3}; ocean.info.SearchResult.prototype.getRemainingRentalTimeMessage=function(){if(!this.isActiveRental())return"";var a=this.getRemainingRentalTime_();a=Math.round(a/3600);var b=Math.round(a/24);return a<=1?"Expiring soon":a<=48?module$contents$ocean$msg_getRentalExpiringHours(a):module$contents$ocean$msg_getRentalExpiringDays(b)};ocean.info.Bookshelf=function(){this.volumes_=[]};ocean.info.Bookshelf.prototype.getId=function(){return this.id_};ocean.info.Bookshelf.prototype.setId=function(a){this.id_=a};ocean.info.Bookshelf.prototype.setOwnerUid=function(a){this.owner_uid_=a};ocean.info.Bookshelf.prototype.getTitle=function(){return this.title_};ocean.info.Bookshelf.prototype.setTitle=function(a){this.title_=a};ocean.info.Bookshelf.prototype.getDescription=function(){return this.description_}; ocean.info.Bookshelf.prototype.setDescription=function(a){this.description_=a};ocean.info.Bookshelf.prototype.setNumPossibleVolumes=function(a){this.numPossibleVolumes_=a};ocean.info.Bookshelf.prototype.setVolumes=function(a){this.volumes_=a};ocean.info.Bookshelf.prototype.addVolume=function(a){this.volumes_.push(a)};ocean.info.Bookshelf.prototype.setAddVolumeBaseUrl=function(a){this.baseAddUrl_=new goog.Uri(a)}; ocean.info.Bookshelf.prototype.addVolumeToServer=function(a,b){this.getVolumeById(a)||this.baseAddUrl_==null||!this.canAdd_?b&&b(null):this.mutateVolumeFromServer_(a,this.baseAddUrl_.clone(),goog.bind(this.addVolumeToServerResponse_,this,a,b||function(){}))};ocean.info.Bookshelf.prototype.setDeleteVolumeBaseUrl=function(a){this.baseDeleteUrl_=new goog.Uri(a)}; ocean.info.Bookshelf.prototype.deleteVolumeFromServer=function(a,b){this.getVolumeById(a)&&this.baseDeleteUrl_!=null&&this.canRemove_?this.mutateVolumeFromServer_(a,this.baseDeleteUrl_.clone(),goog.bind(this.deleteVolumeToServerResponse_,this,a,b||function(){})):b&&b(null)};ocean.info.Bookshelf.prototype.mutateVolumeFromServer_=function(a,b,c){b.setParameterValue("id",a);goog.net.XhrIo.send(b,c,"POST")}; ocean.info.Bookshelf.prototype.addVolumeToServerResponse_=function(a,b,c){c=c.target;var d=null;c.isSuccess()&&(d=new ocean.info.SearchResult,d.setVolumeId(a),this.addVolume(d));b(d)};ocean.info.Bookshelf.prototype.deleteVolumeToServerResponse_=function(a,b,c){c=c.target;var d=null;c.isSuccess()&&(d=this.getVolumeById(a),this.removeVolume(d));b(d)};ocean.info.Bookshelf.prototype.removeVolume=function(a){module$contents$goog$array_removeIf(this.volumes_,function(b){return b.getVolumeId()==a.getVolumeId()})}; ocean.info.Bookshelf.prototype.getVolumeById=function(a){var b=module$contents$goog$array_find(this.volumes_,function(c){return c&&c.getVolumeId()==a});return b};ocean.info.Bookshelf.prototype.setAccess=function(a){this.access_=a};ocean.info.Bookshelf.prototype.isPublic=function(){return this.access_==ocean.info.Bookshelf.Access.PUBLIC};ocean.info.Bookshelf.prototype.setPredefined=function(a){this.predefined_=a};ocean.info.Bookshelf.prototype.setCanRemoveVolumes=function(a){this.canRemove_=a}; ocean.info.Bookshelf.prototype.setCanAddVolumes=function(a){this.canAdd_=a};ocean.info.Bookshelf.prototype.setCanModifyMetadata=function(a){this.canModifyMetadata_=a};ocean.info.Bookshelf.prototype.setCanOnlyAddEBooks=function(a){this.canOnlyAddEBooks_=a};ocean.info.Bookshelf.prototype.setPaused=function(a){this.paused_=a};ocean.info.Bookshelf.prototype.setPauseBookshelfUrl=function(a){this.pause_bookshelf_url_=a};ocean.info.Bookshelf.Access={PUBLIC:1,PRIVATE:2};var module$exports$ocean$info$ProtoSearchResult=function(a){ocean.info.SearchResult.call(this);this.setTitle(a.title);this.setSubtitle(a.subtitle);this.setAuthors(a.authors);this.setPreviewUrl(a.preview_url);this.setInfoUrl(a.info_url);this.setPubDate(a.pub_date);this.setNumPages(a.num_pages);this.setViewability(a.viewability);this.setSubject(a.subject);this.setThumbnailUrl(a.thumbnail_url);this.setSnippet(a.snippet);this.setListPrice(a.list_price);this.setSalePrice(a.sale_price);this.setSalePriceBetter(a.sale_price_better); this.setOfferPrice(a.offer_price);this.setBuyUrl(a.buy_url);this.setReadUrl(a.read_url);this.setIsFree(a.is_free_ebook||!1);this.setIsInMyEbooks(a.in_my_ebooks||!1);this.setMyEbooksUrl(a.my_ebooks_url||"");this.setRating(a.rating_score||0);this.setNumReviews(a.num_reviews||0);this.setPurchased(a.is_purchased||!1);this.setIsEBook(a.is_ebook||!1);this.setWriteReviewUrl(a.write_review_url||"");this.setFreeEBookUrl(a.add_to_my_ebooks_url||"");this.setPreviewEBookUrl(a.preview_ebook_url||"");this.setReviewsUrl(a.reviews_url|| "");this.setViewOrderUrl(a.view_order_url||"");this.setAddToMyEbooksUrl(a.add_to_my_ebooks_url);this.setAddToMyEbooksUrlIsOnPlay(a.add_to_my_ebooks_url_is_on_play||!1);this.setHasFlowingText(a.has_flowing_text||!1);this.setHasScannedText(a.has_scanned_text||!1);this.setVolumeId(ocean.util.Url.getVolumeId(a.info_url));this.setCanonicalAtbUrl(a.canonical_atb_url||"");this.setIsRentable(a.is_rentable||!1);this.setPreOrder(a.is_pre_order||!1);this.setOnSaleDate(a.on_sale_date||"");this.setPreOrdered(a.is_pre_ordered|| !1);this.setIssueVolumeCount(a.issue_volume_count||0);this.setVolumeCancelled(a.is_volume_cancelled||!1);this.setCancelledReason(a.cancelled_reason||"0");switch(a.rental_state){case ocean.info.SearchResult.RentalState.ACTIVE:this.setRentalState(ocean.info.SearchResult.RentalState.ACTIVE);break;case ocean.info.SearchResult.RentalState.EXPIRED:this.setRentalState(ocean.info.SearchResult.RentalState.EXPIRED)}this.setRentalEndUtc(a.rental_end_utc||0)}; $jscomp.inherits(module$exports$ocean$info$ProtoSearchResult,ocean.info.SearchResult);var module$contents$ocean$info$ProtoBookshelf_ProtoBookshelf=function(a){ocean.info.Bookshelf.call(this);this.setId(a.id);this.setOwnerUid(a.owner_uid);this.setTitle(a.title);this.setDescription(a.description);this.setNumPossibleVolumes(a.num_volumes);this.setAccess(a.access||"0");this.setCanModifyMetadata(a.can_modify_metadata);this.setPredefined(a.predefined);this.setCanRemoveVolumes(a.can_remove_volumes);this.setCanAddVolumes(a.can_add_volumes);this.setCanOnlyAddEBooks(a.can_only_add_ebooks||!1); this.setAddVolumeBaseUrl(a.add_vol_base_url);this.setDeleteVolumeBaseUrl(a.del_vol_base_url);a.paused!==void 0&&(this.setPaused(a.paused),this.setPauseBookshelfUrl(a.pause_bookshelf_url));a.volumes&&(a=module$contents$goog$array_map(a.volumes,function(b){return new module$exports$ocean$info$ProtoSearchResult(b)}),this.setVolumes(a))};$jscomp.inherits(module$contents$ocean$info$ProtoBookshelf_ProtoBookshelf,ocean.info.Bookshelf);ocean.info.ProtoBookshelf=module$contents$ocean$info$ProtoBookshelf_ProtoBookshelf;ocean.info.Bookshelves=function(){module$contents$ocean$EventManager_EventManager.call(this);this.predefinedShelves_=[];this.customShelves_=[]};goog.inherits(ocean.info.Bookshelves,module$contents$ocean$EventManager_EventManager);ocean.info.Bookshelves.EventType={ADD:"add",UPDATE:"update"};ocean.info.Bookshelves.URL_PARAM_BOOKSHELF_ID="as_coll"; ocean.info.Bookshelves.isUrlForBookshelf=function(a,b){a=new goog.Uri(a);var c=ocean.info.Bookshelves.URL_PARAM_BOOKSHELF_ID;return b===parseInt(a.getParameterValue(c),10)};ocean.info.Bookshelves.isMyEbooksPage=function(){return ocean.info.Bookshelves.isUrlForBookshelf(new goog.Uri(goog.dom.getWindow().location),module$contents$ocean$info$BookshelfId_BookshelfId.MY_EBOOKS)}; ocean.info.Bookshelves.isPurchasedBooksPage=function(){return ocean.info.Bookshelves.isUrlForBookshelf(new goog.Uri(goog.dom.getWindow().location),module$contents$ocean$info$BookshelfId_BookshelfId.PURCHASED)};ocean.info.Bookshelves.prototype.addShelfInternal=function(a,b){if(!this.getBookshelfById(a.getId())){var c=a.predefined_?this.predefinedShelves_:this.customShelves_;b?module$contents$goog$array_insertAt(c,a):c.push(a)}}; ocean.info.Bookshelves.prototype.addShelf=function(a,b){this.sendPostRequest_(this.createBookshelfBaseUrl_,a,goog.bind(this.handleAddShelfResponse_,this,b))};ocean.info.Bookshelves.prototype.removeBookShelfById=function(a){return(a=this.getBookshelfById(a.toString()))?module$contents$goog$array_remove(this.predefinedShelves_,a)||module$contents$goog$array_remove(this.customShelves_,a):!1}; ocean.info.Bookshelves.prototype.updateShelf=function(a){var b=new goog.Uri(this.updateBookshelfBaseUrl_);b.setParameterValue(ocean.info.Bookshelves.URL_PARAM_BOOKSHELF_ID,a.getId());this.sendPostRequest_(b,a,goog.bind(this.handleUpdateShelfResponse_,this))}; ocean.info.Bookshelves.prototype.sendPostRequest_=function(a,b,c){var d=b.access_==ocean.info.Bookshelf.Access.PUBLIC;a=new goog.Uri(a);a.setParameterValue("cl_title",b.getTitle());a.setParameterValue("cl_mode",d?"public":"private");b="cl_des="+goog.string.urlEncode(b.getDescription());goog.net.XhrIo.send(a,c,"POST",b)}; ocean.info.Bookshelves.prototype.handleUpdateShelfResponse_=function(a){a=a.target;if(a.isSuccess()){a=new module$contents$ocean$info$ProtoBookshelf_ProtoBookshelf(a.getResponseJson());var b=this.getBookshelfById(a.getId());b.setTitle(a.getTitle());b.setDescription(a.getDescription());b.setAccess(a.access_);b=new goog.events.Event(ocean.info.Bookshelves.EventType.UPDATE,this);b.shelf=a;this.dispatchEvent(b)}}; ocean.info.Bookshelves.prototype.handleAddShelfResponse_=function(a,b){b=b.target;b.isSuccess()&&(b=new module$contents$ocean$info$ProtoBookshelf_ProtoBookshelf(b.getResponseJson()),this.addShelfInternal(b,a),a=new goog.events.Event(ocean.info.Bookshelves.EventType.ADD,this),a.shelf=b,this.dispatchEvent(a))};ocean.info.Bookshelves.prototype.setCreateBookshelfBaseUrl=function(a){this.createBookshelfBaseUrl_=new goog.Uri(a);this.createBookshelfBaseUrl_.setParameterValue("jscmd","ClCreate")}; ocean.info.Bookshelves.prototype.setUpdateBookshelfBaseUrl=function(a){this.updateBookshelfBaseUrl_=new goog.Uri(a);this.updateBookshelfBaseUrl_.setParameterValue("jscmd","ClUpdate")};ocean.info.Bookshelves.prototype.setMainBookshelfId=function(a){this.mainBookshelfId_=a};ocean.info.Bookshelves.prototype.getMainBookshelf=function(){return this.getBookshelfById(this.mainBookshelfId_)}; ocean.info.Bookshelves.prototype.getBookshelfById=function(a){var b=module$contents$goog$array_find(this.getBookshelves(),function(c){return c.getId()==a});return b};ocean.info.Bookshelves.prototype.getBookshelves=function(){return module$contents$goog$array_flatten(this.predefinedShelves_,this.customShelves_)}; ocean.info.Bookshelves.prototype.getVolumeById=function(a){var b=module$contents$goog$array_find(this.getBookshelves(),function(c){return c.getVolumeById(a)!=null});return b!=null?b.getVolumeById(a):null};var module$exports$ocean$msg$util={getViewOrderLink:function(a,b){var c=module$contents$goog$asserts$dom_assertIsHtmlAnchorElement(goog.dom.createDom(goog.dom.TagName.A,{},"View order"));(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(c,a);c.classList.add(b);return c}};var module$contents$ocean$HoverCardRenderer_HoverCardRenderer=function(a,b,c,d){module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.call(this,a,b,c);this.isNativeAppRequest_=module$contents$ocean$HoverCardRenderer_HoverCardRenderer.isNativeAppRequest_(this.data.data_.infoUrl);this.showDeviceFormatInfo_=!!d};$jscomp.inherits(module$contents$ocean$HoverCardRenderer_HoverCardRenderer,module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer); module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.getAuthorSearchUrl=function(a){return new goog.Uri(goog.string.subs(module$contents$ocean$HoverCardRenderer_HoverCardRenderer.IN_AUTHOR_SEARCH_URL_,a))}; module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.render=function(a){goog.dom.removeChildren(a);var b=goog.dom.createDom(goog.dom.TagName.DIV,this.cssName),c=goog.dom.createDom(goog.dom.TagName.DIV,this.cssName+"-meta");this.renderMetaSection(c);var d=this.data.isEBook()?this.cssName+"-footer":this.cssName+"-footer-nonebook";d=goog.dom.createDom(goog.dom.TagName.DIV,d);this.renderFooterSection(d);goog.dom.appendChild(b,c);goog.dom.appendChild(b,d);goog.dom.appendChild(a,b);goog.style.getSize(a).width> this.maxWidth&&goog.style.setSize(a,this.maxWidth,"")};module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderMetaSection=function(a){this.data.isPurchased()||this.data.isPreOrdered()||this.data.isVolumeCancelled()||!this.data.getViewOrderUrl()||!ocean.info.Bookshelves.isPurchasedBooksPage()||this.renderBadCreditCardError(a);module$contents$ocean$AbstractHoverCardRenderer_AbstractHoverCardRenderer.prototype.renderMetaSection.call(this,a);this.renderBookOptions(a)}; module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderBadCreditCardError=function(a){var b=goog.dom.createDom(goog.dom.TagName.IMG,{src:"/googlebooks/images/purchase_error.gif","class":this.cssName+"-error-icon"});b=goog.dom.createDom(goog.dom.TagName.DIV,this.cssName+"-card-error",b,"Credit card declined:");if(this.data.getViewOrderUrl()){var c=(0,module$exports$ocean$msg$util.getViewOrderLink)(this.data.getViewOrderUrl(),"primary"),d=goog.dom.createDom(goog.dom.TagName.SPAN); d.innerText=" ";goog.dom.appendChild(b,d);goog.dom.appendChild(b,c)}goog.dom.appendChild(a,b)}; module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderBookOptions=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV,this.cssName+"-book-options");if(this.data.isEBook())this.data.data_.isFreeEBook?this.renderFreeBookOptions_(b):this.data.isPreOrdered()?this.renderPreOrdered_(b):this.data.isVolumeCancelled()&&ocean.info.Bookshelves.isPurchasedBooksPage()?this.renderCancelled_(b):this.data.isPurchased()||this.data.data_.inMyEbooks?!this.data.isPurchased()&&this.data.data_.inMyEbooks? this.renderBuyButton_(b):this.data.isPurchased()&&this.renderPurchased_(b):this.renderBuyButton_(b),this.renderRemoveOptions(b);else{var c=this.data.getPreviewUrl();this.isVolumePreviewable()&&!goog.string.isEmptyOrWhitespace(c)?this.renderButton(b,"Preview",c,!0,void 0,void 0,"unified-hovercard-preview-sample"):this.renderButton(b,"Preview",c,!0,!1,!0,"unified-hovercard-preview-sample")}goog.dom.appendChild(a,b)}; module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderRemoveOptions=function(a){if(ocean.info.Bookshelves.isMyEbooksPage()){var b=goog.dom.createDom(goog.dom.TagName.SPAN,this.cssName+"-offline-remove-options");this.renderRemoveFromMyEBooksLink_(b);goog.dom.appendChild(a,b)}}; module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderFooterSection=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV,this.cssName+"-footer-inner");if(this.data.isEBook())if(this.data.isVolumeCancelled()&&ocean.info.Bookshelves.isPurchasedBooksPage())this.renderPurchasedShelfFooterLinks_(b);else if(this.isUnpurchasedPreOrder_()||this.data.isPreOrdered())this.renderPreOrderDate_(b),this.data.isPreOrdered()&&ocean.info.Bookshelves.isPurchasedBooksPage()&&this.renderPurchasedShelfFooterLinks_(b); else if(this.data.isPurchased()&&ocean.info.Bookshelves.isPurchasedBooksPage())this.renderSupportedDevicesInfo_(b),this.renderPurchasedShelfFooterLinks_(b);else{this.renderSupportedDevicesInfo_(b);var c=!this.data.isPurchased()&&!this.data.data_.isFreeEBook,d=this.data.data_.isFreeEBook&&!this.data.data_.inMyEbooks;(c||d)&&this.renderPreviewLink_(b)}goog.dom.appendChild(a,b)}; module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderPurchasedShelfFooterLinks_=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV,{id:"unified-hovercard-purchased-shelf-links","class":this.cssName+"-order-links-container"});this.renderViewOrderLink_(b);this.data.isPreOrdered()||this.renderDeleteForeverLink_(b);goog.dom.appendChild(a,b)}; module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderFreeBookOptions_=function(a){this.data.data_.inMyEbooks?this.renderPurchased_(a):this.renderGetItFreeButton_(a)};module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.isUnpurchasedPreOrder_=function(){return this.data.isPreOrder()&&!this.data.isPurchased()}; module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderPreOrderDate_=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV,this.cssName+"-pre-order-date");b.textContent=module$contents$ocean$msg_getAvailableOnDate(this.data.getOnSaleDate());goog.dom.appendChild(a,b)}; module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderPreviewLink_=function(a){var b=goog.dom.createDom(goog.dom.TagName.SPAN,{"class":this.cssName+"-footer-inner-right"}),c=this.getPreviewUrl_(this.data.data_.previewEBookUrl||this.data.data_.readUrl);if(c){var d=module$contents$goog$asserts$dom_assertIsHtmlAnchorElement(goog.dom.createDom(goog.dom.TagName.A,{id:"unified-hovercard-preview-link"},"preview it"));(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(d, c);goog.dom.appendChild(b,d)}goog.dom.appendChild(a,b)};module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderPurchased_=function(a){this.renderReadNowButton_(a)};module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderPreOrdered_=function(a){var b=goog.dom.createDom(goog.dom.TagName.SPAN,this.cssName+"-pre-ordered","Pre-ordered");goog.dom.appendChild(a,b)}; module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderCancelled_=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV,this.cssName+"-cancelled"),c=this.data.data_.cancelledReason,d=ocean.info.SearchResult.CancellationReason;c==d.CUSTOMER_REQUEST?goog.dom.setTextContent(b,"Cancelled - by customer request"):c==d.AUTO_FULFILLMENT_ERROR?goog.dom.setTextContent(b,"Cancelled - problem with eBook"):c==d.AUTO_PRICE_CHANGE?goog.dom.setTextContent(b,"Cancelled - price change"):c==d.AUTO_PUBLISHER_CHANGE? goog.dom.setTextContent(b,"Cancelled - publisher cancellation"):goog.dom.setTextContent(b,"Cancelled");goog.dom.appendChild(a,b)}; module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderBuyButton_=function(a){this.isUnpurchasedPreOrder_()?this.renderButton(a,module$contents$ocean$msg_getPreOrderPrice(this.data.data_.salePrice),this.data.data_.buyUrl,!0,void 0,void 0,"unified-hovercard-buy-btn"):this.data.isRentable()?this.renderButton(a,module$contents$ocean$msg_getEbookFromWithPrice(this.data.data_.offerPrice),this.data.data_.buyUrl,!0,void 0,void 0,"unified-hovercard-buy-btn"):this.renderButton(a,module$contents$ocean$msg_getBuyEbookWithPrice(this.data.data_.salePrice), this.data.data_.buyUrl,!0,void 0,void 0,"unified-hovercard-buy-btn")};module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderGetItFreeButton_=function(a){this.renderButton(a,"Read eBook",this.data.data_.freeEBookUrl,!0,!this.data.data_.addToMyEbooksUrlIsOnPlay,void 0,"unified-hovercard-free-btn")};module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.getPreviewUrl_=function(a){a&&(a=goog.uri.utils.setParam(a,"source","ebookstore"));return a}; module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderReadNowButton_=function(a){this.renderButton(a,"Read now",this.data.data_.readUrl,!0,void 0,void 0,"unified-hovercard-read-now")}; module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderDeleteForeverLink_=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV,{id:"unified-hovercard-delete-forever","class":this.cssName+"-footer-fake-link"},"Delete forever");goog.dom.classlist.add(b,this.cssName+"-footer-action-link");b.id=module$contents$ocean$HoverCardRenderer_HoverCardRenderer.DELETE_FOREVER_ID;goog.dom.appendChild(a,b)}; module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderRemoveFromMyEBooksLink_=function(a){var b=goog.dom.createDom(goog.dom.TagName.SPAN,{id:"unified-hovercard-remove-from-ebooks","class":this.cssName+"-fake-link"},"Remove from My eBooks");b.id=module$contents$ocean$HoverCardRenderer_HoverCardRenderer.REMOVE_FROM_MY_EBOOKS_ID;goog.dom.appendChild(a,b)}; module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderViewOrderLink_=function(a){var b=this.data.getViewOrderUrl();b&&goog.dom.appendChild(a,(0,module$exports$ocean$msg$util.getViewOrderLink)(b,""))}; module$contents$ocean$HoverCardRenderer_HoverCardRenderer.prototype.renderSupportedDevicesInfo_=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV,this.cssName+"-supported-devices"),c=this.cssName+"-device-type",d=this.cssName+"-device-supported",e=this.cssName+"-device-not-supported",f=goog.dom.createDom(goog.dom.TagName.SPAN,c,"Web"),g=goog.dom.createDom(goog.dom.TagName.SPAN,c,"Tablet / iPad"),h=goog.dom.createDom(goog.dom.TagName.SPAN,c,"eReader");c=goog.dom.createDom(goog.dom.TagName.SPAN, c,"Smartphone");var k=goog.dom.createDom(goog.dom.TagName.SPAN,"goog-inline-block"),l=goog.dom.createDom(goog.dom.TagName.SPAN,"goog-inline-block"),m=goog.dom.createDom(goog.dom.TagName.SPAN,"goog-inline-block"),n=goog.dom.createDom(goog.dom.TagName.SPAN,"goog-inline-block");this.data.getHasFlowingText()?(goog.dom.classlist.add(k,d),goog.dom.classlist.add(l,d),goog.dom.classlist.add(m,d),goog.dom.classlist.add(n,d)):(this.data.getHasScannedText()?(goog.dom.classlist.add(k,d),goog.dom.classlist.add(l, d)):(goog.dom.classlist.add(k,e),goog.dom.classlist.add(l,e)),goog.dom.classlist.add(m,e),goog.dom.classlist.add(n,e));goog.dom.appendChild(b,k);goog.dom.appendChild(b,f);goog.dom.appendChild(b,l);goog.dom.appendChild(b,g);goog.dom.appendChild(b,m);goog.dom.appendChild(b,h);goog.dom.appendChild(b,n);goog.dom.appendChild(b,c);goog.dom.appendChild(a,b)}; module$contents$ocean$HoverCardRenderer_HoverCardRenderer.isNativeAppRequest_=function(a){a=new goog.Uri(a);a=a.getParameterValue("dapp");if(a===void 0)return!1;a=parseInt(a,10);return module$contents$goog$array_contains([module$contents$ocean$HoverCardRenderer_HoverCardRenderer.SourceDeviceAppType_.IPHONE_APP,module$contents$ocean$HoverCardRenderer_HoverCardRenderer.SourceDeviceAppType_.IPAD_APP,module$contents$ocean$HoverCardRenderer_HoverCardRenderer.SourceDeviceAppType_.ANDROID_APP,module$contents$ocean$HoverCardRenderer_HoverCardRenderer.SourceDeviceAppType_.OTHER_MOBILE_APP, module$contents$ocean$HoverCardRenderer_HoverCardRenderer.SourceDeviceAppType_.ANDROID_TABLET_APP],a)};module$contents$ocean$HoverCardRenderer_HoverCardRenderer.IN_AUTHOR_SEARCH_URL_='/ebooks?output=ws2&as_brr=5&q=inauthor:"%s"';module$contents$ocean$HoverCardRenderer_HoverCardRenderer.ADD_TO_MY_EBOOKS_ID="hovercard-add-to-my-ebooks";module$contents$ocean$HoverCardRenderer_HoverCardRenderer.DELETE_FOREVER_ID="hovercard-delete-forever"; module$contents$ocean$HoverCardRenderer_HoverCardRenderer.SAVE_SAMPLE_LINK_ID="hovercard-save-sample-for-later";module$contents$ocean$HoverCardRenderer_HoverCardRenderer.REMOVE_FROM_MY_EBOOKS_ID="hovercard-remove-from-my-ebooks";module$contents$ocean$HoverCardRenderer_HoverCardRenderer.SourceDeviceAppType_={DEVTYPE_NONE:0,IPHONE_APP:1,IPAD_APP:2,ANDROID_APP:3,ANDROID_TABLET_APP:4,OTHER_MOBILE_APP:5};ocean.HoverCardRenderer=module$contents$ocean$HoverCardRenderer_HoverCardRenderer;ocean.HoverCard=function(a,b,c){module$contents$ocean$AbstractHoverCard_AbstractHoverCard.call(this,a);this.isRtl_=ocean.style.isPageRtl();this.arrowBorder_=this.arrow_=this.anchor_=null;this.data_=b;this.renderer_=null;this.showDeviceFormatInfo_=!!c;this.render(b);this.initListeners_()};$jscomp.inherits(ocean.HoverCard,module$contents$ocean$AbstractHoverCard_AbstractHoverCard); ocean.HoverCard.prototype.createRenderer=function(a){return new module$contents$ocean$HoverCardRenderer_HoverCardRenderer(a,this.className,this.MAX_WIDTH_,this.showDeviceFormatInfo_)};ocean.HoverCard.prototype.disposeInternal=function(){this.renderer_.getHandler().dispose();goog.dom.removeNode(this.getElement())}; ocean.HoverCard.prototype.maybeShow=function(a,b){module$contents$ocean$AbstractHoverCard_AbstractHoverCard.prototype.maybeShow.call(this,a,b);this.isVisible()&&(this.isRtl_?this.setMargin(0,-2,0,0):this.setMargin(0,0,0,-2),this.anchor_=this.anchor,this.createArrow_())}; ocean.HoverCard.prototype.render=function(a){this.renderer_&&(this.renderer_.dispose(),this.arrowBorder_=this.arrow_=null);this.renderer_=this.createRenderer(a);this.renderer_.render(this.getElement());this.initListeners_();this.isVisible()&&this.createArrow_()}; ocean.HoverCard.prototype.calcArrowInfo_=function(){var a=goog.style.getBounds(this.anchor_||null),b=goog.style.getBounds(this.getElement());if(!a)return null;a.top=Math.ceil(a.top);b.top=Math.ceil(b.top);a.left=Math.ceil(a.left);b.left=Math.ceil(b.left);var c=b.top>=a.top,d=goog.math.Rect.intersection(b,a);d||(d=new goog.math.Rect(a.left,0,a.width,0));a=this.isRtl_?b.left+b.width-d.left-(d.width/2+this.ARROW_WIDTH_):d.left-b.left+(d.width/2-this.ARROW_WIDTH_);a=a>0?a:0;b=b.height-2;return{x:a,y:b, isUpArrow:c}};ocean.HoverCard.prototype.createArrow_=function(){var a=goog.dom.createElement(goog.dom.TagName.DIV),b=goog.dom.createElement(goog.dom.TagName.DIV);this.positionArrow_(b,a);this.arrowBorder_?goog.dom.replaceNode(a,this.arrowBorder_):goog.dom.appendChild(this.getElement(),a);this.arrow_?goog.dom.replaceNode(b,this.arrow_):goog.dom.appendChild(this.getElement(),b);this.arrow_=b;this.arrowBorder_=a}; ocean.HoverCard.prototype.handleHoverCardClick_=function(a){var b=a.target||null;if(b){b.nodeType==goog.dom.NodeType.TEXT&&(b=b.parentNode);switch(b.id){case module$contents$ocean$HoverCardRenderer_HoverCardRenderer.REMOVE_FROM_MY_EBOOKS_ID:a.preventDefault();var c=ocean.HoverCard.EventType.REMOVE;break;case module$contents$ocean$HoverCardRenderer_HoverCardRenderer.SAVE_SAMPLE_LINK_ID:case module$contents$ocean$HoverCardRenderer_HoverCardRenderer.ADD_TO_MY_EBOOKS_ID:a.preventDefault();c=ocean.HoverCard.EventType.ADD_TO_MY_EBOOKS; break;case module$contents$ocean$HoverCardRenderer_HoverCardRenderer.DELETE_FOREVER_ID:a.preventDefault();c=ocean.HoverCard.EventType.DELETE_FOREVER;break;default:b.href&&(c=ocean.HoverCard.EventType.LINK_CLICK,a.type==goog.events.EventType.TOUCHSTART&&module$exports$google3$third_party$javascript$safevalues$dom$index.locationReplace(window.location,b.href))}c&&(a=new goog.events.Event(c,this),this.dispatchEvent(a))}}; ocean.HoverCard.prototype.initListeners_=function(){var a=goog.userAgent.product.IPAD||goog.userAgent.product.ANDROID?goog.events.EventType.TOUCHSTART:goog.events.EventType.CLICK;this.renderer_.getHandler().listenWithScope(this.getElement(),a,this.handleHoverCardClick_,!1,this)}; ocean.HoverCard.prototype.positionArrow_=function(a,b){var c=this.calcArrowInfo_(),d=this.isRtl_?"marginRight":"marginLeft";goog.style.setStyle(a,d,c.x+"px");goog.style.setStyle(b,d,c.x-1+"px");goog.dom.classlist.add(this.getElement(),this.className+"-tooltip");c.isUpArrow?(goog.style.setStyle(a,"bottom",c.y+"px"),goog.style.setStyle(b,"bottom",c.y+1+"px"),goog.dom.classlist.add(a,this.className+"-arrow-up"),goog.dom.classlist.add(b,this.className+"-arrow-up-border")):(goog.style.setStyle(a,"top", c.y+"px"),goog.style.setStyle(b,"top",c.y+1+"px"),this.data_.isEBook()||goog.dom.classlist.add(a,this.className+"-nofooter"),goog.dom.classlist.add(a,this.className+"-arrow-down"),goog.dom.classlist.add(b,this.className+"-arrow-down-border"))};ocean.HoverCard.EventType={ADD_TO_MY_EBOOKS:"a",DELETE_FOREVER:"b",REMOVE:"c",MAKE_AVAILABLE:"d",DO_NOT_MAKE_AVAILABLE:"e",LINK_CLICK:"f"};ocean.HoverCard.prototype.ARROW_WIDTH_=12;ocean.HoverCard.prototype.MAX_WIDTH_=435;ocean.chrome.ThumbDrawable=function(a,b,c){ocean.chrome.SliderDrawable.call(this,b);this.volume_=a;this.thumbnail_=null;this.displayBadging_=!1;if(c==module$contents$ocean$info$BookshelfId_BookshelfId.PURCHASED.toString()||c==module$contents$ocean$info$BookshelfId_BookshelfId.MY_EBOOKS.toString())this.displayBadging_=!0};goog.inherits(ocean.chrome.ThumbDrawable,ocean.chrome.SliderDrawable);ocean.chrome.ThumbDrawable.globalEventTarget=new goog.events.EventTarget; ocean.chrome.ThumbDrawable.prototype.draw=function(a){var b=goog.dom.createDom(goog.dom.TagName.A,{className:"slider-link goog-inline-block"});goog.style.setSize(b,"",this.getHeight());var c=new goog.Uri(this.volume_.data_.infoUrl);this.volume_.data_.source?c.setParameterValue("source",this.volume_.data_.source):c.setParameterValue("source","gbs_slider_thumb");c.removeParameter("num");module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref(b,c.toString());goog.dom.appendChild(a, b);this.thumbnail_=goog.dom.createElement(goog.dom.TagName.IMG);this.thumbnail_.alt="";this.getHandler().listenOnce(this.thumbnail_,goog.events.EventType.LOAD,goog.bind(this.handleImageLoad_,this));ocean.chrome.ThumbDrawable.globalEventTarget.dispatchEvent(ocean.chrome.ThumbDrawable.EventType.START);(a=this.volume_.data_.thumbUrl)?(a=new goog.Uri(a),a.setParameterValue("h",this.getHeight()),a.setParameterValue("stbn",1),a.removeParameter("edge"),this.thumbnail_.src=a.toString()):this.thumbnail_.src= "/googlebooks/images/no_cover_thumb.gif";goog.style.setSize(this.thumbnail_,"",this.getHeight());goog.dom.appendChild(b,this.thumbnail_);this.displayBadging_&&this.volume_.isExpiredRental()?(this.badgeElem_=goog.dom.createDom(goog.dom.TagName.SPAN,["bookcard-badge","bookcard-sample-label"],"Expired"),b.appendChild(this.badgeElem_)):this.displayBadging_&&this.volume_.isActiveRental()?(this.badgeElem_=goog.dom.createDom(goog.dom.TagName.SPAN,["bookcard-badge","bookcard-sample-label"],this.volume_.getRemainingRentalTimeMessage()), b.appendChild(this.badgeElem_)):!this.displayBadging_||this.volume_.isPurchased()||this.volume_.data_.isFreeEBook||(this.badgeElem_=goog.dom.createDom(goog.dom.TagName.SPAN,["bookcard-badge","bookcard-sample-label"],"Sample"),b.appendChild(this.badgeElem_));goog.events.listenOnce(b,goog.events.EventType.MOUSEOVER,this.createHoverCard_.bind(this,b))}; ocean.chrome.ThumbDrawable.prototype.handleImageLoad_=function(){this.dispatchEvent(ocean.chrome.SliderDrawable.EventType.RENDER);ocean.chrome.ThumbDrawable.globalEventTarget.dispatchEvent(ocean.chrome.ThumbDrawable.EventType.COMPLETE);this.badgeElem_&&goog.style.setWidth(this.badgeElem_,this.getThumbnailWidth())};ocean.chrome.ThumbDrawable.prototype.createHoverCard_=function(a,b){a=new ocean.HoverCard(a,this.volume_);a.initWithMouseOverEvent(b)}; ocean.chrome.ThumbDrawable.prototype.getThumbnailWidth=function(){return goog.style.getSize(this.thumbnail_).width};ocean.chrome.ThumbDrawable.EventType={START:"start",COMPLETE:"complete"};ocean.basic={};ocean.basic.AnnotatedDrawable=function(a,b,c){ocean.chrome.ThumbDrawable.call(this,a,b-40,c);this.annotationEl_=goog.dom.createDom(goog.dom.TagName.DIV,"slider-annotation");this.annotationFilled_=!1};$jscomp.inherits(ocean.basic.AnnotatedDrawable,ocean.chrome.ThumbDrawable); ocean.basic.AnnotatedDrawable.prototype.draw=function(a){goog.events.listenOnce(this,ocean.chrome.SliderDrawable.EventType.RENDER,goog.bind(this.drawAnnotation,this));ocean.chrome.ThumbDrawable.prototype.draw.call(this,a);goog.dom.appendChild(a,this.annotationEl_)};ocean.basic.AnnotatedDrawable.prototype.drawAnnotation=function(a){this.annotationFilled_||(a.stopPropagation(),goog.dom.appendChild(this.annotationEl_,this.getAnnotation()),this.annotationFilled_=!0,this.dispatchEvent(ocean.chrome.SliderDrawable.EventType.RENDER))};var module$contents$ocean$basic$AuthorAnnotatedDrawable_AuthorAnnotatedDrawable=function(a,b,c){ocean.basic.AnnotatedDrawable.call(this,a,b,c)};$jscomp.inherits(module$contents$ocean$basic$AuthorAnnotatedDrawable_AuthorAnnotatedDrawable,ocean.basic.AnnotatedDrawable);module$contents$ocean$basic$AuthorAnnotatedDrawable_AuthorAnnotatedDrawable.prototype.draw=function(a){ocean.basic.AnnotatedDrawable.prototype.draw.call(this,a)}; module$contents$ocean$basic$AuthorAnnotatedDrawable_AuthorAnnotatedDrawable.prototype.getAnnotation=function(){var a=this.volume_,b=goog.dom.createElement(goog.dom.TagName.DIV),c=goog.dom.createDom(goog.dom.TagName.A,{className:"slider-annotation-title"},goog.dom.createTextNode(a.getTitle()));(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(c,a.data_.infoUrl);goog.dom.appendChild(b,c);if(a=a.data_.authors)a=goog.dom.createDom(goog.dom.TagName.DIV,"slider-annotation-author", goog.dom.createTextNode(a)),goog.dom.appendChild(b,a);goog.style.setSize(b,this.getThumbnailWidth()+5,"");return b};ocean.basic.AuthorAnnotatedDrawable=module$contents$ocean$basic$AuthorAnnotatedDrawable_AuthorAnnotatedDrawable;goog.net.Jsonp=function(a,b){this.uri_=a;this.callbackParamName_=b?b:"callback";this.timeout_=5E3;this.nonce_=""};goog.net.Jsonp.CALLBACKS="_callbacks_";goog.net.Jsonp.scriptCounter_=0;goog.net.Jsonp.getCallbackId_=function(a){return goog.net.Jsonp.CALLBACKS+"__"+a}; goog.net.Jsonp.prototype.send=function(a,b,c,d){a=a?module$contents$goog$object_clone(a):{};d=d||"_"+(goog.net.Jsonp.scriptCounter_++).toString(36)+Date.now().toString(36);var e=goog.net.Jsonp.getCallbackId_(d);b&&(b=goog.net.Jsonp.newReplyHandler_(d,b),goog.global[e]=b,a[this.callbackParamName_]=e);b={timeout:this.timeout_,cleanupWhenDone:!0};this.nonce_&&(b.attributes={nonce:this.nonce_});e=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_appendParams(this.uri_, new Map(Object.entries(a)));b=goog.net.jsloader.safeLoad(e,b);c=goog.net.Jsonp.newErrorHandler_(d,a,c);b.addErrback(c);return{id_:d,deferred_:b}};goog.net.Jsonp.prototype.cancel=function(a){a&&(a.deferred_&&a.deferred_.cancel(),a.id_&&goog.net.Jsonp.cleanup_(a.id_,!1))};goog.net.Jsonp.newErrorHandler_=function(a,b,c){return function(){goog.net.Jsonp.cleanup_(a,!1);c&&c(b)}};goog.net.Jsonp.newReplyHandler_=function(a,b){var c=function(d){goog.net.Jsonp.cleanup_(a,!0);b.apply(void 0,arguments)};return c}; goog.net.Jsonp.cleanup_=function(a,b){a=goog.net.Jsonp.getCallbackId_(a);if(goog.global[a])if(b)try{delete goog.global[a]}catch(c){goog.global[a]=void 0}else goog.global[a]=goog.functions.UNDEFINED};goog.ui.ac={};goog.ui.ac.RenderOptions=function(){};goog.ui.ac.RenderOptions.prototype.preserveHilited_=!1;goog.ui.ac.RenderOptions.prototype.setAutoHilite=function(a){this.autoHilite_=a};goog.ui.ac.AutoComplete=function(a,b,c){goog.events.EventTarget.call(this);this.matcher_=a;this.selectionHandler_=c;this.renderer_=b;goog.events.listen(b,[goog.ui.ac.AutoComplete.EventType.HILITE,goog.ui.ac.AutoComplete.EventType.SELECT,goog.ui.ac.AutoComplete.EventType.CANCEL_DISMISS,goog.ui.ac.AutoComplete.EventType.DISMISS],this.handleEvent,!1,this);this.token_=null;this.rows_=[];this.hiliteId_=-1;this.firstRowId_=0;this.dismissTimer_=this.target_=null;this.inputToAnchorMap_={}}; goog.inherits(goog.ui.ac.AutoComplete,goog.events.EventTarget);goog.ui.ac.AutoComplete.prototype.maxMatches_=10;goog.ui.ac.AutoComplete.prototype.autoHilite_=!0;goog.ui.ac.AutoComplete.prototype.allowFreeSelect_=!1;goog.ui.ac.AutoComplete.prototype.wrap_=!1;goog.ui.ac.AutoComplete.prototype.triggerSuggestionsOnUpdate_=!1;goog.ui.ac.AutoComplete.EventType={ROW_HILITE:"rowhilite",HILITE:"hilite",SELECT:"select",DISMISS:"dismiss",CANCEL_DISMISS:"canceldismiss",UPDATE:"update",SUGGESTIONS_UPDATE:"suggestionsupdate"}; goog.ui.ac.AutoComplete.prototype.getToken=function(){return this.token_}; goog.ui.ac.AutoComplete.prototype.handleEvent=function(a){var b=this.matcher_;if(a.target==this.renderer_)switch(a.type){case goog.ui.ac.AutoComplete.EventType.HILITE:this.hiliteId(a.row);break;case goog.ui.ac.AutoComplete.EventType.SELECT:var c=!1;if(typeof a.row==="number"){a=a.row;c=this.getIndexOfId(a);var d=this.rows_[c];c=!!d&&b.isRowDisabled&&b.isRowDisabled(d);d&&!c&&this.hiliteId_!=a&&this.hiliteId(a)}c||this.selectHilited();break;case goog.ui.ac.AutoComplete.EventType.CANCEL_DISMISS:this.cancelDelayedDismiss(); break;case goog.ui.ac.AutoComplete.EventType.DISMISS:this.dismissOnDelay()}};goog.ui.ac.AutoComplete.prototype.setAutoHilite=function(a){this.autoHilite_=a};goog.ui.ac.AutoComplete.prototype.setAllowFreeSelect=function(a){this.allowFreeSelect_=a};goog.ui.ac.AutoComplete.prototype.setToken=function(a,b){this.token_!=a&&(this.token_=a,this.matcher_.requestMatchingRows(this.token_,this.maxMatches_,goog.bind(this.matchListener_,this),b),this.cancelDelayedDismiss())}; goog.ui.ac.AutoComplete.prototype.getTarget=function(){return this.target_};goog.ui.ac.AutoComplete.prototype.setTarget=function(a){this.target_=a};goog.ui.ac.AutoComplete.prototype.isOpen=function(){return this.renderer_.isVisible()}; goog.ui.ac.AutoComplete.prototype.hiliteNext=function(){for(var a=this.firstRowId_+this.rows_.length-1,b=this.hiliteId_,c=0;c<this.rows_.length;c++){if(b>=this.firstRowId_&&b<a)b++;else if(b==-1)b=this.firstRowId_;else if(this.allowFreeSelect_&&b==a){this.hiliteId(-1);break}else if(this.wrap_&&b==a)b=this.firstRowId_;else break;if(this.hiliteId(b))return!0}return!1}; goog.ui.ac.AutoComplete.prototype.hilitePrev=function(){for(var a=this.firstRowId_+this.rows_.length-1,b=this.hiliteId_,c=0;c<this.rows_.length;c++){if(b>this.firstRowId_)b--;else if(this.allowFreeSelect_&&b==this.firstRowId_){this.hiliteId(-1);break}else if(!this.wrap_||b!=-1&&b!=this.firstRowId_)break;else b=a;if(this.hiliteId(b))return!0}return!1}; goog.ui.ac.AutoComplete.prototype.hiliteId=function(a){var b=this.getIndexOfId(a),c=this.rows_[b];c=!!c&&this.matcher_.isRowDisabled&&this.matcher_.isRowDisabled(c);return c?!1:(this.hiliteId_=a,this.renderer_.hiliteId(a),b!=-1)}; goog.ui.ac.AutoComplete.prototype.selectHilited=function(){var a=this.getIndexOfId(this.hiliteId_);if(a!=-1){var b=this.rows_[a],c=this.selectionHandler_.selectRow(b);this.triggerSuggestionsOnUpdate_?(this.token_=null,this.dismissOnDelay()):this.dismiss();c||(this.dispatchEvent({type:goog.ui.ac.AutoComplete.EventType.UPDATE,row:b,index:a}),this.triggerSuggestionsOnUpdate_&&this.selectionHandler_.update(!0));return!0}this.dismiss();this.dispatchEvent({type:goog.ui.ac.AutoComplete.EventType.UPDATE, row:null,index:null});return!1};goog.ui.ac.AutoComplete.prototype.dismiss=function(){this.hiliteId_=-1;this.token_=null;this.firstRowId_+=this.rows_.length;this.rows_=[];window.clearTimeout(this.dismissTimer_);this.dismissTimer_=null;this.renderer_.dismiss();this.dispatchEvent(goog.ui.ac.AutoComplete.EventType.SUGGESTIONS_UPDATE);this.dispatchEvent(goog.ui.ac.AutoComplete.EventType.DISMISS)}; goog.ui.ac.AutoComplete.prototype.dismissOnDelay=function(){this.dismissTimer_||(this.dismissTimer_=window.setTimeout(goog.bind(this.dismiss,this),100))};goog.ui.ac.AutoComplete.prototype.immediatelyCancelDelayedDismiss_=function(){return this.dismissTimer_?(window.clearTimeout(this.dismissTimer_),this.dismissTimer_=null,!0):!1}; goog.ui.ac.AutoComplete.prototype.cancelDelayedDismiss=function(){this.immediatelyCancelDelayedDismiss_()||window.setTimeout(goog.bind(this.immediatelyCancelDelayedDismiss_,this),10)};goog.ui.ac.AutoComplete.prototype.disposeInternal=function(){goog.ui.ac.AutoComplete.superClass_.disposeInternal.call(this);delete this.inputToAnchorMap_;this.renderer_.dispose();this.selectionHandler_.dispose();this.matcher_=null}; goog.ui.ac.AutoComplete.prototype.matchListener_=function(a,b,c){this.token_==a&&this.renderRows(b,c)}; goog.ui.ac.AutoComplete.prototype.renderRows=function(a,b){var c=goog.typeOf(b)=="object"&&b;b=(b=c?c.preserveHilited_:b)?this.getIndexOfId(this.hiliteId_):-1;this.firstRowId_+=this.rows_.length;this.rows_=a;for(var d=[],e=0;e<a.length;++e)d.push({id:this.getIdOfIndex_(e),data:a[e]});a=null;this.target_&&(a=this.inputToAnchorMap_[goog.getUid(this.target_)]||this.target_);this.renderer_.setAnchorElement(a);this.renderer_.renderRows(d,this.token_,this.target_);a=this.autoHilite_;c&&c.autoHilite_!== void 0&&(a=c.autoHilite_);this.hiliteId_=-1;(a||b>=0)&&d.length!=0&&this.token_&&(b>=0?this.hiliteId(this.getIdOfIndex_(b)):this.hiliteNext());this.dispatchEvent(goog.ui.ac.AutoComplete.EventType.SUGGESTIONS_UPDATE)};goog.ui.ac.AutoComplete.prototype.getIndexOfId=function(a){a-=this.firstRowId_;return a<0||a>=this.rows_.length?-1:a};goog.ui.ac.AutoComplete.prototype.getIdOfIndex_=function(a){return this.firstRowId_+a}; goog.ui.ac.AutoComplete.prototype.attachInputs=function(a){var b=this.selectionHandler_;b.attachInputs.apply(b,arguments)};goog.ui.ac.AutoComplete.prototype.update=function(a){var b=this.selectionHandler_;b.update(a)};goog.dom.selection={};goog.dom.selection.setStart=function(a,b){goog.dom.selection.useSelectionProperties_(a)&&(a.selectionStart=b)};goog.dom.selection.getStart=function(a){return goog.dom.selection.getEndPoints_(a,!0)[0]}; goog.dom.selection.getEndPointsTextareaIe_=function(a,b,c){b=b.duplicate();for(var d=a.text,e=d,f=b.text,g=f,h=!1;!h;)a.compareEndPoints("StartToEnd",a)==0?h=!0:(a.moveEnd("character",-1),a.text==d?e+="\r\n":h=!0);if(c)return[e.length,-1];for(a=!1;!a;)b.compareEndPoints("StartToEnd",b)==0?a=!0:(b.moveEnd("character",-1),b.text==f?g+="\r\n":a=!0);return[e.length,e.length+g.length]};goog.dom.selection.getEndPoints=function(a){return goog.dom.selection.getEndPoints_(a,!1)}; goog.dom.selection.getEndPoints_=function(a,b){var c=0,d=0;goog.dom.selection.useSelectionProperties_(a)&&(c=a.selectionStart,d=b?-1:a.selectionEnd);return[c,d]};goog.dom.selection.setEnd=function(a,b){goog.dom.selection.useSelectionProperties_(a)&&(a.selectionEnd=b)};goog.dom.selection.getEnd=function(a){return goog.dom.selection.getEndPoints_(a,!1)[1]};goog.dom.selection.setCursorPosition=function(a,b){goog.dom.selection.useSelectionProperties_(a)&&(a.selectionStart=b,a.selectionEnd=b)}; goog.dom.selection.setText=function(a,b){if(goog.dom.selection.useSelectionProperties_(a)){var c=a.value,d=a.selectionStart,e=c.slice(0,d);c=c.slice(a.selectionEnd);a.value=e+b+c;a.selectionStart=d;a.selectionEnd=d+b.length}else throw Error("Cannot set the selection end");};goog.dom.selection.getText=function(a){if(goog.dom.selection.useSelectionProperties_(a)){var b=a.value;return b.substring(a.selectionStart,a.selectionEnd)}throw Error("Cannot get the selection text");}; goog.dom.selection.getSelectionRangeText_=function(a){a=a.duplicate();for(var b=a.text,c=b,d=!1;!d;)a.compareEndPoints("StartToEnd",a)==0?d=!0:(a.moveEnd("character",-1),a.text==b?c+="\r\n":d=!0);return c};goog.dom.selection.getRangeIe_=function(a){var b=a.ownerDocument||a.document,c=b.selection.createRange();a.type==goog.dom.InputType.TEXTAREA?(b=b.body.createTextRange(),b.moveToElementText(a)):b=a.createTextRange();return[b,c]}; goog.dom.selection.canonicalizePositionIe_=function(a,b){a.type==goog.dom.InputType.TEXTAREA&&(a=a.value.substring(0,b),b=goog.string.canonicalizeNewlines(a).length);return b};goog.dom.selection.useSelectionProperties_=function(a){try{return typeof a.selectionStart=="number"}catch(b){return!1}};goog.ui.ac.InputHandler=function(a,b,c,d){goog.Disposable.call(this);d=d||150;this.multi_=c!=null?c:!0;this.setSeparators(a||goog.ui.ac.InputHandler.STANDARD_LIST_SEPARATORS);this.literals_=b||"";this.preventSelectionOnTab_=!1;this.preventDefaultOnTab_=this.multi_;this.timer_=d>0?new goog.Timer(d):null;this.eh_=new goog.events.EventHandler(this);this.activateHandler_=new goog.events.EventHandler(this);this.keyHandler_=new goog.events.KeyHandler;this.lastKeyCode_=-1}; goog.inherits(goog.ui.ac.InputHandler,goog.Disposable);goog.ui.ac.InputHandler.REQUIRES_ASYNC_BLUR_=!1;goog.ui.ac.InputHandler.STANDARD_LIST_SEPARATORS=",;";goog.ui.ac.InputHandler.QUOTE_LITERALS='"';goog.ui.ac.InputHandler.prototype.whitespaceWrapEntries_=!0;goog.ui.ac.InputHandler.prototype.generateNewTokenOnLiteral_=!0;goog.ui.ac.InputHandler.prototype.upsideDown_=!1;goog.ui.ac.InputHandler.prototype.separatorUpdates_=!0;goog.ui.ac.InputHandler.prototype.separatorSelects_=!0; goog.ui.ac.InputHandler.prototype.activeTimeoutId_=null;goog.ui.ac.InputHandler.prototype.activeElement_=null;goog.ui.ac.InputHandler.prototype.lastValue_="";goog.ui.ac.InputHandler.prototype.waitingForIme_=!1;goog.ui.ac.InputHandler.prototype.rowJustSelected_=!1;goog.ui.ac.InputHandler.prototype.updateDuringTyping_=!0;goog.ui.ac.InputHandler.prototype.attachAutoComplete=function(a){this.ac_=a};goog.ui.ac.InputHandler.prototype.getActiveElement=function(){return this.activeElement_}; goog.ui.ac.InputHandler.prototype.getValue=function(){return this.activeElement_.value};goog.ui.ac.InputHandler.prototype.setValue=function(a){this.activeElement_.value=a};goog.ui.ac.InputHandler.prototype.getCursorPosition=function(){return goog.dom.selection.getStart(this.activeElement_)};goog.ui.ac.InputHandler.prototype.setCursorPosition=function(a){goog.dom.selection.setStart(this.activeElement_,a);goog.dom.selection.setEnd(this.activeElement_,a)}; goog.ui.ac.InputHandler.prototype.attachInput=function(a){if(goog.dom.isElement(a)){var b=a;goog.a11y.aria.setRole(b,goog.a11y.aria.Role.COMBOBOX);goog.a11y.aria.setState(b,goog.a11y.aria.State.AUTOCOMPLETE,"list")}this.eh_.listen(a,goog.events.EventType.FOCUS,this.handleFocus);this.eh_.listen(a,goog.events.EventType.BLUR,this.handleBlur);this.activeElement_||(this.activateHandler_.listen(a,goog.events.EventType.KEYDOWN,this.onKeyDownOnInactiveElement_),goog.dom.isElement(a)&&(b=goog.dom.getOwnerDocument(a), goog.dom.getActiveElement(b)==a&&this.processFocus(a)))};goog.ui.ac.InputHandler.prototype.attachInputs=function(a){for(var b=0;b<arguments.length;b++)this.attachInput(arguments[b])};goog.ui.ac.InputHandler.prototype.selectRow=function(a,b){this.activeElement_&&this.setTokenText(a.toString(),b);return!1}; goog.ui.ac.InputHandler.prototype.setTokenText=function(a,b){if(b!==void 0?b:this.multi_){b=this.getTokenIndex_(this.getValue(),this.getCursorPosition());var c=this.splitInput_(this.getValue());this.separatorCheck_&&!this.separatorCheck_.test(a)&&(a=goog.string.trimRight(a)+this.defaultSeparator_);this.whitespaceWrapEntries_&&(b==0||goog.string.isEmptyOrWhitespace(c[b-1])||(a=" "+a),b==c.length-1&&(a+=" "));if(a!=c[b]){c[b]=a;a=this.activeElement_;a.value=c.join("");for(var d=0,e=0;e<=b;e++)d+=c[e].length; a.focus();this.setCursorPosition(d)}}else this.setValue(a);this.rowJustSelected_=!0};goog.ui.ac.InputHandler.prototype.disposeInternal=function(){goog.ui.ac.InputHandler.superClass_.disposeInternal.call(this);this.activeTimeoutId_!=null&&window.clearTimeout(this.activeTimeoutId_);this.eh_.dispose();delete this.eh_;this.activateHandler_.dispose();this.keyHandler_.dispose();module$contents$goog$dispose_dispose(this.timer_)}; goog.ui.ac.InputHandler.prototype.setSeparators=function(a,b){this.separators_=a;this.defaultSeparator_=b!=null?b:this.separators_.substring(0,1);a=this.multi_?"[\\s"+this.separators_+"]+":"[\\s]+";this.trimmer_=new RegExp("^"+a+"|"+a+"$","g");this.separatorCheck_=new RegExp("\\s*["+this.separators_+"]$")}; goog.ui.ac.InputHandler.prototype.handleKeyEvent=function(a){switch(a.keyCode){case goog.events.KeyCodes.DOWN:if(this.ac_.isOpen())return this.moveDown_(),a.preventDefault(),!0;if(!this.multi_)return this.update(!0),a.preventDefault(),!0;break;case goog.events.KeyCodes.UP:if(this.ac_.isOpen())return this.moveUp_(),a.preventDefault(),!0;break;case goog.events.KeyCodes.TAB:if(!this.ac_.isOpen()||a.shiftKey||this.preventSelectionOnTab_)this.ac_.dismiss();else if(this.update(),this.ac_.selectHilited()&& this.preventDefaultOnTab_)return a.preventDefault(),!0;break;case goog.events.KeyCodes.ENTER:if(this.ac_.isOpen()){if(this.update(),this.ac_.selectHilited())return a.preventDefault(),a.stopPropagation(),!0}else this.ac_.dismiss();break;case goog.events.KeyCodes.ESC:if(this.ac_.isOpen())return this.ac_.dismiss(),a.preventDefault(),a.stopPropagation(),!0;break;case goog.events.KeyCodes.WIN_IME:if(!this.waitingForIme_)return this.startWaitingForIme_(),!0;break;default:this.timer_&&!this.updateDuringTyping_&& (this.timer_.stop(),this.timer_.start())}return this.handleSeparator_(a)};goog.ui.ac.InputHandler.prototype.handleSeparator_=function(a){var b=this.multi_&&a.charCode&&this.separators_.indexOf(String.fromCharCode(a.charCode))!=-1;this.separatorUpdates_&&b&&this.update();return this.separatorSelects_&&b&&this.ac_.selectHilited()?(a.preventDefault(),!0):!1};goog.ui.ac.InputHandler.prototype.handleKeyUp=function(){return!1}; goog.ui.ac.InputHandler.prototype.addEventHandlers_=function(){this.keyHandler_.attach(this.activeElement_);this.eh_.listen(this.keyHandler_,goog.events.KeyEvent.EventType.KEY,this.onKey_);this.eh_.listen(this.activeElement_,goog.events.EventType.MOUSEDOWN,this.onMouseDown_)}; goog.ui.ac.InputHandler.prototype.removeEventHandlers_=function(){this.eh_.unlisten(this.keyHandler_,goog.events.KeyEvent.EventType.KEY,this.onKey_);this.keyHandler_.detach();this.eh_.unlisten(this.activeElement_,goog.events.EventType.KEYUP,this.handleKeyUp);this.eh_.unlisten(this.activeElement_,goog.events.EventType.MOUSEDOWN,this.onMouseDown_);this.waitingForIme_&&this.stopWaitingForIme_()};goog.ui.ac.InputHandler.prototype.handleFocus=function(a){this.processFocus(a.target||null)}; goog.ui.ac.InputHandler.prototype.processFocus=function(a){this.activateHandler_.removeAll();this.ac_&&this.ac_.cancelDelayedDismiss();a!=this.activeElement_&&(this.activeElement_=a,this.timer_&&(this.timer_.start(),this.eh_.listen(this.timer_,goog.Timer.TICK,this.onTick_)),this.lastValue_=this.getValue(),this.addEventHandlers_())}; goog.ui.ac.InputHandler.prototype.handleBlur=function(){goog.ui.ac.InputHandler.REQUIRES_ASYNC_BLUR_?this.activeTimeoutId_=window.setTimeout(goog.bind(this.processBlur,this),0):this.processBlur()};goog.ui.ac.InputHandler.prototype.processBlur=function(){this.activeElement_&&(this.removeEventHandlers_(),this.activeElement_=null,this.timer_&&(this.timer_.stop(),this.eh_.unlisten(this.timer_,goog.Timer.TICK,this.onTick_)),this.ac_&&this.ac_.dismissOnDelay())}; goog.ui.ac.InputHandler.prototype.onTick_=function(){this.update()};goog.ui.ac.InputHandler.prototype.onKeyDownOnInactiveElement_=function(a){this.handleFocus(a)};goog.ui.ac.InputHandler.prototype.onKey_=function(a){this.lastKeyCode_=a.keyCode;this.ac_&&this.handleKeyEvent(a)};goog.ui.ac.InputHandler.prototype.onKeyPress_=function(){this.waitingForIme_&&this.lastKeyCode_!=goog.events.KeyCodes.WIN_IME&&this.stopWaitingForIme_()}; goog.ui.ac.InputHandler.prototype.onKeyUp_=function(a){this.waitingForIme_&&(a.keyCode==goog.events.KeyCodes.ENTER||a.keyCode==goog.events.KeyCodes.M&&a.ctrlKey)&&this.stopWaitingForIme_()};goog.ui.ac.InputHandler.prototype.onMouseDown_=function(a){this.ac_&&this.handleMouseDown(a)};goog.ui.ac.InputHandler.prototype.handleMouseDown=function(){}; goog.ui.ac.InputHandler.prototype.startWaitingForIme_=function(){this.waitingForIme_||(this.eh_.listen(this.activeElement_,goog.events.EventType.KEYUP,this.onKeyUp_),this.eh_.listen(this.activeElement_,goog.events.EventType.KEYPRESS,this.onKeyPress_),this.waitingForIme_=!0)}; goog.ui.ac.InputHandler.prototype.stopWaitingForIme_=function(){this.waitingForIme_&&(this.waitingForIme_=!1,this.eh_.unlisten(this.activeElement_,goog.events.EventType.KEYPRESS,this.onKeyPress_),this.eh_.unlisten(this.activeElement_,goog.events.EventType.KEYUP,this.onKeyUp_))}; goog.ui.ac.InputHandler.prototype.update=function(a){if(this.activeElement_&&(a||this.getValue()!=this.lastValue_)){if(a||!this.rowJustSelected_)a=this.parseToken(),this.ac_&&(this.ac_.setTarget(this.activeElement_),this.ac_.setToken(a,this.getValue()));this.lastValue_=this.getValue()}this.rowJustSelected_=!1};goog.ui.ac.InputHandler.prototype.parseToken=function(){return this.parseToken_()};goog.ui.ac.InputHandler.prototype.moveUp_=function(){return this.upsideDown_?this.ac_.hiliteNext():this.ac_.hilitePrev()}; goog.ui.ac.InputHandler.prototype.moveDown_=function(){return this.upsideDown_?this.ac_.hilitePrev():this.ac_.hiliteNext()};goog.ui.ac.InputHandler.prototype.parseToken_=function(){var a=this.getCursorPosition(),b=this.getValue();return this.trim_(this.splitInput_(b)[this.getTokenIndex_(b,a)])};goog.ui.ac.InputHandler.prototype.trim_=function(a){return this.trimmer_?String(a).replace(this.trimmer_,""):a}; goog.ui.ac.InputHandler.prototype.getTokenIndex_=function(a,b){var c=this.splitInput_(a);if(b==a.length)return c.length-1;for(var d=a=0,e=0;e<c.length&&d<=b;e++)d+=c[e].length,a=e;return a}; goog.ui.ac.InputHandler.prototype.splitInput_=function(a){if(!this.multi_)return[a];a=String(a).split("");for(var b=[],c=[],d=!1,e=0;e<a.length;e++)this.literals_&&this.literals_.indexOf(a[e])!=-1?(this.generateNewTokenOnLiteral_&&!d&&(b.push(c.join("")),c.length=0),c.push(a[e]),d=!d):d||this.separators_.indexOf(a[e])==-1?c.push(a[e]):(c.push(a[e]),b.push(c.join("")),c.length=0);b.push(c.join(""));return b};goog.ui.ac.Renderer=function(a,b,c,d){goog.events.EventTarget.call(this);this.parent_=a||goog.dom.getDocument().body;this.dom_=goog.dom.getDomHelper(this.parent_);this.reposition_=!a;this.element_=null;this.token_="";this.rows_=[];this.rowDivs_=[];this.startRenderingRows_=this.hilitedRow_=-1;this.visible_=!1;this.className="ac-renderer";this.rowClassName="ac-row";this.legacyActiveClassName_="active";this.activeClassName="ac-active";this.highlightedClassName="ac-highlighted";this.customRenderer_=b|| null;this.useStandardHighlighting_=d!=null?d:!0;this.matchWordBoundary_=!0;this.highlightAllTokens_=!1;this.rightAlign_=!!c;this.topAlign_=!1;this.menuFadeDuration_=0;this.showScrollbarsIfTooLarge_=!1};goog.inherits(goog.ui.ac.Renderer,goog.events.EventTarget);goog.ui.ac.Renderer.prototype.borderWidth_=0;goog.ui.ac.Renderer.DELAY_BEFORE_MOUSEOVER=300;goog.ui.ac.Renderer.prototype.getElement=function(){return this.element_}; goog.ui.ac.Renderer.prototype.setAnchorElement=function(a){this.anchorElement_=a};goog.ui.ac.Renderer.prototype.renderRows=function(a,b,c){this.token_=b;this.rows_=a;this.hilitedRow_=-1;this.startRenderingRows_=goog.now();this.target_=c;this.rowDivs_=[];this.redraw()}; goog.ui.ac.Renderer.prototype.dismiss=function(){this.visible_&&(this.visible_=!1,this.toggleAriaMarkup_(!1),this.menuFadeDuration_>0?(module$contents$goog$dispose_dispose(this.animation_),this.animation_=new goog.fx.dom.FadeOutAndHide(this.element_,this.menuFadeDuration_),this.animation_.play()):goog.style.setElementShown(this.element_,!1))}; goog.ui.ac.Renderer.prototype.show=function(){this.visible_||(this.visible_=!0,this.toggleAriaMarkup_(!0),this.menuFadeDuration_>0?(module$contents$goog$dispose_dispose(this.animation_),this.animation_=new goog.fx.dom.FadeInAndShow(this.element_,this.menuFadeDuration_),this.animation_.play()):goog.style.setElementShown(this.element_,!0))}; goog.ui.ac.Renderer.prototype.toggleAriaMarkup_=function(a){this.target_&&(goog.a11y.aria.setState(this.target_,goog.a11y.aria.State.HASPOPUP,a),goog.a11y.aria.setState(goog.asserts.assert(this.element_),goog.a11y.aria.State.EXPANDED,a),goog.a11y.aria.setState(this.target_,goog.a11y.aria.State.EXPANDED,a),a?goog.a11y.aria.setState(this.target_,goog.a11y.aria.State.OWNS,this.element_.id):(goog.a11y.aria.removeState(this.target_,goog.a11y.aria.State.OWNS),goog.a11y.aria.setActiveDescendant(this.target_, null)))};goog.ui.ac.Renderer.prototype.isVisible=function(){return this.visible_}; goog.ui.ac.Renderer.prototype.hiliteRow=function(a){var b=a>=0&&a<this.rows_.length?this.rows_[a]:void 0,c=a>=0&&a<this.rowDivs_.length?this.rowDivs_[a]:void 0;b={type:goog.ui.ac.AutoComplete.EventType.ROW_HILITE,rowNode:c,row:b?b.data:null};this.dispatchEvent(b)&&(this.hiliteNone(),this.hilitedRow_=a,c&&(goog.dom.classlist.addAll(c,[this.activeClassName,this.legacyActiveClassName_]),this.target_&&goog.a11y.aria.setActiveDescendant(this.target_,c),goog.style.scrollIntoContainerView(c,this.element_)))}; goog.ui.ac.Renderer.prototype.hiliteNone=function(){this.hilitedRow_>=0&&goog.dom.classlist.removeAll(goog.asserts.assert(this.rowDivs_[this.hilitedRow_]),[this.activeClassName,this.legacyActiveClassName_])};goog.ui.ac.Renderer.prototype.hiliteId=function(a){if(a==-1)this.hiliteRow(-1);else for(var b=0;b<this.rows_.length;b++)if(this.rows_[b].id==a){this.hiliteRow(b);break}};goog.ui.ac.Renderer.prototype.setMenuClasses_=function(a){goog.asserts.assert(a);goog.dom.classlist.addAll(a,goog.string.trim(this.className).split(" "))}; goog.ui.ac.Renderer.prototype.maybeCreateElement_=function(){if(!this.element_){var a=this.dom_.createDom(goog.dom.TagName.DIV,{style:"display:none"});this.showScrollbarsIfTooLarge_&&(a.style.overflowY="auto");this.element_=a;this.setMenuClasses_(a);goog.a11y.aria.setRole(a,goog.a11y.aria.Role.LISTBOX);a.id=goog.ui.IdGenerator.getInstance().getNextUniqueId();this.dom_.appendChild(this.parent_,a);goog.events.listen(a,goog.events.EventType.CLICK,this.handleClick_,!1,this);goog.events.listen(a,goog.events.EventType.MOUSEDOWN, this.handleMouseDown_,!1,this);goog.events.listen(a,goog.events.EventType.MOUSEOVER,this.handleMouseOver_,!1,this)}}; goog.ui.ac.Renderer.prototype.redraw=function(){this.maybeCreateElement_();this.topAlign_&&(this.element_.style.visibility="hidden");if(this.widthProvider_){var a=this.widthProvider_.clientWidth-this.borderWidth_+"px";this.element_.style.minWidth=a}this.maxWidthProvider_&&(a=this.maxWidthProvider_.clientWidth-this.borderWidth_+"px",this.element_.style.maxWidth=a);this.rowDivs_.length=0;this.dom_.removeChildren(this.element_);if(this.customRenderer_&&this.customRenderer_.render)this.customRenderer_.render(this, this.element_,this.rows_,this.token_);else{var b=null;this.rows_.forEach(function(c){c=this.renderRowHtml(c,this.token_);this.topAlign_?this.element_.insertBefore(c,b):this.dom_.appendChild(this.element_,c);b=c},this)}this.rows_.length==0?this.dismiss():(this.show(),this.reposition(),goog.style.setUnselectable(this.element_,!0))}; goog.ui.ac.Renderer.prototype.getAnchorCorner=function(){var a=this.rightAlign_?goog.positioning.Corner.BOTTOM_RIGHT:goog.positioning.Corner.BOTTOM_LEFT;this.topAlign_&&(a=goog.positioning.flipCornerVertical(a));return a}; goog.ui.ac.Renderer.prototype.reposition=function(){if(this.target_&&this.reposition_){var a=this.anchorElement_||this.target_,b=this.getAnchorCorner(),c=goog.positioning.Overflow.ADJUST_X_EXCEPT_OFFSCREEN;this.showScrollbarsIfTooLarge_&&(this.element_.style.height="",c|=goog.positioning.Overflow.RESIZE_HEIGHT);goog.positioning.positionAtAnchor(a,b,this.element_,goog.positioning.flipCornerVertical(b),null,null,c);this.topAlign_&&(this.element_.style.visibility="visible")}}; goog.ui.ac.Renderer.prototype.setAutoPosition=function(a){this.reposition_=a};goog.ui.ac.Renderer.prototype.getTarget=function(){return this.target_||null}; goog.ui.ac.Renderer.prototype.disposeInternal=function(){this.element_&&(goog.events.unlisten(this.element_,goog.events.EventType.CLICK,this.handleClick_,!1,this),goog.events.unlisten(this.element_,goog.events.EventType.MOUSEDOWN,this.handleMouseDown_,!1,this),goog.events.unlisten(this.element_,goog.events.EventType.MOUSEOVER,this.handleMouseOver_,!1,this),this.dom_.removeNode(this.element_),this.element_=null,this.visible_=!1);module$contents$goog$dispose_dispose(this.animation_);this.parent_=null; goog.ui.ac.Renderer.superClass_.disposeInternal.call(this)};goog.ui.ac.Renderer.prototype.renderRowContents_=function(a,b,c){goog.dom.setTextContent(c,a.data.toString())};goog.ui.ac.Renderer.prototype.startHiliteMatchingText_=function(a,b){this.wasHighlightedAtLeastOnce_=!1;this.hiliteMatchingText_(a,b)}; goog.ui.ac.Renderer.prototype.hiliteMatchingText_=function(a,b){if(this.highlightAllTokens_||!this.wasHighlightedAtLeastOnce_)if(a.nodeType==goog.dom.NodeType.TEXT){var c=null;Array.isArray(b)&&b.length>1&&!this.highlightAllTokens_&&(c=b.slice(1));b=this.getTokenRegExp_(b);if(b.length!=0){var d=a.nodeValue,e=this.matchWordBoundary_?new RegExp("\\b(?:"+b+")","gi"):new RegExp(b,"gi");b=[];for(var f=0,g=e.exec(d),h=0;g;)h++,b.push(d.substring(f,g.index)),b.push(d.substring(g.index,e.lastIndex)),f=e.lastIndex, g=e.exec(d);b.push(d.substring(f));if(b.length>1){c=this.highlightAllTokens_?h:1;for(d=0;d<c;d++)e=2*d,a.nodeValue=b[e],f=this.dom_.createElement(goog.dom.TagName.B),f.className=this.highlightedClassName,this.dom_.appendChild(f,this.dom_.createTextNode(b[e+1])),f=a.parentNode.insertBefore(f,a.nextSibling),a.parentNode.insertBefore(this.dom_.createTextNode(""),f.nextSibling),a=f.nextSibling;b=b.slice(c*2);a.nodeValue=b.join("");this.wasHighlightedAtLeastOnce_=!0}else c&&this.hiliteMatchingText_(a, c)}}else for(a=a.firstChild;a;)c=a.nextSibling,this.hiliteMatchingText_(a,b),a=c}; goog.ui.ac.Renderer.prototype.getTokenRegExp_=function(a){var b="";if(!a)return b;Array.isArray(a)&&(a=a.filter(function(c){return!goog.string.isEmptyOrWhitespace(goog.string.makeSafe(c))}));this.highlightAllTokens_?Array.isArray(a)?(a=a.map(goog.string.regExpEscape),b=a.join("|")):(b=goog.string.collapseWhitespace(a),b=goog.string.regExpEscape(b),b=b.replace(/ /g,"|")):Array.isArray(a)?b=a.length>0?goog.string.regExpEscape(a[0]):"":/^\W/.test(a)||(b=goog.string.regExpEscape(a));return b}; goog.ui.ac.Renderer.prototype.renderRowHtml=function(a,b){var c=this.dom_.createDom(goog.dom.TagName.DIV,{className:this.rowClassName,id:goog.ui.IdGenerator.getInstance().getNextUniqueId()});goog.a11y.aria.setRole(c,goog.a11y.aria.Role.OPTION);this.customRenderer_&&this.customRenderer_.renderRow||this.renderRowContents_(a,b,c);b&&this.useStandardHighlighting_&&this.startHiliteMatchingText_(c,b);goog.dom.classlist.add(c,this.rowClassName);this.rowDivs_.push(c);return c}; goog.ui.ac.Renderer.prototype.getRowFromEventTarget_=function(a){for(;a&&a!=this.element_&&!goog.dom.classlist.contains(a,this.rowClassName);)a=a.parentNode;return a?this.rowDivs_.indexOf(a):-1};goog.ui.ac.Renderer.prototype.handleClick_=function(a){var b=this.getRowFromEventTarget_(a.target);b>=0&&this.dispatchEvent({type:goog.ui.ac.AutoComplete.EventType.SELECT,row:this.rows_[b].id});a.stopPropagation()};goog.ui.ac.Renderer.prototype.handleMouseDown_=function(a){a.stopPropagation();a.preventDefault()}; goog.ui.ac.Renderer.prototype.handleMouseOver_=function(a){a=this.getRowFromEventTarget_(a.target);a>=0&&!(goog.now()-this.startRenderingRows_<goog.ui.ac.Renderer.DELAY_BEFORE_MOUSEOVER)&&this.dispatchEvent({type:goog.ui.ac.AutoComplete.EventType.HILITE,row:this.rows_[a].id})};goog.ui.ac.Renderer.CustomRenderer=function(){};goog.ui.ac.Renderer.CustomRenderer.prototype.render=function(){};goog.ui.ac.Renderer.CustomRenderer.prototype.renderRow=function(){};var $jscomp$templatelit$1514851992$0=$jscomp.createTemplateTagFirstArg(["//suggestqueries.google.com/complete/search"]); ocean.basic.AutoComplete=function(a,b,c,d){this.input_=a;this.hiddenInput_=null;this.sizingElement_=c||null;this.autoSubmit_=typeof b==="boolean"?b:!0;this.leftOffset_=d||0;b=new ocean.basic.AutoComplete.Matcher_;c=new ocean.basic.AutoComplete.Renderer_(this.sizingElement_||a,this.leftOffset_);c.setAutoPosition(!0);d=new goog.ui.ac.InputHandler(null,null,!1);goog.ui.ac.AutoComplete.call(this,b,c,d);d.attachAutoComplete(this);d.attachInputs(a);this.setTarget(a);this.setAutoHilite(!1);this.setAllowFreeSelect(!0); goog.events.listen(this,goog.ui.ac.AutoComplete.EventType.UPDATE,goog.bind(this.handleUpdate_,this))};goog.inherits(ocean.basic.AutoComplete,goog.ui.ac.AutoComplete);ocean.basic.AutoComplete.prototype.selectHilited=function(){this.lastQuery_=this.input_.value;ocean.basic.AutoComplete.superClass_.selectHilited.call(this);return!1}; ocean.basic.AutoComplete.prototype.handleUpdate_=function(a){a.row&&(a=this.input_.form,this.hiddenInput_||(this.hiddenInput_=goog.dom.createDom(goog.dom.TagName.INPUT,{type:"hidden",name:"oq"}),goog.dom.appendChild(a,this.hiddenInput_)),this.hiddenInput_.value=this.lastQuery_,this.autoSubmit_&&a.submit())};ocean.basic.AutoComplete.Matcher_=function(){};ocean.basic.AutoComplete.Matcher_.SERVER_URL_=module$contents$google3$third_party$javascript$safevalues$builders$resource_url_builders_trustedResourceUrl($jscomp$templatelit$1514851992$0); ocean.basic.AutoComplete.Matcher_.prototype.requestMatchingRows=function(a,b,c){b=ocean.basic.AutoComplete.Matcher_.SERVER_URL_;a={client:"books",ds:"bo",q:a};c=goog.bind(this.handleMatchingRows_,this,c);this.jsonp_&&this.jsonp_.cancel();this.jsonp_=new goog.net.Jsonp(b);this.jsonp_.send(a,c)};ocean.basic.AutoComplete.Matcher_.prototype.handleMatchingRows_=function(a,b){var c=Array.prototype.map.call(b[1],function(d){return d[0]});a(b[0],c)}; ocean.basic.AutoComplete.Renderer_=function(a,b){goog.ui.ac.Renderer.call(this);this.input_=a;this.leftOffset_=b||0};goog.inherits(ocean.basic.AutoComplete.Renderer_,goog.ui.ac.Renderer); ocean.basic.AutoComplete.Renderer_.prototype.reposition=function(){ocean.basic.AutoComplete.Renderer_.superClass_.reposition.call(this);var a=0,b=goog.dom.getElement("gbfwa");b||(b=goog.dom.getElementByClass("gbqfwa"));b&&(a=b.offsetTop+b.offsetHeight-1);Array.prototype.forEach.call(goog.dom.getElementsByTagNameAndClass("div","ac-renderer"),function(c){a&&goog.style.setStyle(c,"top",a+"px");goog.style.setStyle(c,"width",goog.style.getSize(this.input_).width-2+"px");goog.style.setStyle(c,"left",parseInt(c.style.left, 10)+this.leftOffset_+"px")},this)};ocean.chrome.VolumeSlider=function(a,b,c,d,e){module$contents$ocean$EventManager_EventManager.call(this);this.div_=a;this.isLarge_=b;this.shelfId_=e;this.height_=this.determineHeight_(d);this.isLarge_||goog.dom.classlist.add(this.div_,"slider-small");this.drawables_=[];this.leftButton_=goog.dom.createElement(goog.dom.TagName.A);this.leftButton_.textContent=ocean.style.isPageRtl()?"\u203a":"\u2039";this.leftButton_.setAttribute("title","Scroll left");goog.style.setUnselectable(this.leftButton_,!0); goog.dom.appendChild(this.div_,this.leftButton_);this.drawablesDiv_=goog.dom.createElement("div");goog.dom.classlist.add(this.drawablesDiv_,"slider-drawables");goog.dom.appendChild(this.div_,this.drawablesDiv_);this.rightButton_=goog.dom.createElement(goog.dom.TagName.A);this.rightButton_.textContent=ocean.style.isPageRtl()?"\u2039":"\u203a";this.rightButton_.setAttribute("title","Scroll right");goog.style.setUnselectable(this.rightButton_,!0);goog.dom.appendChild(this.div_,this.rightButton_);this.getHandler().listen(this.leftButton_, "click",this.moveScreenful_.bind(this,-.75));this.getHandler().listen(this.rightButton_,"click",this.moveScreenful_.bind(this,.75));this.updateButtons_();this.getHandler().listen(this.leftButton_,"click",this.moveScreenful_.bind(this,-.75));this.resize();this.numRendered_=0;this.ie8Rtl_=module$contents$goog$labs$userAgent$browser_isAtLeast(module$contents$goog$labs$userAgent$browser_Brand.IE,8)&&!goog.userAgent.isVersionOrHigher("9")&&ocean.style.isPageRtl();c&&this.addVolumes(c)}; goog.inherits(ocean.chrome.VolumeSlider,module$contents$ocean$EventManager_EventManager);ocean.chrome.VolumeSlider.prototype.renderScreenful_=function(){var a=Math.ceil(this.getNumElementsPerScreenful()*1.25);a=Math.min(this.drawables_.length,this.numRendered_+a);module$contents$goog$array_forEach(this.drawables_.slice(this.numRendered_,a),goog.bind(this.drawDrawable_,this));this.updateButtons_();this.numRendered_=a;a>=this.drawables_.length&&this.dispatchEvent(ocean.chrome.VolumeSlider.EventType.RENDER)}; ocean.chrome.VolumeSlider.prototype.drawDrawable_=function(a){var b=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"goog-inline-block slider-loading"});goog.dom.appendChild(this.drawablesDiv_,b);var c=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"goog-inline-block slider-drawable"});goog.style.setElementShown(c,!1);goog.dom.appendChild(this.drawablesDiv_,c);this.getHandler().listenOnce(a,ocean.chrome.SliderDrawable.EventType.RENDER,this.drawableComplete_.bind(this,b,c));a.draw(c)}; ocean.chrome.VolumeSlider.prototype.drawableComplete_=function(a,b){goog.dom.removeNode(a);this.updateButtons_();goog.style.setElementShown(b,!0)};ocean.chrome.VolumeSlider.prototype.addVolumes=function(a){a=a.map(function(b){return this.isLarge_?new module$contents$ocean$basic$AuthorAnnotatedDrawable_AuthorAnnotatedDrawable(b,this.height_):new ocean.chrome.ThumbDrawable(b,this.height_,this.shelfId_)},this);this.addDrawables(a)}; ocean.chrome.VolumeSlider.prototype.addDrawables=function(a){module$contents$goog$array_extend(this.drawables_,a);this.renderScreenful_()};ocean.chrome.VolumeSlider.prototype.moveScreenful_=function(a){(ocean.style.isPageRtl()?a<0:a>0)&&this.renderScreenful_();a*=this.ie8Rtl_?-1:1;this.move_(a*(goog.style.getSize(this.drawablesDiv_).width+20))}; ocean.chrome.VolumeSlider.prototype.move_=function(a){this.animation_&&(this.animation_.dispose(),this.animation_=null);this.animation_=new goog.fx.Animation([this.drawablesDiv_.scrollLeft,0],[this.drawablesDiv_.scrollLeft+a,0],500,goog.fx.easing.inAndOut);goog.events.listen(this.animation_,goog.fx.Animation.EventType.ANIMATE,this.handleAnimate_.bind(this));goog.events.listen(this.animation_,goog.fx.Transition.EventType.END,this.updateButtons_.bind(this));this.animation_.play()}; ocean.chrome.VolumeSlider.prototype.handleAnimate_=function(a){a=a.coordsAsInts();this.drawablesDiv_.scrollLeft=a[0]}; ocean.chrome.VolumeSlider.prototype.updateButtons_=function(){if(goog.userAgent.GECKO&&ocean.style.isPageRtl()||this.ie8Rtl_){var a=this.drawablesDiv_.scrollLeft<=(this.drawablesDiv_.scrollWidth-goog.style.getSize(this.drawablesDiv_).width)*-1;var b=this.drawablesDiv_.scrollLeft==0}else a=this.drawablesDiv_.scrollLeft==0,b=this.drawablesDiv_.scrollLeft>=this.drawablesDiv_.scrollWidth-goog.style.getSize(this.drawablesDiv_).width;this.leftButton_.className=a?"slider-button slider-button-left slider-button-disabled": "slider-button slider-button-left";this.rightButton_.className=b?"slider-button slider-button-right slider-button-disabled":"slider-button slider-button-right"};ocean.chrome.VolumeSlider.prototype.resize=function(){this.updateButtons_()};ocean.chrome.VolumeSlider.prototype.getNumElementsPerScreenful=function(){var a=this.isLarge_?ocean.chrome.VolumeSlider.DEFAULT_THUMB_WIDTH_:ocean.chrome.VolumeSlider.SMALL_THUMB_WIDTH_;return Math.ceil(goog.style.getSize(this.drawablesDiv_).width/a)}; ocean.chrome.VolumeSlider.prototype.determineHeight_=function(a){return typeof a==="number"?a:this.isLarge_?ocean.chrome.VolumeSlider.DEFAULT_DRAWABLE_HEIGHT:ocean.chrome.VolumeSlider.SMALL_DRAWABLE_HEIGHT};ocean.chrome.VolumeSlider.DEFAULT_THUMB_WIDTH_=110;ocean.chrome.VolumeSlider.SMALL_THUMB_WIDTH_=50;ocean.chrome.VolumeSlider.DEFAULT_DRAWABLE_HEIGHT=200;ocean.chrome.VolumeSlider.SMALL_DRAWABLE_HEIGHT=80;ocean.chrome.VolumeSlider.EventType={RENDER:"render"};var module$exports$ocean$basic$BookshelfRenderer=function(a,b,c){module$contents$ocean$EventManager_EventManager.call(this);this.metadata=a;this.source=b?b:"gbs_bookshelf_slider";this.numRequested_=0;this.viewportSizeMonitor_=new goog.dom.ViewportSizeMonitor;this.initialSize_=this.viewportSizeMonitor_.getSize();this.lastVolume_="";this.isAnonymousUser_=typeof c==="boolean"?!c:!1;goog.events.listenOnce(this.viewportSizeMonitor_,goog.events.EventType.RESIZE,goog.bind(this.handleResize_,this))}; $jscomp.inherits(module$exports$ocean$basic$BookshelfRenderer,module$contents$ocean$EventManager_EventManager);module$exports$ocean$basic$BookshelfRenderer.prototype.handleResize_=function(){this.viewportSizeMonitor_.getSize().width>this.initialSize_.width?this.fetchVolumes():goog.events.listenOnce(this.viewportSizeMonitor_,goog.events.EventType.RESIZE,goog.bind(this.handleResize_,this))}; module$exports$ocean$basic$BookshelfRenderer.prototype.render=function(a){this.setElement(a);this.slider=this.getVolumeSlider(a);this.getHandler().listen(this.slider,ocean.chrome.VolumeSlider.EventType.RENDER,goog.bind(this.fetchVolumes,this))};module$exports$ocean$basic$BookshelfRenderer.prototype.getVolumeSlider=function(){return new ocean.chrome.VolumeSlider(this.container_,!0,void 0,void 0,this.metadata.getId())}; module$exports$ocean$basic$BookshelfRenderer.prototype.fetchVolumes=function(){this.slider.resize();var a=Math.ceil(this.slider.getNumElementsPerScreenful()*1.25)+1,b=this.getFetchUri(this.numRequested_,a);b&&(this.numRequested_+=a,this.fetchVolumesInternal(b))};module$exports$ocean$basic$BookshelfRenderer.prototype.fetchVolumesInternal=function(a){goog.net.XhrIo.send(a,goog.bind(this.handleVolumeFetch_,this))}; module$exports$ocean$basic$BookshelfRenderer.prototype.getBrowseUri=function(){var a=this.getFetchUri(0,10);a.removeParameter("jscmd");a.removeParameter("start");a.setParameterValue("source",this.source);return a};module$exports$ocean$basic$BookshelfRenderer.prototype.handleVolumeFetch_=function(a){a=a.target;a.isSuccess()&&(a=new module$contents$ocean$info$ProtoBookshelf_ProtoBookshelf(a.getResponseJson()),this.renderNewVolumes(a.volumes_))}; module$exports$ocean$basic$BookshelfRenderer.prototype.renderNewVolumes=function(a){if(a&&a.length){var b=ocean.util.Url.getVolumeId(a[a.length-1].data_.infoUrl);this.lastVolume_!=b&&(this.lastVolume_=b,this.slider.addDrawables(this.getDrawables(a)));(a=goog.dom.getAncestorByTagNameAndClass(this.getElement(),"div","slider-box"))&&goog.style.setOpacity(a,1)}else this.slider.numRendered_==0&&this.renderEmptyShelf();this.dispatchEvent(goog.net.EventType.SUCCESS)}; module$exports$ocean$basic$BookshelfRenderer.prototype.getDrawables=function(a){return a=this.decorateVolumes(a).map(function(b){return this.slider.isLarge_?new module$contents$ocean$basic$AuthorAnnotatedDrawable_AuthorAnnotatedDrawable(b,ocean.chrome.VolumeSlider.DEFAULT_DRAWABLE_HEIGHT,this.metadata.getId()):new ocean.chrome.ThumbDrawable(b,ocean.chrome.VolumeSlider.SMALL_DRAWABLE_HEIGHT,this.metadata.getId())},this)};module$exports$ocean$basic$BookshelfRenderer.prototype.renderEmptyShelf=function(){}; module$exports$ocean$basic$BookshelfRenderer.prototype.getElement=function(){return this.container_};module$exports$ocean$basic$BookshelfRenderer.prototype.setElement=function(a){this.container_=a};module$exports$ocean$basic$BookshelfRenderer.prototype.getMetadata=function(){return this.metadata};module$exports$ocean$basic$BookshelfRenderer.prototype.decorateVolumes=function(a){return this.source?a=a.map(function(b){b.setSource(this.source);return b},this):a};goog.ui.CheckBoxMenuItem=function(a,b,c){goog.ui.MenuItem.call(this,a,b,c);this.setCheckable(!0)};goog.inherits(goog.ui.CheckBoxMenuItem,goog.ui.MenuItem);goog.ui.registry.setDecoratorByClassName("goog-checkbox-menuitem",function(){return new goog.ui.CheckBoxMenuItem(null)});ocean.mylibrary={};var module$contents$ocean$mylibrary$BookshelfPickerMenuItem_BookshelfPickerMenuItem=function(a){goog.ui.CheckBoxMenuItem.call(this,goog.string.unescapeEntities(a.getTitle()),a.getId());this.shelf_=a};$jscomp.inherits(module$contents$ocean$mylibrary$BookshelfPickerMenuItem_BookshelfPickerMenuItem,goog.ui.CheckBoxMenuItem); module$contents$ocean$mylibrary$BookshelfPickerMenuItem_BookshelfPickerMenuItem.prototype.decorateInternal=function(a){goog.ui.CheckBoxMenuItem.prototype.decorateInternal.call(this,a);if(this.shelf_.access_){var b=(a=this.shelf_.isPublic())?"Public bookshelf":"Private bookshelf";a=goog.dom.createDom(goog.dom.TagName.IMG,{src:"/googlebooks/images/sharing_"+(a?"public":"private")+".gif",alt:b,title:b,style:"padding-top:2px;padding-left:8px;float:"+(ocean.style.isPageRtl()?"left":"right")});b=this.shelf_.numPossibleVolumes_; b=goog.dom.createTextNode(String(b));a=goog.dom.createDom(goog.dom.TagName.DIV,"goog-menuitem-accel",a,b);goog.dom.insertChildAt(this.getContentElement(),a,1)}};ocean.mylibrary.BookshelfPickerMenuItem=module$contents$ocean$mylibrary$BookshelfPickerMenuItem_BookshelfPickerMenuItem;var module$contents$ocean$mylibrary$BookshelfPickerMenu_BookshelfPickerMenu=function(a,b,c){c=c===void 0?!1:c;goog.ui.PopupMenu.call(this);this.volume_=a;this.shelves_=b;this.forceEnableMainShelf_=c};$jscomp.inherits(module$contents$ocean$mylibrary$BookshelfPickerMenu_BookshelfPickerMenu,goog.ui.PopupMenu); module$contents$ocean$mylibrary$BookshelfPickerMenu_BookshelfPickerMenu.prototype.createDom=function(){goog.ui.PopupMenu.prototype.createDom.call(this);this.shelves_.getBookshelves().forEach(this.addShelf_,this)}; module$contents$ocean$mylibrary$BookshelfPickerMenu_BookshelfPickerMenu.prototype.enterDocument=function(){goog.ui.PopupMenu.prototype.enterDocument.call(this);this.getElement().style.maxHeight=module$contents$ocean$mylibrary$BookshelfPickerMenu_BookshelfPickerMenu.MAX_HEIGHT_PX_+"px";this.getElement().style.overflowY="scroll";var a=this.getHandler();a.listen(this.getElement(),goog.events.EventType.MOUSEOUT,this.handleMouseOut_);a.listen(this.getElement(),goog.events.EventType.SCROLL,this.handleScroll_)}; module$contents$ocean$mylibrary$BookshelfPickerMenu_BookshelfPickerMenu.prototype.handleMouseOut_=function(a){goog.dom.contains(this.getElement(),a.relatedTarget)||this.setVisible(!1)};module$contents$ocean$mylibrary$BookshelfPickerMenu_BookshelfPickerMenu.prototype.handleItemAction_=function(a){var b=a.target;this.sendBookshelfUpdate_(b);this.dispatchEvent(module$contents$ocean$mylibrary$BookshelfPickerMenu_BookshelfPickerMenu.EventType.UPDATE);a.stopPropagation()}; module$contents$ocean$mylibrary$BookshelfPickerMenu_BookshelfPickerMenu.prototype.handleScroll_=function(a){a.stopPropagation()}; module$contents$ocean$mylibrary$BookshelfPickerMenu_BookshelfPickerMenu.prototype.addShelf_=function(a){var b=!goog.string.isEmptyOrWhitespace(goog.string.makeSafe(a.getTitle())),c=a.canAdd_&&(!a.canOnlyAddEBooks_||this.volume_.isEBook()),d=!!a.getVolumeById(this.volume_.getVolumeId());b&&(c||d)&&(b=new module$contents$ocean$mylibrary$BookshelfPickerMenuItem_BookshelfPickerMenuItem(a),b.setChecked(d),b.setEnabled(this.shelves_.mainBookshelfId_!=a.getId()||this.forceEnableMainShelf_),this.addChild(b, !0),this.getHandler().listen(b,goog.ui.Component.EventType.ACTION,this.handleItemAction_))};module$contents$ocean$mylibrary$BookshelfPickerMenu_BookshelfPickerMenu.prototype.getSelectedShelves=function(){var a=[];this.forEachChild(function(b){b instanceof module$contents$ocean$mylibrary$BookshelfPickerMenuItem_BookshelfPickerMenuItem&&b.isChecked()&&a.push(b.shelf_)});return a}; module$contents$ocean$mylibrary$BookshelfPickerMenu_BookshelfPickerMenu.prototype.sendBookshelfUpdate_=function(a){var b=a.shelf_,c=this.volume_.getVolumeId();a.isChecked()?b.addVolumeToServer(c):b.deleteVolumeFromServer(c)};module$contents$ocean$mylibrary$BookshelfPickerMenu_BookshelfPickerMenu.MAX_HEIGHT_PX_=200;module$contents$ocean$mylibrary$BookshelfPickerMenu_BookshelfPickerMenu.EventType={UPDATE:"g"};ocean.mylibrary.BookshelfPickerMenu=module$contents$ocean$mylibrary$BookshelfPickerMenu_BookshelfPickerMenu;var module$contents$ocean$mylibrary$BookshelfPicker_BookshelfPicker=function(a,b,c){c=c?jfk.Button.Style.MINI:jfk.Button.Style.STANDARD;jfk.Button.call(this,null,null,c);this.menu_=new module$contents$ocean$mylibrary$BookshelfPickerMenu_BookshelfPickerMenu(a,b);this.menu_.setParent(this);this.registerDisposable(this.menu_);this.iconElement_=new Image(16,16);this.iconElement_.src="/googlebooks/images/my_library_logo.png";this.setSupportedState(goog.ui.Component.State.OPENED,!0)}; $jscomp.inherits(module$contents$ocean$mylibrary$BookshelfPicker_BookshelfPicker,jfk.Button);module$contents$ocean$mylibrary$BookshelfPicker_BookshelfPicker.prototype.createDom=function(){jfk.Button.prototype.createDom.call(this);goog.dom.classlist.add(this.getElement(),module$contents$ocean$mylibrary$BookshelfPicker_BookshelfPicker.CSS_NAME_)}; module$contents$ocean$mylibrary$BookshelfPicker_BookshelfPicker.prototype.updateContent_=function(){this.menu_.isInDocument()||this.menu_.render();var a=this.menu_.getSelectedShelves();switch(a.length){case 0:var b="Add to my library";break;case 1:b=module$contents$ocean$msg_getAddedToShelf(a[0].getTitle());break;default:b=module$contents$ocean$msg_getAddedToShelves(a.length)}a.length>0&&(b=jfk.Button.createIconContent(this.iconElement_,b));this.setContent(b)}; module$contents$ocean$mylibrary$BookshelfPicker_BookshelfPicker.prototype.setOpen=function(a){this.clearOpenDelayTimer_();jfk.Button.prototype.setOpen.call(this,a);this.menu_.isInDocument()||this.menu_.render();a?this.menu_.showAtElement(this.getElement(),goog.positioning.Corner.TOP_START):this.menu_.hide()}; module$contents$ocean$mylibrary$BookshelfPicker_BookshelfPicker.prototype.enterDocument=function(){jfk.Button.prototype.enterDocument.call(this);var a=this.getHandler();a.listen(this,goog.ui.Component.EventType.ENTER,this.startOpenDelayTimer_);a.listen(this,goog.ui.Component.EventType.LEAVE,this.clearOpenDelayTimer_);a.listen(this,goog.ui.Component.EventType.ACTION,this.handleButtonAction_);a.listen(this.menu_,module$contents$ocean$mylibrary$BookshelfPickerMenu_BookshelfPickerMenu.EventType.UPDATE, this.handleMenuUpdate_);this.updateContent_()};module$contents$ocean$mylibrary$BookshelfPicker_BookshelfPicker.prototype.handleMenuUpdate_=function(){this.updateContent_()};module$contents$ocean$mylibrary$BookshelfPicker_BookshelfPicker.prototype.handleButtonAction_=function(){this.setOpen(!0)}; module$contents$ocean$mylibrary$BookshelfPicker_BookshelfPicker.prototype.startOpenDelayTimer_=function(){this.clearOpenDelayTimer_();this.openDelayTimer_=goog.Timer.callOnce(goog.bind(this.setOpen,this,!0),module$contents$ocean$mylibrary$BookshelfPicker_BookshelfPicker.OPEN_DELAY_MS_)};module$contents$ocean$mylibrary$BookshelfPicker_BookshelfPicker.prototype.clearOpenDelayTimer_=function(){goog.Timer.clear(this.openDelayTimer_)}; module$contents$ocean$mylibrary$BookshelfPicker_BookshelfPicker.CSS_NAME_="add-to-library";module$contents$ocean$mylibrary$BookshelfPicker_BookshelfPicker.OPEN_DELAY_MS_=200;module$contents$ocean$mylibrary$BookshelfPicker_BookshelfPicker.prototype.openDelayTimer_=null;ocean.mylibrary.BookshelfPicker=module$contents$ocean$mylibrary$BookshelfPicker_BookshelfPicker;var module$exports$ocean$info$ProtoBookshelves=function(a){ocean.info.Bookshelves.call(this);a!=null&&a.bookshelf&&module$contents$goog$array_forEach(a.bookshelf,function(b){this.addShelfInternal(new module$contents$ocean$info$ProtoBookshelf_ProtoBookshelf(b))},this)};$jscomp.inherits(module$exports$ocean$info$ProtoBookshelves,ocean.info.Bookshelves);ocean.mylibrary.utils={}; function module$contents$ocean$mylibrary$utils_loadBookshelvesData(a,b,c){var d=new goog.Uri("/books");module$contents$ocean$util$uri_setDefaultParameters(d);d.setParameterValue("op","cls_metadata");d.setParameterValue("jscmd","ClsMetadata");var e=(new goog.Uri(window.location)).getParameterValue("uid");e&&d.setParameterValue("uid",e);b&&d.setParameterValue("uid",b);module$contents$ocean$xhr_getJsonObject(d.toString(),goog.partial(module$contents$ocean$mylibrary$utils_handleLoadBookshelfData,a,c))} function module$contents$ocean$mylibrary$utils_constructBookshelves(a,b){var c=new module$exports$ocean$info$ProtoBookshelves(b);a&&a.forEach(function(d){module$contents$ocean$mylibrary$utils_constructBookshelvesInternal(d.getVolumeId(),d.containingBookshelves_,c)});return c}function module$contents$ocean$mylibrary$utils_constructBookshelvesFromShelfIds(a,b,c){c=new module$exports$ocean$info$ProtoBookshelves(c);module$contents$ocean$mylibrary$utils_constructBookshelvesInternal(a,b,c);return c} function module$contents$ocean$mylibrary$utils_constructBookshelvesInternal(a,b,c){b.forEach(function(d){var e=new ocean.info.SearchResult;e.setVolumeId(a);(d=c.getBookshelfById(String(d)))&&d.addVolume(e)})}function module$contents$ocean$mylibrary$utils_handleLoadBookshelfData(a,b,c){a(module$contents$ocean$mylibrary$utils_constructBookshelves(b,c))}ocean.mylibrary.utils.constructBookshelves=module$contents$ocean$mylibrary$utils_constructBookshelves; ocean.mylibrary.utils.constructBookshelvesFromShelfIds=module$contents$ocean$mylibrary$utils_constructBookshelvesFromShelfIds;ocean.mylibrary.utils.loadBookshelvesData=module$contents$ocean$mylibrary$utils_loadBookshelvesData;var module$exports$ocean$util$searchRe={findPrecedingWhitespace:function(a){return a.search(/\s\S/)},isSoftChar:function(a){return module$contents$ocean$util$searchRe_SOFT_CHARS_RE.test(a)},isWhitespace:function(a){return module$contents$ocean$util$searchRe_WHITESPACE_RE.test(a)},isNormalizedWordBreak:function(a){return module$contents$ocean$util$searchRe_NORMALIZED_WORD_BREAK_RE.test(a)},normalizeQuotes:function(a){var b=a.match(module$contents$ocean$util$searchRe_QUOTATION_MARKS_RE);b&&(a=a.replace(module$contents$ocean$util$searchRe_QUOTATION_MARKS_RE, '"'),b.length&1&&(a+='"'));return a},splitPhrases:function(a){return a.match(module$contents$ocean$util$searchRe_PHRASE_SPLIT_RE)},splitSubTokens:function(a){return a.split(module$contents$ocean$util$searchRe_WHITESPACE_LIKE_RE).filter(function(b){return b.length>0})},trimPhrase:function(a){return a.replace(module$contents$ocean$util$searchRe_TRIM_PHRASE_RE,"")}},module$contents$ocean$util$searchRe_WHITESPACE_RE=/\s/,module$contents$ocean$util$searchRe_NORMALIZED_WORD_BREAK_RE=/[ -]/,module$contents$ocean$util$searchRe_WHITESPACE_LIKE_RE= /[+,;]/,module$contents$ocean$util$searchRe_PHRASE_SPLIT_RE=/-?"[^"]+"|[^\s"]+/g,module$contents$ocean$util$searchRe_QUOTATION_MARKS_RE=RegExp('["\\u201C\\u201D\\u201E\\u201F\\u275D\\u275E\\u301D-\\u301F\\uFF02]',"g"),module$contents$ocean$util$searchRe_SOFT_CHARS_RE=RegExp("[,!-%'-/:-@\\[-^`{-~\\xA1\\xAB\\xBB\\xB7\\xBF\\u05F3\\u05F4\\u200B\\u2010-\\u2014\\u2018-\\u201A\\u2026\\u2039\\u203A\\u2060\\u3001\\u3002\\u3008-\\u3011\\u30FB\\uFF01-\\uFF05\\uFF07-\\uFF0F\\uFF1A-\\uFF20\\uFF3B-\\uFF3E\\uFF40\\uFF5B-\\uFF65,\"\\u201C\\u201D\\u201E\\u201F\\u275D\\u275E\\u301D-\\u301F\\uFF02,]"), module$contents$ocean$util$searchRe_TRIM_PHRASE_RE=RegExp("^[\\s\\xA0!-%'-/:-@\\[-^`{-~\\xA1\\xAB\\xBB\\xB7\\xBF\\u05F3\\u05F4\\u200B\\u2010-\\u2014\\u2018-\\u201A\\u2026\\u2039\\u203A\\u2060\\u3001\\u3002\\u3008-\\u3011\\u30FB\\uFF01-\\uFF05\\uFF07-\\uFF0F\\uFF1A-\\uFF20\\uFF3B-\\uFF3E\\uFF40\\uFF5B-\\uFF65]+|[\\s\\xA0!-%'-/:-@\\[-^`{-~\\xA1\\xAB\\xBB\\xB7\\xBF\\u05F3\\u05F4\\u200B\\u2010-\\u2014\\u2018-\\u201A\\u2026\\u2039\\u203A\\u2060\\u3001\\u3002\\u3008-\\u3011\\u30FB\\uFF01-\\uFF05\\uFF07-\\uFF0F\\uFF1A-\\uFF20\\uFF3B-\\uFF3E\\uFF40\\uFF5B-\\uFF65]+$", "g");goog.locale={}; goog.locale.nativeNameConstants={COUNTRY:{AC:"Ascension Island",AD:"Andorra",AE:"\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062a \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0645\u062a\u062d\u062f\u0629",AF:"\u0627\u0641\u063a\u0627\u0646\u0633\u062a\u0627\u0646",AG:"Antigua & Barbuda",AI:"Anguilla",AL:"Shqip\u00ebri",AM:"\u0540\u0561\u0575\u0561\u057d\u057f\u0561\u0576",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"\u00d6sterreich",AU:"Australia",AW:"Aruba",AX:"\u00c5land", AZ:"Az\u0259rbaycan",BA:"Bosna i Hercegovina",BB:"Barbados",BD:"\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6",BE:"Belgi\u00eb",BF:"Burkina Faso",BG:"\u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f",BH:"\u0627\u0644\u0628\u062d\u0631\u064a\u0646",BI:"Uburundi",BJ:"B\u00e9nin",BL:"Saint-Barth\u00e9lemy",BM:"Bermuda",BN:"Brunei",BO:"Bolivia",BQ:"Caribbean Netherlands",BR:"Brasil",BS:"Bahamas",BT:"\u0f60\u0f56\u0fb2\u0f74\u0f42",BV:"Bouvet Island",BW:"Botswana",BY:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u044c", BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Jamhuri ya Kidemokrasia ya Kongo",CF:"R\u00e9publique centrafricaine",CG:"Congo-Brazzaville",CH:"Schweiz",CI:"C\u00f4te d\u2019Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroun",CN:"\u4e2d\u56fd",CO:"Colombia",CP:"Clipperton Island",CQ:"Sark",CR:"Costa Rica",CU:"Cuba",CV:"Cabo Verde",CW:"Cura\u00e7ao",CX:"Christmas Island",CY:"\u039a\u03cd\u03c0\u03c1\u03bf\u03c2",CZ:"\u010cesko",DE:"Deutschland",DG:"Diego Garcia",DJ:"Djibouti",DK:"Danmark", DM:"Dominica",DO:"Rep\u00fablica Dominicana",DZ:"\u0627\u0644\u062c\u0632\u0627\u0626\u0631",EA:"Ceuta y Melilla",EC:"Ecuador",EE:"Eesti",EG:"\u0645\u0635\u0631",EH:"\u0627\u0644\u0635\u062d\u0631\u0627\u0621 \u0627\u0644\u063a\u0631\u0628\u064a\u0629",ER:"\u12a4\u122d\u1275\u122b",ES:"Espa\u00f1a",ET:"\u12a2\u1275\u12ee\u1335\u12eb",FI:"Suomi",FJ:"Fiji",FK:"Falkland Islands (Islas Malvinas)",FM:"Micronesia",FO:"F\u00f8royar",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"\u10e1\u10d0\u10e5\u10d0\u10e0\u10d7\u10d5\u10d4\u10da\u10dd", GF:"Guyane fran\u00e7aise",GG:"Guernsey",GH:"Gaana",GI:"Gibraltar",GL:"Kalaallit Nunaat",GM:"Gambia",GN:"Guin\u00e9e",GP:"Guadeloupe",GQ:"Guinea Ecuatorial",GR:"\u0395\u03bb\u03bb\u03ac\u03b4\u03b1",GS:"South Georgia & South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guin\u00e9-Bissau",GY:"Guyana",HK:"\u9999\u6e2f",HM:"Heard & McDonald Islands",HN:"Honduras",HR:"Hrvatska",HT:"Ha\u00efti",HU:"Magyarorsz\u00e1g",IC:"Canarias",ID:"Indonesia",IE:"Ireland",IL:"\u05d9\u05e9\u05e8\u05d0\u05dc",IM:"Isle of Man", IN:"\u092d\u093e\u0930\u0924",IO:"British Indian Ocean Territory",IQ:"\u0627\u0644\u0639\u0631\u0627\u0642",IR:"\u0627\u06cc\u0631\u0627\u0646",IS:"\u00cdsland",IT:"Italia",JE:"Jersey",JM:"Jamaica",JO:"\u0627\u0644\u0623\u0631\u062f\u0646",JP:"\u65e5\u672c",KE:"Kenya",KG:"\u041a\u044b\u0440\u0433\u044b\u0437\u0441\u0442\u0430\u043d",KH:"\u1780\u1798\u17d2\u1796\u17bb\u1787\u17b6",KI:"Kiribati",KM:"\u062c\u0632\u0631 \u0627\u0644\u0642\u0645\u0631",KN:"St Kitts & Nevis",KP:"\uc870\uc120\ubbfc\uc8fc\uc8fc\uc758\uc778\ubbfc\uacf5\ud654\uad6d", KR:"\ub300\ud55c\ubbfc\uad6d",KW:"\u0627\u0644\u0643\u0648\u064a\u062a",KY:"Cayman Islands",KZ:"\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d",LA:"\u0ea5\u0eb2\u0ea7",LB:"\u0644\u0628\u0646\u0627\u0646",LC:"St Lucia",LI:"Liechtenstein",LK:"\u0dc1\u0dca\u200d\u0dbb\u0dd3 \u0dbd\u0d82\u0d9a\u0dcf\u0dc0",LR:"Liberia",LS:"Lesotho",LT:"Lietuva",LU:"Luxembourg",LV:"Latvija",LY:"\u0644\u064a\u0628\u064a\u0627",MA:"\u0627\u0644\u0645\u063a\u0631\u0628",MC:"Monaco",MD:"Republica Moldova",ME:"Crna Gora", MF:"Saint-Martin",MG:"Madagasikara",MH:"Marshall Islands",MK:"\u0421\u0435\u0432\u0435\u0440\u043d\u0430 \u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0438\u0458\u0430",ML:"Mali",MM:"\u1019\u103c\u1014\u103a\u1019\u102c",MN:"\u041c\u043e\u043d\u0433\u043e\u043b",MO:"\u6fb3\u9580",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"\u0645\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u0627",MS:"Montserrat",MT:"Malta",MU:"Moris",MV:"Maldives",MW:"Malawi",MX:"M\u00e9xico",MY:"Malaysia",MZ:"Mo\u00e7ambique", NA:"Namibi\u00eb",NC:"Nouvelle-Cal\u00e9donie",NE:"Nijar",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Nederland",NO:"Norge",NP:"\u0928\u0947\u092a\u093e\u0932",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"\u0639\u064f\u0645\u0627\u0646",PA:"Panam\u00e1",PE:"Per\u00fa",PF:"Polyn\u00e9sie fran\u00e7aise",PG:"Papua New Guinea",PH:"Pilipinas",PK:"\u067e\u0627\u06a9\u0633\u062a\u0627\u0646",PL:"Polska",PM:"Saint-Pierre-et-Miquelon",PN:"Pitcairn Islands",PR:"Puerto Rico",PS:"\u0641\u0644\u0633\u0637\u064a\u0646", PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"\u0642\u0637\u0631",RE:"La R\u00e9union",RO:"Rom\u00e2nia",RS:"\u0421\u0440\u0431\u0438\u0458\u0430",RU:"\u0420\u043e\u0441\u0441\u0438\u044f",RW:"U Rwanda",SA:"\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629",SB:"Solomon Islands",SC:"Seychelles",SD:"\u0627\u0644\u0633\u0648\u062f\u0627\u0646",SE:"Sverige",SG:"Singapore",SH:"St Helena",SI:"Slovenija",SJ:"Svalbard og Jan Mayen", SK:"Slovensko",SL:"Sierra Leone",SM:"San Marino",SN:"S\u00e9n\u00e9gal",SO:"Soomaaliya",SR:"Suriname",SS:"\u062c\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062f\u0627\u0646",ST:"S\u00e3o Tom\u00e9 e Pr\u00edncipe",SV:"El Salvador",SX:"Sint Maarten",SY:"\u0633\u0648\u0631\u064a\u0627",SZ:"Eswatini",TA:"Tristan da Cunha",TC:"Turks & Caicos Islands",TD:"Tchad",TF:"Terres australes fran\u00e7aises",TG:"Togo",TH:"\u0e44\u0e17\u0e22",TJ:"\u0422\u043e\u04b7\u0438\u043a\u0438\u0441\u0442\u043e\u043d",TK:"Tokelau", TL:"Timor-Leste",TM:"T\u00fcrkmenistan",TN:"\u062a\u0648\u0646\u0633",TO:"Tonga",TR:"T\u00fcrkiye",TT:"Trinidad & Tobago",TV:"Tuvalu",TW:"\u53f0\u7063",TZ:"Tanzania",UA:"\u0423\u043a\u0440\u0430\u0457\u043d\u0430",UG:"Uganda",UM:"U.S. Outlying Islands",US:"United States",UY:"Uruguay",UZ:"O\u02bbzbekiston",VA:"Citt\u00e0 del Vaticano",VC:"St Vincent & the Grenadines",VE:"Venezuela",VG:"British Virgin Islands",VI:"U.S. Virgin Islands",VN:"Vi\u1ec7t Nam",VU:"Vanuatu",WF:"Wallis-et-Futuna",WS:"Samoa", XK:"Kosov\u00eb",YE:"\u0627\u0644\u064a\u0645\u0646",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",af_NA:"Namibi\u00eb",af_ZA:"Suid-Afrika",agq_CM:"K\u00e0m\u00e0l\u00fb\u014b",ak_GH:"Gaana",am_ET:"\u12a2\u1275\u12ee\u1335\u12eb",ar_001:"\u0627\u0644\u0639\u0627\u0644\u0645",ar_AE:"\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062a \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0645\u062a\u062d\u062f\u0629",ar_BH:"\u0627\u0644\u0628\u062d\u0631\u064a\u0646",ar_DJ:"\u062c\u064a\u0628\u0648\u062a\u064a", ar_DZ:"\u0627\u0644\u062c\u0632\u0627\u0626\u0631",ar_EG:"\u0645\u0635\u0631",ar_EH:"\u0627\u0644\u0635\u062d\u0631\u0627\u0621 \u0627\u0644\u063a\u0631\u0628\u064a\u0629",ar_ER:"\u0625\u0631\u064a\u062a\u0631\u064a\u0627",ar_IL:"\u0625\u0633\u0631\u0627\u0626\u064a\u0644",ar_IQ:"\u0627\u0644\u0639\u0631\u0627\u0642",ar_JO:"\u0627\u0644\u0623\u0631\u062f\u0646",ar_KM:"\u062c\u0632\u0631 \u0627\u0644\u0642\u0645\u0631",ar_KW:"\u0627\u0644\u0643\u0648\u064a\u062a",ar_LB:"\u0644\u0628\u0646\u0627\u0646", ar_LY:"\u0644\u064a\u0628\u064a\u0627",ar_MA:"\u0627\u0644\u0645\u063a\u0631\u0628",ar_MR:"\u0645\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u0627",ar_OM:"\u0639\u064f\u0645\u0627\u0646",ar_PS:"\u0641\u0644\u0633\u0637\u064a\u0646",ar_QA:"\u0642\u0637\u0631",ar_SA:"\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629",ar_SD:"\u0627\u0644\u0633\u0648\u062f\u0627\u0646",ar_SO:"\u0627\u0644\u0635\u0648\u0645\u0627\u0644", ar_SS:"\u062c\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062f\u0627\u0646",ar_SY:"\u0633\u0648\u0631\u064a\u0627",ar_TD:"\u062a\u0634\u0627\u062f",ar_TN:"\u062a\u0648\u0646\u0633",ar_XB:"\u061c\u202ePseudo\u202c\u061c-\u061c\u202eBidi\u202c\u061c",ar_YE:"\u0627\u0644\u064a\u0645\u0646",as_IN:"\u09ad\u09be\u09f0\u09a4",asa_TZ:"Tadhania",ast_ES:"Espa\u00f1a",az_Cyrl_AZ:"\u0410\u0437\u04d9\u0440\u0431\u0430\u0458\u04b9\u0430\u043d",az_Latn_AZ:"Az\u0259rbaycan",bas_CM:"K\u00e0m\u025b\u0300r\u00fbn", be_BY:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u044c",bem_ZM:"Zambia",bez_TZ:"Hutanzania",bg_BG:"\u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f",bgc_IN:"\u092d\u093e\u0930\u0924",bho_IN:"\u092d\u093e\u0930\u0924",blo_BJ:"Ben\u025b\u025b",bm_ML:"Mali",bn_BD:"\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6",bn_IN:"\u09ad\u09be\u09b0\u09a4",bo_CN:"\u0f62\u0f92\u0fb1\u0f0b\u0f53\u0f42",bo_IN:"\u0f62\u0f92\u0fb1\u0f0b\u0f42\u0f62\u0f0b",br_FR:"Fra\u00f1s",brx_IN:"\u092d\u093e\u0930\u0924",bs_Cyrl_BA:"\u0411\u043e\u0441\u043d\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043e\u0432\u0438\u043d\u0430", bs_Latn_BA:"Bosna i Hercegovina",ca_AD:"Andorra",ca_ES:"Espanya",ca_FR:"Fran\u00e7a",ca_IT:"It\u00e0lia",ccp_BD:"\ud804\udd1d\ud804\udd01\ud804\udd23\ud804\udd18\ud804\udd2c\ud804\udd0c\ud804\udd34",ccp_IN:"\ud804\udd1e\ud804\udd22\ud804\udd27\ud804\udd16\ud804\udd34",ce_RU:"\u0420\u043e\u0441\u0441\u0438",ceb_PH:"Pilipinas",cgg_UG:"Uganda",chr_US:"\u13cc\u13ca \u13a2\u13f3\u13be\u13b5\u13cd\u13d4\u13c5 \u13cd\u13a6\u13da\u13a9",ckb_IQ:"\u0639\u06ce\u0631\u0627\u0642",ckb_IR:"\u0626\u06ce\u0631\u0627\u0646", cs_CZ:"\u010cesko",csw_CA:"\u1473\u14c7\u1455",cv_RU:"\u0420\u0430\u04ab\u04ab\u0435\u0439",cy_GB:"Y Deyrnas Unedig",da_DK:"Danmark",da_GL:"Gr\u00f8nland",dav_KE:"Kenya",de_AT:"\u00d6sterreich",de_BE:"Belgien",de_CH:"Schweiz",de_DE:"Deutschland",de_IT:"Italien",de_LI:"Liechtenstein",de_LU:"Luxemburg",dje_NE:"Ni\u017eer",doi_IN:"\u092d\u093e\u0930\u0924",dsb_DE:"Nimska",dua_CM:"Cameroun",dyo_SN:"Senegal",dz_BT:"\u0f60\u0f56\u0fb2\u0f74\u0f42",ebu_KE:"Kenya",ee_GH:"Ghana nutome",ee_TG:"Togo nutome", el_CY:"\u039a\u03cd\u03c0\u03c1\u03bf\u03c2",el_GR:"\u0395\u03bb\u03bb\u03ac\u03b4\u03b1",en_001:"world",en_150:"Europe",en_AE:"United Arab Emirates",en_AG:"Antigua & Barbuda",en_AI:"Anguilla",en_AS:"American Samoa",en_AT:"Austria",en_AU:"Australia",en_BB:"Barbados",en_BE:"Belgium",en_BI:"Burundi",en_BM:"Bermuda",en_BS:"Bahamas",en_BW:"Botswana",en_BZ:"Belize",en_CA:"Canada",en_CC:"Cocos (Keeling) Islands",en_CH:"Switzerland",en_CK:"Cook Islands",en_CM:"Cameroon",en_CX:"Christmas Island",en_CY:"Cyprus", en_DE:"Germany",en_DG:"Diego Garcia",en_DK:"Denmark",en_DM:"Dominica",en_ER:"Eritrea",en_FI:"Finland",en_FJ:"Fiji",en_FK:"Falkland Islands (Islas Malvinas)",en_FM:"Micronesia",en_GB:"United Kingdom",en_GD:"Grenada",en_GG:"Guernsey",en_GH:"Ghana",en_GI:"Gibraltar",en_GM:"Gambia",en_GU:"Guam",en_GY:"Guyana",en_HK:"Hong Kong",en_ID:"Indonesia",en_IE:"Ireland",en_IL:"Israel",en_IM:"Isle of Man",en_IN:"India",en_IO:"British Indian Ocean Territory",en_JE:"Jersey",en_JM:"Jamaica",en_KE:"Kenya",en_KI:"Kiribati", en_KN:"St Kitts & Nevis",en_KY:"Cayman Islands",en_LC:"St Lucia",en_LR:"Liberia",en_LS:"Lesotho",en_MG:"Madagascar",en_MH:"Marshall Islands",en_MO:"Macao",en_MP:"Northern Mariana Islands",en_MS:"Montserrat",en_MT:"Malta",en_MU:"Mauritius",en_MV:"Maldives",en_MW:"Malawi",en_MY:"Malaysia",en_NA:"Namibia",en_NF:"Norfolk Island",en_NG:"Nigeria",en_NL:"Netherlands",en_NR:"Nauru",en_NU:"Niue",en_NZ:"New Zealand",en_PG:"Papua New Guinea",en_PH:"Philippines",en_PK:"Pakistan",en_PN:"Pitcairn Islands",en_PR:"Puerto Rico", en_PW:"Palau",en_RW:"Rwanda",en_SB:"Solomon Islands",en_SC:"Seychelles",en_SD:"Sudan",en_SE:"Sweden",en_SG:"Singapore",en_SH:"St Helena",en_SI:"Slovenia",en_SL:"Sierra Leone",en_SS:"South Sudan",en_SX:"Sint Maarten",en_SZ:"Eswatini",en_TC:"Turks & Caicos Islands",en_TK:"Tokelau",en_TO:"Tonga",en_TT:"Trinidad & Tobago",en_TV:"Tuvalu",en_TZ:"Tanzania",en_UG:"Uganda",en_UM:"U.S. Outlying Islands",en_US:"United States",en_US_POSIX:"United States",en_VC:"St Vincent & the Grenadines",en_VG:"British Virgin Islands", en_VI:"U.S. Virgin Islands",en_VU:"Vanuatu",en_WS:"Samoa",en_XA:"[\u00de\u0161\u00e9\u00fb\u00f0\u00f6\u2010\u00c5\u00e7\u00e7\u00e9\u00f1\u0163\u0161 one two]",en_ZA:"South Africa",en_ZM:"Zambia",en_ZW:"Zimbabwe",eo_001:"mondo",es_419:"Latinoam\u00e9rica",es_AR:"Argentina",es_BO:"Bolivia",es_BR:"Brasil",es_BZ:"Belice",es_CL:"Chile",es_CO:"Colombia",es_CR:"Costa Rica",es_CU:"Cuba",es_DO:"Rep\u00fablica Dominicana",es_EA:"Ceuta y Melilla",es_EC:"Ecuador",es_ES:"Espa\u00f1a",es_GQ:"Guinea Ecuatorial", es_GT:"Guatemala",es_HN:"Honduras",es_IC:"Canarias",es_MX:"M\u00e9xico",es_NI:"Nicaragua",es_PA:"Panam\u00e1",es_PE:"Per\u00fa",es_PH:"Filipinas",es_PR:"Puerto Rico",es_PY:"Paraguay",es_SV:"El Salvador",es_US:"Estados Unidos",es_UY:"Uruguay",es_VE:"Venezuela",et_EE:"Eesti",eu_ES:"Espainia",ewo_CM:"Kam\u0259r\u00fan",fa_AF:"\u0627\u0641\u063a\u0627\u0646\u0633\u062a\u0627\u0646",fa_IR:"\u0627\u06cc\u0631\u0627\u0646",ff_Adlm_BF:"\ud83a\udd04\ud83a\udd35\ud83a\udd2a\ud83a\udd33\ud83a\udd2d\ud83a\udd32\ud83a\udd22 \ud83a\udd0a\ud83a\udd22\ud83a\udd27\ud83a\udd2e\ud83a\udd45", ff_Adlm_CM:"\ud83a\udd11\ud83a\udd22\ud83a\udd25\ud83a\udd22\ud83a\udd2a\ud83a\udd35\ud83a\udd45\ud83a\udd32",ff_Adlm_GH:"\ud83a\udd18\ud83a\udd22\ud83a\udd32\ud83a\udd22",ff_Adlm_GM:"\ud83a\udd18\ud83a\udd22\ud83a\udd25\ud83a\udd26\ud83a\udd2d\ud83a\udd34\ud83a\udd22",ff_Adlm_GN:"\ud83a\udd18\ud83a\udd2d\ud83a\udd32\ud83a\udd2b",ff_Adlm_GW:"\ud83a\udd18\ud83a\udd2d\ud83a\udd32\ud83a\udd2b-\ud83a\udd04\ud83a\udd2d\ud83a\udd27\ud83a\udd22\ud83a\udd31\ud83a\udd2e\ud83a\udd45",ff_Adlm_LR:"\ud83a\udd02\ud83a\udd22\ud83a\udd26\ud83a\udd2d\ud83a\udd2a\ud83a\udd2d\ud83a\udd34\ud83a\udd22\ud83a\udd44", ff_Adlm_MR:"\ud83a\udd03\ud83a\udd2e\ud83a\udd2a\ud83a\udd3c\ud83a\udd22\ud83a\udd32\ud83a\udd2d\ud83a\udd45",ff_Adlm_NE:"\ud83a\udd10\ud83a\udd2d\ud83a\udd45\ud83a\udd36\ud83a\udd2b\ud83a\udd2a",ff_Adlm_NG:"\ud83a\udd10\ud83a\udd22\ud83a\udd36\ud83a\udd2b\ud83a\udd2a\ud83a\udd2d\ud83a\udd34\ud83a\udd22\ud83a\udd44",ff_Adlm_SL:"\ud83a\udd05\ud83a\udd22\ud83a\udd2a\ud83a\udd22\ud83a\udd24\ud83a\udd2e\ud83a\udd32",ff_Adlm_SN:"\ud83a\udd05\ud83a\udd2b\ud83a\udd32\ud83a\udd2b\ud83a\udd3a\ud83a\udd22\ud83a\udd44\ud83a\udd24", ff_Latn_BF:"Burkibaa Faaso",ff_Latn_CM:"Kameruun",ff_Latn_GH:"Ganaa",ff_Latn_GM:"Gammbi",ff_Latn_GN:"Gine",ff_Latn_GW:"Gine-Bisaawo",ff_Latn_LR:"Liberiyaa",ff_Latn_MR:"Muritani",ff_Latn_NE:"Nijeer",ff_Latn_NG:"Nijeriyaa",ff_Latn_SL:"Seraa liyon",ff_Latn_SN:"Senegaal",fi_FI:"Suomi",fil_PH:"Pilipinas",fo_DK:"Danmark",fo_FO:"F\u00f8royar",fr_BE:"Belgique",fr_BF:"Burkina Faso",fr_BI:"Burundi",fr_BJ:"B\u00e9nin",fr_BL:"Saint-Barth\u00e9lemy",fr_CA:"Canada",fr_CD:"Congo-Kinshasa",fr_CF:"R\u00e9publique centrafricaine", fr_CG:"Congo-Brazzaville",fr_CH:"Suisse",fr_CI:"C\u00f4te d\u2019Ivoire",fr_CM:"Cameroun",fr_DJ:"Djibouti",fr_DZ:"Alg\u00e9rie",fr_FR:"France",fr_GA:"Gabon",fr_GF:"Guyane fran\u00e7aise",fr_GN:"Guin\u00e9e",fr_GP:"Guadeloupe",fr_GQ:"Guin\u00e9e \u00e9quatoriale",fr_HT:"Ha\u00efti",fr_KM:"Comores",fr_LU:"Luxembourg",fr_MA:"Maroc",fr_MC:"Monaco",fr_MF:"Saint-Martin",fr_MG:"Madagascar",fr_ML:"Mali",fr_MQ:"Martinique",fr_MR:"Mauritanie",fr_MU:"Maurice",fr_NC:"Nouvelle-Cal\u00e9donie",fr_NE:"Niger",fr_PF:"Polyn\u00e9sie fran\u00e7aise", fr_PM:"Saint-Pierre-et-Miquelon",fr_RE:"La R\u00e9union",fr_RW:"Rwanda",fr_SC:"Seychelles",fr_SN:"S\u00e9n\u00e9gal",fr_SY:"Syrie",fr_TD:"Tchad",fr_TG:"Togo",fr_TN:"Tunisie",fr_VU:"Vanuatu",fr_WF:"Wallis-et-Futuna",fr_YT:"Mayotte",fur_IT:"Italie",fy_NL:"Nederl\u00e2n",ga_GB:"an R\u00edocht Aontaithe",ga_IE:"\u00c9ire",gaa_GH:"Ghana",gd_GB:"An R\u00ecoghachd Aonaichte",gl_ES:"Espa\u00f1a",gsw_CH:"Schwiiz",gsw_FR:"Frankriich",gsw_LI:"Li\u00e4chtescht\u00e4i",gu_IN:"\u0aad\u0abe\u0ab0\u0aa4",guz_KE:"Kenya", gv_IM:"Ellan Vannin",ha_GH:"Gana",ha_NE:"Nijar",ha_NG:"Nijeriya",haw_US:"\u02bbAmelika Hui P\u016b \u02bbIa",he_IL:"\u05d9\u05e9\u05e8\u05d0\u05dc",hi_IN:"\u092d\u093e\u0930\u0924",hi_Latn_IN:"Bharat",hr_BA:"Bosna i Hercegovina",hr_HR:"Hrvatska",hsb_DE:"N\u011bmska",hu_HU:"Magyarorsz\u00e1g",hy_AM:"\u0540\u0561\u0575\u0561\u057d\u057f\u0561\u0576",ia_001:"mundo",id_ID:"Indonesia",ie_EE:"Estonia",ig_NG:"Na\u1ecbj\u1ecbr\u1ecba",ii_CN:"\ua34f\ua1e9",is_IS:"\u00cdsland",it_CH:"Svizzera",it_IT:"Italia", it_SM:"San Marino",it_VA:"Citt\u00e0 del Vaticano",ja_JP:"\u65e5\u672c",jgo_CM:"Kam\u025bl\u00fbn",jmc_TZ:"Tanzania",jv_ID:"Indon\u00e9sia",ka_GE:"\u10e1\u10d0\u10e5\u10d0\u10e0\u10d7\u10d5\u10d4\u10da\u10dd",kab_DZ:"Lezzayer",kam_KE:"Kenya",kde_TZ:"Tanzania",kea_CV:"Kabu Verdi",kgp_BR:"Mrasir",khq_ML:"Maali",ki_KE:"Kenya",kk_Cyrl_KZ:"\u049a\u0430\u0437\u0430\u049b\u0441\u0442\u0430\u043d",kk_KZ:"\u049a\u0430\u0437\u0430\u049b\u0441\u0442\u0430\u043d",kkj_CM:"Kam\u025brun",kl_GL:"Kalaallit Nunaat", kln_KE:"Emetab Kenya",km_KH:"\u1780\u1798\u17d2\u1796\u17bb\u1787\u17b6",kn_IN:"\u0cad\u0cbe\u0cb0\u0ca4",ko_CN:"\uc911\uad6d",ko_KP:"\uc870\uc120\ubbfc\uc8fc\uc8fc\uc758\uc778\ubbfc\uacf5\ud654\uad6d",ko_KR:"\ub300\ud55c\ubbfc\uad6d",kok_Deva_IN:"\u092d\u093e\u0930\u0924",kok_Latn_IN:"Bharot",ks_Arab_IN:"\u06c1\u0650\u0646\u062f\u0648\u0633\u062a\u0627\u0646",ks_Deva_IN:"\u0939\u093f\u0902\u0926\u094b\u0938\u094d\u0924\u093e\u0928",ksb_TZ:"Tanzania",ksf_CM:"kam\u025br\u00fan",ksh_DE:"Do\u00fctschland", ku_TR:"Tirk\u00eeye",kw_GB:"Rywvaneth Unys",kxv_Deva_IN:"\u092c\u093e\u0930\u0924",kxv_Latn_IN:"in\u1e0di\u0101",kxv_Orya_IN:"\u0b2c\u0b3e\u0b30\u0b24",kxv_Telu_IN:"\u0c2c\u0c3e\u0c30\u0c24\u0c26\u0c46\u0c38\u0c3e\u0c02",ky_KG:"\u041a\u044b\u0440\u0433\u044b\u0437\u0441\u0442\u0430\u043d",lag_TZ:"Taansan\u00eda",lb_LU:"L\u00ebtzebuerg",lg_UG:"Yuganda",lij_IT:"Italia",lkt_US:"M\u00edlaha\u014bska T\u021fam\u00e1k\u021fo\u010dhe",lmo_IT:"Italia",ln_AO:"Ang\u00f3la",ln_CD:"Republ\u00edki ya Kong\u00f3 Demokrat\u00edki", ln_CF:"Repibiki ya Afr\u00edka ya K\u00e1ti",ln_CG:"Kongo",lo_LA:"\u0ea5\u0eb2\u0ea7",lrc_IQ:"Iraq",lrc_IR:"Iran",lt_LT:"Lietuva",lu_CD:"Ditunga wa Kongu",luo_KE:"Kenya",luy_KE:"Kenya",lv_LV:"Latvija",mai_IN:"\u092d\u093e\u0930\u0924",mas_KE:"Kenya",mas_TZ:"Tansania",mer_KE:"Kenya",mfe_MU:"Moris",mg_MG:"Madagasikara",mgh_MZ:"Umozambiki",mgo_CM:"Kamalun",mi_NZ:"Aotearoa",mk_MK:"\u0421\u0435\u0432\u0435\u0440\u043d\u0430 \u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0438\u0458\u0430",ml_IN:"\u0d07\u0d28\u0d4d\u0d24\u0d4d\u0d2f", mn_MN:"\u041c\u043e\u043d\u0433\u043e\u043b",mni_Beng_IN:"\u0987\u09a8\u09cd\u09a6\u09bf\u09af\u09bc\u09be",mr_IN:"\u092d\u093e\u0930\u0924",ms_BN:"Brunei",ms_ID:"Indonesia",ms_MY:"Malaysia",ms_SG:"Singapura",mt_MT:"Malta",mua_CM:"kameru\u014b",my_MM:"\u1019\u103c\u1014\u103a\u1019\u102c",mzn_IR:"\u0627\u06cc\u0631\u0627\u0646",naq_NA:"Namibiab",nb_NO:"Norge",nb_SJ:"Svalbard og Jan Mayen",nd_ZW:"Zimbabwe",nds_DE:"D\u00fc\u00fctschland",nds_NL:"Nedderlannen",ne_IN:"\u092d\u093e\u0930\u0924",ne_NP:"\u0928\u0947\u092a\u093e\u0932", nl_AW:"Aruba",nl_BE:"Belgi\u00eb",nl_BQ:"Caribisch Nederland",nl_CW:"Cura\u00e7ao",nl_NL:"Nederland",nl_SR:"Suriname",nl_SX:"Sint-Maarten",nmg_CM:"Kamerun",nn_NO:"Noreg",nnh_CM:"K\u00e0mal\u00fbm",no_NO:"Norge",nqo_GN:"\u07d6\u07cc\u07ec\u07e3\u07cd\u07eb",nso_ZA:"Afrika Borwa",nus_SS:"South Sudan",nyn_UG:"Uganda",oc_ES:"Espanha",oc_FR:"Fran\u00e7a",om_ET:"Itoophiyaa",om_KE:"Keeniyaa",or_IN:"\u0b2d\u0b3e\u0b30\u0b24",os_GE:"\u0413\u0443\u044b\u0440\u0434\u0437\u044b\u0441\u0442\u043e\u043d",os_RU:"\u0423\u04d5\u0440\u04d5\u0441\u0435", pa_Arab_PK:"\u067e\u0627\u06a9\u0633\u062a\u0627\u0646",pa_Guru_IN:"\u0a2d\u0a3e\u0a30\u0a24",pcm_NG:"Naij\u00edria",pl_PL:"Polska",prg_PL:"P\u014dli",ps_AF:"\u0627\u0641\u063a\u0627\u0646\u0633\u062a\u0627\u0646",ps_PK:"\u067e\u0627\u06a9\u0633\u062a\u0627\u0646",pt_AO:"Angola",pt_BR:"Brasil",pt_CH:"Su\u00ed\u00e7a",pt_CV:"Cabo Verde",pt_GQ:"Guin\u00e9 Equatorial",pt_GW:"Guin\u00e9-Bissau",pt_LU:"Luxemburgo",pt_MO:"Macau",pt_MZ:"Mo\u00e7ambique",pt_PT:"Portugal",pt_ST:"S\u00e3o Tom\u00e9 e Pr\u00edncipe", pt_TL:"Timor-Leste",qu_BO:"Bolivia",qu_EC:"Ecuador",qu_PE:"Per\u00fa",raj_IN:"\u092d\u093e\u0930\u0924",rm_CH:"Svizra",rn_BI:"Uburundi",ro_MD:"Republica Moldova",ro_RO:"Rom\u00e2nia",rof_TZ:"Tanzania",ru_BY:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u044c",ru_KG:"\u041a\u0438\u0440\u0433\u0438\u0437\u0438\u044f",ru_KZ:"\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d",ru_MD:"\u041c\u043e\u043b\u0434\u043e\u0432\u0430",ru_RU:"\u0420\u043e\u0441\u0441\u0438\u044f",ru_UA:"\u0423\u043a\u0440\u0430\u0438\u043d\u0430", rw_RW:"U Rwanda",rwk_TZ:"Tanzania",sa_IN:"\u092d\u093e\u0930\u0924\u0903",sah_RU:"\u0410\u0440\u0430\u0441\u0441\u044b\u044b\u0439\u0430",saq_KE:"Kenya",sat_Olck_IN:"\u1c64\u1c71\u1c70\u1c64\u1c6d\u1c5f",sbp_TZ:"Tansaniya",sc_IT:"It\u00e0lia",sd_Arab_PK:"\u067e\u0627\u06aa\u0633\u062a\u0627\u0646",sd_Deva_IN:"\u092d\u093e\u0930\u0924",se_FI:"Suopma",se_NO:"Norga",se_SE:"Ruo\u0167\u0167a",seh_MZ:"Mo\u00e7ambique",ses_ML:"Maali",sg_CF:"K\u00f6d\u00f6r\u00f6s\u00ease t\u00ee B\u00eaafr\u00eeka",shi_Latn_MA:"lm\u0263rib", shi_Tfng_MA:"\u2d4d\u2d4e\u2d56\u2d54\u2d49\u2d31",si_LK:"\u0dc1\u0dca\u200d\u0dbb\u0dd3 \u0dbd\u0d82\u0d9a\u0dcf\u0dc0",sk_SK:"Slovensko",sl_SI:"Slovenija",smn_FI:"Suom\u00e2",sn_ZW:"Zimbabwe",so_DJ:"Jabuuti",so_ET:"Itoobiya",so_KE:"Kenya",so_SO:"Soomaaliya",sq_AL:"Shqip\u00ebri",sq_MK:"Maqedonia e Veriut",sq_XK:"Kosov\u00eb",sr_Cyrl_BA:"\u0411\u043e\u0441\u043d\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043e\u0432\u0438\u043d\u0430",sr_Cyrl_ME:"\u0426\u0440\u043d\u0430 \u0413\u043e\u0440\u0430", sr_Cyrl_RS:"\u0421\u0440\u0431\u0438\u0458\u0430",sr_Cyrl_XK:"\u041a\u043e\u0441\u043e\u0432\u043e",sr_Latn_BA:"Bosna i Hercegovina",sr_Latn_ME:"Crna Gora",sr_Latn_RS:"Srbija",sr_Latn_XK:"Kosovo",st_LS:"Lesotho",st_ZA:"Afrika Borwa",su_Latn_ID:"Indonesia",sv_AX:"\u00c5land",sv_FI:"Finland",sv_SE:"Sverige",sw_CD:"Jamhuri ya Kidemokrasia ya Kongo",sw_KE:"Kenya",sw_TZ:"Tanzania",sw_UG:"Uganda",syr_IQ:"\u0725\u071d\u072a\u0729",syr_SY:"\u0723\u0718\u072a\u071d\u0710",szl_PL:"Polska",ta_IN:"\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe", ta_LK:"\u0b87\u0bb2\u0b99\u0bcd\u0b95\u0bc8",ta_MY:"\u0bae\u0bb2\u0bc7\u0b9a\u0bbf\u0baf\u0bbe",ta_SG:"\u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0bc2\u0bb0\u0bcd",te_IN:"\u0c2d\u0c3e\u0c30\u0c24\u0c26\u0c47\u0c36\u0c02",teo_KE:"Kenia",teo_UG:"Uganda",tg_TJ:"\u0422\u043e\u04b7\u0438\u043a\u0438\u0441\u0442\u043e\u043d",th_TH:"\u0e44\u0e17\u0e22",ti_ER:"\u12a4\u122d\u1275\u122b",ti_ET:"\u12a2\u1275\u12ee\u1335\u12eb",tk_TM:"T\u00fcrkmenistan",tn_BW:"Botswana",tn_ZA:"Aforika Borwa",to_TO:"Tonga", tok_001:"ma ale",tr_CY:"K\u0131br\u0131s",tr_TR:"T\u00fcrkiye",tt_RU:"\u0420\u043e\u0441\u0441\u0438\u044f",twq_NE:"Ni\u017eer",tzm_MA:"Me\u1e5b\u1e5buk",ug_CN:"\u062c\u06c7\u06ad\u06af\u0648",uk_UA:"\u0423\u043a\u0440\u0430\u0457\u043d\u0430",ur_IN:"\u0628\u06be\u0627\u0631\u062a",ur_PK:"\u067e\u0627\u06a9\u0633\u062a\u0627\u0646",uz_Arab_AF:"\u0627\u0641\u063a\u0627\u0646\u0633\u062a\u0627\u0646",uz_Cyrl_UZ:"\u040e\u0437\u0431\u0435\u043a\u0438\u0441\u0442\u043e\u043d",uz_Latn_UZ:"O\u02bbzbekiston", vai_Latn_LR:"Laibhiya",vai_Vaii_LR:"\ua55e\ua524\ua52b\ua569",vec_IT:"Italia",vi_VN:"Vi\u1ec7t Nam",vmw_MZ:"oMosambikhi",vun_TZ:"Tanzania",wae_CH:"Schwiz",wo_SN:"Senegaal",xh_ZA:"EMzantsi Afrika",xnr_IN:"\u092d\u093e\u0930\u0924",xog_UG:"Yuganda",yav_CM:"Kemel\u00fan",yi_UA:"\u05d0\u05d5\u05e7\u05e8\u05d0\u05b7\u05d9\u05e0\u05e2",yo_BJ:"B\u025b\u0300n\u025b\u0300",yo_NG:"N\u00e0\u00ecj\u00edr\u00ed\u00e0",yrl_BR:"Brasiu",yrl_CO:"Kur\u0169biya",yrl_VE:"Wenesuera",yue_Hans_CN:"\u4e2d\u534e\u4eba\u6c11\u5171\u548c\u56fd", yue_Hant_CN:"\u4e2d\u570b",yue_Hant_HK:"\u9999\u6e2f",za_CN:"Cunghgoz",zgh_MA:"\u2d4d\u2d4e\u2d56\u2d54\u2d49\u2d31",zh_CN:"\u4e2d\u56fd",zh_HK:"\u9999\u6e2f",zh_Hans_CN:"\u4e2d\u56fd",zh_Hans_HK:"\u9999\u6e2f",zh_Hans_MO:"\u6fb3\u95e8",zh_Hans_MY:"\u9a6c\u6765\u897f\u4e9a",zh_Hans_SG:"\u65b0\u52a0\u5761",zh_Hant_HK:"\u9999\u6e2f",zh_Hant_MO:"\u6fb3\u9580",zh_Hant_MY:"\u99ac\u4f86\u897f\u4e9e",zh_Hant_TW:"\u53f0\u7063",zh_TW:"\u53f0\u7063",zu_ZA:"iNingizimu Afrika"},LANGUAGE:{aa:"Afar",ab:"Abkhazian", ace:"Acehnese",ach:"Acoli",ada:"Adangme",ady:"Adyghe",ae:"Avestan",aeb:"Tunisian Arabic",af:"Afrikaans",afh:"Afrihili",agq:"Aghem",ain:"Ainu",ak:"Akan",akk:"Akkadian",akz:"Alabama",ale:"Aleut",aln:"Gheg Albanian",alt:"Southern Altai",am:"\u12a0\u121b\u122d\u129b",an:"Aragonese",ang:"Old English",anp:"Angika",ar:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",ar_001:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0639\u0627\u0644\u0645)",arc:"Aramaic",arn:"Mapuche",aro:"Araona",arp:"Arapaho", arq:"Algerian Arabic",ars:"\u0627\u0644\u0644\u0647\u062c\u0629 \u0627\u0644\u0646\u062c\u062f\u064a\u0629",arw:"Arawak",ary:"Moroccan Arabic",arz:"Egyptian Arabic",as:"\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be",asa:"Kipare",ase:"American Sign Language",ast:"asturianu",av:"Avaric",avk:"Kotava",awa:"Awadhi",ay:"Aymara",az:"az\u0259rbaycan",az_Cyrl:"\u0430\u0437\u04d9\u0440\u0431\u0430\u0458\u04b9\u0430\u043d (\u041a\u0438\u0440\u0438\u043b)",az_Latn:"az\u0259rbaycan (lat\u0131n)",ba:"Bashkir",bal:"Baluchi", ban:"Balinese",bar:"Bavarian",bas:"\u0181\u00e0s\u00e0a",bax:"Bamun",bbc:"Batak Toba",bbj:"Ghomala",be:"\u0431\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",bej:"Beja",bem:"Ichibemba",bew:"Betawi",bez:"Hibena",bfd:"Bafut",bfq:"Badaga",bg:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",bgc:"\u0939\u0930\u093f\u092f\u093e\u0923\u0935\u0940",bgn:"Western Balochi",bho:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940",bi:"Bislama",bik:"Bikol",bin:"Bini",bjn:"Banjar",bkm:"Kom",bla:"Siksik\u00e1", blo:"anii kag\u0269ja",bm:"bamanakan",bn:"\u09ac\u09be\u0982\u09b2\u09be",bo:"\u0f56\u0f7c\u0f51\u0f0b\u0f66\u0f90\u0f51\u0f0b",bpy:"Bishnupriya",bqi:"Bakhtiari",br:"brezhoneg",bra:"Braj",brh:"Brahui",brx:"\u092c\u0930\u2019",bs:"bosanski",bs_Cyrl:"\u0431\u043e\u0441\u0430\u043d\u0441\u043a\u0438 (\u045b\u0438\u0440\u0438\u043b\u0438\u0446\u0430)",bs_Latn:"bosanski (latinica)",bss:"Akoose",bua:"Buriat",bug:"Buginese",bum:"Bulu",byn:"Blin",byv:"Medumba",ca:"catal\u00e0",cad:"Caddo",car:"Carib",cay:"Cayuga", cch:"Atsam",ccp:"\ud804\udd0c\ud804\udd0b\ud804\udd34\ud804\udd1f\ud804\udd33\ud804\udd26",ce:"\u043d\u043e\u0445\u0447\u0438\u0439\u043d",ceb:"Cebuano",cgg:"Rukiga",ch:"Chamorro",chb:"Chibcha",chg:"Chagatai",chk:"Chuukese",chm:"Mari",chn:"Chinook Jargon",cho:"Choctaw",chp:"Chipewyan",chr:"\u13e3\u13b3\u13a9",chy:"Cheyenne",ckb:"\u06a9\u0648\u0631\u062f\u06cc\u06cc \u0646\u0627\u0648\u06d5\u0646\u062f\u06cc",co:"Corsican",cop:"Coptic",cps:"Capiznon",cr:"Cree",crh:"Crimean Tatar",cs:"\u010de\u0161tina", csb:"Kashubian",csw:"\u14c0\u1426\u1403\u14c7\u140d\u140f\u1423",cu:"Church Slavic",cv:"\u0447\u04d1\u0432\u0430\u0448",cy:"Cymraeg",da:"dansk",dak:"Dakota",dar:"Dargwa",dav:"Kitaita",de:"Deutsch",de_AT:"Deutsch (\u00d6sterreich)",de_CH:"Deutsch (Schweiz)",del:"Delaware",den:"Slave",dgr:"Dogrib",din:"Dinka",dje:"Zarmaciine",doi:"\u0921\u094b\u0917\u0930\u0940",dsb:"dolnoserb\u0161\u0107ina",dua:"du\u00e1l\u00e1",dum:"Middle Dutch",dv:"Divehi",dyo:"joola",dyu:"Dyula",dz:"\u0f62\u0fab\u0f7c\u0f44\u0f0b\u0f41", dzg:"Dazaga",ebu:"K\u0129embu",ee:"e\u028begbe",efi:"Efik",egy:"Ancient Egyptian",eka:"Ekajuk",el:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",elx:"Elamite",en:"English",en_AU:"English (Australia)",en_CA:"English (Canada)",en_GB:"English (United Kingdom)",en_US:"English (United States)",enm:"Middle English",eo:"Esperanto",es:"espa\u00f1ol",es_419:"espa\u00f1ol (Latinoam\u00e9rica)",es_ES:"espa\u00f1ol (Espa\u00f1a)",es_MX:"espa\u00f1ol (M\u00e9xico)",et:"eesti",eu:"euskara",ewo:"ewondo",fa:"\u0641\u0627\u0631\u0633\u06cc", fa_AF:"\u0641\u0627\u0631\u0633\u06cc (\u0627\u0641\u063a\u0627\u0646\u0633\u062a\u0627\u0646)",fan:"Fang",fat:"Fanti",ff:"Pulaar",ff_Adlm:"\ud83a\udd06\ud83a\udd35\ud83a\udd24\ud83a\udd22\ud83a\udd2a (\ud83a\udd00\ud83a\udd01\ud83a\udd02\ud83a\udd22\ud83a\udd03)",ff_Latn:"Fula (Latin)",fi:"suomi",fil:"Filipino",fj:"Fijian",fo:"f\u00f8royskt",fon:"Fon",fr:"fran\u00e7ais",fr_CA:"fran\u00e7ais (Canada)",fr_CH:"fran\u00e7ais (Suisse)",frm:"Middle French",fro:"Old French",frr:"Northern Frisian",frs:"Eastern Frisian", fur:"furlan",fy:"Frysk",ga:"Gaeilge",gaa:"G\u00e3",gay:"Gayo",gba:"Gbaya",gd:"G\u00e0idhlig",gez:"Geez",gil:"Gilbertese",gl:"galego",gmh:"Middle High German",gn:"Guarani",goh:"Old High German",gon:"Gondi",gor:"Gorontalo",got:"Gothic",grb:"Grebo",grc:"Ancient Greek",gsw:"Schwiizert\u00fc\u00fctsch",gu:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0",guz:"Ekegusii",gv:"Gaelg",gwi:"Gwich\u02bcin",ha:"Hausa",hai:"Haida",haw:"\u02bb\u014clelo Hawai\u02bbi",he:"\u05e2\u05d1\u05e8\u05d9\u05ea",hi:"\u0939\u093f\u0928\u094d\u0926\u0940", hi_Latn:"Hindi (Latin)",hil:"Hiligaynon",hit:"Hittite",hmn:"Hmong",ho:"Hiri Motu",hr:"hrvatski",hsb:"hornjoserb\u0161\u0107ina",ht:"cr\u00e9ole ha\u00eftien",hu:"magyar",hup:"Hupa",hy:"\u0570\u0561\u0575\u0565\u0580\u0565\u0576",hz:"Herero",ia:"interlingua",iba:"Iban",ibb:"Ibibio",id:"Indonesia",ie:"Interlingue",ig:"Igbo",ii:"\ua188\ua320\ua259",ik:"Inupiaq",ilo:"Iloko","in":"Indonesia",inh:"Ingush",io:"Ido",is:"\u00edslenska",it:"italiano",iu:"Inuktitut",iw:"\u05e2\u05d1\u05e8\u05d9\u05ea",ja:"\u65e5\u672c\u8a9e", jbo:"Lojban",jgo:"Nda\ua78ca",jmc:"Kimachame",jpr:"Judeo-Persian",jrb:"Judeo-Arabic",jv:"Jawa",ka:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8",kaa:"Kara-Kalpak",kab:"Taqbaylit",kac:"Kachin",kaj:"Jju",kam:"Kikamba",kaw:"Kawi",kbd:"Kabardian",kbl:"Kanembu",kcg:"Tyap",kde:"Chimakonde",kea:"kabuverdianu",kfo:"Koro",kg:"Kongo",kgp:"kanhg\u00e1g",kha:"Khasi",kho:"Khotanese",khq:"Koyra ciini",ki:"Gikuyu",kj:"Kuanyama",kk:"\u049b\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456",kk_Cyrl:"\u049b\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456 (\u043a\u0438\u0440\u0438\u043b\u043b \u0436\u0430\u0437\u0443\u044b)", kkj:"kak\u0254",kl:"kalaallisut",kln:"Kalenjin",km:"\u1781\u17d2\u1798\u17c2\u179a",kmb:"Kimbundu",kn:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1",ko:"\ud55c\uad6d\uc5b4",kok:"\u0915\u094b\u0902\u0915\u0923\u0940",kok_Deva:"\u0915\u094b\u0902\u0915\u0923\u0940 (\u0926\u0947\u0935\u0928\u093e\u0917\u0930\u0940)",kok_Latn:"Konknni (Romi)",kos:"Kosraean",kpe:"Kpelle",kr:"Kanuri",krc:"Karachay-Balkar",krl:"Karelian",kru:"Kurukh",ks:"\u06a9\u0672\u0634\u064f\u0631",ks_Arab:"\u06a9\u0672\u0634\u064f\u0631 (\u0639\u0631\u0628\u06cc)", ks_Deva:"\u0915\u0949\u0936\u0941\u0930 (\u0926\u0947\u0935\u0928\u093e\u0917\u0930\u0940)",ksb:"Kishambaa",ksf:"rikpa",ksh:"K\u00f6lsch",ku:"kurd\u00ee [kurmanc\u00ee]",kum:"Kumyk",kut:"Kutenai",kv:"Komi",kw:"kernewek",kxv:"kuvi",kxv_Deva:"\u0915\u0941\u0935\u093f (\u0926\u0947\u0935\u0928\u093e\u0917\u0930\u0940)",kxv_Latn:"kuvi (la\u1e6din)",kxv_Orya:"\u0b15\u0b41\u0b71\u0b3f (\u0b05\u0b21\u0b3c\u0b3f\u0b06)",kxv_Telu:"\u0c15\u0c41\u0c35\u0c3f (\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41)",ky:"\u043a\u044b\u0440\u0433\u044b\u0437\u0447\u0430", la:"Latin",lad:"Ladino",lag:"K\u0268laangi",lah:"Western Panjabi",lam:"Lamba",lb:"L\u00ebtzebuergesch",lez:"Lezghian",lg:"Luganda",li:"Limburgish",lij:"ligure",lkt:"Lak\u021f\u00f3l\u02bciyapi",lmo:"Lombard",ln:"ling\u00e1la",lo:"\u0ea5\u0eb2\u0ea7",lol:"Mongo",loz:"Lozi",lrc:"\u0644\u06ca\u0631\u06cc \u0634\u0648\u0645\u0627\u0644\u06cc",lt:"lietuvi\u0173",lu:"Tshiluba",lua:"Luba-Lulua",lui:"Luiseno",lun:"Lunda",luo:"Dholuo",lus:"Mizo",luy:"Luluhia",lv:"latvie\u0161u",mad:"Madurese",maf:"Mafa",mag:"Magahi", mai:"\u092e\u0948\u0925\u093f\u0932\u0940",mak:"Makasar",man:"Mandingo",mas:"Maa",mde:"Maba",mdf:"Moksha",mdr:"Mandar",men:"Mende",mer:"K\u0129m\u0129r\u0169",mfe:"kreol morisien",mg:"Malagasy",mga:"Middle Irish",mgh:"Makua",mgo:"meta\u02bc",mh:"Marshallese",mi:"M\u0101ori",mic:"Mi'kmaw",min:"Minangkabau",mk:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438",ml:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02",mn:"\u043c\u043e\u043d\u0433\u043e\u043b",mnc:"Manchu",mni:"\u09ae\u09c8\u09a4\u09c8\u09b2\u09cb\u09a8\u09cd", mni_Beng:"\u09ae\u09c8\u09a4\u09c8\u09b2\u09cb\u09a8\u09cd (\u09ac\u09be\u0982\u09b2\u09be)",mo:"rom\u00e2n\u0103",moh:"Mohawk",mos:"Mossi",mr:"\u092e\u0930\u093e\u0920\u0940",ms:"Melayu",mt:"Malti",mua:"MUNDA\u014a",mul:"Multiple languages",mus:"Muscogee",mwl:"Mirandese",mwr:"Marwari",my:"\u1019\u103c\u1014\u103a\u1019\u102c",mye:"Myene",myv:"Erzya",mzn:"\u0645\u0627\u0632\u0631\u0648\u0646\u06cc",na:"Nauru",nap:"Neapolitan",naq:"Khoekhoegowab",nb:"norsk bokm\u00e5l",nd:"isiNdebele",nds:"Neddersass\u2019sch", nds_NL:"Neddersass\u2019sch (Nedderlannen)",ne:"\u0928\u0947\u092a\u093e\u0932\u0940","new":"Newari",ng:"Ndonga",nia:"Nias",niu:"Niuean",nl:"Nederlands",nl_BE:"Nederlands (Belgi\u00eb)",nmg:"Kwasio",nn:"norsk nynorsk",nnh:"Shw\u00f3\u014b\u00f2 ngiemb\u0254\u0254n",no:"norsk",nog:"Nogai",non:"Old Norse",nqo:"\u07d2\u07de\u07cf",nr:"South Ndebele",nso:"Sesotho sa Leboa",nus:"Thok Nath",nv:"Navajo",nwc:"Classical Newari",ny:"Nyanja",nym:"Nyamwezi",nyn:"Runyankore",nyo:"Nyoro",nzi:"Nzima",oc:"occitan", oj:"Ojibwa",om:"Oromoo",or:"\u0b13\u0b21\u0b3c\u0b3f\u0b06",os:"\u0438\u0440\u043e\u043d",osa:"Osage",ota:"Ottoman Turkish",pa:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40",pa_Arab:"\u067e\u0646\u062c\u0627\u0628\u06cc (\u0639\u0631\u0628\u06cc)",pa_Guru:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40 (\u0a17\u0a41\u0a30\u0a2e\u0a41\u0a16\u0a40)",pag:"Pangasinan",pal:"Pahlavi",pam:"Pampanga",pap:"Papiamento",pau:"Palauan",pcm:"Naij\u00edri\u00e1 P\u00edjin",peo:"Old Persian",phn:"Phoenician",pi:"Pali",pl:"polski", pon:"Pohnpeian",prg:"pr\u016bsiskan",pro:"Old Proven\u00e7al",ps:"\u067e\u069a\u062a\u0648",pt:"portugu\u00eas",pt_BR:"portugu\u00eas (Brasil)",pt_PT:"portugu\u00eas (Portugal)",qu:"Runasimi",raj:"\u0930\u093e\u091c\u0938\u094d\u0925\u093e\u0928\u0940",rap:"Rapanui",rar:"Rarotongan",rm:"rumantsch",rn:"Ikirundi",ro:"rom\u00e2n\u0103",ro_MD:"rom\u00e2n\u0103 (Republica Moldova)",rof:"Kihorombo",rom:"Romany",ru:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439",rup:"Aromanian",rw:"Ikinyarwanda",rwk:"Kiruwa", sa:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924 \u092d\u093e\u0937\u093e",sad:"Sandawe",sah:"\u0441\u0430\u0445\u0430 \u0442\u044b\u043b\u0430",sam:"Samaritan Aramaic",saq:"Kisampur",sas:"Sasak",sat:"\u1c65\u1c5f\u1c71\u1c5b\u1c5f\u1c72\u1c64",sat_Olck:"\u1c65\u1c5f\u1c71\u1c5b\u1c5f\u1c72\u1c64 (\u1c5a\u1c5e \u1c6a\u1c64\u1c60\u1c64)",sba:"Ngambay",sbp:"Ishisangu",sc:"sardu",scn:"Sicilian",sco:"Scots",sd:"\u0633\u0646\u068c\u064a",sd_Arab:"\u0633\u0646\u068c\u064a (\u0639\u0631\u0628\u064a)",sd_Deva:"\u0938\u093f\u0928\u094d\u0927\u0940 (\u0926\u0947\u0935\u0928\u093e\u0917\u093f\u0930\u0940)", se:"davvis\u00e1megiella",see:"Seneca",seh:"sena",sel:"Selkup",ses:"Koyraboro senni",sg:"S\u00e4ng\u00f6",sga:"Old Irish",sh:"srpskohrvatski",shi:"\u2d5c\u2d30\u2d5b\u2d4d\u2d43\u2d49\u2d5c",shi_Latn:"Tachelhit (Latin)",shi_Tfng:"Tachelhit (Tifinagh)",shn:"Shan",shu:"Chadian Arabic",si:"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd",sid:"Sidamo",sk:"sloven\u010dina",sl:"sloven\u0161\u010dina",sm:"Samoan",sma:"Southern Sami",smj:"Lule Sami",smn:"anar\u00e2\u0161kiel\u00e2",sms:"Skolt Sami",sn:"chiShona",snk:"Soninke", so:"Soomaali",sog:"Sogdien",sq:"shqip",sr:"\u0441\u0440\u043f\u0441\u043a\u0438",sr_Cyrl:"\u0441\u0440\u043f\u0441\u043a\u0438 (\u045b\u0438\u0440\u0438\u043b\u0438\u0446\u0430)",sr_Latn:"srpski (latinica)",srn:"Sranan Tongo",srr:"Serer",ss:"Swati",ssy:"Saho",st:"Sesotho",su:"Basa Sunda",su_Latn:"Basa Sunda (Latin)",suk:"Sukuma",sus:"Susu",sux:"Sumerian",sv:"svenska",sw:"Kiswahili",sw_CD:"Kiswahili (Jamhuri ya Kidemokrasia ya Kongo)",swb:"Comorian",syc:"Classical Syriac",syr:"\u0723\u0718\u072a\u071d\u071d\u0710", szl:"\u015bl\u014dnski",ta:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",te:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",tem:"Timne",teo:"Kiteso",ter:"Tereno",tet:"Tetum",tg:"\u0442\u043e\u04b7\u0438\u043a\u04e3",th:"\u0e44\u0e17\u0e22",ti:"\u1275\u130d\u122d\u129b",tig:"Tigre",tiv:"Tiv",tk:"t\u00fcrkmen dili",tkl:"Tokelau",tl:"Tagalog",tlh:"Klingon",tli:"Tlingit",tmh:"Tamashek",tn:"Setswana",to:"lea fakatonga",tog:"Nyasa Tonga",tok:"toki pona",tpi:"Tok Pisin",tr:"T\u00fcrk\u00e7e",trv:"Taroko",ts:"Tsonga",tsi:"Tsimshian", tt:"\u0442\u0430\u0442\u0430\u0440",tum:"Tumbuka",tvl:"Tuvalu",tw:"Twi",twq:"Tasawaq senni",ty:"Tahitian",tyv:"Tuvinian",tzm:"Tamazi\u0263t n la\u1e6dla\u1e63",udm:"Udmurt",ug:"\u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5",uga:"Ugaritic",uk:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",umb:"Umbundu",ur:"\u0627\u0631\u062f\u0648",uz:"o\u2018zbek",uz_Arab:"\u0627\u0648\u0632\u0628\u06cc\u06a9 (\u0639\u0631\u0628\u06cc)",uz_Cyrl:"\u045e\u0437\u0431\u0435\u043a\u0447\u0430 (\u041a\u0438\u0440\u0438\u043b)", uz_Latn:"o\u2018zbek (lotin)",vai:"\ua559\ua524",vai_Latn:"Vai (Latin)",vai_Vaii:"Vai (Vai)",ve:"Venda",vec:"veneto",vi:"Ti\u1ebfng Vi\u1ec7t",vmw:"emakhuwa",vo:"Volap\u00fck",vot:"Votic",vun:"Kyivunjo",wa:"Walloon",wae:"Walser",wal:"Wolaytta",war:"Waray",was:"Washo",wo:"Wolof",xal:"Kalmyk",xh:"IsiXhosa",xnr:"\u0915\u093e\u0902\u0917\u0921\u093c\u0940",xog:"Olusoga",yao:"Yao",yap:"Yapese",yav:"nuasue",ybb:"Yemba",yi:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",yo:"\u00c8d\u00e8 Yor\u00f9b\u00e1",yrl:"nhe\u1ebdgatu", yue:"\u7cb5\u8a9e",yue_Hans:"\u7ca4\u8bed (\u7b80\u4f53)",yue_Hant:"\u7cb5\u8a9e (\u7e41\u9ad4)",za:"Vahcuengh",zap:"Zapotec",zbl:"Blissymbols",zen:"Zenaga",zgh:"\u2d5c\u2d30\u2d4e\u2d30\u2d63\u2d49\u2d56\u2d5c",zh:"\u4e2d\u6587",zh_Hans:"\u4e2d\u6587\uff08\u7b80\u4f53\uff09",zh_Hant:"\u4e2d\u6587\uff08\u7e41\u9ad4\uff09",zh_TW:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",zu:"isiZulu",zun:"Zuni",zxx:"No linguistic content",zza:"Zaza"}};goog.locale.setLocale=function(a){a=a.replace(/-/g,"_");goog.locale.activeLocale_=a};goog.locale.getLocale=function(){goog.locale.activeLocale_||(goog.locale.activeLocale_="en");return goog.locale.activeLocale_}; goog.locale.Resource={DATE_TIME_CONSTANTS:"DateTimeConstants",NUMBER_FORMAT_CONSTANTS:"NumberFormatConstants",TIME_ZONE_CONSTANTS:"TimeZoneConstants",LOCAL_NAME_CONSTANTS:"LocaleNameConstants",TIME_ZONE_SELECTED_IDS:"TimeZoneSelectedIds",TIME_ZONE_SELECTED_SHORT_NAMES:"TimeZoneSelectedShortNames",TIME_ZONE_SELECTED_LONG_NAMES:"TimeZoneSelectedLongNames",TIME_ZONE_ALL_LONG_NAMES:"TimeZoneAllLongNames"}; goog.locale.getLanguageSubTag=function(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};goog.locale.getRegionSubTag=function(a){return(a=a.match(/[-_]([a-zA-Z]{2}|\d{3})([-_]|$)/))?a[0].replace(/[_-]/g,""):""};goog.locale.getScriptSubTag=function(a){a=a.split(/[-_]/g);return a.length>1&&a[1].match(/^[a-zA-Z]{4}$/)?a[1]:""};goog.locale.getVariantSubTag=function(a){return(a=a.match(/[-_]([a-z]{2,})/))?a[1]:""}; goog.locale.getNativeCountryName=function(a){var b=goog.locale.getLanguageSubTag(a)+"_"+goog.locale.getRegionSubTag(a);return b in goog.locale.nativeNameConstants.COUNTRY?goog.locale.nativeNameConstants.COUNTRY[b]:a};goog.locale.getLocalizedCountryName=function(a,b){var c=goog.locale.getRegionSubTag(a);b=goog.locale.getLocalizedRegionNameFromRegionCode(c,b);return b==c?a:b}; goog.locale.getLocalizedRegionNameFromRegionCode=function(a,b){b||(b=goog.locale.getResource("LocaleNameConstants",goog.locale.getLocale()));return a in b.COUNTRY?b.COUNTRY[a]:a};goog.locale.getNativeLanguageName=function(a){if(a in goog.locale.nativeNameConstants.LANGUAGE)return goog.locale.nativeNameConstants.LANGUAGE[a];var b=goog.locale.getLanguageSubTag(a);return b in goog.locale.nativeNameConstants.LANGUAGE?goog.locale.nativeNameConstants.LANGUAGE[b]:a}; goog.locale.getLocalizedLanguageName=function(a,b){b||(b=goog.locale.getResource("LocaleNameConstants",goog.locale.getLocale()));if(a in b.LANGUAGE)return b.LANGUAGE[a];var c=goog.locale.getLanguageSubTag(a);return c in b.LANGUAGE?b.LANGUAGE[c]:a};goog.locale.registerResource=function(a,b,c){goog.locale.resourceRegistry_[b]||(goog.locale.resourceRegistry_[b]={});goog.locale.resourceRegistry_[b][c]=a;goog.locale.activeLocale_||(goog.locale.activeLocale_=c)}; goog.locale.isResourceRegistered=function(a,b){return a in goog.locale.resourceRegistry_&&b in goog.locale.resourceRegistry_[a]};goog.locale.resourceRegistry_={};goog.locale.registerTimeZoneConstants=function(a,b){goog.locale.registerResource(a,goog.locale.Resource.TIME_ZONE_CONSTANTS,b)};goog.locale.registerLocaleNameConstants=function(a,b){goog.locale.registerResource(a,goog.locale.Resource.LOCAL_NAME_CONSTANTS,b)}; goog.locale.registerTimeZoneSelectedIds=function(a,b){goog.locale.registerResource(a,goog.locale.Resource.TIME_ZONE_SELECTED_IDS,b)};goog.locale.registerTimeZoneSelectedShortNames=function(a,b){goog.locale.registerResource(a,goog.locale.Resource.TIME_ZONE_SELECTED_SHORT_NAMES,b)};goog.locale.registerTimeZoneSelectedLongNames=function(a,b){goog.locale.registerResource(a,goog.locale.Resource.TIME_ZONE_SELECTED_LONG_NAMES,b)}; goog.locale.registerTimeZoneAllLongNames=function(a,b){goog.locale.registerResource(a,goog.locale.Resource.TIME_ZONE_ALL_LONG_NAMES,b)};goog.locale.getResource=function(a,b){b=b?b:goog.locale.getLocale();if(a in goog.locale.resourceRegistry_)return goog.locale.resourceRegistry_[a][b]}; goog.locale.getResourceWithFallback=function(a,b){b=b?b:goog.locale.getLocale();if(a in goog.locale.resourceRegistry_){if(b in goog.locale.resourceRegistry_[a])return goog.locale.resourceRegistry_[a][b];b=b.split("_");return b.length>1&&b[0]in goog.locale.resourceRegistry_[a]?goog.locale.resourceRegistry_[a][b[0]]:goog.locale.resourceRegistry_[a].en}};var module$contents$ocean$util$util_util={getUserLanguage:function(){var a=new goog.Uri(window.location.href);a=a.getParameterValue("hl")||"en";return goog.locale.getLanguageSubTag(a)||"en"},normalizeString:function(a){return goog.userAgent.product.IE?a.toLowerCase():a.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").normalize("NFC")}};ocean.util.util=module$contents$ocean$util$util_util;var module$exports$ocean$util$query={createTree:function(a){var b={};module$exports$ocean$util$query.tokenize(a).forEach(function(c){for(var d=b,e=0;e<c.length;e++){var f=c.charAt(e);f=module$exports$ocean$util$searchRe.isSoftChar(f)?"-":f;d[f]||(d[f]={});d=d[f]}d!=b&&(d.$=module$contents$ocean$util$query_PHRASE_END)});return b},tokenize:function(a){a=module$exports$ocean$util$searchRe.normalizeQuotes(goog.string.collapseWhitespace(module$contents$ocean$util$util_util.normalizeString(a)));var b=module$exports$ocean$util$searchRe.splitPhrases(a); if(!b)return[];a=new Set;b=(0,$jscomp.makeIterator)(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.startsWith('"'))a.add(module$exports$ocean$util$searchRe.trimPhrase(c));else if(!c.startsWith("-")){c=module$exports$ocean$util$searchRe.splitSubTokens(module$exports$ocean$util$searchRe.trimPhrase(c));c=(0,$jscomp.makeIterator)(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.add(d)}a.delete("");return Array.from(a)}},module$contents$ocean$util$query_PHRASE_END={};var module$exports$ocean$util$TextSearch=function(a,b){b=b===void 0?!1:b;this.queryTree_=typeof a==="string"?module$exports$ocean$util$query.createTree(a):a;this.collapse_=b;this.matches_=[]}; module$exports$ocean$util$TextSearch.prototype.search=function(a,b,c,d){c=c===void 0?Infinity:c;d=d===void 0?[]:d;var e=" ",f,g=module$contents$ocean$util$util_util.normalizeString(a);for(f=0;f<g.length&&d.length<c;f++){var h=g.charAt(f);a=module$exports$ocean$util$searchRe.isNormalizedWordBreak(e);if(module$exports$ocean$util$searchRe.isWhitespace(h)){if(h=" ",a)continue}else if(module$exports$ocean$util$searchRe.isSoftChar(h)){if(h="-",a)continue}else a&&this.queryTree_[h]&&this.matches_.push(new module$contents$ocean$util$TextSearch_Match(f, this.queryTree_,b));this.matchChar_(h,f,b,d);e=h}module$exports$ocean$util$searchRe.isNormalizedWordBreak(e)||this.matchChar_(" ",f,b,d);d.length>=c&&(d.length=c);return d}; module$exports$ocean$util$TextSearch.prototype.matchChar_=function(a,b,c,d){for(var e=module$contents$goog$array_peek(d),f=this.matches_,g=f.length-1,h;h=f[g];g--){if(h.nextChar(a,b,c)){var k={startOffset:h.startOffset,startContext:h.startContext,endOffset:h.endOffset,endContext:h.endContext};if(this.collapse_)for(;e&&e.startOffset<=k.endOffset&&k.startOffset<=e.endOffset&&e.startContext===k.startContext;){d.pop();if(e.startOffset<k.startOffset||e.endOffset>k.endOffset)k={startOffset:e.startOffset, startContext:e.startContext,endOffset:k.endOffset,endContext:k.endContext};e=module$contents$goog$array_peek(d)}d.push(k);e=k}h.complete&&module$contents$goog$array_removeAt(f,g)}};module$exports$ocean$util$TextSearch.SearchResult=function(){};var module$contents$ocean$util$TextSearch_Match=function(a,b,c){this.startOffset=a;this.startContext=c;this.endOffset=a;this.endContext=c;this.complete=!1;this.queryTree_=b}; module$contents$ocean$util$TextSearch_Match.prototype.nextChar=function(a,b,c){var d=!1;if(this.queryTree_)if(d=!!this.queryTree_.$,module$exports$ocean$util$searchRe.isNormalizedWordBreak(a)){if(this.queryTree_=this.queryTree_[" "]||this.queryTree_["-"])for(;a=this.queryTree_[" "]||this.queryTree_["-"];)this.queryTree_=a}else this.endOffset=b+1,this.endContext=c,this.queryTree_=this.queryTree_[a]||null;this.complete=!this.queryTree_;return d};function module$contents$ocean$util$search_search(a,b,c,d){c=c===void 0?Infinity:c;d=d===void 0?!1:d;return(new module$exports$ocean$util$TextSearch(b,d)).search(a,void 0,c)}module$contents$ocean$util$search_search.searchUsingQueryTree=function(a,b,c,d){c=c===void 0?Infinity:c;d=d===void 0?!1:d;return(new module$exports$ocean$util$TextSearch(b,d)).search(a,void 0,c)};ocean.patents={};ocean.patents.Highlighter={};function module$contents$ocean$patents$Highlighter_SetEnabled(a){goog.dom.classlist.enable(window.document.body,"patent-highlight-disabled",!a)}function module$contents$ocean$patents$Highlighter_HighlightPage(){var a=goog.uri.utils.getParamValue(window.location.href,"dq")||goog.uri.utils.getParamValue(window.location.href,"q");a&&module$contents$ocean$patents$Highlighter_HighlightPageUsingQuery(a)} function module$contents$ocean$patents$Highlighter_HighlightPageUsingQuery(a){var b=module$exports$ocean$util$query.createTree(a);a=module$contents$ocean$patents$Highlighter_GetTextNodes();Array.prototype.forEach.call(a,function(c){module$contents$ocean$patents$Highlighter_HighlightTextNode(b,c)})} function module$contents$ocean$patents$Highlighter_GetTextNodes(){var a=[],b=module$contents$goog$array_toArray(goog.dom.getElementsByClass("patent-text")),c=goog.dom.getElementByClass("patent-title");for(c&&b.push(c);c=b.pop();)c.nodeType==goog.dom.NodeType.TEXT?a.push(c):module$contents$goog$array_extend(b,c.childNodes);return a} function module$contents$ocean$patents$Highlighter_HighlightTextNode(a,b){var c=goog.dom.getRawTextContent(b);a=module$contents$ocean$util$search_search.searchUsingQueryTree(c,a,void 0,!0);if(a.length){var d=[],e=0;a.forEach(function(f){d.push(c.substring(e,f.startOffset),(0,module$exports$google3$third_party$javascript$safevalues$index.createHtml)("span",{"class":"patent-text-highlight"},c.substring(f.startOffset,f.endOffset)));e=f.endOffset});d.push(c.substring(e));a=goog.dom.createElement("span"); (0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(a,(0,module$exports$google3$third_party$javascript$safevalues$index.concatHtmls)(d));goog.dom.replaceNode(a,b)}}ocean.patents.Highlighter.HighlightPage=module$contents$ocean$patents$Highlighter_HighlightPage;ocean.patents.Highlighter.HighlightPageUsingQuery=module$contents$ocean$patents$Highlighter_HighlightPageUsingQuery;ocean.patents.Highlighter.SetEnabled=module$contents$ocean$patents$Highlighter_SetEnabled;var module$exports$ocean$patents$HighlighterControl=function(){goog.ui.MenuItem.call(this,"Turn off highlighting");module$contents$ocean$patents$Highlighter_HighlightPage();this.enabled_=!0};$jscomp.inherits(module$exports$ocean$patents$HighlighterControl,goog.ui.MenuItem);module$exports$ocean$patents$HighlighterControl.prototype.enterDocument=function(){goog.ui.MenuItem.prototype.enterDocument.call(this);this.getHandler().listen(this,goog.ui.Component.EventType.ACTION,this.toggle_)}; module$exports$ocean$patents$HighlighterControl.prototype.toggle_=function(){this.enabled_=!this.enabled_;module$contents$ocean$patents$Highlighter_SetEnabled(this.enabled_);this.setContent(this.enabled_?"Turn off highlighting":"Turn on highlighting")};goog.ui.INLINE_BLOCK_CLASSNAME="goog-inline-block";goog.ui.ToolbarSeparatorRenderer=function(){};goog.inherits(goog.ui.ToolbarSeparatorRenderer,goog.ui.MenuSeparatorRenderer);goog.addSingletonGetter(goog.ui.ToolbarSeparatorRenderer);goog.ui.ToolbarSeparatorRenderer.CSS_CLASS="goog-toolbar-separator";goog.ui.ToolbarSeparatorRenderer.prototype.createDom=function(a){return a.getDomHelper().createDom(goog.dom.TagName.DIV,this.getClassNames(a).join(" ")+" "+goog.ui.INLINE_BLOCK_CLASSNAME,"\u00a0")}; goog.ui.ToolbarSeparatorRenderer.prototype.decorate=function(a,b){b=goog.ui.ToolbarSeparatorRenderer.superClass_.decorate.call(this,a,b);goog.asserts.assert(b);goog.dom.classlist.add(b,goog.ui.INLINE_BLOCK_CLASSNAME);return b};goog.ui.ToolbarSeparatorRenderer.prototype.getCssClass=function(){return goog.ui.ToolbarSeparatorRenderer.CSS_CLASS};function module$contents$ocean$ui$SeparatorRenderer_SeparatorRenderer(a){this.localStyleClass_=a}goog.inherits(module$contents$ocean$ui$SeparatorRenderer_SeparatorRenderer,goog.ui.ToolbarSeparatorRenderer);module$contents$ocean$ui$SeparatorRenderer_SeparatorRenderer.CSS_CLASS="ocean-chrome-separator";module$contents$ocean$ui$SeparatorRenderer_SeparatorRenderer.instance_={};module$contents$ocean$ui$SeparatorRenderer_SeparatorRenderer.prototype.getCssClass=function(){return this.localStyleClass_||module$contents$ocean$ui$SeparatorRenderer_SeparatorRenderer.CSS_CLASS}; module$contents$ocean$ui$SeparatorRenderer_SeparatorRenderer.getInstance=function(a){return module$contents$ocean$ui$SeparatorRenderer_SeparatorRenderer.instance_[a]||(module$contents$ocean$ui$SeparatorRenderer_SeparatorRenderer.instance_[a]=new module$contents$ocean$ui$SeparatorRenderer_SeparatorRenderer(a))};goog.ui.CustomButtonRenderer=function(){};goog.inherits(goog.ui.CustomButtonRenderer,goog.ui.ButtonRenderer);goog.addSingletonGetter(goog.ui.CustomButtonRenderer);goog.ui.CustomButtonRenderer.CSS_CLASS="goog-custom-button";goog.ui.CustomButtonRenderer.prototype.createDom=function(a){var b=this.getClassNames(a);b=a.getDomHelper().createDom(goog.dom.TagName.DIV,goog.ui.INLINE_BLOCK_CLASSNAME+" "+b.join(" "),this.createButton(a.getContent(),a.getDomHelper()));this.setTooltip(b,a.getTooltip());return b}; goog.ui.CustomButtonRenderer.prototype.getAriaRole=function(){return goog.a11y.aria.Role.BUTTON};goog.ui.CustomButtonRenderer.prototype.getContentElement=function(a){return a&&a.firstChild&&a.firstChild.firstChild};goog.ui.CustomButtonRenderer.prototype.createButton=function(a,b){return b.createDom(goog.dom.TagName.DIV,goog.ui.INLINE_BLOCK_CLASSNAME+" "+(this.getCssClass()+"-outer-box"),b.createDom(goog.dom.TagName.DIV,goog.ui.INLINE_BLOCK_CLASSNAME+" "+(this.getCssClass()+"-inner-box"),a))}; goog.ui.CustomButtonRenderer.prototype.canDecorate=function(a){return a.tagName==goog.dom.TagName.DIV};goog.ui.CustomButtonRenderer.prototype.hasBoxStructure=function(a,b){b=a.getDomHelper().getFirstElementChild(b);var c=this.getCssClass()+"-outer-box";return b&&goog.dom.classlist.contains(b,c)&&(a=a.getDomHelper().getFirstElementChild(b),b=this.getCssClass()+"-inner-box",a&&goog.dom.classlist.contains(a,b))?!0:!1}; goog.ui.CustomButtonRenderer.prototype.decorate=function(a,b){goog.asserts.assert(b);goog.ui.CustomButtonRenderer.trimTextNodes_(b,!0);goog.ui.CustomButtonRenderer.trimTextNodes_(b,!1);this.hasBoxStructure(a,b)||b.appendChild(this.createButton(b.childNodes,a.getDomHelper()));goog.dom.classlist.addAll(b,[goog.ui.INLINE_BLOCK_CLASSNAME,this.getCssClass()]);return goog.ui.CustomButtonRenderer.superClass_.decorate.call(this,a,b)};goog.ui.CustomButtonRenderer.prototype.getCssClass=function(){return goog.ui.CustomButtonRenderer.CSS_CLASS}; goog.ui.CustomButtonRenderer.trimTextNodes_=function(a,b){if(a)for(var c=b?a.firstChild:a.lastChild,d;c&&c.parentNode==a;){d=b?c.nextSibling:c.previousSibling;if(c.nodeType==goog.dom.NodeType.TEXT){var e=c.nodeValue;if(goog.string.trim(e)=="")a.removeChild(c);else{c.nodeValue=b?goog.string.trimLeft(e):goog.string.trimRight(e);break}}else break;c=d}};goog.ui.ToolbarButtonRenderer=function(){};goog.inherits(goog.ui.ToolbarButtonRenderer,goog.ui.CustomButtonRenderer);goog.addSingletonGetter(goog.ui.ToolbarButtonRenderer);goog.ui.ToolbarButtonRenderer.CSS_CLASS="goog-toolbar-button";goog.ui.ToolbarButtonRenderer.prototype.getCssClass=function(){return goog.ui.ToolbarButtonRenderer.CSS_CLASS};function module$contents$ocean$ui$ToolbarButtonRenderer_ToolbarButtonRenderer(a){this.localStyleClass_=a}goog.inherits(module$contents$ocean$ui$ToolbarButtonRenderer_ToolbarButtonRenderer,goog.ui.ToolbarButtonRenderer);module$contents$ocean$ui$ToolbarButtonRenderer_ToolbarButtonRenderer.CSS_CLASS="ocean-chrome-button";module$contents$ocean$ui$ToolbarButtonRenderer_ToolbarButtonRenderer.instance_={}; module$contents$ocean$ui$ToolbarButtonRenderer_ToolbarButtonRenderer.prototype.getCssClass=function(){return this.localStyleClass_||module$contents$ocean$ui$ToolbarButtonRenderer_ToolbarButtonRenderer.CSS_CLASS};module$contents$ocean$ui$ToolbarButtonRenderer_ToolbarButtonRenderer.getInstance=function(a){return module$contents$ocean$ui$ToolbarButtonRenderer_ToolbarButtonRenderer.instance_[a]||(module$contents$ocean$ui$ToolbarButtonRenderer_ToolbarButtonRenderer.instance_[a]=new module$contents$ocean$ui$ToolbarButtonRenderer_ToolbarButtonRenderer(a))};goog.ui.ToolbarRenderer=function(){goog.ui.ContainerRenderer.call(this,goog.a11y.aria.Role.TOOLBAR)};goog.inherits(goog.ui.ToolbarRenderer,goog.ui.ContainerRenderer);goog.addSingletonGetter(goog.ui.ToolbarRenderer);goog.ui.ToolbarRenderer.CSS_CLASS="goog-toolbar"; goog.ui.ToolbarRenderer.prototype.getDecoratorForChild=function(a){return a.tagName==goog.dom.TagName.HR?new goog.ui.Separator(goog.ui.ToolbarSeparatorRenderer.getInstance()):goog.ui.ToolbarRenderer.superClass_.getDecoratorForChild.call(this,a)};goog.ui.ToolbarRenderer.prototype.getCssClass=function(){return goog.ui.ToolbarRenderer.CSS_CLASS};goog.ui.ToolbarRenderer.prototype.getDefaultOrientation=function(){return goog.ui.Container.Orientation.HORIZONTAL};function module$contents$ocean$ui$ToolbarRenderer_ToolbarRenderer(a){goog.ui.ToolbarRenderer.call(this);this.localStyleClass_=a}goog.inherits(module$contents$ocean$ui$ToolbarRenderer_ToolbarRenderer,goog.ui.ToolbarRenderer);module$contents$ocean$ui$ToolbarRenderer_ToolbarRenderer.CSS_CLASS="ocean-chrome-toolbar";module$contents$ocean$ui$ToolbarRenderer_ToolbarRenderer.instance_={}; module$contents$ocean$ui$ToolbarRenderer_ToolbarRenderer.prototype.getCssClass=function(){return this.localStyleClass_||module$contents$ocean$ui$ToolbarRenderer_ToolbarRenderer.CSS_CLASS};module$contents$ocean$ui$ToolbarRenderer_ToolbarRenderer.getInstance=function(a){return module$contents$ocean$ui$ToolbarRenderer_ToolbarRenderer.instance_[a]||(module$contents$ocean$ui$ToolbarRenderer_ToolbarRenderer.instance_[a]=new module$contents$ocean$ui$ToolbarRenderer_ToolbarRenderer(a))};goog.ui.SelectionModel=function(a){goog.events.EventTarget.call(this);this.items_=[];this.addItems(a)};goog.inherits(goog.ui.SelectionModel,goog.events.EventTarget);goog.ui.SelectionModel.prototype.selectedItem_=null;goog.ui.SelectionModel.prototype.selectionHandler_=null;goog.ui.SelectionModel.prototype.setSelectionHandler=function(a){this.selectionHandler_=a};goog.ui.SelectionModel.prototype.getItemCount=function(){return this.items_.length}; goog.ui.SelectionModel.prototype.indexOfItem=function(a){return a?this.items_.indexOf(a):-1};goog.ui.SelectionModel.prototype.getItemAt=function(a){return this.items_[a]||null};goog.ui.SelectionModel.prototype.addItems=function(a){a&&(a.forEach(function(b){this.selectItem_(b,!1)},this),module$contents$goog$array_extend(this.items_,a))};goog.ui.SelectionModel.prototype.addItem=function(a){this.addItemAt(a,this.getItemCount())}; goog.ui.SelectionModel.prototype.addItemAt=function(a,b){a&&(this.selectItem_(a,!1),module$contents$goog$array_insertAt(this.items_,a,b))};goog.ui.SelectionModel.prototype.removeItem=function(a){a&&module$contents$goog$array_remove(this.items_,a)&&a==this.selectedItem_&&(this.selectedItem_=null,this.dispatchEvent(goog.events.EventType.SELECT))};goog.ui.SelectionModel.prototype.getSelectedItem=function(){return this.selectedItem_};goog.ui.SelectionModel.prototype.getItems=function(){return module$contents$goog$array_toArray(this.items_)}; goog.ui.SelectionModel.prototype.setSelectedItem=function(a){a!=this.selectedItem_&&(this.selectItem_(this.selectedItem_,!1),this.selectedItem_=a,this.selectItem_(a,!0));this.dispatchEvent(goog.events.EventType.SELECT)};goog.ui.SelectionModel.prototype.getSelectedIndex=function(){return this.indexOfItem(this.selectedItem_)};goog.ui.SelectionModel.prototype.setSelectedIndex=function(a){this.setSelectedItem(this.getItemAt(a))}; goog.ui.SelectionModel.prototype.clear=function(){module$contents$goog$array_clear(this.items_);this.selectedItem_=null};goog.ui.SelectionModel.prototype.disposeInternal=function(){goog.ui.SelectionModel.superClass_.disposeInternal.call(this);delete this.items_;this.selectedItem_=null};goog.ui.SelectionModel.prototype.selectItem_=function(a,b){a&&(typeof this.selectionHandler_=="function"?this.selectionHandler_(a,b):typeof a.setSelected=="function"&&a.setSelected(b))};goog.ui.Toolbar=function(a,b,c){goog.ui.Container.call(this,b,a||goog.ui.ToolbarRenderer.getInstance(),c)};goog.inherits(goog.ui.Toolbar,goog.ui.Container);goog.ui.Toolbar.prototype.handleFocus=function(a){goog.ui.Toolbar.superClass_.handleFocus.call(this,a);this.mouseButtonPressed_||this.highlightFirst()};goog.ui.ToolbarButton=function(a,b,c){goog.ui.Button.call(this,a,b||goog.ui.ToolbarButtonRenderer.getInstance(),c)};goog.inherits(goog.ui.ToolbarButton,goog.ui.Button);goog.ui.registry.setDecoratorByClassName(goog.ui.ToolbarButtonRenderer.CSS_CLASS,function(){return new goog.ui.ToolbarButton(null)});goog.ui.ToolbarSeparator=function(a,b){goog.ui.Separator.call(this,a||goog.ui.ToolbarSeparatorRenderer.getInstance(),b)};goog.inherits(goog.ui.ToolbarSeparator,goog.ui.Separator);goog.ui.registry.setDecoratorByClassName(goog.ui.ToolbarSeparatorRenderer.CSS_CLASS,function(){return new goog.ui.ToolbarSeparator});var module$contents$ocean$ui$Toolbar_Toolbar=function(a,b){goog.ui.Toolbar.call(this,module$contents$ocean$ui$ToolbarRenderer_ToolbarRenderer.getInstance(a||"viewport-chrome-toolbar"));this.defaultButtonStyle_=b||"viewport-chrome-toolbar-button";this.buttonGroups_={};this.eventHandler_=new goog.events.EventHandler(this)};$jscomp.inherits(module$contents$ocean$ui$Toolbar_Toolbar,goog.ui.Toolbar); module$contents$ocean$ui$Toolbar_Toolbar.prototype.makeButtonToggle=function(a,b,c){a.setSupportedState(goog.ui.Component.State.CHECKED,!0);if(b){var d=this.buttonGroups_[b];d||(d=new goog.ui.SelectionModel,d.setSelectionHandler(function(e,f){e&&e.setChecked(f)}),this.buttonGroups_[b]=d);d.addItem(a);a.setAutoStates(goog.ui.Component.State.CHECKED,!1);goog.events.listen(a,goog.ui.Component.EventType.ACTION,function(e){d.setSelectedItem(e.target)});c&&d.setSelectedItem(a)}else a.setState(goog.ui.Component.State.CHECKED, !!c)};module$contents$ocean$ui$Toolbar_Toolbar.prototype.setSelection=function(a,b){this.buttonGroups_[a]&&this.buttonGroups_[a].setSelectedItem(b)};module$contents$ocean$ui$Toolbar_Toolbar.prototype.addSeparator=function(){var a=new goog.ui.ToolbarSeparator(module$contents$ocean$ui$SeparatorRenderer_SeparatorRenderer.getInstance("top-toolbar-separator"));this.addChild(a,!0);return a}; module$contents$ocean$ui$Toolbar_Toolbar.prototype.createButton_=function(a,b,c,d,e){a=e||goog.dom.createDom(goog.dom.TagName.DIV,{"class":a});d=module$contents$ocean$ui$ToolbarButtonRenderer_ToolbarButtonRenderer.getInstance(d||this.defaultButtonStyle_);d=new goog.ui.ToolbarButton(a,d);c&&d.setTooltip(c);b&&goog.events.listen(d,goog.ui.Component.EventType.ACTION,goog.partial(b,d));return d}; module$contents$ocean$ui$Toolbar_Toolbar.prototype.disposeInternal=function(){goog.ui.Toolbar.prototype.disposeInternal.call(this);this.eventHandler_.dispose();module$contents$goog$object_forEach(this.buttonGroups_,function(a){a.dispose()})};ocean.ui.Toolbar=module$contents$ocean$ui$Toolbar_Toolbar;goog.ui.FlatButtonRenderer=function(){};goog.inherits(goog.ui.FlatButtonRenderer,goog.ui.ButtonRenderer);goog.addSingletonGetter(goog.ui.FlatButtonRenderer);goog.ui.FlatButtonRenderer.CSS_CLASS="goog-flat-button";goog.ui.FlatButtonRenderer.prototype.createDom=function(a){var b=this.getClassNames(a);b=a.getDomHelper().createDom(goog.dom.TagName.DIV,goog.ui.INLINE_BLOCK_CLASSNAME+" "+b.join(" "),a.getContent());this.setTooltip(b,a.getTooltip());return b}; goog.ui.FlatButtonRenderer.prototype.getAriaRole=function(){return goog.a11y.aria.Role.BUTTON};goog.ui.FlatButtonRenderer.prototype.canDecorate=function(a){return a.tagName==goog.dom.TagName.DIV};goog.ui.FlatButtonRenderer.prototype.decorate=function(a,b){goog.asserts.assert(b);goog.dom.classlist.add(b,goog.ui.INLINE_BLOCK_CLASSNAME);return goog.ui.FlatButtonRenderer.superClass_.decorate.call(this,a,b)};goog.ui.FlatButtonRenderer.prototype.getValue=function(){return""}; goog.ui.FlatButtonRenderer.prototype.getCssClass=function(){return goog.ui.FlatButtonRenderer.CSS_CLASS};goog.ui.registry.setDecoratorByClassName(goog.ui.FlatButtonRenderer.CSS_CLASS,function(){return new goog.ui.Button(null,goog.ui.FlatButtonRenderer.getInstance())});goog.ui.MenuButtonRenderer=function(){};goog.inherits(goog.ui.MenuButtonRenderer,goog.ui.CustomButtonRenderer);goog.addSingletonGetter(goog.ui.MenuButtonRenderer);goog.ui.MenuButtonRenderer.CSS_CLASS="goog-menu-button";goog.ui.MenuButtonRenderer.prototype.getContentElement=function(a){return goog.ui.MenuButtonRenderer.superClass_.getContentElement.call(this,a&&a.firstChild)}; goog.ui.MenuButtonRenderer.prototype.decorate=function(a,b){var c=goog.dom.getElementsByTagNameAndClass("*",goog.ui.MenuRenderer.CSS_CLASS,b)[0];if(c){goog.style.setElementShown(c,!1);goog.dom.appendChild(goog.dom.getOwnerDocument(c).body,c);var d=new goog.ui.Menu;d.decorate(c);a.setMenu(d)}return goog.ui.MenuButtonRenderer.superClass_.decorate.call(this,a,b)}; goog.ui.MenuButtonRenderer.prototype.createButton=function(a,b){return goog.ui.MenuButtonRenderer.superClass_.createButton.call(this,[this.createCaption(a,b),this.createDropdown(b)],b)};goog.ui.MenuButtonRenderer.prototype.createCaption=function(a,b){return goog.ui.MenuButtonRenderer.wrapCaption(a,this.getCssClass(),b)};goog.ui.MenuButtonRenderer.wrapCaption=function(a,b,c){return c.createDom(goog.dom.TagName.DIV,goog.ui.INLINE_BLOCK_CLASSNAME+" "+(b+"-caption"),a)}; goog.ui.MenuButtonRenderer.prototype.createDropdown=function(a){return a.createDom(goog.dom.TagName.DIV,goog.ui.INLINE_BLOCK_CLASSNAME+" "+(this.getCssClass()+"-dropdown"),"\u00a0")};goog.ui.MenuButtonRenderer.prototype.getCssClass=function(){return goog.ui.MenuButtonRenderer.CSS_CLASS};goog.ui.SubMenuRenderer=function(){goog.ui.MenuItemRenderer.call(this)};goog.inherits(goog.ui.SubMenuRenderer,goog.ui.MenuItemRenderer);goog.addSingletonGetter(goog.ui.SubMenuRenderer);goog.ui.SubMenuRenderer.CSS_CLASS="goog-submenu";goog.ui.SubMenuRenderer.CSS_CLASS_SUBMENU_="goog-submenu-arrow"; goog.ui.SubMenuRenderer.prototype.createDom=function(a){var b=goog.ui.SubMenuRenderer.superClass_.createDom.call(this,a);goog.asserts.assert(b);goog.dom.classlist.add(b,goog.ui.SubMenuRenderer.CSS_CLASS);this.addArrow_(a,b);return b}; goog.ui.SubMenuRenderer.prototype.decorate=function(a,b){b=goog.ui.SubMenuRenderer.superClass_.decorate.call(this,a,b);goog.asserts.assert(b);goog.dom.classlist.add(b,goog.ui.SubMenuRenderer.CSS_CLASS);this.addArrow_(a,b);var c=goog.dom.getElementsByTagNameAndClass(goog.dom.TagName.DIV,"goog-menu",b);if(c.length){var d=new goog.ui.Menu(a.getDomHelper());c=c[0];goog.style.setElementShown(c,!1);a.getDomHelper().getDocument().body.appendChild(c);d.decorate(c);a.setMenu(d,!0)}return b}; goog.ui.SubMenuRenderer.prototype.setContent=function(a,b){var c=this.getContentElement(a),d=c&&c.lastChild;goog.ui.SubMenuRenderer.superClass_.setContent.call(this,a,b);d&&c.lastChild!=d&&goog.dom.classlist.contains(d,goog.ui.SubMenuRenderer.CSS_CLASS_SUBMENU_)&&c.appendChild(d)}; goog.ui.SubMenuRenderer.prototype.initializeDom=function(a){goog.ui.SubMenuRenderer.superClass_.initializeDom.call(this,a);var b=a.getContentElement(),c=a.getDomHelper().getElementsByTagNameAndClass(goog.dom.TagName.SPAN,goog.ui.SubMenuRenderer.CSS_CLASS_SUBMENU_,b)[0];goog.ui.SubMenuRenderer.setArrowTextContent_(a,c);c!=b.lastChild&&b.appendChild(c);a=a.getElement();goog.asserts.assert(a,"The sub menu DOM element cannot be null.");goog.a11y.aria.setState(a,goog.a11y.aria.State.HASPOPUP,"true")}; goog.ui.SubMenuRenderer.prototype.addArrow_=function(a,b){var c=a.getDomHelper().createDom(goog.dom.TagName.SPAN);c.className=goog.ui.SubMenuRenderer.CSS_CLASS_SUBMENU_;goog.ui.SubMenuRenderer.setArrowTextContent_(a,c);this.getContentElement(b).appendChild(c)};goog.ui.SubMenuRenderer.LEFT_ARROW_="\u25c4";goog.ui.SubMenuRenderer.RIGHT_ARROW_="\u25ba"; goog.ui.SubMenuRenderer.setArrowTextContent_=function(a,b){var c=goog.ui.SubMenuRenderer.LEFT_ARROW_,d=goog.ui.SubMenuRenderer.RIGHT_ARROW_;goog.asserts.assert(b);a.isRightToLeft()?(goog.dom.classlist.add(b,"goog-submenu-arrow-rtl"),goog.dom.setTextContent(b,a.alignToEnd_?c:d)):(goog.dom.classlist.remove(b,"goog-submenu-arrow-rtl"),goog.dom.setTextContent(b,a.alignToEnd_?d:c))};goog.ui.SubMenu=function(a,b,c,d){goog.ui.MenuItem.call(this,a,b,c,d||goog.ui.SubMenuRenderer.getInstance())};goog.inherits(goog.ui.SubMenu,goog.ui.MenuItem);goog.ui.SubMenu.MENU_DELAY_MS=218;goog.ui.SubMenu.prototype.dismissTimer_=null;goog.ui.SubMenu.prototype.showTimer_=null;goog.ui.SubMenu.prototype.menuIsVisible_=!1;goog.ui.SubMenu.prototype.subMenu_=null;goog.ui.SubMenu.prototype.externalSubMenu_=!1;goog.ui.SubMenu.prototype.alignToEnd_=!0;goog.ui.SubMenu.prototype.isPositionAdjustable_=!1; goog.ui.SubMenu.prototype.enterDocument=function(){goog.ui.SubMenu.superClass_.enterDocument.call(this);this.getHandler().listen(this.getParent(),goog.ui.Component.EventType.HIDE,this.onParentHidden_);this.subMenu_&&this.setMenuListenersEnabled_(this.subMenu_,!0)}; goog.ui.SubMenu.prototype.exitDocument=function(){this.getHandler().unlisten(this.getParent(),goog.ui.Component.EventType.HIDE,this.onParentHidden_);this.subMenu_&&(this.setMenuListenersEnabled_(this.subMenu_,!1),this.externalSubMenu_||(this.subMenu_.exitDocument(),goog.dom.removeNode(this.subMenu_.getElement())));goog.ui.SubMenu.superClass_.exitDocument.call(this)}; goog.ui.SubMenu.prototype.disposeInternal=function(){this.subMenu_&&!this.externalSubMenu_&&this.subMenu_.dispose();this.subMenu_=null;goog.ui.SubMenu.superClass_.disposeInternal.call(this)};goog.ui.SubMenu.prototype.setHighlighted=function(a,b){goog.ui.SubMenu.superClass_.setHighlighted.call(this,a);b&&this.getMenu().setMouseButtonPressed(!0);a||(this.dismissTimer_&&goog.Timer.clear(this.dismissTimer_),this.dismissTimer_=goog.Timer.callOnce(this.dismissSubMenu,this.getMenuDelay(),this))}; goog.ui.SubMenu.prototype.showSubMenu=function(){var a=this.getParent();a&&a.getHighlighted()==this&&(this.setSubMenuVisible_(!0),this.dismissSiblings_())};goog.ui.SubMenu.prototype.dismissSubMenu=function(){var a=this.subMenu_;a&&a.getParent()==this&&(this.setSubMenuVisible_(!1),a.forEachChild(function(b){typeof b.dismissSubMenu=="function"&&b.dismissSubMenu()}))};goog.ui.SubMenu.prototype.clearTimers=function(){this.dismissTimer_&&goog.Timer.clear(this.dismissTimer_);this.showTimer_&&goog.Timer.clear(this.showTimer_)}; goog.ui.SubMenu.prototype.setVisible=function(a,b){(a=goog.ui.SubMenu.superClass_.setVisible.call(this,a,b))&&!this.isVisible()&&this.dismissSubMenu();return a};goog.ui.SubMenu.prototype.dismissSiblings_=function(){this.getParent().forEachChild(function(a){a!=this&&typeof a.dismissSubMenu=="function"&&(a.dismissSubMenu(),a.clearTimers())},this)}; goog.ui.SubMenu.prototype.handleKeyEvent=function(a){var b=a.keyCode,c=this.isRightToLeft()?goog.events.KeyCodes.LEFT:goog.events.KeyCodes.RIGHT,d=this.isRightToLeft()?goog.events.KeyCodes.RIGHT:goog.events.KeyCodes.LEFT;if(!this.menuIsVisible_){if(!this.isEnabled()||b!=c&&b!=goog.events.KeyCodes.ENTER&&b!=this.mnemonicKey_)return!1;this.showSubMenu();this.getMenu().highlightFirst();this.clearTimers()}else if(!this.getMenu().handleKeyEvent(a))if(b==d)this.dismissSubMenu();else return!1;a.preventDefault(); return!0};goog.ui.SubMenu.prototype.onChildEnter_=function(){this.subMenu_.getParent()==this&&(this.clearTimers(),this.getParentEventTarget().setHighlighted(this),this.dismissSiblings_())};goog.ui.SubMenu.prototype.onParentHidden_=function(a){a.target==this.getParentEventTarget()&&(this.dismissSubMenu(),this.clearTimers())}; goog.ui.SubMenu.prototype.handleMouseOver=function(a){this.isEnabled()&&(this.clearTimers(),this.showTimer_=goog.Timer.callOnce(this.showSubMenu,this.getMenuDelay(),this));goog.ui.SubMenu.superClass_.handleMouseOver.call(this,a)};goog.ui.SubMenu.prototype.getMenuDelay=function(){return goog.ui.SubMenu.MENU_DELAY_MS}; goog.ui.SubMenu.prototype.performActionInternal=function(a){this.clearTimers();var b=this.isSupportedState(goog.ui.Component.State.SELECTED)||this.isSupportedState(goog.ui.Component.State.CHECKED);if(b)return goog.ui.SubMenu.superClass_.performActionInternal.call(this,a);this.showSubMenu();return!0}; goog.ui.SubMenu.prototype.setSubMenuVisible_=function(a){!a&&this.getMenu()&&this.getMenu().setHighlightedIndex(-1);this.dispatchEvent(goog.ui.Component.getStateTransitionEvent(goog.ui.Component.State.OPENED,a));var b=this.getMenu();a!=this.menuIsVisible_&&goog.dom.classlist.enable(goog.asserts.assert(this.getElement()),"goog-submenu-open",a);a!=b.isVisible()&&(a&&(b.isInDocument()||b.render(),b.setHighlightedIndex(-1)),b.setVisible(a),a&&this.positionSubMenu());this.menuIsVisible_=a}; goog.ui.SubMenu.prototype.setMenuListenersEnabled_=function(a,b){var c=this.getHandler();b=b?c.listen:c.unlisten;b.call(c,a,goog.ui.Component.EventType.ENTER,this.onChildEnter_)}; goog.ui.SubMenu.prototype.positionSubMenu=function(){var a=new goog.positioning.AnchoredViewportPosition(this.getElement(),this.alignToEnd_?goog.positioning.Corner.TOP_END:goog.positioning.Corner.TOP_START,this.isPositionAdjustable_),b=this.getMenu(),c=b.getElement();b.isVisible()||(c.style.visibility="hidden",goog.style.setElementShown(c,!0));a.reposition(c,this.alignToEnd_?goog.positioning.Corner.TOP_START:goog.positioning.Corner.TOP_END);b.isVisible()||(goog.style.setElementShown(c,!1),c.style.visibility= "visible")};goog.ui.SubMenu.prototype.addItem=function(a){this.getMenu().addChild(a,!0)};goog.ui.SubMenu.prototype.addItemAt=function(a,b){this.getMenu().addChildAt(a,b,!0)};goog.ui.SubMenu.prototype.removeItem=function(a){(a=this.getMenu().removeChild(a,!0))&&a.dispose()};goog.ui.SubMenu.prototype.getItemAt=function(a){return this.getMenu().getChildAt(a)};goog.ui.SubMenu.prototype.getItemCount=function(){return this.getMenu().getChildCount()};goog.ui.SubMenu.prototype.getItems=function(){return this.getMenu().getItems()}; goog.ui.SubMenu.prototype.getMenu=function(){this.subMenu_?this.externalSubMenu_&&this.subMenu_.getParent()!=this&&this.subMenu_.setParent(this):this.setMenu(new goog.ui.Menu(this.getDomHelper()),!0);this.subMenu_.getElement()||this.subMenu_.createDom();return this.subMenu_}; goog.ui.SubMenu.prototype.setMenu=function(a,b){var c=this.subMenu_;a!=c&&(c&&(this.dismissSubMenu(),this.isInDocument()&&this.setMenuListenersEnabled_(c,!1)),this.subMenu_=a,this.externalSubMenu_=!b,a&&(a.setParent(this),a.setVisible(!1,!0),a.setAllowAutoFocus(!1),a.setFocusable(!1),this.isInDocument()&&this.setMenuListenersEnabled_(a,!0)))};goog.ui.SubMenu.prototype.containsElement=function(a){return this.getMenu().containsElement(a)};goog.ui.registry.setDecoratorByClassName("goog-submenu",function(){return new goog.ui.SubMenu(null)});goog.ui.MenuButton=function(a,b,c,d,e){goog.ui.Button.call(this,a,c||goog.ui.MenuButtonRenderer.getInstance(),d);this.setSupportedState(goog.ui.Component.State.OPENED,!0);this.menuPosition_=new goog.positioning.MenuAnchoredPosition(null,goog.positioning.Corner.BOTTOM_START);b&&this.setMenu(b);this.menuMargin_=null;this.timer_=new goog.Timer(500);this.closeOnEnterOrSpace_=!0;this.menuRenderer_=e||goog.ui.MenuRenderer.getInstance()};goog.inherits(goog.ui.MenuButton,goog.ui.Button); goog.ui.MenuButton.prototype.isFocusablePopupMenu_=!1;goog.ui.MenuButton.prototype.renderMenuAsSibling_=!1;goog.ui.MenuButton.prototype.selectFirstOnEnterOrSpace_=!1;goog.ui.MenuButton.prototype.enterDocument=function(){goog.ui.MenuButton.superClass_.enterDocument.call(this);this.attachKeyDownEventListener_(!0);this.menu_&&this.attachMenuEventListeners_(this.menu_,!0);goog.a11y.aria.setState(this.getElementStrict(),goog.a11y.aria.State.HASPOPUP,!!this.menu_)}; goog.ui.MenuButton.prototype.exitDocument=function(){goog.ui.MenuButton.superClass_.exitDocument.call(this);this.attachKeyDownEventListener_(!1);if(this.menu_){this.setOpen(!1);this.menu_.exitDocument();this.attachMenuEventListeners_(this.menu_,!1);var a=this.menu_.getElement();a&&goog.dom.removeNode(a)}}; goog.ui.MenuButton.prototype.disposeInternal=function(){goog.ui.MenuButton.superClass_.disposeInternal.call(this);this.menu_&&(this.menu_.dispose(),delete this.menu_);delete this.positionElement_;this.timer_.dispose()};goog.ui.MenuButton.prototype.handleMouseDown=function(a){goog.ui.MenuButton.superClass_.handleMouseDown.call(this,a);this.isActive()&&(this.setOpen(!this.isOpen(),a),this.menu_&&this.menu_.setMouseButtonPressed(this.isOpen()))}; goog.ui.MenuButton.prototype.handleMouseUp=function(a){goog.ui.MenuButton.superClass_.handleMouseUp.call(this,a);this.menu_&&!this.isActive()&&this.menu_.setMouseButtonPressed(!1)};goog.ui.MenuButton.prototype.performActionInternal=function(){this.setActive(!1);return!0};goog.ui.MenuButton.prototype.handleDocumentMouseDown=function(a){this.menu_&&this.menu_.isVisible()&&!this.containsElement(a.target)&&this.setOpen(!1)}; goog.ui.MenuButton.prototype.containsElement=function(a){return a&&goog.dom.contains(this.getElement(),a)||this.menu_&&this.menu_.containsElement(a)||!1}; goog.ui.MenuButton.prototype.handleKeyEventInternal=function(a){if(a.keyCode==goog.events.KeyCodes.SPACE){if(a.preventDefault(),a.type!=goog.events.EventType.KEYUP)return!0}else if(a.type!=goog.events.KeyEvent.EventType.KEY)return!1;if(this.menu_&&this.menu_.isVisible()){var b=a.keyCode==goog.events.KeyCodes.ENTER||a.keyCode==goog.events.KeyCodes.SPACE,c=this.menu_.handleKeyEvent(a),d=c&&this.menu_&&this.menu_.openItem_ instanceof goog.ui.SubMenu;return!d&&(a.keyCode==goog.events.KeyCodes.ESC||b&& this.closeOnEnterOrSpace_)?(this.setOpen(!1),!0):c}return a.keyCode==goog.events.KeyCodes.DOWN||a.keyCode==goog.events.KeyCodes.UP||a.keyCode==goog.events.KeyCodes.SPACE||a.keyCode==goog.events.KeyCodes.ENTER?(this.setOpen(!0,a),!0):!1};goog.ui.MenuButton.prototype.handleMenuAction=function(){this.setOpen(!1)};goog.ui.MenuButton.prototype.handleMenuBlur=function(){this.isActive()||this.setOpen(!1)}; goog.ui.MenuButton.prototype.handleBlur=function(a){this.isFocusablePopupMenu_||this.setOpen(!1);goog.ui.MenuButton.superClass_.handleBlur.call(this,a)};goog.ui.MenuButton.prototype.getMenu=function(){this.menu_||this.setMenu(new goog.ui.Menu(this.getDomHelper(),this.menuRenderer_));return this.menu_||null}; goog.ui.MenuButton.prototype.setMenu=function(a){var b=this.menu_;a!=b&&(b&&(this.setOpen(!1),this.isInDocument()&&this.attachMenuEventListeners_(b,!1),delete this.menu_),this.isInDocument()&&goog.a11y.aria.setState(this.getElementStrict(),goog.a11y.aria.State.HASPOPUP,!!a),a&&(this.menu_=a,a.setParent(this),a.setVisible(!1),a.setAllowAutoFocus(this.isFocusablePopupMenu_),this.isInDocument()&&this.attachMenuEventListeners_(a,!0)));return b}; goog.ui.MenuButton.prototype.addItem=function(a){this.getMenu().addChild(a,!0)};goog.ui.MenuButton.prototype.addItemAt=function(a,b){this.getMenu().addChildAt(a,b,!0)};goog.ui.MenuButton.prototype.removeItem=function(a){(a=this.getMenu().removeChild(a,!0))&&a.dispose()};goog.ui.MenuButton.prototype.getItemAt=function(a){return this.menu_?this.menu_.getChildAt(a):null};goog.ui.MenuButton.prototype.getItemCount=function(){return this.menu_?this.menu_.getChildCount():0}; goog.ui.MenuButton.prototype.setVisible=function(a,b){(a=goog.ui.MenuButton.superClass_.setVisible.call(this,a,b))&&!this.isVisible()&&this.setOpen(!1);return a};goog.ui.MenuButton.prototype.setEnabled=function(a){goog.ui.MenuButton.superClass_.setEnabled.call(this,a);this.isEnabled()||this.setOpen(!1)};goog.ui.MenuButton.prototype.isScrollOnOverflow=function(){return this.menuPosition_.getLastResortOverflow&&!!(this.menuPosition_.lastResortOverflow_&goog.positioning.Overflow.RESIZE_HEIGHT)}; goog.ui.MenuButton.prototype.showMenu=function(){this.setOpen(!0)}; goog.ui.MenuButton.prototype.setOpen=function(a,b){goog.ui.MenuButton.superClass_.setOpen.call(this,a);if(this.menu_&&this.hasState(goog.ui.Component.State.OPENED)==a){if(a){if(!this.menu_.isInDocument())if(this.renderMenuAsSibling_){var c=goog.dom.getNextElementSibling(this.getElement());c?this.menu_.renderBefore(c):this.menu_.render(this.getElement().parentNode)}else this.menu_.render();this.viewportBox_=goog.style.getVisibleRectForElement(this.getElement());this.buttonRect_=goog.style.getBounds(this.getElement()); this.positionMenu();c=!!b&&(b.keyCode==goog.events.KeyCodes.ENTER||b.keyCode==goog.events.KeyCodes.SPACE);var d=!!b&&(b.keyCode==goog.events.KeyCodes.DOWN||b.keyCode==goog.events.KeyCodes.UP);(c=d||c&&this.selectFirstOnEnterOrSpace_)?this.menu_.highlightFirst():this.menu_.setHighlightedIndex(-1)}else{this.setActive(!1);this.menu_.setMouseButtonPressed(!1);if(c=this.getElement())goog.a11y.aria.setState(c,goog.a11y.aria.State.ACTIVEDESCENDANT,""),goog.a11y.aria.setState(c,goog.a11y.aria.State.OWNS, "");this.originalSize_!=null&&(this.originalSize_=void 0,(c=this.menu_.getElement())&&goog.style.setSize(c,"",""))}this.menu_.setVisible(a,!1,b);this.isDisposed()||this.attachPopupListeners_(a)}this.menu_&&this.menu_.getElement()&&goog.a11y.aria.removeState(this.menu_.getElementStrict(),goog.a11y.aria.State.HIDDEN)}; goog.ui.MenuButton.prototype.positionMenu=function(){if(this.menu_.isInDocument()){var a=this.positionElement_||this.getElement(),b=this.menuPosition_;this.menuPosition_.element=a;a=this.menu_.getElement();this.menu_.isVisible()||(a.style.visibility="hidden",goog.style.setElementShown(a,!0));!this.originalSize_&&this.isScrollOnOverflow()&&(this.originalSize_=goog.style.getSize(a));var c=goog.positioning.flipCornerVertical(b.corner);b.reposition(a,c,this.menuMargin_,this.originalSize_);this.menu_.isVisible()|| (goog.style.setElementShown(a,!1),a.style.visibility="visible")}}; goog.ui.MenuButton.prototype.onTick_=function(){var a=goog.style.getBounds(this.getElement()),b=goog.style.getVisibleRectForElement(this.getElement());if(!goog.math.Rect.equals(this.buttonRect_,a)||!goog.math.Box.equals(this.viewportBox_,b)){if(this.menu_.isInDocument()&&b&&this.viewportBox_&&b.getWidth()<this.viewportBox_.getWidth()){var c=this.menu_.getElement();this.menu_.isVisible()||(c.style.visibility="hidden",goog.style.setElementShown(c,!0));goog.style.setPosition(c,new goog.math.Coordinate(0, 0))}this.buttonRect_=a;this.viewportBox_=b;this.positionMenu()}};goog.ui.MenuButton.prototype.attachMenuEventListeners_=function(a,b){var c=this.getHandler();b=b?c.listen:c.unlisten;b.call(c,a,goog.ui.Component.EventType.ACTION,this.handleMenuAction);b.call(c,a,goog.ui.Component.EventType.CLOSE,this.handleCloseItem);b.call(c,a,goog.ui.Component.EventType.HIGHLIGHT,this.handleHighlightItem);b.call(c,a,goog.ui.Component.EventType.UNHIGHLIGHT,this.handleUnHighlightItem)}; goog.ui.MenuButton.prototype.attachKeyDownEventListener_=function(a){var b=this.getHandler();a=a?b.listen:b.unlisten;a.call(b,this.getElement(),goog.events.EventType.KEYDOWN,this.handleKeyDownEvent_)};goog.ui.MenuButton.prototype.handleHighlightItem=function(a){(a=a.target.getElement())&&this.setAriaActiveDescendant_(a)}; goog.ui.MenuButton.prototype.handleKeyDownEvent_=function(a){this.isSupportedState(goog.ui.Component.State.FOCUSED)&&this.getKeyEventTarget()&&this.menu_&&this.menu_.isVisible()&&a.stopPropagation()}; goog.ui.MenuButton.prototype.handleUnHighlightItem=function(){if(!this.menu_.getHighlighted()){var a=this.getElement();goog.asserts.assert(a,"The menu button DOM element cannot be null.");goog.a11y.aria.setState(a,goog.a11y.aria.State.ACTIVEDESCENDANT,"");goog.a11y.aria.setState(a,goog.a11y.aria.State.OWNS,"")}}; goog.ui.MenuButton.prototype.handleCloseItem=function(a){if(this.isOpen()&&a.target instanceof goog.ui.MenuItem){a=a.target;var b=a.getElement();a.isVisible()&&a.isHighlighted()&&b!=null&&this.setAriaActiveDescendant_(b)}}; goog.ui.MenuButton.prototype.setAriaActiveDescendant_=function(a){var b=this.getElement();goog.asserts.assert(b,"The menu button DOM element cannot be null.");var c=goog.a11y.aria.getActiveDescendant(a);a=c||a;a.id||(c=goog.ui.IdGenerator.getInstance(),a.id=c.getNextUniqueId());goog.a11y.aria.setActiveDescendant(b,a);goog.a11y.aria.setState(b,goog.a11y.aria.State.OWNS,a.id)}; goog.ui.MenuButton.prototype.attachPopupListeners_=function(a){var b=this.getHandler(),c=a?b.listen:b.unlisten;c.call(b,this.getDomHelper().getDocument(),goog.events.EventType.MOUSEDOWN,this.handleDocumentMouseDown,!0);this.isFocusablePopupMenu_&&c.call(b,this.menu_,goog.ui.Component.EventType.BLUR,this.handleMenuBlur);c.call(b,this.timer_,goog.Timer.TICK,this.onTick_);a?this.timer_.start():this.timer_.stop()};goog.ui.registry.setDecoratorByClassName(goog.ui.MenuButtonRenderer.CSS_CLASS,function(){return new goog.ui.MenuButton(null)});goog.ui.FlatMenuButtonRenderer=function(){};goog.inherits(goog.ui.FlatMenuButtonRenderer,goog.ui.FlatButtonRenderer);goog.addSingletonGetter(goog.ui.FlatMenuButtonRenderer);goog.ui.FlatMenuButtonRenderer.CSS_CLASS="goog-flat-menu-button"; goog.ui.FlatMenuButtonRenderer.prototype.createDom=function(a){var b=this.getClassNames(a);b=a.getDomHelper().createDom(goog.dom.TagName.DIV,goog.ui.INLINE_BLOCK_CLASSNAME+" "+b.join(" "),[this.createCaption(a.getContent(),a.getDomHelper()),this.createDropdown(a.getDomHelper())]);this.setTooltip(b,a.getTooltip());return b};goog.ui.FlatMenuButtonRenderer.prototype.getContentElement=function(a){return a&&a.firstChild}; goog.ui.FlatMenuButtonRenderer.prototype.decorate=function(a,b){var c=goog.dom.getElementsByTagNameAndClass("*",goog.ui.MenuRenderer.CSS_CLASS,b)[0];if(c){goog.style.setElementShown(c,!1);a.getDomHelper().getDocument().body.appendChild(c);var d=new goog.ui.Menu;d.decorate(c);a.setMenu(d)}(c=goog.dom.getElementsByTagNameAndClass("*",this.getCssClass()+"-caption",b)[0])||b.appendChild(this.createCaption(b.childNodes,a.getDomHelper()));(c=goog.dom.getElementsByTagNameAndClass("*",this.getCssClass()+ "-dropdown",b)[0])||b.appendChild(this.createDropdown(a.getDomHelper()));return goog.ui.FlatMenuButtonRenderer.superClass_.decorate.call(this,a,b)};goog.ui.FlatMenuButtonRenderer.prototype.createCaption=function(a,b){return b.createDom(goog.dom.TagName.DIV,goog.ui.INLINE_BLOCK_CLASSNAME+" "+(this.getCssClass()+"-caption"),a)}; goog.ui.FlatMenuButtonRenderer.prototype.createDropdown=function(a){return a.createDom(goog.dom.TagName.DIV,{"class":goog.ui.INLINE_BLOCK_CLASSNAME+" "+(this.getCssClass()+"-dropdown"),"aria-hidden":!0},"\u00a0")};goog.ui.FlatMenuButtonRenderer.prototype.getCssClass=function(){return goog.ui.FlatMenuButtonRenderer.CSS_CLASS};goog.ui.registry.setDecoratorByClassName(goog.ui.FlatMenuButtonRenderer.CSS_CLASS,function(){return new goog.ui.MenuButton(null,null,goog.ui.FlatMenuButtonRenderer.getInstance())});var module$exports$ocean$books$AppBar=function(a){module$contents$ocean$ui$Toolbar_Toolbar.call(this);this.viewer_=a.viewer;this.fullscreen_=a.fullscreen;this.history_=a.history;this.volumeInfo_=a.volumeInfo;this.userInfo_=a.userInfo;this.flags_=a.flags;this.clippingCallback_=a.clippingCallback;this.isPatentPage_=ocean.util.Url.getFirstPathComponent()=="patents";a.isLeftBar||(this.maybeAddPatentsPriorArtFinderButton_(),this.maybeAddPatentsDiscussThisButton_(),this.viewer_||this.maybeAddReadPatentButton_()); this.viewer_&&(this.otherView_=!!a.showTwoPageViewport||!!a.showThumbnailViewport,a.isLeftBar&&this.maybeAddZoomButtons_(),this.maybeAddViewportButtons_(!!a.showTwoPageViewport,!!a.showThumbnailViewport),this.maybeAddFullscreenButton_(),this.maybeAddClipButton_(),a.showLinkButton&&this.addLinkButton_(),a.showPaginationButtons&&(this.maybeAddContentsButton_(),this.addPaginationButtons_()));a.showSampleButton&&this.maybeAddSampleButton_();this.flags_&&!this.flags_.is_cobrand&&this.maybeAddMyLibraryButton_(); a.isLeftBar?(this.maybeAddWriteReviewButton_(),this.maybeAddPatentButtons_("appbar-application-grant-link",module$exports$ocean$books$AppBar.APPLICATION_GRANT_BTN_GROUP_),this.maybeAddPatentButtons_("appbar-content-language-link",module$exports$ocean$books$AppBar.CONTENT_LANGUAGE_BTN_GROUP_)):this.maybeAddDownloadPdfButton_();a.showGearsMenu&&this.addGearsMenu_()};$jscomp.inherits(module$exports$ocean$books$AppBar,module$contents$ocean$ui$Toolbar_Toolbar); module$exports$ocean$books$AppBar.create=function(a){var b=goog.dom.getElement("left-toolbar-buttons"),c=goog.dom.getElement("right-toolbar-buttons"),d={viewer:a.viewer,fullscreen:a.fullscreen,history:a.history,showTwoPageViewport:a.showTwoPageViewport,showThumbnailViewport:a.showThumbnailViewport,volumeInfo:a.volumeInfo,userInfo:a.userInfo,flags:a.flags,clippingCallback:a.clippingCallback,showLinkButton:a.showLinkButton,isLeftBar:!0,showSampleButton:a.showSampleButton};d=new module$exports$ocean$books$AppBar(d); d.render(b);a={viewer:a.viewer,showPaginationButtons:a.showPaginationButtons,showGearsMenu:!0};a=new module$exports$ocean$books$AppBar(a);a.render(c)};module$exports$ocean$books$AppBar.prototype.toggleFullscreen_=function(){this.fullscreen_.toggle();this.history_.update()};module$exports$ocean$books$AppBar.prototype.handleFullscreenChange_=function(){this.fullScreenButton_.setState(goog.ui.Component.State.CHECKED,this.fullscreen_.fullscreen_)}; module$exports$ocean$books$AppBar.prototype.maybeAddFullscreenButton_=function(){if(!this.fullscreen_)return!1;var a=jfk.Button.createIconContent("/googlebooks/images/kennedy/maximize.png");this.fullScreenButton_=new jfk.Button(a,void 0,void 0,jfk.Button.Width.NARROW);this.fullScreenButton_.setSupportedState(goog.ui.Component.State.CHECKED,!0);this.fullScreenButton_.setChecked(!1);this.otherView_&&this.fullScreenButton_.setCollapsed(goog.ui.ButtonSide.START);this.addChild(this.fullScreenButton_,!0); this.eventHandler_.listen(this.fullScreenButton_,goog.ui.Component.EventType.ACTION,this.toggleFullscreen_);this.eventHandler_.listen(this.fullscreen_,ocean.chrome.Fullscreen.EventType.CHANGE,this.handleFullscreenChange_);return!0};module$exports$ocean$books$AppBar.prototype.handleSelectionClick_=function(){this.clippingCallback_(this.clipButton_.isChecked())}; module$exports$ocean$books$AppBar.prototype.maybeAddClipButton_=function(){if(!this.clippingCallback_)return!1;var a=jfk.Button.createIconContent("/googlebooks/images/kennedy/clip.png");this.clipButton_=new jfk.Button(a,void 0,void 0,jfk.Button.Width.NARROW);this.clipButton_.setSupportedState(goog.ui.Component.State.CHECKED,!0);this.clipButton_.setCollapsed(goog.ui.ButtonSide.END);this.clipButton_.setChecked(!1);this.addChild(this.clipButton_,!0);goog.events.listen(this.clipButton_,goog.ui.Component.EventType.ACTION, goog.bind(this.handleSelectionClick_,this));return!0};module$exports$ocean$books$AppBar.prototype.createLinkToPagePanel_=function(){if(this.linkButton_.isChecked()){var a=new module$contents$ocean$chrome$LinkToPagePanel_LinkToPagePanel(goog.dom.getDocument().body,this.viewer_,!0);a.render(this.linkButton_,!0);goog.events.listenOnce(a,module$contents$ocean$EventManager_EventManager.EventType.DISPOSE,goog.bind(this.linkButton_.setChecked,this.linkButton_,!1))}}; module$exports$ocean$books$AppBar.prototype.addLinkButton_=function(){var a=jfk.Button.createIconContent("/googlebooks/images/kennedy/insert_link.png");this.linkButton_=new jfk.Button(a,void 0,void 0,jfk.Button.Width.NARROW);this.linkButton_.setSupportedState(goog.ui.Component.State.CHECKED,!0);this.clipButton_&&this.linkButton_.setCollapsed(goog.ui.ButtonSide.START);this.addChild(this.linkButton_,!0);goog.events.listen(this.linkButton_,goog.ui.Component.EventType.ACTION,goog.bind(this.createLinkToPagePanel_, this));return!0};module$exports$ocean$books$AppBar.prototype.setViewportClass_=function(a){this.viewer_.setViewportClass(a);this.viewer_.searchState_.getQuery()||this.history_.update()}; module$exports$ocean$books$AppBar.prototype.maybeAddViewportButtons_=function(a,b){if(!a&&!b)return!1;var c=jfk.Button.createIconContent("/googlebooks/images/kennedy/one_up_page_view.png");this.onePageViewportButton_=new jfk.Button(c,void 0,void 0,jfk.Button.Width.NARROW);this.onePageViewportButton_.setCollapsed(goog.ui.ButtonSide.END);goog.events.listen(this.onePageViewportButton_,goog.ui.Component.EventType.ACTION,goog.bind(this.setViewportClass_,this,ocean.books.VerticalViewport));this.addChild(this.onePageViewportButton_, !0);this.makeButtonToggle(this.onePageViewportButton_,module$exports$ocean$books$AppBar.VIEWPORT_BTN_GROUP_,!0);if(a){c=jfk.Button.createIconContent("/googlebooks/images/kennedy/two_up_page_view.png");this.twoPageViewportButton_=new jfk.Button(c,void 0,void 0,jfk.Button.Width.NARROW);a=goog.ui.ButtonSide.START;if(this.fullscreen_||b)a=goog.ui.ButtonSide.BOTH;this.twoPageViewportButton_.setCollapsed(a);goog.events.listen(this.twoPageViewportButton_,goog.ui.Component.EventType.ACTION,goog.bind(this.setViewportClass_, this,ocean.books.TwoPageViewport));this.addChild(this.twoPageViewportButton_,!0);this.makeButtonToggle(this.twoPageViewportButton_,module$exports$ocean$books$AppBar.VIEWPORT_BTN_GROUP_)}b&&(c=jfk.Button.createIconContent("/googlebooks/images/kennedy/thumbnail.png"),this.thumbnailViewportButton_=new jfk.Button(c,void 0,void 0,jfk.Button.Width.NARROW),a=goog.ui.ButtonSide.START,this.fullscreen_&&(a=goog.ui.ButtonSide.BOTH),this.thumbnailViewportButton_.setCollapsed(a),goog.events.listen(this.thumbnailViewportButton_, goog.ui.Component.EventType.ACTION,goog.bind(this.setViewportClass_,this,ocean.books.ThumbnailViewport)),this.addChild(this.thumbnailViewportButton_,!0),this.makeButtonToggle(this.thumbnailViewportButton_,module$exports$ocean$books$AppBar.VIEWPORT_BTN_GROUP_));this.eventHandler_.listen(this.viewer_,ocean.viewport.Viewer.EventType.VIEWPORTMODECHANGE,this.handleViewportChange_);this.handleViewportChange_();return!0}; module$exports$ocean$books$AppBar.prototype.handleViewportChange_=function(){var a=this.viewer_.getViewport();a instanceof ocean.books.VerticalViewport&&this.setViewportSelection_(this.onePageViewportButton_);a instanceof ocean.books.TwoPageViewport&&this.setViewportSelection_(this.twoPageViewportButton_);a instanceof ocean.books.ThumbnailViewport&&this.setViewportSelection_(this.thumbnailViewportButton_);this.setZoomEnable_(a.zoomIn)}; module$exports$ocean$books$AppBar.prototype.setZoomEnable_=function(a){this.zoomOutButton_.setEnabled(a);this.zoomInButton_.setEnabled(a)};module$exports$ocean$books$AppBar.prototype.setViewportSelection_=function(a){this.setSelection(module$exports$ocean$books$AppBar.VIEWPORT_BTN_GROUP_,a)}; module$exports$ocean$books$AppBar.prototype.maybeAddZoomButtons_=function(){var a=jfk.Button.createIconContent("/googlebooks/images/kennedy/zoom_tool.png");this.zoomInButton_=new jfk.Button(a,void 0,void 0,jfk.Button.Width.NARROW);this.zoomInButton_.setCollapsed(goog.ui.ButtonSide.END);this.addChild(this.zoomInButton_,!0);goog.events.listen(this.zoomInButton_,goog.ui.Component.EventType.ACTION,goog.bind(this.queueCommand_,this,ocean.viewport.Viewer.Commands.ZOOM_IN));a=jfk.Button.createIconContent("/googlebooks/images/kennedy/zoom_out.png"); this.zoomOutButton_=new jfk.Button(a,void 0,void 0,jfk.Button.Width.NARROW);this.zoomOutButton_.setCollapsed(goog.ui.ButtonSide.START);this.addChild(this.zoomOutButton_,!0);goog.events.listen(this.zoomOutButton_,goog.ui.Component.EventType.ACTION,goog.bind(this.queueCommand_,this,ocean.viewport.Viewer.Commands.ZOOM_OUT));return!0};module$exports$ocean$books$AppBar.prototype.queueCommand_=function(a){this.viewer_.queueCommand(a)}; module$exports$ocean$books$AppBar.prototype.maybeAddPatentButtons_=function(a,b){a=goog.dom.getElementsByClass(a);if(a){var c=a.length;if(c>1)for(var d=0;d<c;++d){var e=a[d],f=e.getAttribute("href"),g=e.getAttribute("data-label");e=e.getAttribute("data-selected");g=new jfk.Button(g);d==0&&d!=c-1?g.setCollapsed(goog.ui.ButtonSide.END):d==c-1&&d!=0?g.setCollapsed(goog.ui.ButtonSide.START):d!=0&&d!=c-1&&g.setCollapsed(goog.ui.ButtonSide.BOTH);this.addChild(g,!0);this.makeButtonToggle(g,b,!!e);e||this.eventHandler_.listen(g, goog.ui.Component.EventType.ACTION,goog.bind(this.navigateToPage_,this,f))}}return c>1};module$exports$ocean$books$AppBar.prototype.maybeAddHighlightToggle_=function(){if(this.isPatentPage_&&!this.viewer_){var a=new module$exports$ocean$patents$HighlighterControl;this.gearsMenuButton_.addItemAt(a,0)}}; module$exports$ocean$books$AppBar.prototype.handlePageChange_=function(){var a=this.viewer_.getPageInfo();a=a.getLabel()||"Contents";this.contentsText_&&(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(this.contentsText_,module$contents$google3$third_party$javascript$safevalues$restricted$legacy_legacyUnsafeHtml(a,{reportingId:"009928d1-72d6-47df-9510-9ba0bced7071"}))}; module$exports$ocean$books$AppBar.prototype.addPaginationButtons_=function(){var a=jfk.Button.createIconContent("/googlebooks/images/kennedy/page_left.png");this.pageLeftButton_=new jfk.Button(a,void 0,void 0,jfk.Button.Width.NARROW);this.pageLeftButton_.setCollapsed(goog.ui.ButtonSide.BOTH);this.addChild(this.pageLeftButton_,!0);goog.events.listen(this.pageLeftButton_,goog.ui.Component.EventType.ACTION,goog.bind(this.viewer_.queueCommand,this.viewer_,ocean.viewport.Viewer.Commands.PREVIOUS));a=jfk.Button.createIconContent("/googlebooks/images/kennedy/page_right.png"); this.pageRightButton_=new jfk.Button(a,void 0,void 0,jfk.Button.Width.NARROW);this.pageRightButton_.setCollapsed(goog.ui.ButtonSide.START);this.addChild(this.pageRightButton_,!0);goog.events.listen(this.pageRightButton_,goog.ui.Component.EventType.ACTION,goog.bind(this.viewer_.queueCommand,this.viewer_,ocean.viewport.Viewer.Commands.NEXT));this.eventHandler_.listen(this.viewer_,ocean.viewport.Viewer.EventType.PAGECHANGE,this.handlePageChange_);return!0}; module$exports$ocean$books$AppBar.prototype.launchTocPane_=function(){this.contentsButton_.getState()&goog.ui.Component.State.CHECKED&&(new module$contents$ocean$books$TocPanel_TocPanel(this.viewer_,this.contentsButton_,this.flags_)).render(module$exports$ocean$books$AppBar.PADDING_ADJUSTMENT_)}; module$exports$ocean$books$AppBar.prototype.maybeAddContentsButton_=function(){var a=!!this.viewer_.volumeInfo_.tocLines_,b=this.viewer_.volumeInfo_.tocPageId_;b=!!this.viewer_.pageInfoSet_.getPageInfoByPid(b);var c=this.viewer_.getPageInfo();c=c.getLabel()||"Contents";if(a||b)return a=jfk.Button.createIconContent("/googlebooks/images/kennedy/menu_down_arrow.png",c),a=module$contents$goog$array_rotate(a,1),this.contentsText_=a[0],this.contentsButton_=new jfk.Button(a),this.contentsButton_.setCollapsed(goog.ui.ButtonSide.END), this.addChild(this.contentsButton_,!0),this.eventHandler_.listen(this.contentsButton_,goog.ui.Component.EventType.ACTION,this.launchTocPane_),this.makeButtonToggle(this.contentsButton_),!0;this.contentsText_=goog.dom.createDom(goog.dom.TagName.SPAN,"jfk-button-label",c);this.contentsButton_=new jfk.Button(this.contentsText_);this.contentsButton_.setEnabled(!1);this.contentsButton_.setCollapsed(goog.ui.ButtonSide.END);this.addChild(this.contentsButton_,!0);return!1}; module$exports$ocean$books$AppBar.prototype.maybeAddMyLibraryButton_=function(){if(this.volumeInfo_&&!this.isPatentPage_){var a=this.userInfo_&&this.userInfo_.uid,b=module$contents$ocean$mylibrary$utils_constructBookshelves([this.volumeInfo_],this.userInfo_);a?(this.myLibraryButton_=new module$contents$ocean$mylibrary$BookshelfPicker_BookshelfPicker(this.volumeInfo_,b),this.addChild(this.myLibraryButton_,!0)):(a=jfk.Button.createIconContent("/googlebooks/images/kennedy/menu_down_arrow.png","Add to my library"), a=module$contents$goog$array_rotate(a,1),this.myLibraryButton_=new jfk.Button(a),this.addChild(this.myLibraryButton_,!0),a=goog.bind(this.navigateToPage_,this,this.flags_.sign_in_url||this.flags_.signInUrl),goog.events.listenOnce(this.myLibraryButton_,goog.ui.Component.EventType.ACTION,a));return!0}return!1}; module$exports$ocean$books$AppBar.prototype.addGearsMenu_=function(){var a=jfk.Button.createIconContent("/googlebooks/images/kennedy/settings.png");goog.dom.classlist.add(a[0],"goog-flat-menu-button-img");var b=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"toc-div"}),c=new goog.ui.Menu;c.addChild(new goog.ui.Control(b),!0);var d=document.getElementById("ofe-gear-menu-contents");d&&b.appendChild(d.cloneNode(!0));this.gearsMenuButton_=new goog.ui.MenuButton(a,c,goog.ui.FlatMenuButtonRenderer.getInstance()); this.addChild(this.gearsMenuButton_,!0);this.maybeAddHighlightToggle_()};module$exports$ocean$books$AppBar.prototype.maybeAddWriteReviewButton_=function(){var a=goog.dom.getElement("appbar-write-review-link");a&&(a=a.getAttribute("href"))&&(this.writeReviewButton_=new jfk.Button("Write review"),this.addChild(this.writeReviewButton_,!0),this.eventHandler_.listen(this.writeReviewButton_,goog.ui.Component.EventType.ACTION,goog.bind(this.navigateToPage_,this,a)))}; module$exports$ocean$books$AppBar.prototype.navigateToPage_=function(a){(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setLocationHref)(window.location,a)}; module$exports$ocean$books$AppBar.prototype.maybeAddSampleButton_=function(){var a=goog.dom.getElement("appbar-view-print-sample-link");if(a&&(a=a.getAttribute("href"))){var b=goog.dom.getElement("appbar-view-ebook-sample-link"),c;b&&(c=b.getAttribute("href"));b=new jfk.Button("View sample");b.addClassName("gb-view-sample-button");this.addChild(b,!0);this.eventHandler_.listen(b,goog.ui.Component.EventType.ACTION,goog.bind(this.navigateToPage_,this,a));if(c){b.setCollapsed(goog.ui.ButtonSide.END); b=new goog.ui.Menu;var d=new goog.ui.MenuItem("Sample print book");this.eventHandler_.listen(d,goog.ui.Component.EventType.ACTION,goog.bind(this.navigateToPage_,this,a));b.addChild(d,!0);d.addClassName("gb-sample-print-book-menuitem");a=new goog.ui.MenuItem("Sample eBook");this.eventHandler_.listen(a,goog.ui.Component.EventType.ACTION,goog.bind(this.navigateToPage_,this,c));b.addChild(a,!0);a.addClassName("gb-sample-ebook-menuitem");c=new goog.ui.MenuButton("",b,goog.ui.FlatMenuButtonRenderer.getInstance()); c.addClassName("gb-jfk-margin-fix");c.addClassName("gb-view-sample-dropdown");c.setCollapsed(goog.ui.ButtonSide.START);this.addChild(c,!0)}}}; module$exports$ocean$books$AppBar.prototype.maybeAddPatentsPriorArtFinderButton_=function(){var a=goog.dom.getElement("appbar-patents-prior-art-finder-link");if(a&&(a=a.getAttribute("href"))){var b=jfk.Button.createActionButton("Find prior art");this.addChild(b,!0);this.eventHandler_.listen(b,goog.ui.Component.EventType.ACTION,goog.bind(this.navigateToPage_,this,a))}}; module$exports$ocean$books$AppBar.prototype.maybeAddPatentsDiscussThisButton_=function(){var a=goog.dom.getElement("appbar-patents-discuss-this-link");if(a){var b=a.getAttribute("href");if(b){a=a.getAttribute("data-is-grant");if(a=="true"){var c="Discuss this patent";a="Discuss this patent on Stack Exchange"}else c="Discuss this application",a="Discuss this application on Stack Exchange";c=jfk.Button.createActionButton(c);c.setTooltip(a);this.addChild(c,!0);this.eventHandler_.listen(c,goog.ui.Component.EventType.ACTION, goog.bind(this.navigateToPage_,this,b))}}};module$exports$ocean$books$AppBar.prototype.maybeAddReadPatentButton_=function(){var a=goog.dom.getElement("appbar-read-patent-link");if(a&&(a=a.getAttribute("href"))){var b=new jfk.Button("View PDF");this.addChild(b,!0);this.eventHandler_.listen(b,goog.ui.Component.EventType.ACTION,goog.bind(this.navigateToPage_,this,a))}}; module$exports$ocean$books$AppBar.prototype.maybeAddDownloadPdfButton_=function(){var a=goog.dom.getElement("appbar-download-pdf-link");if(a&&(a=a.getAttribute("href"))){var b=new jfk.Button("Download PDF");this.addChild(b,!0);this.eventHandler_.listen(b,goog.ui.Component.EventType.ACTION,goog.bind(this.navigateToPage_,this,a))}};module$exports$ocean$books$AppBar.VIEWPORT_BTN_GROUP_="viewport";module$exports$ocean$books$AppBar.CONTENT_LANGUAGE_BTN_GROUP_="content-language"; module$exports$ocean$books$AppBar.APPLICATION_GRANT_BTN_GROUP_="application-grant";module$exports$ocean$books$AppBar.PADDING_ADJUSTMENT_=3;module$exports$ocean$books$AppBar.prototype.onePageViewportButton_=null;module$exports$ocean$books$AppBar.prototype.twoPageViewportButton_=null;module$exports$ocean$books$AppBar.prototype.thumbnailViewportButton_=null;module$exports$ocean$books$AppBar.prototype.zoomInButton_=null;module$exports$ocean$books$AppBar.prototype.zoomOutButton_=null; module$exports$ocean$books$AppBar.prototype.pageRightButton_=null;module$exports$ocean$books$AppBar.prototype.pageLeftButton_=null;module$exports$ocean$books$AppBar.prototype.contentsButton_=null;module$exports$ocean$books$AppBar.prototype.contentsText_=null;module$exports$ocean$books$AppBar.prototype.myLibraryButton_=null;var module$contents$ocean$chrome$DeviceAndFormatHoverCard_DeviceAndFormatHoverCard=function(a,b){module$contents$ocean$AbstractHoverCard_AbstractHoverCard.call(this,a);this.volumeInfo_=b};$jscomp.inherits(module$contents$ocean$chrome$DeviceAndFormatHoverCard_DeviceAndFormatHoverCard,module$contents$ocean$AbstractHoverCard_AbstractHoverCard); module$contents$ocean$chrome$DeviceAndFormatHoverCard_DeviceAndFormatHoverCard.prototype.render=function(){var a=this.getElement();goog.dom.classlist.add(a,this.className+"-tooltip");goog.dom.classlist.add(a,this.className+"-device-and-format");goog.style.setStyle(a,"z-index",1E4);if(this.volumeInfo_.isEBook()){var b=goog.dom.createDom(goog.dom.TagName.DIV,this.className,this.createMetaSection_(),this.createFooterSection_());goog.dom.classlist.add(b,this.className+"-device-content");goog.dom.appendChild(a, b)}}; module$contents$ocean$chrome$DeviceAndFormatHoverCard_DeviceAndFormatHoverCard.prototype.createMetaSection_=function(){var a=goog.dom.createDom(goog.dom.TagName.DIV,this.className+"-meta"),b=goog.dom.createTable(1,2);goog.dom.classlist.add(b,this.className+"-table-layout");var c=b.rows[0].cells;goog.dom.appendChild(c[0],this.renderDeviceInfo_());goog.dom.appendChild(c[1],this.renderFormatInfo_());var d=goog.dom.createDom(goog.dom.TagName.DIV,this.className+"-link"),e=goog.dom.createDom(goog.dom.TagName.A,{target:"_blank"}, "Help with devices & formats");(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(e,module$contents$ocean$util$uri_maybeAddLangParam("/support/bin/answer.py?answer=1062949"));goog.dom.appendChild(d,e);goog.dom.appendChild(c[1],d);goog.dom.appendChild(a,b);b=this.volumeInfo_;if((c=b.sampleUrl_)&&!b.isPreOrder()&&b.isBrowsable_){var f;b.isPublicDomain_&&ocean.msg.MSG_READ_THE_BOOK_FOR_FREE&&(f="Read the book");f=goog.dom.createDom(goog.dom.TagName.P,this.className+ "-additional",goog.dom.createDom(goog.dom.TagName.A,{href:c},f));goog.dom.appendChild(a,f)}if(b.canDownloadPdf_||b.canDownloadEPub_)if(f=b.downloadEpubUrl_,c=b.downloadPdfUrl_,f||c)d=goog.dom.createDom(goog.dom.TagName.P,this.className+"-additional",goog.dom.createTextNode("Download ")),f&&goog.dom.appendChild(d,goog.dom.createDom(goog.dom.TagName.A,{href:f},"EPUB")),c&&(f&&goog.dom.appendChild(d,goog.dom.createTextNode(", ")),goog.dom.appendChild(d,goog.dom.createDom(goog.dom.TagName.A,{href:c}, "PDF"))),goog.dom.appendChild(d,goog.dom.createTextNode(" - ")),goog.dom.appendChild(d,goog.dom.createDom(goog.dom.TagName.A,{href:module$contents$ocean$util$uri_getAcsHelpUrl(b.getVolumeId())},"read eReader instructions")),goog.dom.appendChild(a,d);return a}; module$contents$ocean$chrome$DeviceAndFormatHoverCard_DeviceAndFormatHoverCard.prototype.createFooterSection_=function(){var a=goog.dom.createDom(goog.dom.TagName.A,{target:"_blank"},"Learn more about books on Google Play");(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(a,module$contents$ocean$chrome$DeviceAndFormatHoverCard_DeviceAndFormatHoverCard.LEARN_MORE_URL_);return this.footer_=goog.dom.createDom(goog.dom.TagName.DIV,this.className+"-footer",a)}; module$contents$ocean$chrome$DeviceAndFormatHoverCard_DeviceAndFormatHoverCard.prototype.renderDeviceInfo_=function(){var a=goog.dom.createDom(goog.dom.TagName.UL,this.className+"-list"),b=goog.dom.createDom(goog.dom.TagName.H4,null,"Good for:");goog.dom.appendChild(a,b);var c=this.className+"-device-type";b=this.className+"-device-supported";var d=this.className+"-device-not-supported",e=this.className+"-device-unknown-supported",f=goog.dom.createDom(goog.dom.TagName.A,{"class":c,href:"/help/ebooks/webreader.html"}, "Web"),g=goog.dom.createDom(goog.dom.TagName.A,{"class":c,href:"/help/ebooks/devices.html"},"Tablet / iPad"),h=goog.dom.createDom(goog.dom.TagName.A,{"class":c,href:"/help/ebooks/ereader.html"},"eReader"),k=goog.dom.createDom(goog.dom.TagName.A,{"class":c,href:"/help/ebooks/devices.html"},"Smartphone"),l=this.volumeInfo_.getHasFlowingText(),m=this.volumeInfo_.getHasScannedText(),n=this.volumeInfo_.isPreOrder();c=new goog.events.EventHandler(this);f=goog.dom.createDom(goog.dom.TagName.LI,null,f);n? c.listen(f,goog.events.EventType.MOUSEOVER,goog.partial(this.updateFooter_,"The format of this book is currently unknown. We will update this when we receive the information from the publisher.")):(l||m)&&c.listen(f,goog.events.EventType.MOUSEOVER,goog.partial(this.updateFooter_,"This eBook, like all Google eBooks, is formatted to be readable on the web."));c.listen(f,goog.events.EventType.MOUSEOUT,this.setDefaultFooter_);goog.dom.appendChild(a,f);g=goog.dom.createDom(goog.dom.TagName.LI,null,g); n?c.listen(g,goog.events.EventType.MOUSEOVER,goog.partial(this.updateFooter_,"The format of this book is currently unknown. We will update this when we receive the information from the publisher.")):(l||m)&&c.listen(g,goog.events.EventType.MOUSEOVER,goog.partial(this.updateFooter_,"This eBook, like all Google eBooks, is formatted to be readable on tablet devices like Android tablets and the iPad."));c.listen(g,goog.events.EventType.MOUSEOUT,this.setDefaultFooter_);goog.dom.appendChild(a,g);h=goog.dom.createDom(goog.dom.TagName.LI, null,h);c.listen(h,goog.events.EventType.MOUSEOVER,function(){n?this.updateFooter_("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):l?this.updateFooter_("This Google eBook includes flowing text, so you can adjust the font to read comfortably on an eReader."):this.updateFooter_("This Google eBook does not include flowing text, so you cannot adjust the font on an eReader.")});c.listen(h,goog.events.EventType.MOUSEOUT,this.setDefaultFooter_); goog.dom.appendChild(a,h);k=goog.dom.createDom(goog.dom.TagName.LI,null,k);c.listen(k,goog.events.EventType.MOUSEOVER,function(){n?this.updateFooter_("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):l&&m?this.updateFooter_("This eBook is good for smartphones like Android and iPhone / iPod touch."):l?this.updateFooter_("This Google eBook includes flowing text so you can adjust the font to read comfortably on the small screen of a smartphone."): this.updateFooter_("This eBook may be hard to read on smartphones like Android and iPhone / iPod touch.")});c.listen(k,goog.events.EventType.MOUSEOUT,this.setDefaultFooter_);goog.dom.appendChild(a,k);n?(goog.dom.classlist.add(f,e),goog.dom.classlist.add(g,e),goog.dom.classlist.add(h,e),goog.dom.classlist.add(k,e)):l?(goog.dom.classlist.add(f,b),goog.dom.classlist.add(g,b),goog.dom.classlist.add(h,b),goog.dom.classlist.add(k,b)):(m?(goog.dom.classlist.add(f,b),goog.dom.classlist.add(g,b)):(goog.dom.classlist.add(f, d),goog.dom.classlist.add(g,d)),goog.dom.classlist.add(h,d),goog.dom.classlist.add(k,d));return a}; module$contents$ocean$chrome$DeviceAndFormatHoverCard_DeviceAndFormatHoverCard.prototype.renderFormatInfo_=function(){var a=goog.dom.createDom(goog.dom.TagName.UL,this.className+"-list"),b=goog.dom.createDom(goog.dom.TagName.H4,null,"Features:");goog.dom.appendChild(a,b);var c=this.className+"-device-supported",d=this.className+"-device-not-supported",e=this.className+"-device-unknown-supported";b=goog.dom.createDom(goog.dom.TagName.A,{},"Flowing text");(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(b, "/support/bin/answer.py?answer=1062949");var f=goog.dom.createDom(goog.dom.TagName.A,{},"Scanned pages");(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(f,"/support/bin/answer.py?answer=1062949");var g=this.volumeInfo_.getHasFlowingText(),h=this.volumeInfo_.getHasScannedText(),k=this.volumeInfo_.isPreOrder();k?(b=goog.dom.createDom(goog.dom.TagName.LI,e,b),c=goog.dom.createDom(goog.dom.TagName.LI,e,f)):(b=goog.dom.createDom(goog.dom.TagName.LI,g?c:d,b),c=goog.dom.createDom(goog.dom.TagName.LI, h?c:d,f));d=new goog.events.EventHandler(this);d.listen(b,goog.events.EventType.MOUSEOVER,function(){k?this.updateFooter_("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):g?this.updateFooter_("This eBook includes flowing text, so you can adjust the font size and style to read comfortably on any device."):this.updateFooter_("This book does not include flowing text, so you cannot adjust the font. Instead, you see images of pages, with a fixed layout. This is good for larger screens, but not always ideal for eReaders and smartphones.")}); d.listen(b,goog.events.EventType.MOUSEOUT,this.setDefaultFooter_);d.listen(c,goog.events.EventType.MOUSEOVER,function(){k?this.updateFooter_("The format of this book is currently unknown. We will update this when we receive the information from the publisher."):h?this.updateFooter_("This eBook includes scanned pages, so pages appear as they would in a printed book."):this.updateFooter_("This eBook does not include scanned pages, which retain the format of a printed book. Instead, the text can be adjusted and it flows to fit any screen.")}); d.listen(c,goog.events.EventType.MOUSEOUT,this.setDefaultFooter_);goog.dom.appendChild(a,b);goog.dom.appendChild(a,c);return a}; module$contents$ocean$chrome$DeviceAndFormatHoverCard_DeviceAndFormatHoverCard.prototype.setDefaultFooter_=function(){goog.asserts.assert(this.footer_,"Footer section should have been created.");goog.dom.removeChildren(this.footer_);var a=goog.dom.createDom(goog.dom.TagName.A,{target:"_blank"},"Learn more about books on Google Play");(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref)(a,module$contents$ocean$chrome$DeviceAndFormatHoverCard_DeviceAndFormatHoverCard.LEARN_MORE_URL_); goog.dom.appendChild(this.footer_,a)};module$contents$ocean$chrome$DeviceAndFormatHoverCard_DeviceAndFormatHoverCard.prototype.updateFooter_=function(a){goog.asserts.assert(this.footer_,"Footer section should have been created.");goog.dom.removeChildren(this.footer_);typeof a==="string"?goog.dom.appendChild(this.footer_,goog.dom.createTextNode(a)):goog.dom.appendChild(this.footer_,a)};module$contents$ocean$chrome$DeviceAndFormatHoverCard_DeviceAndFormatHoverCard.LEARN_MORE_URL_="https://books.google.com/support/bin/topic.py?topic=28528"; ocean.chrome.DeviceAndFormatHoverCard=module$contents$ocean$chrome$DeviceAndFormatHoverCard_DeviceAndFormatHoverCard;var module$contents$ocean$chrome$GetBookButton_GetBookButton=function(a,b){jfk.Button.call(this,b,void 0,jfk.Button.Style.PRIMARY);this.volumeInfo_=a};$jscomp.inherits(module$contents$ocean$chrome$GetBookButton_GetBookButton,jfk.Button);module$contents$ocean$chrome$GetBookButton_GetBookButton.prototype.render=function(a){jfk.Button.prototype.render.call(this,a);goog.dom.classlist.add(this.getElement(),"gb-get-book")}; module$contents$ocean$chrome$GetBookButton_GetBookButton.prototype.enterDocument=function(){jfk.Button.prototype.enterDocument.call(this);var a=this.getElement();goog.asserts.assert(a,"Element should exist at this point.");this.hovercard_=new module$contents$ocean$chrome$DeviceAndFormatHoverCard_DeviceAndFormatHoverCard(a,this.volumeInfo_);this.hovercard_.render();a=goog.dom.getElement("menu_container");(a=goog.dom.getElementByClass("about_title",a))&&goog.dom.removeNode(a)}; module$contents$ocean$chrome$GetBookButton_GetBookButton.setupGetPrintBookLink=function(){if(module$contents$ocean$chrome$GetBookButton_GetBookButton.shouldSetupGetPrintBookDropDown_()){var a=goog.dom.getElement("gb-buy-options-trigger"),b=goog.dom.getElement("buy");a&&b&&(goog.dom.classlist.remove(b,"about_content"),goog.dom.appendChild(a,goog.dom.createDom(goog.dom.TagName.SPAN,"gb-buy-options-arrow","\u25bc")),goog.dom.classlist.add(b,"gb-buy-options-list"),goog.dom.classlist.add(b,"unified-hovercard"), goog.positioning.positionAtAnchor(a,goog.positioning.Corner.BOTTOM_START,b,goog.positioning.Corner.TOP_START),goog.style.setElementShown(b,!1),goog.events.listen(goog.dom.getDocument(),goog.events.EventType.MOUSEDOWN,goog.partial(module$contents$ocean$chrome$GetBookButton_GetBookButton.maybeShowPrintBookList_,a,b)))}}; module$contents$ocean$chrome$GetBookButton_GetBookButton.shouldSetupGetPrintBookDropDown_=function(){var a=goog.dom.getElement("gb-buy-options-trigger");return a&&a.parentNode&&a.parentNode.parentNode?!goog.dom.classlist.contains(a.parentNode.parentNode,"jfk-button"):!0}; module$contents$ocean$chrome$GetBookButton_GetBookButton.maybeShowPrintBookList_=function(a,b,c){a=goog.dom.contains(a,c.target);c=goog.dom.contains(b,c.target);var d=goog.style.isElementShown(b);a||c||!d?a&&(goog.style.setElementShown(b,!d),d||goog.style.setOpacity(b,1)):goog.style.setElementShown(b,!1)};ocean.chrome.GetBookButton=module$contents$ocean$chrome$GetBookButton_GetBookButton;goog.ui.Zippy=function(a,b,c,d,e,f){function g(k){k&&(k.tabIndex=0,goog.a11y.aria.setRole(k,h.getAriaRole()),goog.dom.classlist.add(k,"goog-zippy-header"),h.enableMouseEventsHandling_(k),h.enableKeyboardEventsHandling_(k))}goog.events.EventTarget.call(this);this.dom_=e||goog.dom.getDomHelper();this.elHeader_=this.dom_.getElement(a)||null;this.elExpandedHeader_=this.dom_.getElement(d||null);this.lazyCreateFunc_=typeof b==="function"?b:null;this.role_=f||goog.a11y.aria.Role.TAB;this.elContent_=this.lazyCreateFunc_|| !b?null:this.dom_.getElement(b);this.expanded_=c==1;c!==void 0||this.lazyCreateFunc_||(this.elExpandedHeader_?this.expanded_=goog.style.isElementShown(this.elExpandedHeader_):this.elHeader_&&(this.expanded_=goog.dom.classlist.contains(this.elHeader_,"goog-zippy-expanded")));this.keyboardEventHandler_=new goog.events.EventHandler(this);this.keyHandler_=new goog.events.KeyHandler;this.mouseEventHandler_=new goog.events.EventHandler(this);var h=this;g(this.elHeader_);g(this.elExpandedHeader_);this.setExpanded(this.expanded_)}; goog.inherits(goog.ui.Zippy,goog.events.EventTarget);goog.ui.Zippy.Events={ACTION:"action",TOGGLE:"toggle"};goog.ui.Zippy.prototype.handleMouseEvents_=!0;goog.ui.Zippy.prototype.disposeInternal=function(){goog.ui.Zippy.superClass_.disposeInternal.call(this);module$contents$goog$dispose_dispose(this.keyboardEventHandler_);module$contents$goog$dispose_dispose(this.keyHandler_);module$contents$goog$dispose_dispose(this.mouseEventHandler_)};goog.ui.Zippy.prototype.getAriaRole=function(){return this.role_}; goog.ui.Zippy.prototype.getContentElement=function(){return this.elContent_};goog.ui.Zippy.prototype.expand=function(){this.setExpanded(!0)};goog.ui.Zippy.prototype.collapse=function(){this.setExpanded(!1)};goog.ui.Zippy.prototype.toggle=function(){this.setExpanded(!this.expanded_)}; goog.ui.Zippy.prototype.setExpanded=function(a){this.elContent_?goog.style.setElementShown(this.elContent_,a):a&&this.lazyCreateFunc_&&(this.elContent_=this.lazyCreateFunc_());this.elContent_&&goog.dom.classlist.add(this.elContent_,"goog-zippy-content");this.elExpandedHeader_?(goog.style.setElementShown(this.elHeader_,!a),goog.style.setElementShown(this.elExpandedHeader_,a)):this.updateHeaderClassName(a);this.setExpandedInternal(a);this.dispatchEvent(new goog.ui.ZippyEvent(goog.ui.Zippy.Events.TOGGLE, this,this.expanded_))};goog.ui.Zippy.prototype.setExpandedInternal=function(a){this.expanded_=a};goog.ui.Zippy.prototype.updateHeaderClassName=function(a){this.elHeader_&&(goog.dom.classlist.enable(this.elHeader_,"goog-zippy-expanded",a),goog.dom.classlist.enable(this.elHeader_,"goog-zippy-collapsed",!a),goog.a11y.aria.setState(this.elHeader_,goog.a11y.aria.State.EXPANDED,a))}; goog.ui.Zippy.prototype.setHandleMouseEvents=function(a){this.handleMouseEvents_!=a&&((this.handleMouseEvents_=a)?(this.enableMouseEventsHandling_(this.elHeader_),this.enableMouseEventsHandling_(this.elExpandedHeader_)):this.mouseEventHandler_.removeAll())};goog.ui.Zippy.prototype.enableKeyboardEventsHandling_=function(a){a&&(this.keyHandler_.attach(a),this.keyboardEventHandler_.listen(this.keyHandler_,goog.events.KeyEvent.EventType.KEY,this.onHeaderKeyDown_))}; goog.ui.Zippy.prototype.enableMouseEventsHandling_=function(a){a&&this.mouseEventHandler_.listen(a,goog.events.EventType.CLICK,this.onHeaderClick_)};goog.ui.Zippy.prototype.onHeaderKeyDown_=function(a){if(a.keyCode==goog.events.KeyCodes.ENTER||a.keyCode==goog.events.KeyCodes.SPACE)this.toggle(),this.dispatchActionEvent_(a),a.preventDefault(),a.stopPropagation()};goog.ui.Zippy.prototype.onHeaderClick_=function(a){this.toggle();this.dispatchActionEvent_(a)}; goog.ui.Zippy.prototype.dispatchActionEvent_=function(a){this.dispatchEvent(new goog.ui.ZippyEvent(goog.ui.Zippy.Events.ACTION,this,this.expanded_,a))};goog.ui.ZippyEvent=function(a,b){goog.events.Event.call(this,a,b)};goog.inherits(goog.ui.ZippyEvent,goog.events.Event);function module$contents$ocean$chrome$navbar_init(a){var b=goog.dom.getElement("navbarContainer");if(b&&a.child_node){var c=goog.dom.createDom(goog.dom.TagName.UL,"gb-left-nav-list");module$contents$goog$array_forEach(a.child_node,function(d){module$contents$ocean$chrome$navbar_appendChildren(c,d,"gb-left-nav",a.highlighted_node_id)});b.appendChild(c)}} function module$contents$ocean$chrome$navbar_appendChildren(a,b,c,d){if(b.child_node&&b.child_node.length>0){var e=module$contents$ocean$chrome$navbar_createChildNode(b,!0,c,d),f=goog.dom.createDom(goog.dom.TagName.UL,c+"-list");a.appendChild(e);a.appendChild(f);a=new goog.ui.Zippy(e,f);a.setExpanded(!b.collapsed);module$contents$goog$array_forEach(b.child_node,function(g){module$contents$ocean$chrome$navbar_appendChildren(f,g,c,d)})}else a.appendChild(module$contents$ocean$chrome$navbar_createChildNode(b, !1,c,d))}function module$contents$ocean$chrome$navbar_createChildNode(a,b,c,d){if(b){var e=c+"-heading";b=c+"-header"}else e=c+"-link",b=c+"-item";e=a.url!=""?goog.dom.createDom(goog.dom.TagName.A,{"class":e,href:a.url},goog.string.unescapeEntities(a.title)):goog.dom.createDom(goog.dom.TagName.DIV,e,a.title);b=goog.dom.createDom(goog.dom.TagName.DIV,b,e);d==a.id&&goog.dom.classlist.add(b,c+"-selected");return b}goog.exportSymbol("_OC_InitNavbar",module$contents$ocean$chrome$navbar_init);ocean.common={};var module$contents$ocean$common$AutoDirText_AutoDirText=function(a,b){goog.events.EventTarget.call(this);this.element_=a;this.relatedElement_=b||null;goog.dom.classlist.add(a,"with-auto-dir-text");goog.events.listen(this.element_,"keyup",goog.bind(this.handleKeyup_,this));goog.events.listen(this.element_,"paste",goog.bind(this.handlePaste_,this))};$jscomp.inherits(module$contents$ocean$common$AutoDirText_AutoDirText,goog.events.EventTarget); module$contents$ocean$common$AutoDirText_AutoDirText.prototype.handleKeyup_=function(){module$contents$ocean$common$AutoDirText_AutoDirText.setElementDirAndAlign(this.element_,this.relatedElement_)};module$contents$ocean$common$AutoDirText_AutoDirText.prototype.handlePaste_=function(){module$contents$ocean$common$AutoDirText_AutoDirText.setElementDirAndAlignWithTimeout(this.element_,this.relatedElement_)}; module$contents$ocean$common$AutoDirText_AutoDirText.setElementDirAndAlignWithTimeout=function(a,b){var c=goog.partial(function(){module$contents$ocean$common$AutoDirText_AutoDirText.setElementDirAndAlign(a,b)});goog.Timer.callOnce(c)}; module$contents$ocean$common$AutoDirText_AutoDirText.setElementDirAndAlign=function(a,b){var c=!1;(a.value?goog.i18n.bidi.detectRtlDirectionality(a.value):ocean.style.isPageRtl())?(c=!0,goog.style.setStyle(a,"textAlign","right"),goog.dom.setProperties(a,{dir:"rtl"})):(goog.style.setStyle(a,"textAlign","left"),goog.dom.setProperties(a,{dir:"ltr"}));b&&(c?(goog.dom.classlist.remove(b,"input-direction-ltr"),goog.dom.classlist.add(b,"input-direction-rtl")):(goog.dom.classlist.add(b,"input-direction-ltr"), goog.dom.classlist.remove(b,"input-direction-rtl")))};module$contents$ocean$common$AutoDirText_AutoDirText.setAutoDirectionality=function(a,b){if(a=goog.dom.getElement(a))b=b?goog.dom.getElement(b):null,module$contents$ocean$common$AutoDirText_AutoDirText.setElementDirAndAlign(a,b),new module$contents$ocean$common$AutoDirText_AutoDirText(a,b)};goog.exportSymbol("_OC_autoDir",module$contents$ocean$common$AutoDirText_AutoDirText.setAutoDirectionality);ocean.common.AutoDirText=module$contents$ocean$common$AutoDirText_AutoDirText;var module$exports$ocean$entitypage$EntityPageOptIn=function(a){this.optInBanner_=goog.dom.getElement("gb-ogen-opt-in-banner");this.bannerDismissLink_=goog.dom.getElement("gb-ogen-opt-in-banner-dismiss");this.headerButton_=goog.dom.getElement("gb-ogen-opt-in-header-link");this.viewportResizeManager_=a;this.addPersistentHeaderLink_();this.initializeBanner_()}; module$exports$ocean$entitypage$EntityPageOptIn.prototype.addPersistentHeaderLink_=function(){var a=goog.dom.getElement("gbq");this.headerButton_&&a&&(a=goog.dom.getParentElement(a))&&(goog.dom.classlist.add(a,"searchbar-with-opt-in"),goog.dom.insertSiblingAfter(this.headerButton_,a),goog.style.setStyle(this.headerButton_,"display","block"))}; module$exports$ocean$entitypage$EntityPageOptIn.prototype.initializeBanner_=function(){var a=this;this.optInBanner_&&this.bannerDismissLink_&&(window.localStorage.getItem("obclose")?goog.style.setElementShown(this.optInBanner_,!1):(goog.dom.classlist.add(this.optInBanner_,"opt-in-banner-expanded"),goog.events.listen(this.bannerDismissLink_,goog.events.EventType.CLICK,function(){goog.dom.classlist.remove(a.optInBanner_,"opt-in-banner-expanded");window.localStorage.setItem("obclose","true");goog.Timer.callOnce(function(){goog.style.setElementShown(a.optInBanner_, !1);a.viewportResizeManager_.resize()},600)})))};var module$exports$ocean$util$oneGoogle$Element={FORM:"gbqf",INPUT_PARENT:"gbqfqw",INPUT:"gbqfq",SUBMIT:"gbqfb"};ocean.util.searchbox={};var module$contents$ocean$util$searchbox_disableOnEmptyQuery=function(a,b){a=goog.dom.getElement(a);b=goog.dom.getElement(b);a&&b&&goog.events.listen(a,goog.events.EventType.SUBMIT,goog.partial(module$contents$ocean$util$searchbox_handleSearchSubmit,b))},module$contents$ocean$util$searchbox_handleSearchSubmit=function(a,b){a.value==""&&b.preventDefault()};ocean.util.searchbox.disableOnEmptyQuery=module$contents$ocean$util$searchbox_disableOnEmptyQuery;goog.style.cursor={};goog.style.cursor.OPENHAND_FILE="openhand.cur";goog.style.cursor.CLOSEDHAND_FILE="closedhand.cur";goog.style.cursor.getDraggableCursorStyle=function(a){return goog.style.cursor.getCursorStyle_("-moz-grab",a+goog.style.cursor.OPENHAND_FILE,"default")};goog.style.cursor.getDraggingCursorStyle=function(a){return goog.style.cursor.getCursorStyle_("-moz-grabbing",a+goog.style.cursor.CLOSEDHAND_FILE,"move")}; goog.style.cursor.getCursorStyle_=function(a,b,c){if(goog.userAgent.GECKO&&!goog.userAgent.WINDOWS)return a;a='url("'+b+'")';goog.userAgent.WEBKIT&&(a+=" 7 5");return a+=", "+c};var module$contents$ocean$viewport$Dragger_Dragger=function(a){module$contents$ocean$EventManager_EventManager.call(this);this.viewer_=a;this.viewportEventHandler_=new goog.events.EventHandler;this.getHandler().listen(a,ocean.viewport.Viewer.EventType.VIEWPORTMODECHANGE,this.handleViewportChange_);(a=this.viewer_.getViewport())&&this.handleViewportChange_()};$jscomp.inherits(module$contents$ocean$viewport$Dragger_Dragger,module$contents$ocean$EventManager_EventManager); module$contents$ocean$viewport$Dragger_Dragger.prototype.handleViewportChange_=function(){this.cleanupDraggerAndListeners_();var a=this.viewer_.getViewport().getWindow();if(goog.DEBUG&&!(a instanceof module$contents$ocean$viewport$ScrollWindow_ScrollWindow))throw"window must be an instance of ScrollWindow";this.dragDiv_=a.backgroundDiv_;a=new goog.fx.Dragger(this.dragDiv_);a.defaultAction=function(){};this.closureDragger_=a;this.viewportEventHandler_.listen(this.dragDiv_,goog.events.EventType.DBLCLICK, goog.bind(this.handleDblClick_,this));this.viewportEventHandler_.listen(a,goog.fx.Dragger.EventType.START,goog.bind(this.handleDragStart_,this));this.viewportEventHandler_.listen(a,goog.fx.Dragger.EventType.DRAG,goog.bind(this.handleDrag_,this));this.viewportEventHandler_.listen(a,goog.fx.Dragger.EventType.END,goog.bind(this.handleDragEnd_,this));this.setDraggingCursor_(!1)};module$contents$ocean$viewport$Dragger_Dragger.prototype.handleDblClick_=function(){this.viewer_.queueCommand(ocean.viewport.Viewer.Commands.NEXT)}; module$contents$ocean$viewport$Dragger_Dragger.prototype.setDraggingCursor_=function(a){goog.style.setStyle(this.dragDiv_,"cursor",module$contents$ocean$viewport$Dragger_Dragger.getDraggingCursorStyle_(a))};module$contents$ocean$viewport$Dragger_Dragger.getDraggingCursorStyle_=function(a){if(goog.userAgent.GECKO)return a?"-moz-grabbing":"-moz-grab";var b=ocean.util.Url.getUrlOnDomain("/googlebooks/images/");return a?goog.style.cursor.getDraggingCursorStyle(b):goog.style.cursor.getDraggableCursorStyle(b)}; module$contents$ocean$viewport$Dragger_Dragger.prototype.handleDragStart_=function(){this.dragStartScrollCoord_=this.viewer_.getViewport().getScroll();this.setDraggingCursor_(!0)};module$contents$ocean$viewport$Dragger_Dragger.prototype.handleDrag_=function(){var a=this.closureDragger_,b=this.dragStartScrollCoord_;a=new goog.math.Coordinate(b.x-a.deltaX,b.y-a.deltaY);this.viewer_.getViewport().setScroll(a)}; module$contents$ocean$viewport$Dragger_Dragger.prototype.handleDragEnd_=function(){this.dragStartScrollCoord_=null;this.setDraggingCursor_(!1)};module$contents$ocean$viewport$Dragger_Dragger.prototype.cleanupDraggerAndListeners_=function(){this.viewportEventHandler_.removeAll();this.closureDragger_&&this.closureDragger_.dispose()};module$contents$ocean$viewport$Dragger_Dragger.prototype.disposeInternal=function(){module$contents$ocean$EventManager_EventManager.prototype.disposeInternal.call(this)}; ocean.viewport.Dragger=module$contents$ocean$viewport$Dragger_Dragger;ocean.basic.UnifiedLeftNav={}; function module$contents$ocean$basic$UnifiedLeftNav_addLeftNavListeners(){module$contents$ocean$basic$UnifiedLeftNav_addLeftNavArrowListener("my-library");var a=goog.dom.getElement("my-history-header");a&&goog.events.listen(a,goog.events.EventType.CLICK,function(){var b=goog.dom.getElement("my-history-expanded");module$contents$ocean$basic$UnifiedLeftNav_expandShelf(!goog.style.isElementShown(b),"my-history")});(a=goog.dom.getElement("my-library-more-link"))&&goog.events.listen(a,goog.events.EventType.CLICK, function(){var b=goog.dom.getElement("hidden-my-library-expanded");goog.style.setElementShown(b,!0);b=goog.dom.getElement("my-library-more-link");goog.style.setElementShown(b,!1)});(a=goog.dom.getElement("my-library-less-link"))&&goog.events.listen(a,goog.events.EventType.CLICK,function(){var b=goog.dom.getElement("hidden-my-library-expanded");goog.style.setElementShown(b,!1);b=goog.dom.getElement("my-library-more-link");goog.style.setElementShown(b,!0)})} function module$contents$ocean$basic$UnifiedLeftNav_addLeftNavArrowListener(a){var b=goog.dom.getElement(a.concat("-icon-right"));b&&goog.events.listen(b,goog.events.EventType.CLICK,goog.partial(module$contents$ocean$basic$UnifiedLeftNav_expandShelf,!0,a));(b=goog.dom.getElement(a.concat("-icon-down")))&&goog.events.listen(b,goog.events.EventType.CLICK,goog.partial(module$contents$ocean$basic$UnifiedLeftNav_expandShelf,!1,a))} function module$contents$ocean$basic$UnifiedLeftNav_expandShelf(a,b,c){c&&c.preventDefault();c=goog.dom.getElement(b.concat("-icon-right"));goog.style.setElementShown(c,!a);c=goog.dom.getElement(b.concat("-icon-down"));goog.style.setElementShown(c,a);b=goog.dom.getElement(b.concat("-expanded"));goog.style.setElementShown(b,a)}ocean.basic.UnifiedLeftNav.addLeftNavListeners=module$contents$ocean$basic$UnifiedLeftNav_addLeftNavListeners;ocean.basic.UnifiedLeftNav.expandShelf=module$contents$ocean$basic$UnifiedLeftNav_expandShelf;function module$contents$ocean$mylibrary$Dialog_Dialog(a,b,c,d){goog.ui.Dialog.call(this,module$contents$ocean$Flags_Flags.IsZipitFolderCollectionEnabled?void 0:module$contents$ocean$mylibrary$Dialog_Dialog.P13N_DIALOG,!0);this.setTitle(a);this.setDisposeOnHide(!0);this.setBackgroundElementOpacity(.5);this.callback=c;a=new goog.ui.Dialog.ButtonSet;a.set(goog.ui.Dialog.DefaultButtonKeys.OK,b,!0);(d!==void 0?d:1)&&a.set(goog.ui.Dialog.DefaultButtonKeys.CANCEL,"Cancel",!1,!0);this.setButtonSet(a);goog.events.listen(this, goog.ui.Dialog.EventType.SELECT,this.onSelect,!1,this)}goog.inherits(module$contents$ocean$mylibrary$Dialog_Dialog,goog.ui.Dialog);module$contents$ocean$mylibrary$Dialog_Dialog.P13N_DIALOG="p13nd"; module$contents$ocean$mylibrary$Dialog_Dialog.prototype.createDom=function(){module$contents$ocean$mylibrary$Dialog_Dialog.superClass_.createDom.call(this);goog.style.setStyle(this.buttons_.getButton(goog.ui.Dialog.DefaultButtonKeys.OK),"fontWeight","bold");goog.style.setStyle(this.getElement(),"width","500px")};module$contents$ocean$mylibrary$Dialog_Dialog.prototype.onSelect=function(a){a.key==goog.ui.Dialog.DefaultButtonKeys.OK&&this.selectCallback(a);return!0}; module$contents$ocean$mylibrary$Dialog_Dialog.prototype.disposeInternal=function(){goog.events.unlisten(this,goog.ui.Dialog.EventType.SELECT,this.onSelect,!0,this);module$contents$ocean$mylibrary$Dialog_Dialog.superClass_.disposeInternal.call(this)};module$contents$ocean$mylibrary$Dialog_Dialog.prototype.selectCallback=function(a){this.callback(a)};ocean.mylibrary.Dialog=module$contents$ocean$mylibrary$Dialog_Dialog;goog.events.InputHandler=function(a){goog.events.EventTarget.call(this);this.timer_=null;this.element_=a;this.eventHandler_=new goog.events.EventHandler(this);this.eventHandler_.listen(this.element_,"input",this)};goog.inherits(goog.events.InputHandler,goog.events.EventTarget);goog.events.InputHandler.EventType={INPUT:"input"}; goog.events.InputHandler.prototype.handleEvent=function(a){if(a.type=="input")this.cancelTimerIfSet_(),this.dispatchEvent(this.createInputEvent_(a));else if(a.type!="keydown"||goog.events.KeyCodes.isTextModifyingKeyEvent(a)){var b=a.type=="keydown"?this.element_.value:null,c=this.createInputEvent_(a);this.cancelTimerIfSet_();this.timer_=setTimeout(function(){this.timer_=null;this.element_.value!=b&&this.dispatchEvent(c)}.bind(this),0)}}; goog.events.InputHandler.prototype.cancelTimerIfSet_=function(){this.timer_!=null&&(clearTimeout(this.timer_),this.timer_=null)};goog.events.InputHandler.prototype.createInputEvent_=function(a){a=new goog.events.BrowserEvent(a.event_);a.type=goog.events.InputHandler.EventType.INPUT;return a};goog.events.InputHandler.prototype.disposeInternal=function(){goog.events.InputHandler.superClass_.disposeInternal.call(this);this.eventHandler_.dispose();this.cancelTimerIfSet_();delete this.element_};goog.ui.CharCounter=function(a,b,c,d){goog.events.EventTarget.call(this);this.elInput_=a;this.elCount_=b;this.maxLength_=c;this.display_=d||goog.ui.CharCounter.Display.REMAINING;a.removeAttribute("maxlength");this.inputHandler_=new goog.events.InputHandler(a);goog.events.listen(this.inputHandler_,goog.events.InputHandler.EventType.INPUT,this.onChange_,!1,this);this.checkLength()};goog.inherits(goog.ui.CharCounter,goog.events.EventTarget);goog.ui.CharCounter.Display={REMAINING:0,INCREMENTAL:1}; goog.ui.CharCounter.prototype.setMaxLength=function(a){this.maxLength_=a;this.checkLength()};goog.ui.CharCounter.prototype.onChange_=function(){this.checkLength()}; goog.ui.CharCounter.prototype.checkLength=function(){var a=this.elInput_.value.length;if(a>this.maxLength_){var b=this.elInput_.scrollTop,c=this.elInput_.scrollLeft;this.elInput_.value=this.elInput_.value.substring(0,this.maxLength_);a=this.maxLength_;this.elInput_.scrollTop=b;this.elInput_.scrollLeft=c}this.elCount_&&(b=this.display_==goog.ui.CharCounter.Display.INCREMENTAL,goog.dom.setTextContent(this.elCount_,String(b?a:this.maxLength_-a)))}; goog.ui.CharCounter.prototype.disposeInternal=function(){goog.ui.CharCounter.superClass_.disposeInternal.call(this);delete this.elInput_;this.inputHandler_.dispose();this.inputHandler_=null};var module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog=function(a,b,c,d,e){module$contents$ocean$mylibrary$Dialog_Dialog.call(this,a,b,null,!0);this.shelves_=c;this.titleCheckMethod_=d;this.actionMenu_=e};$jscomp.inherits(module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog,module$contents$ocean$mylibrary$Dialog_Dialog); module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog.createEditDialog=function(a,b){var c=module$contents$ocean$msg_getEditBookshelfDialogTitle(goog.string.unescapeEntities(a.getTitle()));b=new module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog(c,"Save",b);b.render();b.setBookshelf(a);b.setVisible(!0);return b}; module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog.prototype.createDom=function(){module$contents$ocean$mylibrary$Dialog_Dialog.prototype.createDom.call(this);this.createDialogContent_();this.bookshelf_&&this.prefillDialog_();if(!module$contents$ocean$Flags_Flags.IsZipitFolderCollectionEnabled){var a=this.buttons_,b=a.getButton(goog.ui.Dialog.DefaultButtonKeys.OK);goog.style.setStyle(b,"fontWeight","bold");goog.dom.classlist.add(b,"gb-button");a=a.getButton(goog.ui.Dialog.DefaultButtonKeys.CANCEL); goog.dom.classlist.add(a,"gb-button")}};module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog.prototype.setBookshelf=function(a){this.bookshelf_=a;this.isInDocument()&&this.prefillDialog_()}; module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog.prototype.prefillDialog_=function(){this.collectionTitleInput_.value=goog.string.unescapeEntities(this.bookshelf_.getTitle());this.collectionTitleInput_.disabled=this.bookshelf_.predefined_;this.collectionDescriptionInput_.value=goog.string.unescapeEntities(this.bookshelf_.getDescription());this.makeBookshelfPublic_(this.bookshelf_.access_==ocean.info.Bookshelf.Access.PUBLIC);this.collectionTitleInput_.disabled&&goog.style.setStyle(this.collectionTitleInput_, "background","#f2f2f2")}; module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog.prototype.createDialogContent_=function(){this.collectionTitleInput_=this.addLabelAndInput_("Name","input",!0);this.collectionDescriptionInput_=this.addLabelAndInput_("Description <span class=cl-desc>(optional)</span>","textarea");this.addSharingControls_();this.makeBookshelfPublic_(!0);this.errorDiv_=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"ccd-error"});goog.dom.appendChild(this.getContentElement(),this.errorDiv_); this.disclaimer_=goog.dom.createDom(goog.dom.TagName.P,"ccd-footnote","Please note that the contents and title of Public bookshelves can be viewed and shared by others.");goog.dom.appendChild(this.getContentElement(),this.disclaimer_)}; module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog.prototype.addSharingControls_=function(){var a=this.getContentElement(),b=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"ccd-label"}),c=goog.dom.createElement("span");c.textContent=goog.dom.textAssert.assertHtmlFree("Visibility");goog.dom.appendChild(b,c);goog.dom.appendChild(a,b);a=goog.dom.createDom(goog.dom.TagName.SPAN,{className:"ccd-mode-indicator"});c=goog.dom.createDom(goog.dom.TagName.IMG,{src:"/googlebooks/images/sharing_public.gif", style:"vertical-align:-2px;padding:0 2px"});var d=goog.dom.createElement("span");d.textContent=goog.dom.textAssert.assertHtmlFree("Public");goog.dom.appendChild(a,c);goog.dom.appendChild(a,d);goog.dom.appendChild(b,a);c=goog.dom.createDom(goog.dom.TagName.SPAN,{className:"ccd-mode-indicator"});d=goog.dom.createDom(goog.dom.TagName.IMG,{src:"/googlebooks/images/sharing_private.gif",style:"vertical-align:-2px;"});var e=goog.dom.createElement("span");e.textContent=goog.dom.textAssert.assertHtmlFree("Private"); goog.dom.appendChild(c,d);goog.dom.appendChild(c,e);goog.dom.appendChild(b,c);d=goog.dom.createDom(goog.dom.TagName.SPAN,{"class":"ccd-mode-link"});d.textContent=goog.dom.textAssert.assertHtmlFree("Make public");goog.dom.appendChild(b,d);goog.events.listen(d,goog.events.EventType.CLICK,goog.bind(this.makeBookshelfPublic_,this,!0));e=goog.dom.createDom(goog.dom.TagName.SPAN,{"class":"ccd-mode-link"});e.textContent=goog.dom.textAssert.assertHtmlFree("Make private");goog.dom.appendChild(b,e);goog.events.listen(e, goog.events.EventType.CLICK,goog.bind(this.makeBookshelfPublic_,this,!1));this.publicPrivatePair_=[a,e];this.privatePublicPair_=[c,d];this.actionMenu_!=null&&(goog.dom.setProperties(this.actionMenu_,{"class":"ccd-mode-link"}),goog.dom.appendChild(b,this.actionMenu_))}; module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog.prototype.addLabelAndInput_=function(a,b){var c=this.getContentElement(),d=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"gb-bookshelf-dialog-container"});goog.dom.appendChild(c,d);c=goog.dom.createDom(goog.dom.TagName.DIV,{"class":"ccd-label"});var e=(new module$exports$google3$third_party$javascript$safevalues$builders$html_sanitizer$html_sanitizer_builder.HtmlSanitizerBuilder).allowClassAttributes().build();(0,module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml)(c, e.sanitizeAssertUnchanged(a));goog.dom.appendChild(d,c);a=goog.dom.createDom(b,{"class":"ccd-input"});b=="input"?(goog.dom.setProperties(a,{type:"text"}),a.setAttribute("maxlength",module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog.MAX_COLLECTION_TITLE_LENGTH_)):b=="textarea"&&(goog.dom.setProperties(a,{rows:6,cols:50}),new goog.ui.CharCounter(a,goog.dom.createElement("span"),module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog.MAX_COLLECTION_DESCRIPTION_LENGTH_)); goog.dom.appendChild(d,a);return a};module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog.prototype.makeBookshelfPublic_=function(a){this.isPublic_=a;module$contents$goog$array_forEach(this.publicPrivatePair_,function(b){goog.style.setElementShown(b,a)});module$contents$goog$array_forEach(this.privatePublicPair_,function(b){goog.style.setElementShown(b,!a)})}; module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog.prototype.onSelect=function(a){var b=this.collectionTitleInput_.value;if(a.key==goog.ui.Dialog.DefaultButtonKeys.CANCEL)return!0;if(goog.string.isEmptyOrWhitespace(b))return this.errorDiv_.textContent="Please enter a title for this bookshelf.",!1;if(this.titleCheckMethod_&&!this.titleCheckMethod_(b))return this.errorDiv_.textContent="Another bookshelf already has that title. Please enter a different title.",!1;a=this.bookshelf_|| new ocean.info.Bookshelf;a.setTitle(b);a.setDescription(this.collectionDescriptionInput_.value);this.isPublic_?a.setAccess(ocean.info.Bookshelf.Access.PUBLIC):a.setAccess(ocean.info.Bookshelf.Access.PRIVATE);this.bookshelf_?this.shelves_.updateShelf(a):this.shelves_.addShelf(a,!0);return!0}; module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog.prototype.disposeInternal=function(){delete this.shelves_;delete this.actionMenu_;delete this.bookshelf_;delete this.errorDiv_;delete this.disclaimer_;delete this.collectionTitleInput_;delete this.collectionDescriptionInput_;delete this.titleCheckMethod_;module$contents$ocean$mylibrary$Dialog_Dialog.prototype.disposeInternal.call(this)}; module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog.MAX_COLLECTION_TITLE_LENGTH_=100;module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog.MAX_COLLECTION_DESCRIPTION_LENGTH_=500;ocean.mylibrary.CreateBookshelfDialog=module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog;ocean.frontpage={}; ocean.frontpage.BookshelvesPanel=function(a,b,c,d,e){module$contents$ocean$EventManager_EventManager.call(this);this.visibleShelves_=a;this.moreLink_=b;this.createCollectionBtn_=c;this.hiddenShelvesContainer_=d;this.visibleShelves_&&(this.titles_=module$contents$goog$array_map(this.visibleShelves_.childNodes,ocean.frontpage.BookshelvesPanel.extractTitle_),this.hiddenShelvesContainer_&&module$contents$goog$array_extend(this.titles_,module$contents$goog$array_map(this.hiddenShelvesContainer_.childNodes,ocean.frontpage.BookshelvesPanel.extractTitle_))); this.bookshelves_=e;goog.Timer.callOnce(goog.bind(this.setupListeners_,this))};goog.inherits(ocean.frontpage.BookshelvesPanel,module$contents$ocean$EventManager_EventManager);ocean.frontpage.BookshelvesPanel.EventType={UPDATE:"update"}; ocean.frontpage.BookshelvesPanel.prototype.setupListeners_=function(){this.moreLink_&&this.hiddenShelvesContainer_&&this.getHandler().listen(this.moreLink_,goog.events.EventType.CLICK,this.togglehiddenShelvesContainer_);this.createCollectionBtn_&&this.getHandler().listen(this.createCollectionBtn_,goog.events.EventType.CLICK,this.handleCreateCollection_);this.getHandler().listen(this.bookshelves_,ocean.info.Bookshelves.EventType.ADD,this.addToDisplayedBookshelves_)}; ocean.frontpage.BookshelvesPanel.extractTitle_=function(a){a=goog.asserts.assertElement(a);var b=goog.dom.getElementsByTagNameAndClass(goog.dom.TagName.SPAN,"sidebar-collection-title",a)[0];b||(b=goog.dom.getElementsByTagNameAndClass(goog.dom.TagName.SPAN,"hp-collection-title",a)[0]);if(!b)return"";a=ocean.frontpage.BookshelvesPanel.normalizeTitle_(goog.dom.getTextContent(b));return goog.string.trim(a.split("(")[0])}; ocean.frontpage.BookshelvesPanel.prototype.handleCreateCollection_=function(){var a=new module$contents$ocean$mylibrary$CreateBookshelfDialog_CreateBookshelfDialog("Create new bookshelf","Create bookshelf",this.bookshelves_,goog.bind(this.isNewTitle_,this));a.render();a.setVisible(!0)};ocean.frontpage.BookshelvesPanel.normalizeTitle_=function(a){return goog.string.trim(goog.string.normalizeSpaces(a))}; ocean.frontpage.BookshelvesPanel.prototype.isNewTitle_=function(a){var b=ocean.frontpage.BookshelvesPanel.normalizeTitle_(a).toLowerCase();return!module$contents$goog$array_some(this.titles_,function(c){return c.toLowerCase()==b})}; ocean.frontpage.BookshelvesPanel.prototype.addToDisplayedBookshelves_=function(a){var b=a.shelf;a=ocean.frontpage.BookshelvesPanel.normalizeTitle_(b.getTitle());var c=b.access_==ocean.info.Bookshelf.Access.PUBLIC;this.titles_.push(a);var d=new goog.Uri("/books");module$contents$ocean$util$uri_setDefaultParameters(d);d.setParameterValue("as_coll",b.getId());d.setParameterValue("source","gbs_lp_bookshelf_list");if(module$contents$ocean$Flags_Flags.IsBooksUnifiedLeftNavEnabled)b=goog.dom.createDom(goog.dom.TagName.LI, {"class":"left-nav-shelf-item"}),c=goog.dom.createDom(goog.dom.TagName.A,{"class":"sidebar-link"}),module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref(c,d.toString()),d=goog.dom.createElement(goog.dom.TagName.SPAN),goog.dom.classlist.add(d,"sidebar-collection-title"),module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml(d,module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtml(a+" (0)")),goog.dom.appendChild(c,d),goog.dom.appendChild(b, c),a=goog.dom.getElement("hidden-my-library-expanded"),goog.dom.insertSiblingBefore(b,a),module$contents$ocean$basic$UnifiedLeftNav_expandShelf(!0,"my-library");else{b=goog.dom.createElement(goog.dom.TagName.DIV);var e=goog.dom.createDom(goog.dom.TagName.A,{"class":"hp-bookshelf-link",style:"line-height:19px"});module$exports$google3$third_party$javascript$safevalues$dom$index.setAnchorHref(e,d.toString());d=goog.dom.createDom(goog.dom.TagName.SPAN,{"class":"hp-collection-title"});module$exports$google3$third_party$javascript$safevalues$dom$index.setElementInnerHtml(d, module$exports$google3$third_party$javascript$safevalues$index.sanitizeHtml(a));goog.dom.appendChild(e,d);goog.dom.appendChild(b,e);a=c?"Public bookshelf":"Private bookshelf";a=goog.dom.createDom(goog.dom.TagName.IMG,{"class":"hp-bookshelf-access",src:"/googlebooks/images/sharing_"+(c?"public":"private")+".gif",title:a,alt:a,width:14,height:14});goog.dom.appendChild(b,a);a=goog.dom.createDom(goog.dom.TagName.DIV,{style:"clear:both"});goog.dom.appendChild(b,a);goog.dom.insertSiblingAfter(b,goog.dom.getElement("csStart"))}}; ocean.frontpage.BookshelvesPanel.MAX_HIDDEN_HEIGHT_=200; ocean.frontpage.BookshelvesPanel.prototype.togglehiddenShelvesContainer_=function(a){a.preventDefault();a=!goog.style.isElementShown(this.hiddenShelvesContainer_);goog.style.setElementShown(this.hiddenShelvesContainer_,a);a?(goog.positioning.positionAtAnchor(this.moreLink_,goog.positioning.Corner.BOTTOM_START,this.hiddenShelvesContainer_,goog.positioning.Corner.TOP_START),goog.style.getSize(this.hiddenShelvesContainer_).height>ocean.frontpage.BookshelvesPanel.MAX_HIDDEN_HEIGHT_&&(a=goog.style.getSize(this.hiddenShelvesContainer_).width, goog.style.setSize(this.hiddenShelvesContainer_,a,ocean.frontpage.BookshelvesPanel.MAX_HIDDEN_HEIGHT_),goog.style.setStyle(this.hiddenShelvesContainer_,"overflow","auto"),goog.style.setStyle(this.hiddenShelvesContainer_,"overflowX","hidden")),this.documentListenerKey_=goog.events.listen(goog.dom.getDocument(),goog.events.EventType.MOUSEDOWN,goog.bind(this.maybeHideExtendedCollectionList_,this))):goog.events.unlistenByKey(this.documentListenerKey_)}; ocean.frontpage.BookshelvesPanel.prototype.maybeHideExtendedCollectionList_=function(a){goog.dom.contains(this.hiddenShelvesContainer_,a.target)||goog.dom.contains(this.moreLink_,a.target)||this.togglehiddenShelvesContainer_(a)}; ocean.homepage={};ocean.homepage.startup={};ocean.homepage.startup.start=function(){var a=goog.dom.getElement("oc-search-input"),b=goog.dom.getElement("oc-search-form");b&&a&&(module$contents$ocean$common$AutoDirText_AutoDirText.setAutoDirectionality("oc-search-input"),new ocean.basic.AutoComplete(a),a.focus(),module$contents$ocean$util$searchbox_disableOnEmptyQuery("oc-search-form","oc-search-input"))};goog.exportSymbol("_OC_RunHomepage",ocean.homepage.startup.start); </script> <script>_OC_RunHomepage();</script> <script>function gtElInit() {var lib = new google.translate.TranslateService();lib.translatePage('uk', 'en', function () {});}</script> <script src="https://translate.google.com/translate_a/element.js?cb=gtElInit&hl=en-GB&client=wt" type="text/javascript"></script> </body> </html>