UNPKG

@arctics/google-phonelib

Version:

A JavaScript/TypeScript package providing wrapper for Google's libphonenumber library

10 lines 601 kB
"use strict";var V=Object.create;var C=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var H=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var G=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports),B=(e,o)=>{for(var t in o)C(e,t,{get:o[t],enumerable:!0})},M=(e,o,t,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of w(o))!x.call(e,r)&&r!==t&&C(e,r,{get:()=>o[r],enumerable:!(n=v(o,r))||n.enumerable});return e};var U=(e,o,t)=>(t=e!=null?V(H(e)):{},M(o||!e||!e.__esModule?C(t,"default",{value:e,enumerable:!0}):t,e)),j=e=>M(C({},"__esModule",{value:!0}),e);var O=G((exports,module)=>{var f=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports),p=f((exports,module)=>{(function(e){if(typeof exports=="object"&&typeof module<"u")module.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var o;typeof window<"u"?o=window:typeof global<"u"?o=global:typeof self<"u"?o=self:o=this,o.libphonenumber=e()}})(function(){var define,module,exports;return function(){function e(o,t,n){function r(i,g){if(!t[i]){if(!o[i]){var u=typeof require=="function"&&require;if(!g&&u)return u(i,!0);if(d)return d(i,!0);var m=new Error("Cannot find module '"+i+"'");throw m.code="MODULE_NOT_FOUND",m}var l=t[i]={exports:{}};o[i][0].call(l.exports,function(h){var F=o[i][1][h];return r(F||h)},l,l.exports,e,o,t,n)}return t[i].exports}for(var d=typeof require=="function"&&require,s=0;s<n.length;s++)r(n[s]);return r}return e}()({1:[function(require,module,exports){var COMPILED=!0,goog=goog||{};if(goog.global=this||self,goog.exportPath_=function(e,o,t,n){e=e.split("."),n=n||goog.global,e[0]in n||typeof n.execScript>"u"||n.execScript("var "+e[0]);for(var r;e.length&&(r=e.shift());)if(e.length||o===void 0)n=n[r]&&n[r]!==Object.prototype[r]?n[r]:n[r]={};else if(!t&&goog.isObject(o)&&goog.isObject(n[r]))for(var d in o)o.hasOwnProperty(d)&&(n[r][d]=o[d]);else n[r]=o},goog.define=function(e,o){if(!COMPILED){var t=goog.global.CLOSURE_UNCOMPILED_DEFINES,n=goog.global.CLOSURE_DEFINES;t&&t.nodeType===void 0&&Object.prototype.hasOwnProperty.call(t,e)?o=t[e]:n&&n.nodeType===void 0&&Object.prototype.hasOwnProperty.call(n,e)&&(o=n[e])}return o},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(e){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(e))throw Error('Namespace "'+e+'" already declared.');goog.constructNamespace_(e)},goog.constructNamespace_=function(e,o,t){if(!COMPILED){delete goog.implicitNamespaces_[e];for(var n=e;(n=n.substring(0,n.lastIndexOf(".")))&&!goog.getObjectByName(n);)goog.implicitNamespaces_[n]=!0}goog.exportPath_(e,o,t)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.getScriptNonce_=function(e){return e=(e||goog.global).document,(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(e)?e:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(e){if(typeof e!="string"||!e||e.search(goog.VALID_MODULE_RE_)==-1)throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+e+" 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.");if(goog.moduleLoaderState_.moduleName=e,!COMPILED){if(goog.isProvided_(e))throw Error('Namespace "'+e+'" already declared.');delete goog.implicitNamespaces_[e]}},goog.module.get=function(e){return goog.module.getInternal_(e)},goog.module.getInternal_=function(e){if(!COMPILED){if(e in goog.loadedModules_)return goog.loadedModules_[e].exports;if(!goog.implicitNamespaces_[e])return e=goog.getObjectByName(e),e??null}return null},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(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var e=goog.global.$jscomp;return e?typeof e.getCurrentModulePath!="function"?!1:!!e.getCurrentModulePath():!1},goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(e){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(e in goog.loadedModules_)throw Error('Module with namespace "'+e+'" already exists.')}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=e;else{var o=goog.global.$jscomp;if(!o||typeof o.getCurrentModulePath!="function")throw Error('Module with namespace "'+e+'" has been loaded incorrectly.');o=o.require(o.getCurrentModulePath()),goog.loadedModules_[e]={exports:o,type:goog.ModuleType.ES6,moduleId:e}}},goog.setTestOnly=function(e){if(goog.DISALLOW_TEST_ONLY_CODE)throw e=e||"",Error("Importing test-only code into non-debug environment"+(e?": "+e:"."))},goog.forwardDeclare=function(e){},COMPILED||(goog.isProvided_=function(e){return e in goog.loadedModules_||!goog.implicitNamespaces_[e]&&goog.getObjectByName(e)!=null},goog.implicitNamespaces_={"goog.module":!0}),goog.getObjectByName=function(e,o){e=e.split("."),o=o||goog.global;for(var t=0;t<e.length;t++)if(o=o[e[t]],o==null)return null;return o},goog.addDependency=function(e,o,t,n){!COMPILED&&goog.DEPENDENCIES_ENABLED&&goog.debugLoader_.addDependency(e,o,t,n)},goog.ENABLE_DEBUG_LOADER=!1,goog.logToConsole_=function(e){goog.global.console&&goog.global.console.error(e)},goog.require=function(e){if(!COMPILED){if(goog.ENABLE_DEBUG_LOADER&&goog.debugLoader_.requested(e),goog.isProvided_(e)){if(goog.isInModuleLoader_())return goog.module.getInternal_(e)}else if(goog.ENABLE_DEBUG_LOADER){var o=goog.moduleLoaderState_;goog.moduleLoaderState_=null;try{goog.debugLoader_.load_(e)}finally{goog.moduleLoaderState_=o}}return null}},goog.requireType=function(e){return{}},goog.basePath="",goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(e){e.instance_=void 0,e.getInstance=function(){return e.instance_?e.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=e),e.instance_=new e)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRUSTED_TYPES_POLICY_NAME="goog",goog.hasBadLetScoping=null,goog.loadModule=function(e){var o=goog.moduleLoaderState_;try{goog.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:goog.ModuleType.GOOG};var t={},n=t;if(typeof e=="function")n=e.call(void 0,n);else if(typeof e=="string")n=goog.loadModuleFromSource_.call(void 0,n,e);else throw Error("Invalid module definition");var r=goog.moduleLoaderState_.moduleName;if(typeof r=="string"&&r)goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(r,n,t!==n):goog.SEAL_MODULE_EXPORTS&&Object.seal&&typeof n=="object"&&n!=null&&Object.seal(n),goog.loadedModules_[r]={exports:n,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName};else throw Error('Invalid module name "'+r+'"')}finally{goog.moduleLoaderState_=o}},goog.loadModuleFromSource_=function(a,b){return eval(goog.CLOSURE_EVAL_PREFILTER_.createScript(b)),a},goog.normalizePath_=function(e){e=e.split("/");for(var o=0;o<e.length;)e[o]=="."?e.splice(o,1):o&&e[o]==".."&&e[o-1]&&e[o-1]!=".."?e.splice(--o,2):o++;return e.join("/")},goog.loadFileSync_=function(e){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(e);try{var o=new goog.global.XMLHttpRequest;return o.open("get",e,!1),o.send(),o.status==0||o.status==200?o.responseText:null}catch{return null}},goog.typeOf=function(e){var o=typeof e;return o!="object"?o:e?Array.isArray(e)?"array":o:"null"},goog.isArrayLike=function(e){var o=goog.typeOf(e);return o=="array"||o=="object"&&typeof e.length=="number"},goog.isDateLike=function(e){return goog.isObject(e)&&typeof e.getFullYear=="function"},goog.isObject=function(e){var o=typeof e;return o=="object"&&e!=null||o=="function"},goog.getUid=function(e){return Object.prototype.hasOwnProperty.call(e,goog.UID_PROPERTY_)&&e[goog.UID_PROPERTY_]||(e[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(e){return!!e[goog.UID_PROPERTY_]},goog.removeUid=function(e){e!==null&&"removeAttribute"in e&&e.removeAttribute(goog.UID_PROPERTY_);try{delete e[goog.UID_PROPERTY_]}catch{}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.cloneObject=function(e){var o=goog.typeOf(e);if(o=="object"||o=="array"){if(typeof e.clone=="function")return e.clone();if(typeof Map<"u"&&e instanceof Map)return new Map(e);if(typeof Set<"u"&&e instanceof Set)return new Set(e);o=o=="array"?[]:{};for(var t in e)o[t]=goog.cloneObject(e[t]);return o}return e},goog.bindNative_=function(e,o,t){return e.call.apply(e.bind,arguments)},goog.bindJs_=function(e,o,t){if(!e)throw Error();if(2<arguments.length){var n=Array.prototype.slice.call(arguments,2);return function(){var r=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(r,n),e.apply(o,r)}}return function(){return e.apply(o,arguments)}},goog.bind=function(e,o,t){return Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?goog.bind=goog.bindNative_:goog.bind=goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(e,o){var t=Array.prototype.slice.call(arguments,1);return function(){var n=t.slice();return n.push.apply(n,arguments),e.apply(this,n)}},goog.now=function(){return Date.now()},goog.globalEval=function(e){(0,eval)(e)},goog.getCssName=function(e,o){if(String(e).charAt(0)==".")throw Error('className passed in goog.getCssName must not start with ".". You passed: '+e);var t=function(r){return goog.cssNameMapping_[r]||r},n=function(r){r=r.split("-");for(var d=[],s=0;s<r.length;s++)d.push(t(r[s]));return d.join("-")};return n=goog.cssNameMapping_?goog.cssNameMappingStyle_=="BY_WHOLE"?t:n:function(r){return r},e=o?e+"-"+n(o):n(e),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(e):e},goog.setCssNameMapping=function(e,o){goog.cssNameMapping_=e,goog.cssNameMappingStyle_=o},!COMPILED&&goog.global.CLOSURE_CSS_NAME_MAPPING&&(goog.cssNameMapping_=goog.global.CLOSURE_CSS_NAME_MAPPING),goog.GetMsgOptions=function(){},goog.getMsg=function(e,o,t){return t&&t.html&&(e=e.replace(/</g,"&lt;")),t&&t.unescapeHtmlEntities&&(e=e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&apos;/g,"'").replace(/&quot;/g,'"').replace(/&amp;/g,"&")),o&&(e=e.replace(/\{\$([^}]+)}/g,function(n,r){return o!=null&&r in o?o[r]:n})),e},goog.getMsgWithFallback=function(e,o){return e},goog.exportSymbol=function(e,o,t){goog.exportPath_(e,o,!0,t)},goog.exportProperty=function(e,o,t){e[o]=t},goog.inherits=function(e,o){function t(){}t.prototype=o.prototype,e.superClass_=o.prototype,e.prototype=new t,e.prototype.constructor=e,e.base=function(n,r,d){for(var s=Array(arguments.length-2),i=2;i<arguments.length;i++)s[i-2]=arguments[i];return o.prototype[r].apply(n,s)}},goog.scope=function(e){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");e.call(goog.global)},COMPILED||(goog.global.COMPILED=COMPILED),goog.defineClass=function(e,o){var t=o.constructor,n=o.statics;return t&&t!=Object.prototype.constructor||(t=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),t=goog.defineClass.createSealingConstructor_(t,e),e&&goog.inherits(t,e),delete o.constructor,delete o.statics,goog.defineClass.applyProperties_(t.prototype,o),n!=null&&(n instanceof Function?n(t):goog.defineClass.applyProperties_(t,n)),t},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(e,o){return goog.defineClass.SEAL_CLASS_INSTANCES?function(){var t=e.apply(this,arguments)||this;return t[goog.UID_PROPERTY_]=t[goog.UID_PROPERTY_],t}:e},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(e,o){for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);for(var n=0;n<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;n++)t=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[n],Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])},goog.identity_=function(e){return e},goog.createTrustedTypesPolicy=function(e){var o=null,t=goog.global.trustedTypes;if(!t||!t.createPolicy)return o;try{o=t.createPolicy(e,{createHTML:goog.identity_,createScript:goog.identity_,createScriptURL:goog.identity_})}catch(n){goog.logToConsole_(n.message)}return o},!COMPILED&&goog.DEPENDENCIES_ENABLED&&(goog.isEdge_=function(){return!!(goog.global.navigator&&goog.global.navigator.userAgent?goog.global.navigator.userAgent:"").match(/Edge\/(\d+)(\.\d)*/i)},goog.inHtmlDocument_=function(){var e=goog.global.document;return e!=null&&"write"in e},goog.isDocumentLoading_=function(){var e=goog.global.document;return e.attachEvent?e.readyState!="complete":e.readyState=="loading"},goog.findBasePath_=function(){if(goog.global.CLOSURE_BASE_PATH!=null&&typeof goog.global.CLOSURE_BASE_PATH=="string")goog.basePath=goog.global.CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_()){var e=goog.global.document,o=e.currentScript;for(e=o?[o]:e.getElementsByTagName("SCRIPT"),o=e.length-1;0<=o;--o){var t=e[o].src,n=t.lastIndexOf("?");if(n=n==-1?t.length:n,t.slice(n-7,n)=="base.js"){goog.basePath=t.slice(0,n-7);break}}}},goog.findBasePath_(),goog.protectScriptTag_=function(e){return e.replace(/<\/(SCRIPT)/gi,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory,this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(e,o){function t(){n&&(goog.global.setTimeout(n,0),n=null)}var n=o;if(e.length){o=[];for(var r=0;r<e.length;r++){var d=this.getPathFromDeps_(e[r]);if(!d)throw Error("Unregonized namespace: "+e[r]);o.push(this.dependencies_[d])}d=goog.require;var s=0;for(r=0;r<e.length;r++)d(e[r]),o[r].onLoad(function(){++s==e.length&&t()})}else t()},goog.DebugLoader_.prototype.loadClosureDeps=function(){this.depsToLoad_.push(this.factory_.createDependency(goog.normalizePath_(goog.basePath+"deps.js"),"deps.js",[],[],{})),this.loadDeps_()},goog.DebugLoader_.prototype.requested=function(e,o){(e=this.getPathFromDeps_(e))&&(o||this.areDepsLoaded_(this.dependencies_[e].requires))&&(o=this.deferredCallbacks_[e])&&(delete this.deferredCallbacks_[e],o())},goog.DebugLoader_.prototype.setDependencyFactory=function(e){this.factory_=e},goog.DebugLoader_.prototype.load_=function(e){if(this.getPathFromDeps_(e)){var o=this,t=[],n=function(r){var d=o.getPathFromDeps_(r);if(!d)throw Error("Bad dependency path or symbol: "+r);if(!o.written_[d]){for(o.written_[d]=!0,r=o.dependencies_[d],d=0;d<r.requires.length;d++)goog.isProvided_(r.requires[d])||n(r.requires[d]);t.push(r)}};n(e),e=!!this.depsToLoad_.length,this.depsToLoad_=this.depsToLoad_.concat(t),this.paused_||e||this.loadDeps_()}else goog.logToConsole_("goog.require could not find: "+e)},goog.DebugLoader_.prototype.loadDeps_=function(){for(var e=this,o=this.paused_;this.depsToLoad_.length&&!o;)(function(){var t=!1,n=e.depsToLoad_.shift(),r=!1;e.loading_(n);var d={pause:function(){if(t)throw Error("Cannot call pause after the call to load.");o=!0},resume:function(){t?e.resume_():o=!1},loaded:function(){if(r)throw Error("Double call to loaded.");r=!0,e.loaded_(n)},pending:function(){for(var s=[],i=0;i<e.loadingDeps_.length;i++)s.push(e.loadingDeps_[i]);return s},setModuleState:function(s){goog.moduleLoaderState_={type:s,moduleName:"",declareLegacyNamespace:!1}},registerEs6ModuleExports:function(s,i,g){g&&(goog.loadedModules_[g]={exports:i,type:goog.ModuleType.ES6,moduleId:g||""})},registerGoogModuleExports:function(s,i){goog.loadedModules_[s]={exports:i,type:goog.ModuleType.GOOG,moduleId:s}},clearModuleState:function(){goog.moduleLoaderState_=null},defer:function(s){if(t)throw Error("Cannot register with defer after the call to load.");e.defer_(n,s)},areDepsLoaded:function(){return e.areDepsLoaded_(n.requires)}};try{n.load(d)}finally{t=!0}})();o&&this.pause_()},goog.DebugLoader_.prototype.pause_=function(){this.paused_=!0},goog.DebugLoader_.prototype.resume_=function(){this.paused_&&(this.paused_=!1,this.loadDeps_())},goog.DebugLoader_.prototype.loading_=function(e){this.loadingDeps_.push(e)},goog.DebugLoader_.prototype.loaded_=function(e){for(var o=0;o<this.loadingDeps_.length;o++)if(this.loadingDeps_[o]==e){this.loadingDeps_.splice(o,1);break}for(o=0;o<this.deferredQueue_.length;o++)if(this.deferredQueue_[o]==e.path){this.deferredQueue_.splice(o,1);break}if(this.loadingDeps_.length==this.deferredQueue_.length&&!this.depsToLoad_.length)for(;this.deferredQueue_.length;)this.requested(this.deferredQueue_.shift(),!0);e.loaded()},goog.DebugLoader_.prototype.areDepsLoaded_=function(e){for(var o=0;o<e.length;o++){var t=this.getPathFromDeps_(e[o]);if(!t||!(t in this.deferredCallbacks_||goog.isProvided_(e[o])))return!1}return!0},goog.DebugLoader_.prototype.getPathFromDeps_=function(e){return e in this.idToPath_?this.idToPath_[e]:e in this.dependencies_?e:null},goog.DebugLoader_.prototype.defer_=function(e,o){this.deferredCallbacks_[e.path]=o,this.deferredQueue_.push(e.path)},goog.LoadController=function(){},goog.LoadController.prototype.pause=function(){},goog.LoadController.prototype.resume=function(){},goog.LoadController.prototype.loaded=function(){},goog.LoadController.prototype.pending=function(){},goog.LoadController.prototype.registerEs6ModuleExports=function(e,o,t){},goog.LoadController.prototype.setModuleState=function(e){},goog.LoadController.prototype.clearModuleState=function(){},goog.LoadController.prototype.defer=function(e){},goog.LoadController.prototype.areDepsLoaded=function(){},goog.Dependency=function(e,o,t,n,r){this.path=e,this.relativePath=o,this.provides=t,this.requires=n,this.loadFlags=r,this.loaded_=!1,this.loadCallbacks_=[]},goog.Dependency.prototype.getPathName=function(){var e=this.path,o=e.indexOf("://");return 0<=o&&(e=e.substring(o+3),o=e.indexOf("/"),0<=o&&(e=e.substring(o+1))),e},goog.Dependency.prototype.onLoad=function(e){this.loaded_?e():this.loadCallbacks_.push(e)},goog.Dependency.prototype.loaded=function(){this.loaded_=!0;var e=this.loadCallbacks_;this.loadCallbacks_=[];for(var o=0;o<e.length;o++)e[o]()},goog.Dependency.defer_=!1,goog.Dependency.callbackMap_={},goog.Dependency.registerCallback_=function(e){var o=Math.random().toString(32);return goog.Dependency.callbackMap_[o]=e,o},goog.Dependency.unregisterCallback_=function(e){delete goog.Dependency.callbackMap_[e]},goog.Dependency.callback_=function(e,o){if(e in goog.Dependency.callbackMap_){for(var t=goog.Dependency.callbackMap_[e],n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);t.apply(void 0,n)}else throw Error("Callback key "+e+" does not exist (was base.js loaded more than once?).")},goog.Dependency.prototype.load=function(e){if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?e.loaded():e.pause();else if(goog.inHtmlDocument_()){var o=goog.global.document;if(o.readyState=="complete"&&!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING){if(/\bdeps.js$/.test(this.path)){e.loaded();return}throw Error('Cannot write "'+this.path+'" after document load')}var t=goog.getScriptNonce_();if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&goog.isDocumentLoading_()){var n=function(i){i.readyState&&i.readyState!="complete"?i.onload=n:(goog.Dependency.unregisterCallback_(r),e.loaded())},r=goog.Dependency.registerCallback_(n);t=t?' nonce="'+t+'"':"";var d='<script src="'+this.path+'"'+t+(goog.Dependency.defer_?" defer":"")+' id="script-'+r+'"><\/script>';d+="<script"+t+">",d=goog.Dependency.defer_?d+("document.getElementById('script-"+r+`').onload = function() { goog.Dependency.callback_('`+r+`', this); }; `):d+("goog.Dependency.callback_('"+r+"', document.getElementById('script-"+r+"'));"),d+="<\/script>",o.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(d):d)}else{var s=o.createElement("script");s.defer=goog.Dependency.defer_,s.async=!1,t&&(s.nonce=t),s.onload=function(){s.onload=null,e.loaded()},s.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path):this.path,o.head.appendChild(s)}}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),this.relativePath=="deps.js"?(goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true."),e.loaded()):e.pause()},goog.Es6ModuleDependency=function(e,o,t,n,r){goog.Dependency.call(this,e,o,t,n,r)},goog.inherits(goog.Es6ModuleDependency,goog.Dependency),goog.Es6ModuleDependency.prototype.load=function(e){function o(u,m){var l="",h=goog.getScriptNonce_();h&&(l=' nonce="'+h+'"'),u=m?'<script type="module" crossorigin'+l+">"+m+"<\/script>":'<script type="module" crossorigin src="'+u+'"'+l+"><\/script>",n.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(u):u)}function t(u,m){var l=n.createElement("script");l.defer=!0,l.async=!1,l.type="module",l.setAttribute("crossorigin",!0);var h=goog.getScriptNonce_();h&&(l.nonce=h),m?l.text=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScript(m):m:l.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(u):u,n.head.appendChild(l)}if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?e.loaded():e.pause();else if(goog.inHtmlDocument_()){var n=goog.global.document,r=this;if(goog.isDocumentLoading_()){var d=o;goog.Dependency.defer_=!0}else d=t;var s=goog.Dependency.registerCallback_(function(){goog.Dependency.unregisterCallback_(s),e.setModuleState(goog.ModuleType.ES6)});d(void 0,'goog.Dependency.callback_("'+s+'")'),d(this.path,void 0);var i=goog.Dependency.registerCallback_(function(u){goog.Dependency.unregisterCallback_(i),e.registerEs6ModuleExports(r.path,u,goog.moduleLoaderState_.moduleName)});d(void 0,'import * as m from "'+this.path+'"; goog.Dependency.callback_("'+i+'", m)');var g=goog.Dependency.registerCallback_(function(){goog.Dependency.unregisterCallback_(g),e.clearModuleState(),e.loaded()});d(void 0,'goog.Dependency.callback_("'+g+'")')}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),e.pause()},goog.TransformedDependency=function(e,o,t,n,r){goog.Dependency.call(this,e,o,t,n,r),this.contents_=null,this.lazyFetch_=!goog.inHtmlDocument_()||!("noModule"in goog.global.document.createElement("script"))},goog.inherits(goog.TransformedDependency,goog.Dependency),goog.TransformedDependency.prototype.load=function(e){function o(){r.contents_=goog.loadFileSync_(r.path),r.contents_&&(r.contents_=r.transform(r.contents_),r.contents_&&(r.contents_+=` //# sourceURL=`+r.path))}function t(){if(r.lazyFetch_&&o(),r.contents_){d&&e.setModuleState(goog.ModuleType.ES6);try{var u=r.contents_;if(r.contents_=null,goog.globalEval(goog.CLOSURE_EVAL_PREFILTER_.createScript(u)),d)var m=goog.moduleLoaderState_.moduleName}finally{d&&e.clearModuleState()}d&&goog.global.$jscomp.require.ensure([r.getPathName()],function(){e.registerEs6ModuleExports(r.path,goog.global.$jscomp.require(r.getPathName()),m)}),e.loaded()}}function n(){var u=goog.global.document,m=goog.Dependency.registerCallback_(function(){goog.Dependency.unregisterCallback_(m),t()}),l=goog.getScriptNonce_();l="<script"+(l?' nonce="'+l+'"':"")+">"+goog.protectScriptTag_('goog.Dependency.callback_("'+m+'");')+"<\/script>",u.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(l):l)}var r=this;if(goog.global.CLOSURE_IMPORT_SCRIPT)o(),this.contents_&&goog.global.CLOSURE_IMPORT_SCRIPT("",this.contents_)?(this.contents_=null,e.loaded()):e.pause();else{var d=this.loadFlags.module==goog.ModuleType.ES6;this.lazyFetch_||o();var s=1<e.pending().length;if(goog.Dependency.defer_&&(s||goog.isDocumentLoading_()))e.defer(function(){t()});else{var i=goog.global.document;if(s=goog.inHtmlDocument_()&&("ActiveXObject"in goog.global||goog.isEdge_()),d&&goog.inHtmlDocument_()&&goog.isDocumentLoading_()&&!s){goog.Dependency.defer_=!0,e.pause();var g=i.onreadystatechange;i.onreadystatechange=function(){i.readyState=="interactive"&&(i.onreadystatechange=g,t(),e.resume()),typeof g=="function"&&g.apply(void 0,arguments)}}else goog.inHtmlDocument_()&&goog.isDocumentLoading_()?n():t()}}},goog.TransformedDependency.prototype.transform=function(e){},goog.PreTranspiledEs6ModuleDependency=function(e,o,t,n,r){goog.TransformedDependency.call(this,e,o,t,n,r)},goog.inherits(goog.PreTranspiledEs6ModuleDependency,goog.TransformedDependency),goog.PreTranspiledEs6ModuleDependency.prototype.transform=function(e){return e},goog.GoogModuleDependency=function(e,o,t,n,r){goog.TransformedDependency.call(this,e,o,t,n,r)},goog.inherits(goog.GoogModuleDependency,goog.TransformedDependency),goog.GoogModuleDependency.prototype.transform=function(e){return goog.LOAD_MODULE_USING_EVAL&&goog.global.JSON!==void 0?"goog.loadModule("+goog.global.JSON.stringify(e+` //# sourceURL=`+this.path+` `)+");":'goog.loadModule(function(exports) {"use strict";'+e+` ;return exports}); //# sourceURL=`+this.path+` `},goog.DebugLoader_.prototype.addDependency=function(e,o,t,n){o=o||[],e=e.replace(/\\/g,"/");var r=goog.normalizePath_(goog.basePath+e);for(n&&typeof n!="boolean"||(n=n?{module:goog.ModuleType.GOOG}:{}),t=this.factory_.createDependency(r,e,o,t,n),this.dependencies_[r]=t,t=0;t<o.length;t++)this.idToPath_[o[t]]=r;this.idToPath_[e]=r},goog.DependencyFactory=function(){},goog.DependencyFactory.prototype.createDependency=function(e,o,t,n,r){return r.module==goog.ModuleType.GOOG?new goog.GoogModuleDependency(e,o,t,n,r):r.module==goog.ModuleType.ES6?goog.ASSUME_ES_MODULES_TRANSPILED?new goog.PreTranspiledEs6ModuleDependency(e,o,t,n,r):new goog.Es6ModuleDependency(e,o,t,n,r):new goog.Dependency(e,o,t,n,r)},goog.debugLoader_=new goog.DebugLoader_,goog.loadClosureDeps=function(){goog.debugLoader_.loadClosureDeps()},goog.setDependencyFactory=function(e){goog.debugLoader_.setDependencyFactory(e)},goog.TRUSTED_TYPES_POLICY_=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#base"):null,goog.global.CLOSURE_NO_DEPS||goog.debugLoader_.loadClosureDeps(),goog.bootstrap=function(e,o){goog.debugLoader_.bootstrap(e,o)}),!COMPILED){var isChrome87=!1;try{isChrome87=eval(goog.global.trustedTypes.emptyScript)!==goog.global.trustedTypes.emptyScript}catch(e){}goog.CLOSURE_EVAL_PREFILTER_=goog.global.trustedTypes&&isChrome87&&goog.createTrustedTypesPolicy("goog#base#devonly#eval")||{createScript:goog.identity_}}goog.debug={};function module$contents$goog$debug$Error_DebugError(e,o){if(Error.captureStackTrace)Error.captureStackTrace(this,module$contents$goog$debug$Error_DebugError);else{let t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e)),o!==void 0&&(this.cause=o),this.reportErrorToServer=!0}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=goog.DEBUG;function module$contents$goog$asserts_AssertionError(e,o){module$contents$goog$debug$Error_DebugError.call(this,module$contents$goog$asserts_subs(e,o)),this.messagePattern=e}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(e){throw e};let module$contents$goog$asserts_errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER;function module$contents$goog$asserts_subs(e,o){e=e.split("%s");let t="",n=e.length-1;for(let r=0;r<n;r++)t+=e[r]+(r<o.length?o[r]:"%s");return t+e[n]}function module$contents$goog$asserts_doAssertFailure(e,o,t,n){let r="Assertion failed",d;t?(r+=": "+t,d=n):e&&(r+=": "+e,d=o),e=new module$contents$goog$asserts_AssertionError(""+r,d||[]),module$contents$goog$asserts_errorHandler_(e)}goog.asserts.setErrorHandler=function(e){goog.asserts.ENABLE_ASSERTS&&(module$contents$goog$asserts_errorHandler_=e)},goog.asserts.assert=function(e,o,t){return goog.asserts.ENABLE_ASSERTS&&!e&&module$contents$goog$asserts_doAssertFailure("",null,o,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertExists=function(e,o,t){return goog.asserts.ENABLE_ASSERTS&&e==null&&module$contents$goog$asserts_doAssertFailure("Expected to exist: %s.",[e],o,Array.prototype.slice.call(arguments,2)),e},goog.asserts.fail=function(e,o){goog.asserts.ENABLE_ASSERTS&&module$contents$goog$asserts_errorHandler_(new module$contents$goog$asserts_AssertionError("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1)))},goog.asserts.assertNumber=function(e,o,t){return goog.asserts.ENABLE_ASSERTS&&typeof e!="number"&&module$contents$goog$asserts_doAssertFailure("Expected number but got %s: %s.",[goog.typeOf(e),e],o,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertString=function(e,o,t){return goog.asserts.ENABLE_ASSERTS&&typeof e!="string"&&module$contents$goog$asserts_doAssertFailure("Expected string but got %s: %s.",[goog.typeOf(e),e],o,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertFunction=function(e,o,t){return goog.asserts.ENABLE_ASSERTS&&typeof e!="function"&&module$contents$goog$asserts_doAssertFailure("Expected function but got %s: %s.",[goog.typeOf(e),e],o,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertObject=function(e,o,t){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(e)&&module$contents$goog$asserts_doAssertFailure("Expected object but got %s: %s.",[goog.typeOf(e),e],o,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertArray=function(e,o,t){return goog.asserts.ENABLE_ASSERTS&&!Array.isArray(e)&&module$contents$goog$asserts_doAssertFailure("Expected array but got %s: %s.",[goog.typeOf(e),e],o,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertBoolean=function(e,o,t){return goog.asserts.ENABLE_ASSERTS&&typeof e!="boolean"&&module$contents$goog$asserts_doAssertFailure("Expected boolean but got %s: %s.",[goog.typeOf(e),e],o,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertElement=function(e,o,t){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(e)&&e.nodeType==goog.dom.NodeType.ELEMENT||module$contents$goog$asserts_doAssertFailure("Expected Element but got %s: %s.",[goog.typeOf(e),e],o,Array.prototype.slice.call(arguments,2)),e},goog.asserts.assertInstanceof=function(e,o,t,n){return!goog.asserts.ENABLE_ASSERTS||e instanceof o||module$contents$goog$asserts_doAssertFailure("Expected instanceof %s but got %s.",[module$contents$goog$asserts_getType(o),module$contents$goog$asserts_getType(e)],t,Array.prototype.slice.call(arguments,3)),e},goog.asserts.assertFinite=function(e,o,t){return!goog.asserts.ENABLE_ASSERTS||typeof e=="number"&&isFinite(e)||module$contents$goog$asserts_doAssertFailure("Expected %s to be a finite number but it is not.",[e],o,Array.prototype.slice.call(arguments,2)),e};function module$contents$goog$asserts_getType(e){return e instanceof Function?e.displayName||e.name||"unknown type name":e instanceof Object?e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e):e===null?"null":typeof e}goog.array={},goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE;let module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS=2012<goog.FEATURESET_YEAR;goog.array.ASSUME_NATIVE_FUNCTIONS=module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS;function module$contents$goog$array_peek(e){return e[e.length-1]}goog.array.peek=module$contents$goog$array_peek,goog.array.last=module$contents$goog$array_peek;let module$contents$goog$array_indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(e,o,t){return goog.asserts.assert(e.length!=null),Array.prototype.indexOf.call(e,o,t)}:function(e,o,t){if(t=t==null?0:0>t?Math.max(0,e.length+t):t,typeof e=="string")return typeof o!="string"||o.length!=1?-1:e.indexOf(o,t);for(;t<e.length;t++)if(t in e&&e[t]===o)return t;return-1};goog.array.indexOf=module$contents$goog$array_indexOf;let module$contents$goog$array_lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(e,o,t){return goog.asserts.assert(e.length!=null),Array.prototype.lastIndexOf.call(e,o,t??e.length-1)}:function(e,o,t){if(t=t??e.length-1,0>t&&(t=Math.max(0,e.length+t)),typeof e=="string")return typeof o!="string"||o.length!=1?-1:e.lastIndexOf(o,t);for(;0<=t;t--)if(t in e&&e[t]===o)return t;return-1};goog.array.lastIndexOf=module$contents$goog$array_lastIndexOf;let module$contents$goog$array_forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(e,o,t){goog.asserts.assert(e.length!=null),Array.prototype.forEach.call(e,o,t)}:function(e,o,t){let n=e.length,r=typeof e=="string"?e.split(""):e;for(let d=0;d<n;d++)d in r&&o.call(t,r[d],d,e)};goog.array.forEach=module$contents$goog$array_forEach;function module$contents$goog$array_forEachRight(e,o,t){var n=e.length;let r=typeof e=="string"?e.split(""):e;for(--n;0<=n;--n)n in r&&o.call(t,r[n],n,e)}goog.array.forEachRight=module$contents$goog$array_forEachRight;let module$contents$goog$array_filter=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(e,o,t){return goog.asserts.assert(e.length!=null),Array.prototype.filter.call(e,o,t)}:function(e,o,t){let n=e.length,r=[],d=0,s=typeof e=="string"?e.split(""):e;for(let i=0;i<n;i++)if(i in s){let g=s[i];o.call(t,g,i,e)&&(r[d++]=g)}return r};goog.array.filter=module$contents$goog$array_filter;let module$contents$goog$array_map=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(e,o,t){return goog.asserts.assert(e.length!=null),Array.prototype.map.call(e,o,t)}:function(e,o,t){let n=e.length,r=Array(n),d=typeof e=="string"?e.split(""):e;for(let s=0;s<n;s++)s in d&&(r[s]=o.call(t,d[s],s,e));return r};goog.array.map=module$contents$goog$array_map;let module$contents$goog$array_reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(e,o,t,n){return goog.asserts.assert(e.length!=null),n&&(o=goog.bind(o,n)),Array.prototype.reduce.call(e,o,t)}:function(e,o,t,n){let r=t;return module$contents$goog$array_forEach(e,function(d,s){r=o.call(n,r,d,s,e)}),r};goog.array.reduce=module$contents$goog$array_reduce;let module$contents$goog$array_reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(e,o,t,n){return goog.asserts.assert(e.length!=null),goog.asserts.assert(o!=null),n&&(o=goog.bind(o,n)),Array.prototype.reduceRight.call(e,o,t)}:function(e,o,t,n){let r=t;return module$contents$goog$array_forEachRight(e,function(d,s){r=o.call(n,r,d,s,e)}),r};goog.array.reduceRight=module$contents$goog$array_reduceRight;let module$contents$goog$array_some=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(e,o,t){return goog.asserts.assert(e.length!=null),Array.prototype.some.call(e,o,t)}:function(e,o,t){let n=e.length,r=typeof e=="string"?e.split(""):e;for(let d=0;d<n;d++)if(d in r&&o.call(t,r[d],d,e))return!0;return!1};goog.array.some=module$contents$goog$array_some;let module$contents$goog$array_every=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(e,o,t){return goog.asserts.assert(e.length!=null),Array.prototype.every.call(e,o,t)}:function(e,o,t){let n=e.length,r=typeof e=="string"?e.split(""):e;for(let d=0;d<n;d++)if(d in r&&!o.call(t,r[d],d,e))return!1;return!0};goog.array.every=module$contents$goog$array_every;function module$contents$goog$array_count(e,o,t){let n=0;return module$contents$goog$array_forEach(e,function(r,d,s){o.call(t,r,d,s)&&++n},t),n}goog.array.count=module$contents$goog$array_count;function module$contents$goog$array_find(e,o,t){return o=module$contents$goog$array_findIndex(e,o,t),0>o?null:typeof e=="string"?e.charAt(o):e[o]}goog.array.find=module$contents$goog$array_find;function module$contents$goog$array_findIndex(e,o,t){let n=e.length,r=typeof e=="string"?e.split(""):e;for(let d=0;d<n;d++)if(d in r&&o.call(t,r[d],d,e))return d;return-1}goog.array.findIndex=module$contents$goog$array_findIndex;function module$contents$goog$array_findRight(e,o,t){return o=module$contents$goog$array_findIndexRight(e,o,t),0>o?null:typeof e=="string"?e.charAt(o):e[o]}goog.array.findRight=module$contents$goog$array_findRight;function module$contents$goog$array_findIndexRight(e,o,t){var n=e.length;let r=typeof e=="string"?e.split(""):e;for(--n;0<=n;n--)if(n in r&&o.call(t,r[n],n,e))return n;return-1}goog.array.findIndexRight=module$contents$goog$array_findIndexRight;function module$contents$goog$array_contains(e,o){return 0<=module$contents$goog$array_indexOf(e,o)}goog.array.contains=module$contents$goog$array_contains;function module$contents$goog$array_isEmpty(e){return e.length==0}goog.array.isEmpty=module$contents$goog$array_isEmpty;function module$contents$goog$array_clear(e){if(!Array.isArray(e))for(let o=e.length-1;0<=o;o--)delete e[o];e.length=0}goog.array.clear=module$contents$goog$array_clear;function module$contents$goog$array_insert(e,o){module$contents$goog$array_contains(e,o)||e.push(o)}goog.array.insert=module$contents$goog$array_insert;function module$contents$goog$array_insertAt(e,o,t){module$contents$goog$array_splice(e,t,0,o)}goog.array.insertAt=module$contents$goog$array_insertAt;function module$contents$goog$array_insertArrayAt(e,o,t){goog.partial(module$contents$goog$array_splice,e,t,0).apply(null,o)}goog.array.insertArrayAt=module$contents$goog$array_insertArrayAt;function module$contents$goog$array_insertBefore(e,o,t){let n;arguments.length==2||0>(n=module$contents$goog$array_indexOf(e,t))?e.push(o):module$contents$goog$array_insertAt(e,o,n)}goog.array.insertBefore=module$contents$goog$array_insertBefore;function module$contents$goog$array_remove(e,o){o=module$contents$goog$array_indexOf(e,o);let t;return(t=0<=o)&&module$contents$goog$array_removeAt(e,o),t}goog.array.remove=module$contents$goog$array_remove;function module$contents$goog$array_removeLast(e,o){return o=module$contents$goog$array_lastIndexOf(e,o),0<=o?(module$contents$goog$array_removeAt(e,o),!0):!1}goog.array.removeLast=module$contents$goog$array_removeLast;function module$contents$goog$array_removeAt(e,o){return goog.asserts.assert(e.length!=null),Array.prototype.splice.call(e,o,1).length==1}goog.array.removeAt=module$contents$goog$array_removeAt;function module$contents$goog$array_removeIf(e,o,t){return o=module$contents$goog$array_findIndex(e,o,t),0<=o?(module$contents$goog$array_removeAt(e,o),!0):!1}goog.array.removeIf=module$contents$goog$array_removeIf;function module$contents$goog$array_removeAllIf(e,o,t){let n=0;return module$contents$goog$array_forEachRight(e,function(r,d){o.call(t,r,d,e)&&module$contents$goog$array_removeAt(e,d)&&n++}),n}goog.array.removeAllIf=module$contents$goog$array_removeAllIf;function module$contents$goog$array_concat(e){return Array.prototype.concat.apply([],arguments)}goog.array.concat=module$contents$goog$array_concat;function module$contents$goog$array_join(e){return Array.prototype.concat.apply([],arguments)}goog.array.join=module$contents$goog$array_join;function module$contents$goog$array_toArray(e){let o=e.length;if(0<o){let t=Array(o);for(let n=0;n<o;n++)t[n]=e[n];return t}return[]}let module$contents$goog$array_clone=goog.array.toArray=module$contents$goog$array_toArray;goog.array.clone=module$contents$goog$array_toArray;function module$contents$goog$array_extend(e,o){for(let t=1;t<arguments.length;t++){let n=arguments[t];if(goog.isArrayLike(n)){let r=e.length||0,d=n.length||0;e.length=r+d;for(let s=0;s<d;s++)e[r+s]=n[s]}else e.push(n)}}goog.array.extend=module$contents$goog$array_extend;function module$contents$goog$array_splice(e,o,t,n){return goog.asserts.assert(e.length!=null),Array.prototype.splice.apply(e,module$contents$goog$array_slice(arguments,1))}goog.array.splice=module$contents$goog$array_splice;function module$contents$goog$array_slice(e,o,t){return goog.asserts.assert(e.length!=null),2>=arguments.length?Array.prototype.slice.call(e,o):Array.prototype.slice.call(e,o,t)}goog.array.slice=module$contents$goog$array_slice;function module$contents$goog$array_removeDuplicates(e,o,t){o=o||e;var n=function(s){return goog.isObject(s)?"o"+goog.getUid(s):(typeof s).charAt(0)+s};t=t||n;let r=n=0,d={};for(;r<e.length;){let s=e[r++],i=t(s);Object.prototype.hasOwnProperty.call(d,i)||(d[i]=!0,o[n++]=s)}o.length=n}goog.array.removeDuplicates=module$contents$goog$array_removeDuplicates;function module$contents$goog$array_binarySearch(e,o,t){return module$contents$goog$array_binarySearch_(e,t||module$contents$goog$array_defaultCompare,!1,o)}goog.array.binarySearch=module$contents$goog$array_binarySearch;function module$contents$goog$array_binarySelect(e,o,t){return module$contents$goog$array_binarySearch_(e,o,!0,void 0,t)}goog.array.binarySelect=module$contents$goog$array_binarySelect;function module$contents$goog$array_binarySearch_(e,o,t,n,r){let d=0,s=e.length,i;for(;d<s;){let g=d+(s-d>>>1),u;u=t?o.call(r,e[g],g,e):o(n,e[g]),0<u?d=g+1:(s=g,i=!u)}return i?d:-d-1}function module$contents$goog$array_sort(e,o){e.sort(o||module$contents$goog$array_defaultCompare)}goog.array.sort=module$contents$goog$array_sort;function module$contents$goog$array_stableSort(e,o){let t=Array(e.length);for(let r=0;r<e.length;r++)t[r]={index:r,value:e[r]};let n=o||module$contents$goog$array_defaultCompare;for(module$contents$goog$array_sort(t,function(r,d){return n(r.value,d.value)||r.index-d.index}),o=0;o<e.length;o++)e[o]=t[o].value}goog.array.stableSort=module$contents$goog$array_stableSort;function module$contents$goog$array_sortByKey(e,o,t){let n=t||module$contents$goog$array_defaultCompare;module$contents$goog$array_sort(e,function(r,d){return n(o(r),o(d))})}goog.array.sortByKey=module$contents$goog$array_sortByKey;function module$contents$goog$array_sortObjectsByKey(e,o,t){module$contents$goog$array_sortByKey(e,function(n){return n[o]},t)}goog.array.sortObjectsByKey=module$contents$goog$array_sortObjectsByKey;function module$contents$goog$array_isSorted(e,o,t){o=o||module$contents$goog$array_defaultCompare;for(let n=1;n<e.length;n++){let r=o(e[n-1],e[n]);if(0<r||r==0&&t)return!1}return!0}goog.array.isSorted=module$contents$goog$array_isSorted;function module$contents$goog$array_equals(e,o,t){if(!goog.isArrayLike(e)||!goog.isArrayLike(o)||e.length!=o.length)return!1;let n=e.length;t=t||module$contents$goog$array_defaultCompareEquality;for(let r=0;r<n;r++)if(!t(e[r],o[r]))return!1;return!0}goog.array.equals=module$contents$goog$array_equals;function module$contents$goog$array_compare3(e,o,t){t=t||module$contents$goog$array_defaultCompare;let n=Math.min(e.length,o.length);for(let r=0;r<n;r++){let d=t(e[r],o[r]);if(d!=0)return d}return module$contents$goog$array_defaultCompare(e.length,o.length)}goog.array.compare3=module$contents$goog$array_compare3;function module$contents$goog$array_defaultCompare(e,o){return e>o?1:e<o?-1:0}goog.array.defaultCompare=module$contents$goog$array_defaultCompare;function module$contents$goog$array_inverseDefaultCompare(e,o){return-module$contents$goog$array_defaultCompare(e,o)}goog.array.inverseDefaultCompare=module$contents$goog$array_inverseDefaultCompare;function module$contents$goog$array_defaultCompareEquality(e,o){return e===o}goog.array.defaultCompareEquality=module$contents$goog$array_defaultCompareEquality;function module$contents$goog$array_binaryInsert(e,o,t){return t=module$contents$goog$array_binarySearch(e,o,t),0>t?(module$contents$goog$array_insertAt(e,o,-(t+1)),!0):!1}goog.array.binaryInsert=module$contents$goog$array_binaryInsert;function module$contents$goog$array_binaryRemove(e,o,t){return o=module$contents$goog$array_binarySearch(e,o,t),0<=o?module$contents$goog$array_removeAt(e,o):!1}goog.array.binaryRemove=module$contents$goog$array_binaryRemove;function module$contents$goog$array_bucket(e,o,t){let n={};for(let r=0;r<e.length;r++){let d=e[r],s=o.call(t,d,r,e);s!==void 0&&(n[s]||(n[s]=[])).push(d)}return n}goog.array.bucket=module$contents$goog$array_bucket;function module$contents$goog$array_bucketToMap(e,o){let t=new Map;for(let n=0;n<e.length;n++){let r=e[n],d=o(r,n,e);if(d!==void 0){let s=t.get(d);s||(s=[],t.set(d,s)),s.push(r)}}return t}goog.array.bucketToMap=module$contents$goog$array_bucketToMap;function module$contents$goog$array_toObject(e,o,t){let n={};return module$contents$goog$array_forEach(e,function(r,d){n[o.call(t,r,d,e)]=r}),n}goog.array.toObject=module$contents$goog$array_toObject;function module$contents$goog$array_toMap(e,o){let t=new Map;for(let n=0;n<e.length;n++){let r=e[n];t.set(o(r,n,e),r)}return t}goog.array.toMap=module$contents$goog$array_toMap;function module$contents$goog$array_range(e,o,t){let n=[],r=0,d=e;if(t=t||1,o!==void 0&&(r=e,d=o),0>t*(d-r))return[];if(0<t)for(e=r;e<d;e+=t)n.push(e);else for(e=r;e>d;e+=t)n.push(e);return n}goog.array.range=module$contents$goog$array_range;function module$contents$goog$array_repeat(e,o){let t=[];for(let n=0;n<o;n++)t[n]=e;return t}goog.array.repeat=module$contents$goog$array_repeat;function module$contents$goog$array_flatten(e){let o=[];for(let n=0;n<arguments.length;n++){let r=arguments[n];if(Array.isArray(r))for(let d=0;d<r.length;d+=8192){var t=module$contents$goog$array_slice(r,d,d+8192);t=module$contents$goog$array_flatten.apply(null,t);for(let s=0;s<t.length;s++)o.push(t[s])}else o.push(r)}return o}goog.array.flatten=module$contents$goog$array_flatten;function module$contents$goog$array_rotate(e,o){return goog.asserts.assert(e.length!=null),e.length&&(o%=e.length,0<o?Array.prototype.unshift.apply(e,e.splice(-o,o)):0>o&&Array.prototype.push.apply(e,e.splice(0,-o))),e}goog.array.rotate=module$contents$goog$array_rotate;function module$contents$goog$array_moveItem(e,o,t){goog.asserts.assert(0<=o&&o<e.length),goog.asserts.assert(0<=t&&t<e.length),o=Array.prototype.splice.call(e,o,1),Array.prototype.splice.call(e,t,0,o[0])}goog.array.moveItem=module$contents$goog$array_moveItem;function module$contents$goog$array_zip(e){if(!arguments.length)return[];let o=[],t=arguments[0].length;for(var n=1;n<arguments.length;n++)arguments[n].length<t&&(t=arguments[n].length);for(n=0;n<t;n++){let r=[];for(let d=0;d<arguments.length;d++)r.push(arguments[d][n]);o.push(r)}return o}goog.array.zip=module$contents$goog$array_zip;function module$contents$goog$array_shuffle(e,o){o=o||Math.random;for(let t=e.length-1;0<t;t--){let n=Math.floor(o()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}}goog.array.shuffle=module$contents$goog$array_shuffle;function module$contents$goog$array_copyByIndex(e,o){let t=[];return module$contents$goog$array_forEach(o,function(n){t.push(e[n])}),t}goog.array.copyByIndex=module$contents$goog$array_copyByIndex;function module$contents$goog$array_concatMap(e,o,t){return module$contents$goog$array_concat.apply([],module$contents$goog$array_map(e,o,t))}goog.array.concatMap=module$contents$goog$array_concatMap,goog.dom.HtmlElement=function(){},goog.dom.TagName=class{static cast(e,o){return e}constructor(){}toString(){}},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.D