@p4ulcristian/iris-layout 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/dist/cljs-runtime/cljs.core.js +38746 -0
  2. package/dist/cljs-runtime/cljs.core.js.map +1 -0
  3. package/dist/cljs-runtime/cljs.pprint.js +8400 -0
  4. package/dist/cljs-runtime/cljs.pprint.js.map +1 -0
  5. package/dist/cljs-runtime/cljs.stacktrace.js +561 -0
  6. package/dist/cljs-runtime/cljs.stacktrace.js.map +1 -0
  7. package/dist/cljs-runtime/cljs_env.js +1286 -0
  8. package/dist/cljs-runtime/clojure.data.js +295 -0
  9. package/dist/cljs-runtime/clojure.data.js.map +1 -0
  10. package/dist/cljs-runtime/clojure.set.js +382 -0
  11. package/dist/cljs-runtime/clojure.set.js.map +1 -0
  12. package/dist/cljs-runtime/clojure.string.js +480 -0
  13. package/dist/cljs-runtime/clojure.string.js.map +1 -0
  14. package/dist/cljs-runtime/clojure.walk.js +132 -0
  15. package/dist/cljs-runtime/clojure.walk.js.map +1 -0
  16. package/dist/cljs-runtime/devtools.async.js +90 -0
  17. package/dist/cljs-runtime/devtools.async.js.map +1 -0
  18. package/dist/cljs-runtime/devtools.context.js +11 -0
  19. package/dist/cljs-runtime/devtools.context.js.map +1 -0
  20. package/dist/cljs-runtime/devtools.core.js +175 -0
  21. package/dist/cljs-runtime/devtools.core.js.map +1 -0
  22. package/dist/cljs-runtime/devtools.defaults.js +20 -0
  23. package/dist/cljs-runtime/devtools.defaults.js.map +1 -0
  24. package/dist/cljs-runtime/devtools.format.js +631 -0
  25. package/dist/cljs-runtime/devtools.format.js.map +1 -0
  26. package/dist/cljs-runtime/devtools.formatters.budgeting.js +182 -0
  27. package/dist/cljs-runtime/devtools.formatters.budgeting.js.map +1 -0
  28. package/dist/cljs-runtime/devtools.formatters.core.js +220 -0
  29. package/dist/cljs-runtime/devtools.formatters.core.js.map +1 -0
  30. package/dist/cljs-runtime/devtools.formatters.helpers.js +228 -0
  31. package/dist/cljs-runtime/devtools.formatters.helpers.js.map +1 -0
  32. package/dist/cljs-runtime/devtools.formatters.js +261 -0
  33. package/dist/cljs-runtime/devtools.formatters.js.map +1 -0
  34. package/dist/cljs-runtime/devtools.formatters.markup.js +1174 -0
  35. package/dist/cljs-runtime/devtools.formatters.markup.js.map +1 -0
  36. package/dist/cljs-runtime/devtools.formatters.printing.js +313 -0
  37. package/dist/cljs-runtime/devtools.formatters.printing.js.map +1 -0
  38. package/dist/cljs-runtime/devtools.formatters.state.js +325 -0
  39. package/dist/cljs-runtime/devtools.formatters.state.js.map +1 -0
  40. package/dist/cljs-runtime/devtools.formatters.templating.js +666 -0
  41. package/dist/cljs-runtime/devtools.formatters.templating.js.map +1 -0
  42. package/dist/cljs-runtime/devtools.hints.js +193 -0
  43. package/dist/cljs-runtime/devtools.hints.js.map +1 -0
  44. package/dist/cljs-runtime/devtools.munging.js +1058 -0
  45. package/dist/cljs-runtime/devtools.munging.js.map +1 -0
  46. package/dist/cljs-runtime/devtools.prefs.js +87 -0
  47. package/dist/cljs-runtime/devtools.prefs.js.map +1 -0
  48. package/dist/cljs-runtime/devtools.preload.js +11 -0
  49. package/dist/cljs-runtime/devtools.preload.js.map +1 -0
  50. package/dist/cljs-runtime/devtools.protocols.js +98 -0
  51. package/dist/cljs-runtime/devtools.protocols.js.map +1 -0
  52. package/dist/cljs-runtime/devtools.reporter.js +81 -0
  53. package/dist/cljs-runtime/devtools.reporter.js.map +1 -0
  54. package/dist/cljs-runtime/devtools.toolbox.js +141 -0
  55. package/dist/cljs-runtime/devtools.toolbox.js.map +1 -0
  56. package/dist/cljs-runtime/devtools.util.js +517 -0
  57. package/dist/cljs-runtime/devtools.util.js.map +1 -0
  58. package/dist/cljs-runtime/devtools.version.js +9 -0
  59. package/dist/cljs-runtime/devtools.version.js.map +1 -0
  60. package/dist/cljs-runtime/goog.array.array.js +659 -0
  61. package/dist/cljs-runtime/goog.array.array.js.map +9 -0
  62. package/dist/cljs-runtime/goog.asserts.asserts.js +133 -0
  63. package/dist/cljs-runtime/goog.asserts.asserts.js.map +9 -0
  64. package/dist/cljs-runtime/goog.asserts.dom.js +90 -0
  65. package/dist/cljs-runtime/goog.asserts.dom.js.map +9 -0
  66. package/dist/cljs-runtime/goog.async.nexttick.js +93 -0
  67. package/dist/cljs-runtime/goog.async.nexttick.js.map +9 -0
  68. package/dist/cljs-runtime/goog.base.js +1261 -0
  69. package/dist/cljs-runtime/goog.base.js.map +9 -0
  70. package/dist/cljs-runtime/goog.collections.maps.js +82 -0
  71. package/dist/cljs-runtime/goog.collections.maps.js.map +9 -0
  72. package/dist/cljs-runtime/goog.debug.entrypointregistry.js +44 -0
  73. package/dist/cljs-runtime/goog.debug.entrypointregistry.js.map +9 -0
  74. package/dist/cljs-runtime/goog.debug.error.js +30 -0
  75. package/dist/cljs-runtime/goog.debug.error.js.map +9 -0
  76. package/dist/cljs-runtime/goog.dom.asserts.js +40 -0
  77. package/dist/cljs-runtime/goog.dom.asserts.js.map +9 -0
  78. package/dist/cljs-runtime/goog.dom.browserfeature.js +21 -0
  79. package/dist/cljs-runtime/goog.dom.browserfeature.js.map +9 -0
  80. package/dist/cljs-runtime/goog.dom.dom.js +1087 -0
  81. package/dist/cljs-runtime/goog.dom.dom.js.map +9 -0
  82. package/dist/cljs-runtime/goog.dom.element.js +69 -0
  83. package/dist/cljs-runtime/goog.dom.element.js.map +9 -0
  84. package/dist/cljs-runtime/goog.dom.htmlelement.js +7 -0
  85. package/dist/cljs-runtime/goog.dom.htmlelement.js.map +9 -0
  86. package/dist/cljs-runtime/goog.dom.nodetype.js +6 -0
  87. package/dist/cljs-runtime/goog.dom.nodetype.js.map +9 -0
  88. package/dist/cljs-runtime/goog.dom.safe.js +277 -0
  89. package/dist/cljs-runtime/goog.dom.safe.js.map +9 -0
  90. package/dist/cljs-runtime/goog.dom.tagname.js +147 -0
  91. package/dist/cljs-runtime/goog.dom.tagname.js.map +9 -0
  92. package/dist/cljs-runtime/goog.dom.tags.js +10 -0
  93. package/dist/cljs-runtime/goog.dom.tags.js.map +9 -0
  94. package/dist/cljs-runtime/goog.flags.flags.js +12 -0
  95. package/dist/cljs-runtime/goog.flags.flags.js.map +9 -0
  96. package/dist/cljs-runtime/goog.fs.blob.js +38 -0
  97. package/dist/cljs-runtime/goog.fs.blob.js.map +9 -0
  98. package/dist/cljs-runtime/goog.fs.url.js +37 -0
  99. package/dist/cljs-runtime/goog.fs.url.js.map +9 -0
  100. package/dist/cljs-runtime/goog.functions.functions.js +211 -0
  101. package/dist/cljs-runtime/goog.functions.functions.js.map +9 -0
  102. package/dist/cljs-runtime/goog.html.safehtml.js +321 -0
  103. package/dist/cljs-runtime/goog.html.safehtml.js.map +9 -0
  104. package/dist/cljs-runtime/goog.html.safescript.js +65 -0
  105. package/dist/cljs-runtime/goog.html.safescript.js.map +9 -0
  106. package/dist/cljs-runtime/goog.html.safestyle.js +175 -0
  107. package/dist/cljs-runtime/goog.html.safestyle.js.map +9 -0
  108. package/dist/cljs-runtime/goog.html.safestylesheet.js +99 -0
  109. package/dist/cljs-runtime/goog.html.safestylesheet.js.map +9 -0
  110. package/dist/cljs-runtime/goog.html.safeurl.js +231 -0
  111. package/dist/cljs-runtime/goog.html.safeurl.js.map +9 -0
  112. package/dist/cljs-runtime/goog.html.trustedresourceurl.js +123 -0
  113. package/dist/cljs-runtime/goog.html.trustedresourceurl.js.map +9 -0
  114. package/dist/cljs-runtime/goog.html.trustedtypes.js +16 -0
  115. package/dist/cljs-runtime/goog.html.trustedtypes.js.map +9 -0
  116. package/dist/cljs-runtime/goog.html.uncheckedconversions.js +52 -0
  117. package/dist/cljs-runtime/goog.html.uncheckedconversions.js.map +9 -0
  118. package/dist/cljs-runtime/goog.labs.useragent.browser.js +352 -0
  119. package/dist/cljs-runtime/goog.labs.useragent.browser.js.map +9 -0
  120. package/dist/cljs-runtime/goog.labs.useragent.engine.js +73 -0
  121. package/dist/cljs-runtime/goog.labs.useragent.engine.js.map +9 -0
  122. package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropydata.js +14 -0
  123. package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropydata.js.map +9 -0
  124. package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropyvalue.js +74 -0
  125. package/dist/cljs-runtime/goog.labs.useragent.highentropy.highentropyvalue.js.map +9 -0
  126. package/dist/cljs-runtime/goog.labs.useragent.platform.js +147 -0
  127. package/dist/cljs-runtime/goog.labs.useragent.platform.js.map +9 -0
  128. package/dist/cljs-runtime/goog.labs.useragent.useragent.js +21 -0
  129. package/dist/cljs-runtime/goog.labs.useragent.useragent.js.map +9 -0
  130. package/dist/cljs-runtime/goog.labs.useragent.util.js +81 -0
  131. package/dist/cljs-runtime/goog.labs.useragent.util.js.map +9 -0
  132. package/dist/cljs-runtime/goog.math.coordinate.js +97 -0
  133. package/dist/cljs-runtime/goog.math.coordinate.js.map +9 -0
  134. package/dist/cljs-runtime/goog.math.integer.js +445 -0
  135. package/dist/cljs-runtime/goog.math.integer.js.map +9 -0
  136. package/dist/cljs-runtime/goog.math.long.js +437 -0
  137. package/dist/cljs-runtime/goog.math.long.js.map +9 -0
  138. package/dist/cljs-runtime/goog.math.math.js +158 -0
  139. package/dist/cljs-runtime/goog.math.math.js.map +9 -0
  140. package/dist/cljs-runtime/goog.math.size.js +76 -0
  141. package/dist/cljs-runtime/goog.math.size.js.map +9 -0
  142. package/dist/cljs-runtime/goog.object.object.js +284 -0
  143. package/dist/cljs-runtime/goog.object.object.js.map +9 -0
  144. package/dist/cljs-runtime/goog.reflect.reflect.js +32 -0
  145. package/dist/cljs-runtime/goog.reflect.reflect.js.map +9 -0
  146. package/dist/cljs-runtime/goog.string.const.js +35 -0
  147. package/dist/cljs-runtime/goog.string.const.js.map +9 -0
  148. package/dist/cljs-runtime/goog.string.internal.js +119 -0
  149. package/dist/cljs-runtime/goog.string.internal.js.map +9 -0
  150. package/dist/cljs-runtime/goog.string.string.js +462 -0
  151. package/dist/cljs-runtime/goog.string.string.js.map +9 -0
  152. package/dist/cljs-runtime/goog.string.stringbuffer.js +32 -0
  153. package/dist/cljs-runtime/goog.string.stringbuffer.js.map +9 -0
  154. package/dist/cljs-runtime/goog.string.typedstring.js +9 -0
  155. package/dist/cljs-runtime/goog.string.typedstring.js.map +9 -0
  156. package/dist/cljs-runtime/goog.structs.structs.js +199 -0
  157. package/dist/cljs-runtime/goog.structs.structs.js.map +9 -0
  158. package/dist/cljs-runtime/goog.uri.uri.js +628 -0
  159. package/dist/cljs-runtime/goog.uri.uri.js.map +9 -0
  160. package/dist/cljs-runtime/goog.uri.utils.js +326 -0
  161. package/dist/cljs-runtime/goog.uri.utils.js.map +9 -0
  162. package/dist/cljs-runtime/goog.useragent.useragent.js +139 -0
  163. package/dist/cljs-runtime/goog.useragent.useragent.js.map +9 -0
  164. package/dist/cljs-runtime/iris_layout.components.entity_card_group.js +202 -0
  165. package/dist/cljs-runtime/iris_layout.components.entity_card_group.js.map +1 -0
  166. package/dist/cljs-runtime/iris_layout.components.entity_tile.js +295 -0
  167. package/dist/cljs-runtime/iris_layout.components.entity_tile.js.map +1 -0
  168. package/dist/cljs-runtime/iris_layout.components.entity_tile_group.js +33 -0
  169. package/dist/cljs-runtime/iris_layout.components.entity_tile_group.js.map +1 -0
  170. package/dist/cljs-runtime/iris_layout.components.resizer.js +91 -0
  171. package/dist/cljs-runtime/iris_layout.components.resizer.js.map +1 -0
  172. package/dist/cljs-runtime/iris_layout.components.touch_drag.js +399 -0
  173. package/dist/cljs-runtime/iris_layout.components.touch_drag.js.map +1 -0
  174. package/dist/cljs-runtime/iris_layout.core.js +1372 -0
  175. package/dist/cljs-runtime/iris_layout.core.js.map +1 -0
  176. package/dist/cljs-runtime/iris_layout.layout.js +328 -0
  177. package/dist/cljs-runtime/iris_layout.layout.js.map +1 -0
  178. package/dist/cljs-runtime/reagent.core.js +993 -0
  179. package/dist/cljs-runtime/reagent.core.js.map +1 -0
  180. package/dist/cljs-runtime/reagent.debug.js +75 -0
  181. package/dist/cljs-runtime/reagent.debug.js.map +1 -0
  182. package/dist/cljs-runtime/reagent.impl.batching.js +270 -0
  183. package/dist/cljs-runtime/reagent.impl.batching.js.map +1 -0
  184. package/dist/cljs-runtime/reagent.impl.component.js +758 -0
  185. package/dist/cljs-runtime/reagent.impl.component.js.map +1 -0
  186. package/dist/cljs-runtime/reagent.impl.input.js +175 -0
  187. package/dist/cljs-runtime/reagent.impl.input.js.map +1 -0
  188. package/dist/cljs-runtime/reagent.impl.protocols.js +99 -0
  189. package/dist/cljs-runtime/reagent.impl.protocols.js.map +1 -0
  190. package/dist/cljs-runtime/reagent.impl.template.js +660 -0
  191. package/dist/cljs-runtime/reagent.impl.template.js.map +1 -0
  192. package/dist/cljs-runtime/reagent.impl.util.js +748 -0
  193. package/dist/cljs-runtime/reagent.impl.util.js.map +1 -0
  194. package/dist/cljs-runtime/reagent.ratom.js +1668 -0
  195. package/dist/cljs-runtime/reagent.ratom.js.map +1 -0
  196. package/dist/cljs-runtime/shadow.esm.esm_import$react.js +5 -0
  197. package/dist/cljs-runtime/shadow.module.iris-layout.append.js +2 -0
  198. package/dist/cljs-runtime/shadow.module.iris-layout.prepend.js +2 -0
  199. package/dist/iris-layout.js +375 -355
  200. package/dist/styles.css +287 -9
  201. package/package.json +1 -1
@@ -0,0 +1,9 @@
1
+ {
2
+ "version":3,
3
+ "file":"goog.dom.tags.js",
4
+ "lineCount":7,
5
+ "mappings":"AASAA,IAAKC,CAAAA,OAAL,CAAa,eAAb,CAAA;AAEAD,IAAKE,CAAAA,OAAL,CAAa,aAAb,CAAA;AAQAF,IAAKG,CAAAA,GAAIC,CAAAA,IAAKC,CAAAA,UAAd,GAA2BL,IAAKM,CAAAA,MAAOC,CAAAA,SAAZ,CACvB,MADuB,EACf,MADe,EACP,IADO,EACD,KADC,EACM,SADN,EACiB,OADjB,EAC0B,IAD1B,EACgC,KADhC,EACuC,OADvC,EAEvB,QAFuB,EAEb,MAFa,EAEL,MAFK,EAEG,OAFH,EAEY,QAFZ,EAEsB,OAFtB,EAE+B,KAF/B,CAA3B;AAWAP,IAAKG,CAAAA,GAAIC,CAAAA,IAAKI,CAAAA,SAAd,GAA0BC,QAAQ,CAACC,OAAD,CAAU;AAE1C,SAAOV,IAAKG,CAAAA,GAAIC,CAAAA,IAAKC,CAAAA,UAAd,CAAyBK,OAAzB,CAAP,KAA6C,IAA7C;AAF0C,CAA5C;;",
6
+ "sources":["goog/dom/tags.js"],
7
+ "sourcesContent":["/**\n * @license\n * Copyright The Closure Library Authors.\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @fileoverview Utilities for HTML element tag names.\n */\ngoog.provide('goog.dom.tags');\n\ngoog.require('goog.object');\n\n\n/**\n * The void elements specified by\n * http://www.w3.org/TR/html-markup/syntax.html#void-elements.\n * @const @private {!Object<string, boolean>}\n */\ngoog.dom.tags.VOID_TAGS_ = goog.object.createSet(\n 'area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input',\n 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr');\n\n\n/**\n * Checks whether the tag is void (with no contents allowed and no legal end\n * tag), for example 'br'.\n * @param {string} tagName The tag name in lower case.\n * @return {boolean}\n */\ngoog.dom.tags.isVoidTag = function(tagName) {\n 'use strict';\n return goog.dom.tags.VOID_TAGS_[tagName] === true;\n};\n"],
8
+ "names":["goog","provide","require","dom","tags","VOID_TAGS_","object","createSet","isVoidTag","goog.dom.tags.isVoidTag","tagName"]
9
+ }
@@ -0,0 +1,12 @@
1
+ import "./cljs_env.js";
2
+
3
+ goog.loadModule(function(exports) {
4
+ "use strict";
5
+ goog.module("goog.flags");
6
+ goog.module.declareLegacyNamespace();
7
+ exports.USE_USER_AGENT_CLIENT_HINTS = false;
8
+ exports.ASYNC_THROW_ON_UNICODE_TO_BYTE = false;
9
+ return exports;
10
+ });
11
+
12
+ //# sourceMappingURL=goog.flags.flags.js.map
@@ -0,0 +1,9 @@
1
+ {
2
+ "version":3,
3
+ "file":"goog.flags.flags.js",
4
+ "lineCount":9,
5
+ "mappings":"AAAA,IAAA,CAAA,UAAA,CAAA,QAAA,CAAA,OAAA,CAAA;AAAA,cAAA;AAMAA,MAAKC,CAAAA,MAAL,CAAY,YAAZ,CAAA;AACAD,MAAKC,CAAAA,MAAOC,CAAAA,sBAAZ,EAAA;AAEAC,SAAQC,CAAAA,2BAAR,GAAsC,KAAtC;AACAD,SAAQE,CAAAA,8BAAR,GAAyC,KAAzC;AAVA,SAAA,OAAA;AAAA,CAAA,CAAA;;",
6
+ "sources":["goog/flags/flags.js"],
7
+ "sourcesContent":["/**\n * @license\n * Copyright The Closure Library Authors.\n * SPDX-License-Identifier: Apache-2.0\n */\n\ngoog.module('goog.flags');\ngoog.module.declareLegacyNamespace();\n\nexports.USE_USER_AGENT_CLIENT_HINTS = false;\nexports.ASYNC_THROW_ON_UNICODE_TO_BYTE = false;\n"],
8
+ "names":["goog","module","declareLegacyNamespace","exports","USE_USER_AGENT_CLIENT_HINTS","ASYNC_THROW_ON_UNICODE_TO_BYTE"]
9
+ }
@@ -0,0 +1,38 @@
1
+ import "./cljs_env.js";
2
+
3
+ goog.provide("goog.fs.blob");
4
+ goog.fs.blob.getBlob = function(var_args) {
5
+ const BlobBuilder = goog.global.BlobBuilder || goog.global.WebKitBlobBuilder;
6
+ if (BlobBuilder !== undefined) {
7
+ const bb = new BlobBuilder();
8
+ for (let i = 0; i < arguments.length; i++) {
9
+ bb.append(arguments[i]);
10
+ }
11
+ return bb.getBlob();
12
+ } else {
13
+ return goog.fs.blob.getBlobWithProperties(Array.prototype.slice.call(arguments));
14
+ }
15
+ };
16
+ goog.fs.blob.getBlobWithProperties = function(parts, opt_type, opt_endings) {
17
+ const BlobBuilder = goog.global.BlobBuilder || goog.global.WebKitBlobBuilder;
18
+ if (BlobBuilder !== undefined) {
19
+ const bb = new BlobBuilder();
20
+ for (let i = 0; i < parts.length; i++) {
21
+ bb.append(parts[i], opt_endings);
22
+ }
23
+ return bb.getBlob(opt_type);
24
+ } else if (goog.global.Blob !== undefined) {
25
+ const properties = {};
26
+ if (opt_type) {
27
+ properties["type"] = opt_type;
28
+ }
29
+ if (opt_endings) {
30
+ properties["endings"] = opt_endings;
31
+ }
32
+ return new Blob(parts, properties);
33
+ } else {
34
+ throw new Error("This browser doesn't seem to support creating Blobs");
35
+ }
36
+ };
37
+
38
+ //# sourceMappingURL=goog.fs.blob.js.map
@@ -0,0 +1,9 @@
1
+ {
2
+ "version":3,
3
+ "file":"goog.fs.blob.js",
4
+ "lineCount":35,
5
+ "mappings":"AAgBAA,IAAKC,CAAAA,OAAL,CAAa,cAAb,CAAA;AAWAD,IAAKE,CAAAA,EAAGC,CAAAA,IAAKC,CAAAA,OAAb,GAAuBC,QAAQ,CAACC,QAAD,CAAW;AAExC,QAAMC,cAAcP,IAAKQ,CAAAA,MAAOD,CAAAA,WAA1BA,IAAyCP,IAAKQ,CAAAA,MAAOC,CAAAA,iBAA3D;AAEA,MAAIF,WAAJ,KAAoBG,SAApB,CAA+B;AAC7B,UAAMC,KAAK,IAAIJ,WAAJ,EAAX;AACA,SAAK,IAAIK,IAAI,CAAb,EAAgBA,CAAhB,GAAoBC,SAAUC,CAAAA,MAA9B,EAAsCF,CAAA,EAAtC;AACED,QAAGI,CAAAA,MAAH,CAAUF,SAAA,CAAUD,CAAV,CAAV,CAAA;AADF;AAGA,WAAOD,EAAGP,CAAAA,OAAH,EAAP;AAL6B,GAA/B;AAOE,WAAOJ,IAAKE,CAAAA,EAAGC,CAAAA,IAAKa,CAAAA,qBAAb,CACHC,KAAMC,CAAAA,SAAUC,CAAAA,KAAMC,CAAAA,IAAtB,CAA2BP,SAA3B,CADG,CAAP;AAPF;AAJwC,CAA1C;AA6BAb,IAAKE,CAAAA,EAAGC,CAAAA,IAAKa,CAAAA,qBAAb,GAAqCK,QAAQ,CAACC,KAAD,EAAQC,QAAR,EAAkBC,WAAlB,CAA+B;AAE1E,QAAMjB,cAAcP,IAAKQ,CAAAA,MAAOD,CAAAA,WAA1BA,IAAyCP,IAAKQ,CAAAA,MAAOC,CAAAA,iBAA3D;AAEA,MAAIF,WAAJ,KAAoBG,SAApB,CAA+B;AAC7B,UAAMC,KAAK,IAAIJ,WAAJ,EAAX;AACA,SAAK,IAAIK,IAAI,CAAb,EAAgBA,CAAhB,GAAoBU,KAAMR,CAAAA,MAA1B,EAAkCF,CAAA,EAAlC;AACED,QAAGI,CAAAA,MAAH,CAAUO,KAAA,CAAMV,CAAN,CAAV,EAAoBY,WAApB,CAAA;AADF;AAGA,WAAOb,EAAGP,CAAAA,OAAH,CAAWmB,QAAX,CAAP;AAL6B,GAA/B,KAMO,KAAIvB,IAAKQ,CAAAA,MAAOiB,CAAAA,IAAhB,KAAyBf,SAAzB,CAAoC;AACzC,UAAMgB,aAAa,EAAnB;AACA,QAAIH,QAAJ;AACEG,gBAAA,CAAW,MAAX,CAAA,GAAqBH,QAArB;AADF;AAGA,QAAIC,WAAJ;AACEE,gBAAA,CAAW,SAAX,CAAA,GAAwBF,WAAxB;AADF;AAGA,WAAO,IAAIC,IAAJ,CAASH,KAAT,EAAgBI,UAAhB,CAAP;AARyC,GAApC;AAUL,UAAM,IAAIC,KAAJ,CAAU,qDAAV,CAAN;AAVK;AAVmE,CAA5E;;",
6
+ "sources":["goog/fs/blob.js"],
7
+ "sourcesContent":["/**\n * @license\n * Copyright The Closure Library Authors.\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @fileoverview Wrappers for the HTML5 File API. These wrappers closely mirror\n * the underlying APIs, but use Closure-style events and Deferred return values.\n * Their existence also makes it possible to mock the FileSystem API for testing\n * in browsers that don't support it natively.\n *\n * When adding public functions to anything under this namespace, be sure to add\n * its mock counterpart to goog.testing.fs.\n */\n\ngoog.provide('goog.fs.blob');\n\n\n\n/**\n * Concatenates one or more values together and converts them to a Blob.\n *\n * @param {...(string|!Blob|!ArrayBuffer)} var_args The values that will make up\n * the resulting blob.\n * @return {!Blob} The blob.\n */\ngoog.fs.blob.getBlob = function(var_args) {\n 'use strict';\n const BlobBuilder = goog.global.BlobBuilder || goog.global.WebKitBlobBuilder;\n\n if (BlobBuilder !== undefined) {\n const bb = new BlobBuilder();\n for (let i = 0; i < arguments.length; i++) {\n bb.append(arguments[i]);\n }\n return bb.getBlob();\n } else {\n return goog.fs.blob.getBlobWithProperties(\n Array.prototype.slice.call(arguments));\n }\n};\n\n\n/**\n * Creates a blob with the given properties.\n * See https://developer.mozilla.org/en-US/docs/Web/API/Blob for more details.\n *\n * @param {!Array<string|!Blob|!ArrayBuffer>} parts The values that will make up\n * the resulting blob (subset supported by both BlobBuilder.append() and\n * Blob constructor).\n * @param {string=} opt_type The MIME type of the Blob.\n * @param {string=} opt_endings Specifies how strings containing newlines are to\n * be written out.\n * @return {!Blob} The blob.\n */\ngoog.fs.blob.getBlobWithProperties = function(parts, opt_type, opt_endings) {\n 'use strict';\n const BlobBuilder = goog.global.BlobBuilder || goog.global.WebKitBlobBuilder;\n\n if (BlobBuilder !== undefined) {\n const bb = new BlobBuilder();\n for (let i = 0; i < parts.length; i++) {\n bb.append(parts[i], opt_endings);\n }\n return bb.getBlob(opt_type);\n } else if (goog.global.Blob !== undefined) {\n const properties = {};\n if (opt_type) {\n properties['type'] = opt_type;\n }\n if (opt_endings) {\n properties['endings'] = opt_endings;\n }\n return new Blob(parts, properties);\n } else {\n throw new Error('This browser doesn\\'t seem to support creating Blobs');\n }\n};\n"],
8
+ "names":["goog","provide","fs","blob","getBlob","goog.fs.blob.getBlob","var_args","BlobBuilder","global","WebKitBlobBuilder","undefined","bb","i","arguments","length","append","getBlobWithProperties","Array","prototype","slice","call","goog.fs.blob.getBlobWithProperties","parts","opt_type","opt_endings","Blob","properties","Error"]
9
+ }
@@ -0,0 +1,37 @@
1
+ import "./cljs_env.js";
2
+
3
+ goog.provide("goog.fs.url");
4
+ goog.fs.url.createObjectUrl = function(obj) {
5
+ return goog.fs.url.getUrlObject_().createObjectURL(obj);
6
+ };
7
+ goog.fs.url.revokeObjectUrl = function(url) {
8
+ goog.fs.url.getUrlObject_().revokeObjectURL(url);
9
+ };
10
+ goog.fs.url.UrlObject_ = function() {
11
+ };
12
+ goog.fs.url.UrlObject_.prototype.createObjectURL = function(arg) {
13
+ };
14
+ goog.fs.url.UrlObject_.prototype.revokeObjectURL = function(s) {
15
+ };
16
+ goog.fs.url.getUrlObject_ = function() {
17
+ const urlObject = goog.fs.url.findUrlObject_();
18
+ if (urlObject != null) {
19
+ return urlObject;
20
+ } else {
21
+ throw new Error("This browser doesn't seem to support blob URLs");
22
+ }
23
+ };
24
+ goog.fs.url.findUrlObject_ = function() {
25
+ if (goog.global.URL !== undefined && goog.global.URL.createObjectURL !== undefined) {
26
+ return goog.global.URL;
27
+ } else if (goog.global.createObjectURL !== undefined) {
28
+ return goog.global;
29
+ } else {
30
+ return null;
31
+ }
32
+ };
33
+ goog.fs.url.browserSupportsObjectUrls = function() {
34
+ return goog.fs.url.findUrlObject_() != null;
35
+ };
36
+
37
+ //# sourceMappingURL=goog.fs.url.js.map
@@ -0,0 +1,9 @@
1
+ {
2
+ "version":3,
3
+ "file":"goog.fs.url.js",
4
+ "lineCount":34,
5
+ "mappings":"AAWAA,IAAKC,CAAAA,OAAL,CAAa,aAAb,CAAA;AAWAD,IAAKE,CAAAA,EAAGC,CAAAA,GAAIC,CAAAA,eAAZ,GAA8BC,QAAQ,CAACC,GAAD,CAAM;AAE1C,SAAON,IAAKE,CAAAA,EAAGC,CAAAA,GAAII,CAAAA,aAAZ,EAA4BC,CAAAA,eAA5B,CAA4CF,GAA5C,CAAP;AAF0C,CAA5C;AAaAN,IAAKE,CAAAA,EAAGC,CAAAA,GAAIM,CAAAA,eAAZ,GAA8BC,QAAQ,CAACP,GAAD,CAAM;AAE1CH,MAAKE,CAAAA,EAAGC,CAAAA,GAAII,CAAAA,aAAZ,EAA4BI,CAAAA,eAA5B,CAA4CR,GAA5C,CAAA;AAF0C,CAA5C;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,CAAnD;;",
6
+ "sources":["goog/fs/url.js"],
7
+ "sourcesContent":["/**\n * @license\n * Copyright The Closure Library Authors.\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @fileoverview Wrapper for URL and its createObjectUrl and revokeObjectUrl\n * methods that are part of the HTML5 File API.\n */\n\ngoog.provide('goog.fs.url');\n\n\n/**\n * Creates a blob URL for a blob object.\n * Throws an error if the browser does not support Object Urls.\n *\n * @param {!File|!Blob|!MediaSource|!MediaStream} obj The object for which\n * to create the URL.\n * @return {string} The URL for the object.\n */\ngoog.fs.url.createObjectUrl = function(obj) {\n 'use strict';\n return goog.fs.url.getUrlObject_().createObjectURL(obj);\n};\n\n\n/**\n * Revokes a URL created by {@link goog.fs.url.createObjectUrl}.\n * Throws an error if the browser does not support Object Urls.\n *\n * @param {string} url The URL to revoke.\n * @return {void}\n */\ngoog.fs.url.revokeObjectUrl = function(url) {\n 'use strict';\n goog.fs.url.getUrlObject_().revokeObjectURL(url);\n};\n\n\n/**\n * @record\n * @private\n */\ngoog.fs.url.UrlObject_ = function() {};\n\n/**\n * @param {!File|!Blob|!MediaSource|!MediaStream} arg\n * @return {string}\n */\ngoog.fs.url.UrlObject_.prototype.createObjectURL = function(arg) {};\n\n/**\n * @param {string} s\n * @return {void}\n */\ngoog.fs.url.UrlObject_.prototype.revokeObjectURL = function(s) {};\n\n\n/**\n * Get the object that has the createObjectURL and revokeObjectURL functions for\n * this browser.\n *\n * @return {!goog.fs.url.UrlObject_} The object for this browser.\n * @private\n */\ngoog.fs.url.getUrlObject_ = function() {\n 'use strict';\n const urlObject = goog.fs.url.findUrlObject_();\n if (urlObject != null) {\n return urlObject;\n } else {\n throw new Error('This browser doesn\\'t seem to support blob URLs');\n }\n};\n\n\n/**\n * Finds the object that has the createObjectURL and revokeObjectURL functions\n * for this browser.\n *\n * @return {?goog.fs.url.UrlObject_} The object for this browser or null if the\n * browser does not support Object Urls.\n * @private\n */\ngoog.fs.url.findUrlObject_ = function() {\n 'use strict';\n // This is what the spec says to do\n // http://dev.w3.org/2006/webapi/FileAPI/#dfn-createObjectURL\n if (goog.global.URL !== undefined &&\n goog.global.URL.createObjectURL !== undefined) {\n return /** @type {!goog.fs.url.UrlObject_} */ (goog.global.URL);\n // This is what the spec used to say to do\n } else if (goog.global.createObjectURL !== undefined) {\n return /** @type {!goog.fs.url.UrlObject_} */ (goog.global);\n } else {\n return null;\n }\n};\n\n\n/**\n * Checks whether this browser supports Object Urls. If not, calls to\n * createObjectUrl and revokeObjectUrl will result in an error.\n *\n * @return {boolean} True if this browser supports Object Urls.\n */\ngoog.fs.url.browserSupportsObjectUrls = function() {\n 'use strict';\n return goog.fs.url.findUrlObject_() != null;\n};\n"],
8
+ "names":["goog","provide","fs","url","createObjectUrl","goog.fs.url.createObjectUrl","obj","getUrlObject_","createObjectURL","revokeObjectUrl","goog.fs.url.revokeObjectUrl","revokeObjectURL","UrlObject_","goog.fs.url.UrlObject_","prototype","goog.fs.url.UrlObject_.prototype.createObjectURL","arg","goog.fs.url.UrlObject_.prototype.revokeObjectURL","s","goog.fs.url.getUrlObject_","urlObject","findUrlObject_","Error","goog.fs.url.findUrlObject_","global","URL","undefined","browserSupportsObjectUrls","goog.fs.url.browserSupportsObjectUrls"]
9
+ }
@@ -0,0 +1,211 @@
1
+ import "./cljs_env.js";
2
+
3
+ goog.provide("goog.functions");
4
+ goog.functions.constant = function(retValue) {
5
+ return function() {
6
+ return retValue;
7
+ };
8
+ };
9
+ goog.functions.FALSE = function() {
10
+ return false;
11
+ };
12
+ goog.functions.TRUE = function() {
13
+ return true;
14
+ };
15
+ goog.functions.NULL = function() {
16
+ return null;
17
+ };
18
+ goog.functions.UNDEFINED = function() {
19
+ return undefined;
20
+ };
21
+ goog.functions.EMPTY = goog.functions.UNDEFINED;
22
+ goog.functions.identity = function(opt_returnValue, var_args) {
23
+ return opt_returnValue;
24
+ };
25
+ goog.functions.error = function(message) {
26
+ return function() {
27
+ throw new Error(message);
28
+ };
29
+ };
30
+ goog.functions.fail = function(err) {
31
+ return function() {
32
+ throw err;
33
+ };
34
+ };
35
+ goog.functions.lock = function(f, opt_numArgs) {
36
+ opt_numArgs = opt_numArgs || 0;
37
+ return function() {
38
+ const self = this;
39
+ return f.apply(self, Array.prototype.slice.call(arguments, 0, opt_numArgs));
40
+ };
41
+ };
42
+ goog.functions.nth = function(n) {
43
+ return function() {
44
+ return arguments[n];
45
+ };
46
+ };
47
+ goog.functions.partialRight = function(fn, var_args) {
48
+ const rightArgs = Array.prototype.slice.call(arguments, 1);
49
+ return function() {
50
+ let self = this;
51
+ if (self === goog.global) {
52
+ self = undefined;
53
+ }
54
+ const newArgs = Array.prototype.slice.call(arguments);
55
+ newArgs.push.apply(newArgs, rightArgs);
56
+ return fn.apply(self, newArgs);
57
+ };
58
+ };
59
+ goog.functions.withReturnValue = function(f, retValue) {
60
+ return goog.functions.sequence(f, goog.functions.constant(retValue));
61
+ };
62
+ goog.functions.equalTo = function(value, opt_useLooseComparison) {
63
+ return function(other) {
64
+ return opt_useLooseComparison ? value == other : value === other;
65
+ };
66
+ };
67
+ goog.functions.compose = function(fn, var_args) {
68
+ const functions = arguments;
69
+ const length = functions.length;
70
+ return function() {
71
+ const self = this;
72
+ let result;
73
+ if (length) {
74
+ result = functions[length - 1].apply(self, arguments);
75
+ }
76
+ for (let i = length - 2; i >= 0; i--) {
77
+ result = functions[i].call(self, result);
78
+ }
79
+ return result;
80
+ };
81
+ };
82
+ goog.functions.sequence = function(var_args) {
83
+ const functions = arguments;
84
+ const length = functions.length;
85
+ return function() {
86
+ const self = this;
87
+ let result;
88
+ for (let i = 0; i < length; i++) {
89
+ result = functions[i].apply(self, arguments);
90
+ }
91
+ return result;
92
+ };
93
+ };
94
+ goog.functions.and = function(var_args) {
95
+ const functions = arguments;
96
+ const length = functions.length;
97
+ return function() {
98
+ const self = this;
99
+ for (let i = 0; i < length; i++) {
100
+ if (!functions[i].apply(self, arguments)) {
101
+ return false;
102
+ }
103
+ }
104
+ return true;
105
+ };
106
+ };
107
+ goog.functions.or = function(var_args) {
108
+ const functions = arguments;
109
+ const length = functions.length;
110
+ return function() {
111
+ const self = this;
112
+ for (let i = 0; i < length; i++) {
113
+ if (functions[i].apply(self, arguments)) {
114
+ return true;
115
+ }
116
+ }
117
+ return false;
118
+ };
119
+ };
120
+ goog.functions.not = function(f) {
121
+ return function() {
122
+ const self = this;
123
+ return !f.apply(self, arguments);
124
+ };
125
+ };
126
+ goog.functions.create = function(constructor, var_args) {
127
+ const temp = function() {
128
+ };
129
+ temp.prototype = constructor.prototype;
130
+ const obj = new temp();
131
+ constructor.apply(obj, Array.prototype.slice.call(arguments, 1));
132
+ return obj;
133
+ };
134
+ goog.functions.CACHE_RETURN_VALUE = goog.define("goog.functions.CACHE_RETURN_VALUE", true);
135
+ goog.functions.cacheReturnValue = function(fn) {
136
+ let called = false;
137
+ let value;
138
+ return function() {
139
+ if (!goog.functions.CACHE_RETURN_VALUE) {
140
+ return fn();
141
+ }
142
+ if (!called) {
143
+ value = fn();
144
+ called = true;
145
+ }
146
+ return value;
147
+ };
148
+ };
149
+ goog.functions.once = function(f) {
150
+ let inner = f;
151
+ return function() {
152
+ if (inner) {
153
+ const tmp = inner;
154
+ inner = null;
155
+ tmp();
156
+ }
157
+ };
158
+ };
159
+ goog.functions.debounce = function(f, interval, opt_scope) {
160
+ let timeout = 0;
161
+ return function(var_args) {
162
+ goog.global.clearTimeout(timeout);
163
+ const args = arguments;
164
+ timeout = goog.global.setTimeout(function() {
165
+ f.apply(opt_scope, args);
166
+ }, interval);
167
+ };
168
+ };
169
+ goog.functions.throttle = function(f, interval, opt_scope) {
170
+ let timeout = 0;
171
+ let shouldFire = false;
172
+ let storedArgs = [];
173
+ const handleTimeout = function() {
174
+ timeout = 0;
175
+ if (shouldFire) {
176
+ shouldFire = false;
177
+ fire();
178
+ }
179
+ };
180
+ const fire = function() {
181
+ timeout = goog.global.setTimeout(handleTimeout, interval);
182
+ let args = storedArgs;
183
+ storedArgs = [];
184
+ f.apply(opt_scope, args);
185
+ };
186
+ return function(var_args) {
187
+ storedArgs = arguments;
188
+ if (!timeout) {
189
+ fire();
190
+ } else {
191
+ shouldFire = true;
192
+ }
193
+ };
194
+ };
195
+ goog.functions.rateLimit = function(f, interval, opt_scope) {
196
+ let timeout = 0;
197
+ const handleTimeout = function() {
198
+ timeout = 0;
199
+ };
200
+ return function(var_args) {
201
+ if (!timeout) {
202
+ timeout = goog.global.setTimeout(handleTimeout, interval);
203
+ f.apply(opt_scope, arguments);
204
+ }
205
+ };
206
+ };
207
+ goog.functions.isFunction = val => {
208
+ return typeof val === "function";
209
+ };
210
+
211
+ //# sourceMappingURL=goog.functions.functions.js.map
@@ -0,0 +1,9 @@
1
+ {
2
+ "version":3,
3
+ "file":"goog.functions.functions.js",
4
+ "lineCount":208,
5
+ "mappings":"AAoBAA,IAAKC,CAAAA,OAAL,CAAa,gBAAb,CAAA;AASAD,IAAKE,CAAAA,SAAUC,CAAAA,QAAf,GAA0BC,QAAQ,CAACC,QAAD,CAAW;AAE3C,SAAO,QAAQ,EAAG;AAEhB,WAAOA,QAAP;AAFgB,GAAlB;AAF2C,CAA7C;AAaAL,IAAKE,CAAAA,SAAUI,CAAAA,KAAf,GAAuBC,QAAQ,EAAG;AAEhC,SAAO,KAAP;AAFgC,CAAlC;AAUAP,IAAKE,CAAAA,SAAUM,CAAAA,IAAf,GAAsBC,QAAQ,EAAG;AAE/B,SAAO,IAAP;AAF+B,CAAjC;AAUAT,IAAKE,CAAAA,SAAUQ,CAAAA,IAAf,GAAsBC,QAAQ,EAAG;AAE/B,SAAO,IAAP;AAF+B,CAAjC;AAUAX,IAAKE,CAAAA,SAAUU,CAAAA,SAAf,GAA2BC,QAAQ,EAAG;AACpC,SAAOC,SAAP;AADoC,CAAtC;AAQAd,IAAKE,CAAAA,SAAUa,CAAAA,KAAf,GAAyCf,IAAKE,CAAAA,SAAUU,CAAAA,SAAxD;AAWAZ,IAAKE,CAAAA,SAAUc,CAAAA,Q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.js"],
7
+ "sourcesContent":["/**\n * @license\n * Copyright The Closure Library Authors.\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @fileoverview Utilities for creating functions. Loosely inspired by these\n * java classes from the Guava library:\n * com.google.common.base.Functions\n * https://google.github.io/guava/releases/snapshot-jre/api/docs/index.html?com/google/common/base/Functions.html\n *\n * com.google.common.base.Predicates\n * https://google.github.io/guava/releases/snapshot-jre/api/docs/index.html?com/google/common/base/Predicates.html\n *\n * More about these can be found at\n * https://github.com/google/guava/wiki/FunctionalExplained\n */\n\n\ngoog.provide('goog.functions');\n\n\n/**\n * Creates a function that always returns the same value.\n * @param {T} retValue The value to return.\n * @return {function():T} The new function.\n * @template T\n */\ngoog.functions.constant = function(retValue) {\n 'use strict';\n return function() {\n 'use strict';\n return retValue;\n };\n};\n\n\n/**\n * Always returns false.\n * @type {function(...): boolean}\n */\ngoog.functions.FALSE = function() {\n 'use strict';\n return false;\n};\n\n\n/**\n * Always returns true.\n * @type {function(...): boolean}\n */\ngoog.functions.TRUE = function() {\n 'use strict';\n return true;\n};\n\n\n/**\n * Always returns `null`.\n * @type {function(...): null}\n */\ngoog.functions.NULL = function() {\n 'use strict';\n return null;\n};\n\n\n/**\n * Always returns `undefined`.\n * @type {function(...): undefined}\n */\ngoog.functions.UNDEFINED = function() {\n return undefined;\n};\n\n/**\n * Always returns `undefined` (loosely-typed version).\n * @type {!Function}\n */\ngoog.functions.EMPTY = /** @type {?} */ (goog.functions.UNDEFINED);\n\n\n/**\n * A simple function that returns the first argument of whatever is passed\n * into it.\n * @param {T=} opt_returnValue The single value that will be returned.\n * @param {...*} var_args Optional trailing arguments. These are ignored.\n * @return {T} The first argument passed in, or undefined if nothing was passed.\n * @template T\n */\ngoog.functions.identity = function(opt_returnValue, var_args) {\n 'use strict';\n return opt_returnValue;\n};\n\n\n/**\n * Creates a function that always throws an error with the given message.\n * @param {string} message The error message.\n * @return {!Function} The error-throwing function.\n */\ngoog.functions.error = function(message) {\n 'use strict';\n return function() {\n 'use strict';\n throw new Error(message);\n };\n};\n\n\n/**\n * Creates a function that throws the given object.\n * @param {*} err An object to be thrown.\n * @return {!Function} The error-throwing function.\n */\ngoog.functions.fail = function(err) {\n 'use strict';\n return function() {\n 'use strict';\n throw err;\n };\n};\n\n\n/**\n * Given a function, create a function that keeps opt_numArgs arguments and\n * silently discards all additional arguments.\n * @param {Function} f The original function.\n * @param {number=} opt_numArgs The number of arguments to keep. Defaults to 0.\n * @return {!Function} A version of f that only keeps the first opt_numArgs\n * arguments.\n */\ngoog.functions.lock = function(f, opt_numArgs) {\n 'use strict';\n opt_numArgs = opt_numArgs || 0;\n return function() {\n 'use strict';\n const self = /** @type {*} */ (this);\n return f.apply(self, Array.prototype.slice.call(arguments, 0, opt_numArgs));\n };\n};\n\n\n/**\n * Creates a function that returns its nth argument.\n * @param {number} n The position of the return argument.\n * @return {!Function} A new function.\n */\ngoog.functions.nth = function(n) {\n 'use strict';\n return function() {\n 'use strict';\n return arguments[n];\n };\n};\n\n\n/**\n * Like goog.partial(), except that arguments are added after arguments to the\n * returned function.\n *\n * Usage:\n * function f(arg1, arg2, arg3, arg4) { ... }\n * var g = goog.functions.partialRight(f, arg3, arg4);\n * g(arg1, arg2);\n *\n * @param {!Function} fn A function to partially apply.\n * @param {...*} var_args Additional arguments that are partially applied to fn\n * at the end.\n * @return {!Function} A partially-applied form of the function goog.partial()\n * was invoked as a method of.\n */\ngoog.functions.partialRight = function(fn, var_args) {\n 'use strict';\n const rightArgs = Array.prototype.slice.call(arguments, 1);\n return function() {\n 'use strict';\n // Even in strict mode, IE10/11 and Edge (non-Chromium) use global context\n // when free-calling functions. To catch cases where people were using this\n // erroneously, we explicitly change the context to undefined to match\n // strict mode specifications.\n let self = /** @type {*} */ (this);\n if (self === goog.global) {\n self = undefined;\n }\n const newArgs = Array.prototype.slice.call(arguments);\n newArgs.push.apply(newArgs, rightArgs);\n return fn.apply(self, newArgs);\n };\n};\n\n\n/**\n * Given a function, create a new function that swallows its return value\n * and replaces it with a new one.\n * @param {Function} f A function.\n * @param {T} retValue A new return value.\n * @return {function(...?):T} A new function.\n * @template T\n */\ngoog.functions.withReturnValue = function(f, retValue) {\n 'use strict';\n return goog.functions.sequence(f, goog.functions.constant(retValue));\n};\n\n\n/**\n * Creates a function that returns whether its argument equals the given value.\n *\n * Example:\n * var key = goog.object.findKey(obj, goog.functions.equalTo('needle'));\n *\n * @param {*} value The value to compare to.\n * @param {boolean=} opt_useLooseComparison Whether to use a loose (==)\n * comparison rather than a strict (===) one. Defaults to false.\n * @return {function(*):boolean} The new function.\n */\ngoog.functions.equalTo = function(value, opt_useLooseComparison) {\n 'use strict';\n return function(other) {\n 'use strict';\n return opt_useLooseComparison ? (value == other) : (value === other);\n };\n};\n\n\n/**\n * Creates the composition of the functions passed in.\n * For example, (goog.functions.compose(f, g))(a) is equivalent to f(g(a)).\n * @param {function(...?):T} fn The final function.\n * @param {...Function} var_args A list of functions.\n * @return {function(...?):T} The composition of all inputs.\n * @template T\n */\ngoog.functions.compose = function(fn, var_args) {\n 'use strict';\n const functions = arguments;\n const length = functions.length;\n return function() {\n 'use strict';\n const self = /** @type {*} */ (this);\n let result;\n if (length) {\n result = functions[length - 1].apply(self, arguments);\n }\n\n for (let i = length - 2; i >= 0; i--) {\n result = functions[i].call(self, result);\n }\n return result;\n };\n};\n\n\n/**\n * Creates a function that calls the functions passed in in sequence, and\n * returns the value of the last function. For example,\n * (goog.functions.sequence(f, g))(x) is equivalent to f(x),g(x).\n * @param {...Function} var_args A list of functions.\n * @return {!Function} A function that calls all inputs in sequence.\n */\ngoog.functions.sequence = function(var_args) {\n 'use strict';\n const functions = arguments;\n const length = functions.length;\n return function() {\n 'use strict';\n const self = /** @type {*} */ (this);\n let result;\n for (let i = 0; i < length; i++) {\n result = functions[i].apply(self, arguments);\n }\n return result;\n };\n};\n\n\n/**\n * Creates a function that returns true if each of its components evaluates\n * to true. The components are evaluated in order, and the evaluation will be\n * short-circuited as soon as a function returns false.\n * For example, (goog.functions.and(f, g))(x) is equivalent to f(x) && g(x).\n * @param {...Function} var_args A list of functions.\n * @return {function(...?):boolean} A function that ANDs its component\n * functions.\n */\ngoog.functions.and = function(var_args) {\n 'use strict';\n const functions = arguments;\n const length = functions.length;\n return function() {\n 'use strict';\n const self = /** @type {*} */ (this);\n for (let i = 0; i < length; i++) {\n if (!functions[i].apply(self, arguments)) {\n return false;\n }\n }\n return true;\n };\n};\n\n\n/**\n * Creates a function that returns true if any of its components evaluates\n * to true. The components are evaluated in order, and the evaluation will be\n * short-circuited as soon as a function returns true.\n * For example, (goog.functions.or(f, g))(x) is equivalent to f(x) || g(x).\n * @param {...Function} var_args A list of functions.\n * @return {function(...?):boolean} A function that ORs its component\n * functions.\n */\ngoog.functions.or = function(var_args) {\n 'use strict';\n const functions = arguments;\n const length = functions.length;\n return function() {\n 'use strict';\n const self = /** @type {*} */ (this);\n for (let i = 0; i < length; i++) {\n if (functions[i].apply(self, arguments)) {\n return true;\n }\n }\n return false;\n };\n};\n\n\n/**\n * Creates a function that returns the Boolean opposite of a provided function.\n * For example, (goog.functions.not(f))(x) is equivalent to !f(x).\n * @param {!Function} f The original function.\n * @return {function(...?):boolean} A function that delegates to f and returns\n * opposite.\n */\ngoog.functions.not = function(f) {\n 'use strict';\n return function() {\n 'use strict';\n const self = /** @type {*} */ (this);\n return !f.apply(self, arguments);\n };\n};\n\n\n/**\n * Generic factory function to construct an object given the constructor\n * and the arguments. Intended to be bound to create object factories.\n *\n * Example:\n *\n * var factory = goog.partial(goog.functions.create, Class);\n *\n * @param {function(new:T, ...)} constructor The constructor for the Object.\n * @param {...*} var_args The arguments to be passed to the constructor.\n * @return {T} A new instance of the class given in `constructor`.\n * @template T\n * @deprecated This function does not work with ES6 class constructors. Use\n * arrow functions + spread args instead.\n */\ngoog.functions.create = function(constructor, var_args) {\n 'use strict';\n /**\n * @constructor\n * @final\n */\n const temp = function() {};\n temp.prototype = constructor.prototype;\n\n // obj will have constructor's prototype in its chain and\n // 'obj instanceof constructor' will be true.\n const obj = new temp();\n\n // obj is initialized by constructor.\n // arguments is only array-like so lacks shift(), but can be used with\n // the Array prototype function.\n constructor.apply(obj, Array.prototype.slice.call(arguments, 1));\n return obj;\n};\n\n\n/**\n * @define {boolean} Whether the return value cache should be used.\n * This should only be used to disable caches when testing.\n */\ngoog.functions.CACHE_RETURN_VALUE =\n goog.define('goog.functions.CACHE_RETURN_VALUE', true);\n\n\n/**\n * Gives a wrapper function that caches the return value of a parameterless\n * function when first called.\n *\n * When called for the first time, the given function is called and its\n * return value is cached (thus this is only appropriate for idempotent\n * functions). Subsequent calls will return the cached return value. This\n * allows the evaluation of expensive functions to be delayed until first used.\n *\n * To cache the return values of functions with parameters, see goog.memoize.\n *\n * @param {function():T} fn A function to lazily evaluate.\n * @return {function():T} A wrapped version the function.\n * @template T\n */\ngoog.functions.cacheReturnValue = function(fn) {\n 'use strict';\n let called = false;\n let value;\n\n return function() {\n 'use strict';\n if (!goog.functions.CACHE_RETURN_VALUE) {\n return fn();\n }\n\n if (!called) {\n value = fn();\n called = true;\n }\n\n return value;\n };\n};\n\n\n/**\n * Wraps a function to allow it to be called, at most, once. All\n * additional calls are no-ops.\n *\n * This is particularly useful for initialization functions\n * that should be called, at most, once.\n *\n * @param {function():*} f Function to call.\n * @return {function():undefined} Wrapped function.\n */\ngoog.functions.once = function(f) {\n 'use strict';\n // Keep a reference to the function that we null out when we're done with\n // it -- that way, the function can be GC'd when we're done with it.\n let inner = f;\n return function() {\n 'use strict';\n if (inner) {\n const tmp = inner;\n inner = null;\n tmp();\n }\n };\n};\n\n\n/**\n * Wraps a function to allow it to be called, at most, once per interval\n * (specified in milliseconds). If the wrapper function is called N times within\n * that interval, only the Nth call will go through.\n *\n * This is particularly useful for batching up repeated actions where the\n * last action should win. This can be used, for example, for refreshing an\n * autocomplete pop-up every so often rather than updating with every keystroke,\n * since the final text typed by the user is the one that should produce the\n * final autocomplete results. For more stateful debouncing with support for\n * pausing, resuming, and canceling debounced actions, use\n * `goog.async.Debouncer`.\n *\n * @param {function(this:SCOPE, ...?)} f Function to call.\n * @param {number} interval Interval over which to debounce. The function will\n * only be called after the full interval has elapsed since the last call.\n * @param {SCOPE=} opt_scope Object in whose scope to call the function.\n * @return {function(...?): undefined} Wrapped function.\n * @template SCOPE\n */\ngoog.functions.debounce = function(f, interval, opt_scope) {\n 'use strict';\n let timeout = 0;\n return /** @type {function(...?)} */ (function(var_args) {\n 'use strict';\n goog.global.clearTimeout(timeout);\n const args = arguments;\n timeout = goog.global.setTimeout(function() {\n 'use strict';\n f.apply(opt_scope, args);\n }, interval);\n });\n};\n\n\n/**\n * Wraps a function to allow it to be called, at most, once per interval\n * (specified in milliseconds). If the wrapper function is called N times in\n * that interval, both the 1st and the Nth calls will go through.\n *\n * This is particularly useful for limiting repeated user requests where the\n * the last action should win, but you also don't want to wait until the end of\n * the interval before sending a request out, as it leads to a perception of\n * slowness for the user.\n *\n * @param {function(this:SCOPE, ...?)} f Function to call.\n * @param {number} interval Interval over which to throttle. The function can\n * only be called once per interval.\n * @param {SCOPE=} opt_scope Object in whose scope to call the function.\n * @return {function(...?): undefined} Wrapped function.\n * @template SCOPE\n */\ngoog.functions.throttle = function(f, interval, opt_scope) {\n 'use strict';\n let timeout = 0;\n let shouldFire = false;\n let storedArgs = [];\n\n const handleTimeout = function() {\n 'use strict';\n timeout = 0;\n if (shouldFire) {\n shouldFire = false;\n fire();\n }\n };\n\n const fire = function() {\n 'use strict';\n timeout = goog.global.setTimeout(handleTimeout, interval);\n let args = storedArgs;\n storedArgs = []; // Avoid a space leak by clearing stored arguments.\n f.apply(opt_scope, args);\n };\n\n return /** @type {function(...?)} */ (function(var_args) {\n 'use strict';\n storedArgs = arguments;\n if (!timeout) {\n fire();\n } else {\n shouldFire = true;\n }\n });\n};\n\n\n/**\n * Wraps a function to allow it to be called, at most, once per interval\n * (specified in milliseconds). If the wrapper function is called N times within\n * that interval, only the 1st call will go through.\n *\n * This is particularly useful for limiting repeated user requests where the\n * first request is guaranteed to have all the data required to perform the\n * final action, so there's no need to wait until the end of the interval before\n * sending the request out.\n *\n * @param {function(this:SCOPE, ...?)} f Function to call.\n * @param {number} interval Interval over which to rate-limit. The function will\n * only be called once per interval, and ignored for the remainer of the\n * interval.\n * @param {SCOPE=} opt_scope Object in whose scope to call the function.\n * @return {function(...?): undefined} Wrapped function.\n * @template SCOPE\n */\ngoog.functions.rateLimit = function(f, interval, opt_scope) {\n 'use strict';\n let timeout = 0;\n\n const handleTimeout = function() {\n 'use strict';\n timeout = 0;\n };\n\n return /** @type {function(...?)} */ (function(var_args) {\n 'use strict';\n if (!timeout) {\n timeout = goog.global.setTimeout(handleTimeout, interval);\n f.apply(opt_scope, arguments);\n }\n });\n};\n\n/**\n * Returns true if the specified value is a function.\n * @param {*} val Variable to test.\n * @return {boolean} Whether variable is a function.\n */\ngoog.functions.isFunction = (val) => {\n return typeof val === 'function';\n};\n"],
8
+ "names":["goog","provide","functions","constant","goog.functions.constant","retValue","FALSE","goog.functions.FALSE","TRUE","goog.functions.TRUE","NULL","goog.functions.NULL","UNDEFINED","goog.functions.UNDEFINED","undefined","EMPTY","identity","goog.functions.identity","opt_returnValue","var_args","error","goog.functions.error","message","Error","fail","goog.functions.fail","err","lock","goog.functions.lock","f","opt_numArgs","self","apply","Array","prototype","slice","call","arguments","nth","goog.functions.nth","n","partialRight","goog.functions.partialRight","fn","rightArgs","global","newArgs","push","withReturnValue","goog.functions.withReturnValue","sequence","equalTo","goog.functions.equalTo","value","opt_useLooseComparison","other","compose","goog.functions.compose","length","result","i","goog.functions.sequence","and","goog.functions.and","or","goog.functions.or","not","goog.functions.not","create","goog.functions.create","constructor","temp","obj","CACHE_RETURN_VALUE","define","cacheReturnValue","goog.functions.cacheReturnValue","called","once","goog.functions.once","inner","tmp","debounce","goog.functions.debounce","interval","opt_scope","timeout","clearTimeout","args","setTimeout","throttle","goog.functions.throttle","shouldFire","storedArgs","handleTimeout","fire","rateLimit","goog.functions.rateLimit","isFunction","val","goog.functions.isFunction"]
9
+ }