@performant-software/core-data 2.3.10-beta.8 → 2.3.10

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 (1183) hide show
  1. package/dist/index.cjs105.js +1 -1
  2. package/dist/index.cjs106.js +1 -1
  3. package/dist/index.cjs109.js +1 -1
  4. package/dist/index.cjs110.js +1 -1
  5. package/dist/index.cjs111.js +1 -1
  6. package/dist/index.cjs114.js +1 -1
  7. package/dist/index.cjs115.js +1 -1
  8. package/dist/index.cjs116.js +1 -1
  9. package/dist/index.cjs118.js +1 -1
  10. package/dist/index.cjs119.js +1 -1
  11. package/dist/index.cjs120.js +1 -1
  12. package/dist/index.cjs123.js +1 -1
  13. package/dist/index.cjs125.js +1 -1
  14. package/dist/index.cjs126.js +1 -1
  15. package/dist/index.cjs130.js +1 -1
  16. package/dist/index.cjs131.js +1 -1
  17. package/dist/index.cjs132.js +1 -1
  18. package/dist/index.cjs133.js +1 -1
  19. package/dist/index.cjs134.js +1 -1
  20. package/dist/index.cjs161.js +1 -1
  21. package/dist/index.cjs162.js +1 -1
  22. package/dist/index.cjs163.js +1 -1
  23. package/dist/index.cjs164.js +1 -1
  24. package/dist/index.cjs165.js +1 -1
  25. package/dist/index.cjs166.js +1 -1
  26. package/dist/index.cjs167.js +1 -1
  27. package/dist/index.cjs168.js +1 -1
  28. package/dist/index.cjs177.js +1 -1
  29. package/dist/index.cjs180.js +1 -1
  30. package/dist/index.cjs181.js +1 -1
  31. package/dist/index.cjs182.js +1 -1
  32. package/dist/index.cjs186.js +1 -1
  33. package/dist/index.cjs187.js +1 -1
  34. package/dist/index.cjs188.js +1 -1
  35. package/dist/index.cjs189.js +1 -1
  36. package/dist/index.cjs192.js +1 -1
  37. package/dist/index.cjs198.js +1 -1
  38. package/dist/index.cjs199.js +1 -1
  39. package/dist/index.cjs200.js +1 -1
  40. package/dist/index.cjs201.js +1 -1
  41. package/dist/index.cjs202.js +1 -1
  42. package/dist/index.cjs203.js +1 -1
  43. package/dist/index.cjs206.js +1 -1
  44. package/dist/index.cjs207.js +1 -1
  45. package/dist/index.cjs209.js +1 -1
  46. package/dist/index.cjs210.js +1 -1
  47. package/dist/index.cjs211.js +1 -1
  48. package/dist/index.cjs212.js +1 -1
  49. package/dist/index.cjs213.js +1 -1
  50. package/dist/index.cjs214.js +1 -1
  51. package/dist/index.cjs216.js +1 -1
  52. package/dist/index.cjs216.js.map +1 -1
  53. package/dist/index.cjs217.js +1 -1
  54. package/dist/index.cjs217.js.map +1 -1
  55. package/dist/index.cjs218.js +1 -1
  56. package/dist/index.cjs218.js.map +1 -1
  57. package/dist/index.cjs219.js +1 -1
  58. package/dist/index.cjs219.js.map +1 -1
  59. package/dist/index.cjs220.js +1 -1
  60. package/dist/index.cjs220.js.map +1 -1
  61. package/dist/index.cjs221.js +1 -1
  62. package/dist/index.cjs221.js.map +1 -1
  63. package/dist/index.cjs222.js +1 -1
  64. package/dist/index.cjs222.js.map +1 -1
  65. package/dist/index.cjs223.js +1 -1
  66. package/dist/index.cjs223.js.map +1 -1
  67. package/dist/index.cjs224.js +1 -1
  68. package/dist/index.cjs224.js.map +1 -1
  69. package/dist/index.cjs225.js +1 -1
  70. package/dist/index.cjs225.js.map +1 -1
  71. package/dist/index.cjs226.js +1 -1
  72. package/dist/index.cjs226.js.map +1 -1
  73. package/dist/index.cjs227.js +1 -1
  74. package/dist/index.cjs227.js.map +1 -1
  75. package/dist/index.cjs228.js +1 -1
  76. package/dist/index.cjs228.js.map +1 -1
  77. package/dist/index.cjs229.js +1 -1
  78. package/dist/index.cjs229.js.map +1 -1
  79. package/dist/index.cjs230.js +1 -1
  80. package/dist/index.cjs230.js.map +1 -1
  81. package/dist/index.cjs231.js +1 -1
  82. package/dist/index.cjs231.js.map +1 -1
  83. package/dist/index.cjs232.js +1 -1
  84. package/dist/index.cjs232.js.map +1 -1
  85. package/dist/index.cjs233.js +1 -1
  86. package/dist/index.cjs233.js.map +1 -1
  87. package/dist/index.cjs234.js +1 -1
  88. package/dist/index.cjs234.js.map +1 -1
  89. package/dist/index.cjs235.js +1 -1
  90. package/dist/index.cjs235.js.map +1 -1
  91. package/dist/index.cjs236.js +1 -1
  92. package/dist/index.cjs236.js.map +1 -1
  93. package/dist/index.cjs237.js +1 -1
  94. package/dist/index.cjs237.js.map +1 -1
  95. package/dist/index.cjs238.js +1 -1
  96. package/dist/index.cjs238.js.map +1 -1
  97. package/dist/index.cjs239.js +1 -1
  98. package/dist/index.cjs239.js.map +1 -1
  99. package/dist/index.cjs240.js +1 -1
  100. package/dist/index.cjs240.js.map +1 -1
  101. package/dist/index.cjs241.js +1 -1
  102. package/dist/index.cjs241.js.map +1 -1
  103. package/dist/index.cjs242.js +1 -1
  104. package/dist/index.cjs242.js.map +1 -1
  105. package/dist/index.cjs243.js +1 -1
  106. package/dist/index.cjs243.js.map +1 -1
  107. package/dist/index.cjs244.js +1 -1
  108. package/dist/index.cjs244.js.map +1 -1
  109. package/dist/index.cjs245.js +1 -1
  110. package/dist/index.cjs245.js.map +1 -1
  111. package/dist/index.cjs246.js +1 -6
  112. package/dist/index.cjs246.js.map +1 -1
  113. package/dist/index.cjs247.js +1 -1
  114. package/dist/index.cjs247.js.map +1 -1
  115. package/dist/index.cjs248.js +6 -2
  116. package/dist/index.cjs248.js.map +1 -1
  117. package/dist/index.cjs249.js +1 -3
  118. package/dist/index.cjs249.js.map +1 -1
  119. package/dist/index.cjs250.js +2 -1
  120. package/dist/index.cjs250.js.map +1 -1
  121. package/dist/index.cjs251.js +3 -1
  122. package/dist/index.cjs251.js.map +1 -1
  123. package/dist/index.cjs252.js +1 -8
  124. package/dist/index.cjs252.js.map +1 -1
  125. package/dist/index.cjs253.js +1 -13
  126. package/dist/index.cjs253.js.map +1 -1
  127. package/dist/index.cjs254.js +8 -1
  128. package/dist/index.cjs254.js.map +1 -1
  129. package/dist/index.cjs255.js +13 -17
  130. package/dist/index.cjs255.js.map +1 -1
  131. package/dist/index.cjs256.js +1 -1
  132. package/dist/index.cjs256.js.map +1 -1
  133. package/dist/index.cjs257.js +17 -1
  134. package/dist/index.cjs257.js.map +1 -1
  135. package/dist/index.cjs258.js +1 -1
  136. package/dist/index.cjs258.js.map +1 -1
  137. package/dist/index.cjs259.js +1 -1
  138. package/dist/index.cjs259.js.map +1 -1
  139. package/dist/index.cjs260.js +1 -1
  140. package/dist/index.cjs260.js.map +1 -1
  141. package/dist/index.cjs261.js +1 -1
  142. package/dist/index.cjs261.js.map +1 -1
  143. package/dist/index.cjs262.js +1 -1
  144. package/dist/index.cjs262.js.map +1 -1
  145. package/dist/index.cjs263.js +1 -1
  146. package/dist/index.cjs263.js.map +1 -1
  147. package/dist/index.cjs264.js +1 -1
  148. package/dist/index.cjs264.js.map +1 -1
  149. package/dist/index.cjs265.js +1 -1
  150. package/dist/index.cjs265.js.map +1 -1
  151. package/dist/index.cjs266.js +1 -1
  152. package/dist/index.cjs266.js.map +1 -1
  153. package/dist/index.cjs267.js +1 -1
  154. package/dist/index.cjs267.js.map +1 -1
  155. package/dist/index.cjs268.js +1 -1
  156. package/dist/index.cjs268.js.map +1 -1
  157. package/dist/index.cjs269.js +1 -1
  158. package/dist/index.cjs269.js.map +1 -1
  159. package/dist/index.cjs270.js +1 -1
  160. package/dist/index.cjs270.js.map +1 -1
  161. package/dist/index.cjs271.js +1 -1
  162. package/dist/index.cjs271.js.map +1 -1
  163. package/dist/index.cjs273.js +1 -1
  164. package/dist/index.cjs274.js +1 -1
  165. package/dist/index.cjs275.js +1 -1
  166. package/dist/index.cjs276.js +1 -1
  167. package/dist/index.cjs277.js +1 -1
  168. package/dist/index.cjs278.js +1 -1
  169. package/dist/index.cjs279.js +1 -1
  170. package/dist/index.cjs280.js +1 -1
  171. package/dist/index.cjs281.js +1 -1
  172. package/dist/index.cjs282.js +1 -1
  173. package/dist/index.cjs292.js +1 -1
  174. package/dist/index.cjs298.js +1 -1
  175. package/dist/index.cjs310.js +1 -1
  176. package/dist/index.cjs427.js +1 -1
  177. package/dist/index.cjs428.js +1 -1
  178. package/dist/index.cjs431.js +1 -1
  179. package/dist/index.cjs456.js +1 -6
  180. package/dist/index.cjs456.js.map +1 -1
  181. package/dist/index.cjs457.js +1 -6
  182. package/dist/index.cjs457.js.map +1 -1
  183. package/dist/index.cjs458.js +1 -1
  184. package/dist/index.cjs458.js.map +1 -1
  185. package/dist/index.cjs459.js +1 -1
  186. package/dist/index.cjs459.js.map +1 -1
  187. package/dist/index.cjs460.js +1 -1
  188. package/dist/index.cjs460.js.map +1 -1
  189. package/dist/index.cjs461.js +1 -1
  190. package/dist/index.cjs461.js.map +1 -1
  191. package/dist/index.cjs462.js +1 -1
  192. package/dist/index.cjs462.js.map +1 -1
  193. package/dist/index.cjs463.js +1 -1
  194. package/dist/index.cjs463.js.map +1 -1
  195. package/dist/index.cjs464.js +1 -1
  196. package/dist/index.cjs464.js.map +1 -1
  197. package/dist/index.cjs465.js +1 -1
  198. package/dist/index.cjs465.js.map +1 -1
  199. package/dist/index.cjs466.js +1 -1
  200. package/dist/index.cjs466.js.map +1 -1
  201. package/dist/index.cjs467.js +1 -1
  202. package/dist/index.cjs467.js.map +1 -1
  203. package/dist/index.cjs468.js +1 -1
  204. package/dist/index.cjs468.js.map +1 -1
  205. package/dist/index.cjs469.js +1 -1
  206. package/dist/index.cjs469.js.map +1 -1
  207. package/dist/index.cjs470.js +1 -1
  208. package/dist/index.cjs470.js.map +1 -1
  209. package/dist/index.cjs471.js +1 -1
  210. package/dist/index.cjs471.js.map +1 -1
  211. package/dist/index.cjs472.js +1 -1
  212. package/dist/index.cjs472.js.map +1 -1
  213. package/dist/index.cjs473.js +1 -1
  214. package/dist/index.cjs473.js.map +1 -1
  215. package/dist/index.cjs474.js +1 -1
  216. package/dist/index.cjs474.js.map +1 -1
  217. package/dist/index.cjs475.js +6 -1
  218. package/dist/index.cjs475.js.map +1 -1
  219. package/dist/index.cjs476.js +6 -1
  220. package/dist/index.cjs476.js.map +1 -1
  221. package/dist/index.cjs477.js +1 -1
  222. package/dist/index.cjs477.js.map +1 -1
  223. package/dist/index.cjs478.js +1 -1
  224. package/dist/index.cjs478.js.map +1 -1
  225. package/dist/index.cjs479.js +1 -1
  226. package/dist/index.cjs479.js.map +1 -1
  227. package/dist/index.cjs480.js +1 -1
  228. package/dist/index.cjs480.js.map +1 -1
  229. package/dist/index.cjs481.js +1 -1
  230. package/dist/index.cjs481.js.map +1 -1
  231. package/dist/index.cjs482.js +1 -1
  232. package/dist/index.cjs482.js.map +1 -1
  233. package/dist/index.cjs483.js +1 -1
  234. package/dist/index.cjs483.js.map +1 -1
  235. package/dist/index.cjs494.js +1 -1
  236. package/dist/index.cjs496.js +1 -1
  237. package/dist/index.cjs496.js.map +1 -1
  238. package/dist/index.cjs497.js +1 -1
  239. package/dist/index.cjs497.js.map +1 -1
  240. package/dist/index.cjs498.js +1 -1
  241. package/dist/index.cjs498.js.map +1 -1
  242. package/dist/index.cjs499.js +1 -1
  243. package/dist/index.cjs499.js.map +1 -1
  244. package/dist/index.cjs50.js +1 -1
  245. package/dist/index.cjs50.js.map +1 -1
  246. package/dist/index.cjs500.js +1 -1
  247. package/dist/index.cjs500.js.map +1 -1
  248. package/dist/index.cjs501.js +1 -1
  249. package/dist/index.cjs501.js.map +1 -1
  250. package/dist/index.cjs502.js +1 -1
  251. package/dist/index.cjs502.js.map +1 -1
  252. package/dist/index.cjs503.js +1 -1
  253. package/dist/index.cjs503.js.map +1 -1
  254. package/dist/index.cjs504.js +1 -1
  255. package/dist/index.cjs504.js.map +1 -1
  256. package/dist/index.cjs505.js +1 -1
  257. package/dist/index.cjs505.js.map +1 -1
  258. package/dist/index.cjs508.js +1 -1
  259. package/dist/index.cjs508.js.map +1 -1
  260. package/dist/index.cjs509.js +1 -1
  261. package/dist/index.cjs509.js.map +1 -1
  262. package/dist/index.cjs511.js +1 -1
  263. package/dist/index.cjs511.js.map +1 -1
  264. package/dist/index.cjs512.js +1 -1
  265. package/dist/index.cjs512.js.map +1 -1
  266. package/dist/index.cjs513.js +1 -1
  267. package/dist/index.cjs513.js.map +1 -1
  268. package/dist/index.cjs514.js +1 -1
  269. package/dist/index.cjs514.js.map +1 -1
  270. package/dist/index.cjs515.js +1 -1
  271. package/dist/index.cjs515.js.map +1 -1
  272. package/dist/index.cjs516.js +1 -1
  273. package/dist/index.cjs516.js.map +1 -1
  274. package/dist/index.cjs517.js +1 -1
  275. package/dist/index.cjs517.js.map +1 -1
  276. package/dist/index.cjs518.js +1 -1
  277. package/dist/index.cjs518.js.map +1 -1
  278. package/dist/index.cjs519.js +1 -1
  279. package/dist/index.cjs519.js.map +1 -1
  280. package/dist/index.cjs520.js +1 -1
  281. package/dist/index.cjs520.js.map +1 -1
  282. package/dist/index.cjs521.js +1 -1
  283. package/dist/index.cjs521.js.map +1 -1
  284. package/dist/index.cjs522.js +1 -1
  285. package/dist/index.cjs522.js.map +1 -1
  286. package/dist/index.cjs523.js +1 -1
  287. package/dist/index.cjs523.js.map +1 -1
  288. package/dist/index.cjs524.js +1 -1
  289. package/dist/index.cjs524.js.map +1 -1
  290. package/dist/index.cjs525.js +1 -1
  291. package/dist/index.cjs525.js.map +1 -1
  292. package/dist/index.cjs526.js +1 -1
  293. package/dist/index.cjs526.js.map +1 -1
  294. package/dist/index.cjs527.js +1 -1
  295. package/dist/index.cjs527.js.map +1 -1
  296. package/dist/index.cjs531.js +1 -1
  297. package/dist/index.cjs532.js +1 -1
  298. package/dist/index.cjs555.js +1 -1
  299. package/dist/index.cjs557.js +1 -1
  300. package/dist/index.cjs559.js +1 -1
  301. package/dist/index.cjs573.js +1 -1
  302. package/dist/index.cjs574.js +1 -1
  303. package/dist/index.cjs583.js +1 -1
  304. package/dist/index.cjs584.js +1 -1
  305. package/dist/index.cjs584.js.map +1 -1
  306. package/dist/index.cjs585.js +1 -1
  307. package/dist/index.cjs585.js.map +1 -1
  308. package/dist/index.cjs587.js +1 -1
  309. package/dist/index.cjs591.js +1 -1
  310. package/dist/index.cjs593.js +1 -1
  311. package/dist/index.cjs594.js +1 -1
  312. package/dist/index.cjs595.js +1 -1
  313. package/dist/index.cjs595.js.map +1 -1
  314. package/dist/index.cjs596.js +1 -1
  315. package/dist/index.cjs596.js.map +1 -1
  316. package/dist/index.cjs597.js +1 -1
  317. package/dist/index.cjs597.js.map +1 -1
  318. package/dist/index.cjs598.js +1 -1
  319. package/dist/index.cjs598.js.map +1 -1
  320. package/dist/index.cjs599.js +1 -1
  321. package/dist/index.cjs599.js.map +1 -1
  322. package/dist/index.cjs600.js +1 -1
  323. package/dist/index.cjs600.js.map +1 -1
  324. package/dist/index.cjs601.js +1 -1
  325. package/dist/index.cjs601.js.map +1 -1
  326. package/dist/index.cjs602.js +1 -1
  327. package/dist/index.cjs602.js.map +1 -1
  328. package/dist/index.cjs603.js +1 -1
  329. package/dist/index.cjs603.js.map +1 -1
  330. package/dist/index.cjs604.js +1 -1
  331. package/dist/index.cjs604.js.map +1 -1
  332. package/dist/index.cjs605.js +1 -1
  333. package/dist/index.cjs605.js.map +1 -1
  334. package/dist/index.cjs606.js +1 -1
  335. package/dist/index.cjs606.js.map +1 -1
  336. package/dist/index.cjs607.js +1 -1
  337. package/dist/index.cjs607.js.map +1 -1
  338. package/dist/index.cjs608.js +1 -1
  339. package/dist/index.cjs608.js.map +1 -1
  340. package/dist/index.cjs609.js +1 -1
  341. package/dist/index.cjs609.js.map +1 -1
  342. package/dist/index.cjs610.js +1 -1
  343. package/dist/index.cjs610.js.map +1 -1
  344. package/dist/index.cjs611.js +1 -1
  345. package/dist/index.cjs611.js.map +1 -1
  346. package/dist/index.cjs612.js +1 -1
  347. package/dist/index.cjs612.js.map +1 -1
  348. package/dist/index.cjs613.js +1 -1
  349. package/dist/index.cjs613.js.map +1 -1
  350. package/dist/index.cjs614.js +1 -1
  351. package/dist/index.cjs614.js.map +1 -1
  352. package/dist/index.cjs615.js +1 -1
  353. package/dist/index.cjs615.js.map +1 -1
  354. package/dist/index.cjs616.js +1 -1
  355. package/dist/index.cjs616.js.map +1 -1
  356. package/dist/index.cjs617.js +1 -1
  357. package/dist/index.cjs617.js.map +1 -1
  358. package/dist/index.cjs618.js +1 -1
  359. package/dist/index.cjs618.js.map +1 -1
  360. package/dist/index.cjs619.js +1 -1
  361. package/dist/index.cjs619.js.map +1 -1
  362. package/dist/index.cjs620.js +1 -1
  363. package/dist/index.cjs620.js.map +1 -1
  364. package/dist/index.cjs621.js +1 -1
  365. package/dist/index.cjs621.js.map +1 -1
  366. package/dist/index.cjs622.js +1 -1
  367. package/dist/index.cjs622.js.map +1 -1
  368. package/dist/index.cjs623.js +1 -1
  369. package/dist/index.cjs623.js.map +1 -1
  370. package/dist/index.cjs624.js +1 -1
  371. package/dist/index.cjs624.js.map +1 -1
  372. package/dist/index.cjs625.js +1 -1
  373. package/dist/index.cjs625.js.map +1 -1
  374. package/dist/index.cjs626.js +1 -1
  375. package/dist/index.cjs626.js.map +1 -1
  376. package/dist/index.cjs627.js +1 -1
  377. package/dist/index.cjs627.js.map +1 -1
  378. package/dist/index.cjs628.js +1 -1
  379. package/dist/index.cjs628.js.map +1 -1
  380. package/dist/index.cjs629.js +1 -1
  381. package/dist/index.cjs629.js.map +1 -1
  382. package/dist/index.cjs630.js +1 -1
  383. package/dist/index.cjs630.js.map +1 -1
  384. package/dist/index.cjs631.js +1 -1
  385. package/dist/index.cjs631.js.map +1 -1
  386. package/dist/index.cjs632.js +1 -1
  387. package/dist/index.cjs633.js +1 -1
  388. package/dist/index.cjs633.js.map +1 -1
  389. package/dist/index.cjs634.js +1 -1
  390. package/dist/index.cjs634.js.map +1 -1
  391. package/dist/index.cjs635.js +1 -4
  392. package/dist/index.cjs635.js.map +1 -1
  393. package/dist/index.cjs636.js +2 -1
  394. package/dist/index.cjs636.js.map +1 -1
  395. package/dist/index.cjs637.js +1 -1
  396. package/dist/index.cjs638.js +1 -1
  397. package/dist/index.cjs638.js.map +1 -1
  398. package/dist/index.cjs639.js +1 -1
  399. package/dist/index.cjs639.js.map +1 -1
  400. package/dist/index.cjs640.js +1 -1
  401. package/dist/index.cjs640.js.map +1 -1
  402. package/dist/index.cjs641.js +1 -2
  403. package/dist/index.cjs641.js.map +1 -1
  404. package/dist/index.cjs642.js +2 -1
  405. package/dist/index.cjs642.js.map +1 -1
  406. package/dist/index.cjs643.js +1 -1
  407. package/dist/index.cjs643.js.map +1 -1
  408. package/dist/index.cjs644.js +1 -1
  409. package/dist/index.cjs644.js.map +1 -1
  410. package/dist/index.cjs645.js +1 -2
  411. package/dist/index.cjs645.js.map +1 -1
  412. package/dist/index.cjs646.js +4 -1
  413. package/dist/index.cjs646.js.map +1 -1
  414. package/dist/index.cjs648.js +1 -1
  415. package/dist/index.cjs649.js +1 -1
  416. package/dist/index.cjs650.js +1 -1
  417. package/dist/index.cjs650.js.map +1 -1
  418. package/dist/index.cjs651.js +1 -1
  419. package/dist/index.cjs651.js.map +1 -1
  420. package/dist/index.cjs659.js +1 -1
  421. package/dist/index.cjs661.js +1 -1
  422. package/dist/index.cjs661.js.map +1 -1
  423. package/dist/index.cjs662.js +1 -1
  424. package/dist/index.cjs662.js.map +1 -1
  425. package/dist/index.cjs663.js +1 -1
  426. package/dist/index.cjs663.js.map +1 -1
  427. package/dist/index.cjs668.js +1 -1
  428. package/dist/index.cjs668.js.map +1 -1
  429. package/dist/index.cjs669.js +1 -1
  430. package/dist/index.cjs669.js.map +1 -1
  431. package/dist/index.cjs670.js +1 -1
  432. package/dist/index.cjs670.js.map +1 -1
  433. package/dist/index.cjs671.js +1 -1
  434. package/dist/index.cjs671.js.map +1 -1
  435. package/dist/index.cjs672.js +1 -1
  436. package/dist/index.cjs672.js.map +1 -1
  437. package/dist/index.cjs673.js +1 -1
  438. package/dist/index.cjs673.js.map +1 -1
  439. package/dist/index.cjs674.js +1 -1
  440. package/dist/index.cjs674.js.map +1 -1
  441. package/dist/index.cjs675.js +1 -1
  442. package/dist/index.cjs675.js.map +1 -1
  443. package/dist/index.cjs676.js +1 -1
  444. package/dist/index.cjs676.js.map +1 -1
  445. package/dist/index.cjs677.js +1 -1
  446. package/dist/index.cjs677.js.map +1 -1
  447. package/dist/index.cjs678.js +1 -1
  448. package/dist/index.cjs678.js.map +1 -1
  449. package/dist/index.cjs679.js +1 -1
  450. package/dist/index.cjs679.js.map +1 -1
  451. package/dist/index.cjs680.js +1 -1
  452. package/dist/index.cjs680.js.map +1 -1
  453. package/dist/index.cjs681.js +1 -1
  454. package/dist/index.cjs681.js.map +1 -1
  455. package/dist/index.cjs682.js +1 -1
  456. package/dist/index.cjs682.js.map +1 -1
  457. package/dist/index.cjs683.js +1 -1
  458. package/dist/index.cjs683.js.map +1 -1
  459. package/dist/index.cjs684.js +1 -1
  460. package/dist/index.cjs684.js.map +1 -1
  461. package/dist/index.cjs685.js +1 -1
  462. package/dist/index.cjs685.js.map +1 -1
  463. package/dist/index.cjs686.js +1 -1
  464. package/dist/index.cjs686.js.map +1 -1
  465. package/dist/index.cjs687.js +1 -1
  466. package/dist/index.cjs687.js.map +1 -1
  467. package/dist/index.cjs688.js +1 -1
  468. package/dist/index.cjs688.js.map +1 -1
  469. package/dist/index.cjs689.js +1 -1
  470. package/dist/index.cjs689.js.map +1 -1
  471. package/dist/index.cjs690.js +1 -1
  472. package/dist/index.cjs690.js.map +1 -1
  473. package/dist/index.cjs691.js +1 -1
  474. package/dist/index.cjs691.js.map +1 -1
  475. package/dist/index.cjs692.js +1 -38
  476. package/dist/index.cjs692.js.map +1 -1
  477. package/dist/index.cjs693.js +38 -1
  478. package/dist/index.cjs693.js.map +1 -1
  479. package/dist/index.cjs694.js +1 -1
  480. package/dist/index.cjs694.js.map +1 -1
  481. package/dist/index.cjs695.js +1 -1
  482. package/dist/index.cjs695.js.map +1 -1
  483. package/dist/index.cjs696.js +1 -1
  484. package/dist/index.cjs696.js.map +1 -1
  485. package/dist/index.cjs697.js +1 -1
  486. package/dist/index.cjs697.js.map +1 -1
  487. package/dist/index.cjs698.js +1 -1
  488. package/dist/index.cjs698.js.map +1 -1
  489. package/dist/index.cjs699.js +1 -1
  490. package/dist/index.cjs699.js.map +1 -1
  491. package/dist/index.cjs70.js +1 -1
  492. package/dist/index.cjs70.js.map +1 -1
  493. package/dist/index.cjs700.js +1 -1
  494. package/dist/index.cjs700.js.map +1 -1
  495. package/dist/index.cjs701.js +1 -1
  496. package/dist/index.cjs701.js.map +1 -1
  497. package/dist/index.cjs702.js +1 -1
  498. package/dist/index.cjs702.js.map +1 -1
  499. package/dist/index.cjs703.js +1 -1
  500. package/dist/index.cjs704.js +1 -1
  501. package/dist/index.cjs704.js.map +1 -1
  502. package/dist/index.cjs706.js +1 -1
  503. package/dist/index.cjs706.js.map +1 -1
  504. package/dist/index.cjs708.js +1 -1
  505. package/dist/index.cjs708.js.map +1 -1
  506. package/dist/index.cjs709.js +1 -1
  507. package/dist/index.cjs709.js.map +1 -1
  508. package/dist/index.cjs71.js +1 -1
  509. package/dist/index.cjs71.js.map +1 -1
  510. package/dist/index.cjs710.js +1 -1
  511. package/dist/index.cjs710.js.map +1 -1
  512. package/dist/index.cjs712.js +1 -1
  513. package/dist/index.cjs714.js +1 -1
  514. package/dist/index.cjs714.js.map +1 -1
  515. package/dist/index.cjs716.js +1 -1
  516. package/dist/index.cjs716.js.map +1 -1
  517. package/dist/index.cjs718.js +1 -1
  518. package/dist/index.cjs718.js.map +1 -1
  519. package/dist/index.cjs719.js +1 -1
  520. package/dist/index.cjs720.js +1 -1
  521. package/dist/index.cjs720.js.map +1 -1
  522. package/dist/index.cjs723.js +1 -1
  523. package/dist/index.cjs724.js +1 -1
  524. package/dist/index.cjs725.js +1 -1
  525. package/dist/index.cjs726.js +1 -1
  526. package/dist/index.cjs727.js +1 -1
  527. package/dist/index.cjs728.js +1 -1
  528. package/dist/index.cjs740.js +1 -1
  529. package/dist/index.cjs741.js +1 -1
  530. package/dist/index.cjs742.js +1 -38
  531. package/dist/index.cjs742.js.map +1 -1
  532. package/dist/index.cjs743.js +1 -1
  533. package/dist/index.cjs743.js.map +1 -1
  534. package/dist/index.cjs744.js +1 -1
  535. package/dist/index.cjs744.js.map +1 -1
  536. package/dist/index.cjs745.js +1 -1
  537. package/dist/index.cjs745.js.map +1 -1
  538. package/dist/index.cjs748.js +1 -1
  539. package/dist/index.cjs748.js.map +1 -1
  540. package/dist/index.cjs750.js +38 -1
  541. package/dist/index.cjs750.js.map +1 -1
  542. package/dist/index.cjs751.js +1 -1
  543. package/dist/index.cjs751.js.map +1 -1
  544. package/dist/index.cjs752.js +1 -1
  545. package/dist/index.cjs752.js.map +1 -1
  546. package/dist/index.cjs753.js +1 -1
  547. package/dist/index.cjs766.js +1 -1
  548. package/dist/index.cjs766.js.map +1 -1
  549. package/dist/index.cjs767.js +1 -1
  550. package/dist/index.cjs767.js.map +1 -1
  551. package/dist/index.cjs77.js +1 -1
  552. package/dist/index.cjs774.js +1 -1
  553. package/dist/index.cjs776.js +1 -1
  554. package/dist/index.cjs777.js +1 -1
  555. package/dist/index.cjs784.js +1 -1
  556. package/dist/index.cjs784.js.map +1 -1
  557. package/dist/index.cjs785.js +1 -1
  558. package/dist/index.cjs785.js.map +1 -1
  559. package/dist/index.cjs786.js +1 -1
  560. package/dist/index.cjs786.js.map +1 -1
  561. package/dist/index.cjs787.js +1 -1
  562. package/dist/index.cjs787.js.map +1 -1
  563. package/dist/index.cjs806.js +1 -1
  564. package/dist/index.cjs811.js +1 -1
  565. package/dist/index.cjs812.js +1 -1
  566. package/dist/index.cjs812.js.map +1 -1
  567. package/dist/index.cjs813.js +1 -1
  568. package/dist/index.cjs813.js.map +1 -1
  569. package/dist/index.cjs814.js +1 -1
  570. package/dist/index.cjs814.js.map +1 -1
  571. package/dist/index.cjs815.js +1 -2
  572. package/dist/index.cjs815.js.map +1 -1
  573. package/dist/index.cjs816.js +2 -1
  574. package/dist/index.cjs816.js.map +1 -1
  575. package/dist/index.cjs817.js +1 -1
  576. package/dist/index.cjs817.js.map +1 -1
  577. package/dist/index.cjs818.js +1 -1
  578. package/dist/index.cjs818.js.map +1 -1
  579. package/dist/index.es105.js +1 -1
  580. package/dist/index.es106.js +1 -1
  581. package/dist/index.es109.js +2 -2
  582. package/dist/index.es110.js +4 -4
  583. package/dist/index.es111.js +12 -12
  584. package/dist/index.es114.js +1 -1
  585. package/dist/index.es115.js +1 -1
  586. package/dist/index.es116.js +1 -1
  587. package/dist/index.es118.js +3 -3
  588. package/dist/index.es119.js +1 -1
  589. package/dist/index.es120.js +1 -1
  590. package/dist/index.es123.js +3 -3
  591. package/dist/index.es125.js +1 -1
  592. package/dist/index.es126.js +1 -1
  593. package/dist/index.es130.js +1 -1
  594. package/dist/index.es131.js +4 -4
  595. package/dist/index.es132.js +2 -2
  596. package/dist/index.es133.js +1 -1
  597. package/dist/index.es134.js +1 -1
  598. package/dist/index.es161.js +1 -1
  599. package/dist/index.es162.js +1 -1
  600. package/dist/index.es163.js +1 -1
  601. package/dist/index.es164.js +1 -1
  602. package/dist/index.es165.js +1 -1
  603. package/dist/index.es166.js +1 -1
  604. package/dist/index.es167.js +1 -1
  605. package/dist/index.es168.js +1 -1
  606. package/dist/index.es177.js +1 -1
  607. package/dist/index.es180.js +1 -1
  608. package/dist/index.es181.js +1 -1
  609. package/dist/index.es182.js +1 -1
  610. package/dist/index.es186.js +2 -2
  611. package/dist/index.es187.js +1 -1
  612. package/dist/index.es188.js +7 -7
  613. package/dist/index.es189.js +1 -1
  614. package/dist/index.es192.js +1 -1
  615. package/dist/index.es198.js +1 -1
  616. package/dist/index.es199.js +1 -1
  617. package/dist/index.es200.js +13 -13
  618. package/dist/index.es201.js +1 -1
  619. package/dist/index.es202.js +3 -3
  620. package/dist/index.es203.js +2 -2
  621. package/dist/index.es206.js +3 -3
  622. package/dist/index.es207.js +8 -8
  623. package/dist/index.es209.js +4 -4
  624. package/dist/index.es210.js +4 -4
  625. package/dist/index.es211.js +8 -8
  626. package/dist/index.es212.js +15 -15
  627. package/dist/index.es213.js +2 -2
  628. package/dist/index.es214.js +2 -2
  629. package/dist/index.es216.js +25 -11
  630. package/dist/index.es216.js.map +1 -1
  631. package/dist/index.es217.js +24 -35
  632. package/dist/index.es217.js.map +1 -1
  633. package/dist/index.es218.js +9 -77
  634. package/dist/index.es218.js.map +1 -1
  635. package/dist/index.es219.js +34 -10
  636. package/dist/index.es219.js.map +1 -1
  637. package/dist/index.es220.js +78 -11
  638. package/dist/index.es220.js.map +1 -1
  639. package/dist/index.es221.js +11 -4
  640. package/dist/index.es221.js.map +1 -1
  641. package/dist/index.es222.js +3 -179
  642. package/dist/index.es222.js.map +1 -1
  643. package/dist/index.es223.js +45 -21
  644. package/dist/index.es223.js.map +1 -1
  645. package/dist/index.es224.js +13 -24
  646. package/dist/index.es224.js.map +1 -1
  647. package/dist/index.es225.js +47 -378
  648. package/dist/index.es225.js.map +1 -1
  649. package/dist/index.es226.js +56 -515
  650. package/dist/index.es226.js.map +1 -1
  651. package/dist/index.es227.js +6 -10
  652. package/dist/index.es227.js.map +1 -1
  653. package/dist/index.es228.js +134 -4
  654. package/dist/index.es228.js.map +1 -1
  655. package/dist/index.es229.js +16 -44
  656. package/dist/index.es229.js.map +1 -1
  657. package/dist/index.es230.js +183 -11
  658. package/dist/index.es230.js.map +1 -1
  659. package/dist/index.es231.js +213 -47
  660. package/dist/index.es231.js.map +1 -1
  661. package/dist/index.es232.js +12 -58
  662. package/dist/index.es232.js.map +1 -1
  663. package/dist/index.es233.js +196 -6
  664. package/dist/index.es233.js.map +1 -1
  665. package/dist/index.es234.js +44 -131
  666. package/dist/index.es234.js.map +1 -1
  667. package/dist/index.es235.js +10 -18
  668. package/dist/index.es235.js.map +1 -1
  669. package/dist/index.es236.js +4 -186
  670. package/dist/index.es236.js.map +1 -1
  671. package/dist/index.es237.js +10 -216
  672. package/dist/index.es237.js.map +1 -1
  673. package/dist/index.es238.js +12 -12
  674. package/dist/index.es238.js.map +1 -1
  675. package/dist/index.es239.js +3 -196
  676. package/dist/index.es239.js.map +1 -1
  677. package/dist/index.es240.js +178 -45
  678. package/dist/index.es240.js.map +1 -1
  679. package/dist/index.es241.js +21 -9
  680. package/dist/index.es241.js.map +1 -1
  681. package/dist/index.es242.js +25 -4
  682. package/dist/index.es242.js.map +1 -1
  683. package/dist/index.es243.js +379 -25
  684. package/dist/index.es243.js.map +1 -1
  685. package/dist/index.es244.js +515 -71
  686. package/dist/index.es244.js.map +1 -1
  687. package/dist/index.es245.js +28 -6
  688. package/dist/index.es245.js.map +1 -1
  689. package/dist/index.es246.js +75 -19
  690. package/dist/index.es246.js.map +1 -1
  691. package/dist/index.es247.js +5 -70
  692. package/dist/index.es247.js.map +1 -1
  693. package/dist/index.es248.js +17 -68
  694. package/dist/index.es248.js.map +1 -1
  695. package/dist/index.es249.js +68 -68
  696. package/dist/index.es249.js.map +1 -1
  697. package/dist/index.es250.js +68 -2
  698. package/dist/index.es250.js.map +1 -1
  699. package/dist/index.es251.js +71 -2
  700. package/dist/index.es251.js.map +1 -1
  701. package/dist/index.es252.js +2 -91
  702. package/dist/index.es252.js.map +1 -1
  703. package/dist/index.es253.js +2 -86
  704. package/dist/index.es253.js.map +1 -1
  705. package/dist/index.es254.js +87 -38
  706. package/dist/index.es254.js.map +1 -1
  707. package/dist/index.es255.js +76 -58
  708. package/dist/index.es255.js.map +1 -1
  709. package/dist/index.es256.js +42 -2
  710. package/dist/index.es256.js.map +1 -1
  711. package/dist/index.es257.js +66 -1632
  712. package/dist/index.es257.js.map +1 -1
  713. package/dist/index.es258.js +2 -35
  714. package/dist/index.es258.js.map +1 -1
  715. package/dist/index.es259.js +1609 -241
  716. package/dist/index.es259.js.map +1 -1
  717. package/dist/index.es260.js +34 -3
  718. package/dist/index.es260.js.map +1 -1
  719. package/dist/index.es261.js +266 -21
  720. package/dist/index.es261.js.map +1 -1
  721. package/dist/index.es262.js +3 -1339
  722. package/dist/index.es262.js.map +1 -1
  723. package/dist/index.es263.js +20 -49
  724. package/dist/index.es263.js.map +1 -1
  725. package/dist/index.es264.js +1339 -5
  726. package/dist/index.es264.js.map +1 -1
  727. package/dist/index.es265.js +50 -5
  728. package/dist/index.es265.js.map +1 -1
  729. package/dist/index.es266.js +5 -24
  730. package/dist/index.es266.js.map +1 -1
  731. package/dist/index.es267.js +5 -25
  732. package/dist/index.es267.js.map +1 -1
  733. package/dist/index.es268.js +24 -23
  734. package/dist/index.es268.js.map +1 -1
  735. package/dist/index.es269.js +14 -22
  736. package/dist/index.es269.js.map +1 -1
  737. package/dist/index.es270.js +17 -15
  738. package/dist/index.es270.js.map +1 -1
  739. package/dist/index.es271.js +23 -17
  740. package/dist/index.es271.js.map +1 -1
  741. package/dist/index.es273.js +1 -1
  742. package/dist/index.es274.js +1 -1
  743. package/dist/index.es275.js +1 -1
  744. package/dist/index.es276.js +1 -1
  745. package/dist/index.es277.js +2 -2
  746. package/dist/index.es278.js +1 -1
  747. package/dist/index.es279.js +5 -5
  748. package/dist/index.es280.js +2 -2
  749. package/dist/index.es281.js +6 -6
  750. package/dist/index.es282.js +2 -2
  751. package/dist/index.es292.js +3 -3
  752. package/dist/index.es298.js +3 -3
  753. package/dist/index.es310.js +3 -3
  754. package/dist/index.es427.js +1 -1
  755. package/dist/index.es428.js +1 -1
  756. package/dist/index.es431.js +1 -1
  757. package/dist/index.es456.js +73 -40
  758. package/dist/index.es456.js.map +1 -1
  759. package/dist/index.es457.js +14 -18
  760. package/dist/index.es457.js.map +1 -1
  761. package/dist/index.es458.js +28 -71
  762. package/dist/index.es458.js.map +1 -1
  763. package/dist/index.es459.js +40 -13
  764. package/dist/index.es459.js.map +1 -1
  765. package/dist/index.es460.js +5 -29
  766. package/dist/index.es460.js.map +1 -1
  767. package/dist/index.es461.js +16 -40
  768. package/dist/index.es461.js.map +1 -1
  769. package/dist/index.es462.js +9 -6
  770. package/dist/index.es462.js.map +1 -1
  771. package/dist/index.es463.js +16 -17
  772. package/dist/index.es463.js.map +1 -1
  773. package/dist/index.es464.js +16 -9
  774. package/dist/index.es464.js.map +1 -1
  775. package/dist/index.es465.js +23 -15
  776. package/dist/index.es465.js.map +1 -1
  777. package/dist/index.es466.js +45 -15
  778. package/dist/index.es466.js.map +1 -1
  779. package/dist/index.es467.js +13 -22
  780. package/dist/index.es467.js.map +1 -1
  781. package/dist/index.es468.js +25 -46
  782. package/dist/index.es468.js.map +1 -1
  783. package/dist/index.es469.js +52 -15
  784. package/dist/index.es469.js.map +1 -1
  785. package/dist/index.es470.js +27 -25
  786. package/dist/index.es470.js.map +1 -1
  787. package/dist/index.es471.js +4 -51
  788. package/dist/index.es471.js.map +1 -1
  789. package/dist/index.es472.js +4 -26
  790. package/dist/index.es472.js.map +1 -1
  791. package/dist/index.es473.js +4 -4
  792. package/dist/index.es473.js.map +1 -1
  793. package/dist/index.es474.js +12 -4
  794. package/dist/index.es474.js.map +1 -1
  795. package/dist/index.es475.js +40 -5
  796. package/dist/index.es475.js.map +1 -1
  797. package/dist/index.es476.js +18 -13
  798. package/dist/index.es476.js.map +1 -1
  799. package/dist/index.es477.js +11 -9
  800. package/dist/index.es477.js.map +1 -1
  801. package/dist/index.es478.js +9 -12
  802. package/dist/index.es478.js.map +1 -1
  803. package/dist/index.es479.js +4 -4
  804. package/dist/index.es479.js.map +1 -1
  805. package/dist/index.es480.js +11 -12
  806. package/dist/index.es480.js.map +1 -1
  807. package/dist/index.es481.js +27 -9
  808. package/dist/index.es481.js.map +1 -1
  809. package/dist/index.es482.js +29 -6
  810. package/dist/index.es482.js.map +1 -1
  811. package/dist/index.es483.js +5 -15
  812. package/dist/index.es483.js.map +1 -1
  813. package/dist/index.es494.js +2 -2
  814. package/dist/index.es496.js +8 -27
  815. package/dist/index.es496.js.map +1 -1
  816. package/dist/index.es497.js +13 -29
  817. package/dist/index.es497.js.map +1 -1
  818. package/dist/index.es498.js +5 -5
  819. package/dist/index.es498.js.map +1 -1
  820. package/dist/index.es499.js +13 -11
  821. package/dist/index.es499.js.map +1 -1
  822. package/dist/index.es50.js +211 -170
  823. package/dist/index.es50.js.map +1 -1
  824. package/dist/index.es500.js +9 -9
  825. package/dist/index.es500.js.map +1 -1
  826. package/dist/index.es501.js +5 -4
  827. package/dist/index.es501.js.map +1 -1
  828. package/dist/index.es502.js +15 -12
  829. package/dist/index.es502.js.map +1 -1
  830. package/dist/index.es503.js +10 -2
  831. package/dist/index.es503.js.map +1 -1
  832. package/dist/index.es504.js +2 -322
  833. package/dist/index.es504.js.map +1 -1
  834. package/dist/index.es505.js +322 -2
  835. package/dist/index.es505.js.map +1 -1
  836. package/dist/index.es506.js +2 -2
  837. package/dist/index.es507.js +2 -2
  838. package/dist/index.es508.js +2 -15
  839. package/dist/index.es508.js.map +1 -1
  840. package/dist/index.es509.js +15 -2
  841. package/dist/index.es509.js.map +1 -1
  842. package/dist/index.es510.js +2 -2
  843. package/dist/index.es511.js +2 -48
  844. package/dist/index.es511.js.map +1 -1
  845. package/dist/index.es512.js +36 -26
  846. package/dist/index.es512.js.map +1 -1
  847. package/dist/index.es513.js +36 -41
  848. package/dist/index.es513.js.map +1 -1
  849. package/dist/index.es514.js +43 -2
  850. package/dist/index.es514.js.map +1 -1
  851. package/dist/index.es515.js +2 -16
  852. package/dist/index.es515.js.map +1 -1
  853. package/dist/index.es516.js +16 -2
  854. package/dist/index.es516.js.map +1 -1
  855. package/dist/index.es517.js +2 -16
  856. package/dist/index.es517.js.map +1 -1
  857. package/dist/index.es518.js +13 -13
  858. package/dist/index.es518.js.map +1 -1
  859. package/dist/index.es519.js +14 -16
  860. package/dist/index.es519.js.map +1 -1
  861. package/dist/index.es520.js +16 -18
  862. package/dist/index.es520.js.map +1 -1
  863. package/dist/index.es521.js +20 -2
  864. package/dist/index.es521.js.map +1 -1
  865. package/dist/index.es522.js +2 -10
  866. package/dist/index.es522.js.map +1 -1
  867. package/dist/index.es523.js +6 -29
  868. package/dist/index.es523.js.map +1 -1
  869. package/dist/index.es524.js +29 -5
  870. package/dist/index.es524.js.map +1 -1
  871. package/dist/index.es525.js +5 -29
  872. package/dist/index.es525.js.map +1 -1
  873. package/dist/index.es526.js +29 -5
  874. package/dist/index.es526.js.map +1 -1
  875. package/dist/index.es527.js +5 -6
  876. package/dist/index.es527.js.map +1 -1
  877. package/dist/index.es531.js +1 -1
  878. package/dist/index.es532.js +1 -1
  879. package/dist/index.es555.js +1 -1
  880. package/dist/index.es557.js +1 -1
  881. package/dist/index.es559.js +1 -1
  882. package/dist/index.es573.js +1 -1
  883. package/dist/index.es574.js +2 -2
  884. package/dist/index.es583.js +1 -1
  885. package/dist/index.es584.js +3 -5
  886. package/dist/index.es584.js.map +1 -1
  887. package/dist/index.es585.js +5 -3
  888. package/dist/index.es585.js.map +1 -1
  889. package/dist/index.es587.js +8 -8
  890. package/dist/index.es591.js +1 -1
  891. package/dist/index.es593.js +5 -5
  892. package/dist/index.es594.js +1 -1
  893. package/dist/index.es595.js +156 -2
  894. package/dist/index.es595.js.map +1 -1
  895. package/dist/index.es596.js +104 -2
  896. package/dist/index.es596.js.map +1 -1
  897. package/dist/index.es597.js +16 -21
  898. package/dist/index.es597.js.map +1 -1
  899. package/dist/index.es598.js +7 -156
  900. package/dist/index.es598.js.map +1 -1
  901. package/dist/index.es599.js +2 -104
  902. package/dist/index.es599.js.map +1 -1
  903. package/dist/index.es600.js +2 -17
  904. package/dist/index.es600.js.map +1 -1
  905. package/dist/index.es601.js +22 -2
  906. package/dist/index.es601.js.map +1 -1
  907. package/dist/index.es602.js +2 -96
  908. package/dist/index.es602.js.map +1 -1
  909. package/dist/index.es603.js +86 -265
  910. package/dist/index.es603.js.map +1 -1
  911. package/dist/index.es604.js +227 -81
  912. package/dist/index.es604.js.map +1 -1
  913. package/dist/index.es605.js +81 -120
  914. package/dist/index.es605.js.map +1 -1
  915. package/dist/index.es606.js +119 -82
  916. package/dist/index.es606.js.map +1 -1
  917. package/dist/index.es607.js +75 -72
  918. package/dist/index.es607.js.map +1 -1
  919. package/dist/index.es608.js +76 -81
  920. package/dist/index.es608.js.map +1 -1
  921. package/dist/index.es609.js +80 -75
  922. package/dist/index.es609.js.map +1 -1
  923. package/dist/index.es610.js +76 -65
  924. package/dist/index.es610.js.map +1 -1
  925. package/dist/index.es611.js +53 -53
  926. package/dist/index.es611.js.map +1 -1
  927. package/dist/index.es612.js +35 -35
  928. package/dist/index.es612.js.map +1 -1
  929. package/dist/index.es613.js +56 -56
  930. package/dist/index.es613.js.map +1 -1
  931. package/dist/index.es614.js +69 -77
  932. package/dist/index.es614.js.map +1 -1
  933. package/dist/index.es615.js +72 -78
  934. package/dist/index.es615.js.map +1 -1
  935. package/dist/index.es616.js +75 -72
  936. package/dist/index.es616.js.map +1 -1
  937. package/dist/index.es617.js +121 -26
  938. package/dist/index.es617.js.map +1 -1
  939. package/dist/index.es618.js +33 -2
  940. package/dist/index.es618.js.map +1 -1
  941. package/dist/index.es619.js +2 -21
  942. package/dist/index.es619.js.map +1 -1
  943. package/dist/index.es620.js +21 -2
  944. package/dist/index.es620.js.map +1 -1
  945. package/dist/index.es621.js +2 -43
  946. package/dist/index.es621.js.map +1 -1
  947. package/dist/index.es622.js +26 -26
  948. package/dist/index.es622.js.map +1 -1
  949. package/dist/index.es623.js +30 -30
  950. package/dist/index.es623.js.map +1 -1
  951. package/dist/index.es624.js +23 -23
  952. package/dist/index.es624.js.map +1 -1
  953. package/dist/index.es625.js +30 -30
  954. package/dist/index.es625.js.map +1 -1
  955. package/dist/index.es626.js +22 -22
  956. package/dist/index.es626.js.map +1 -1
  957. package/dist/index.es627.js +30 -30
  958. package/dist/index.es627.js.map +1 -1
  959. package/dist/index.es628.js +31 -31
  960. package/dist/index.es628.js.map +1 -1
  961. package/dist/index.es629.js +22 -23
  962. package/dist/index.es629.js.map +1 -1
  963. package/dist/index.es630.js +37 -34
  964. package/dist/index.es630.js.map +1 -1
  965. package/dist/index.es631.js +40 -6
  966. package/dist/index.es631.js.map +1 -1
  967. package/dist/index.es632.js +2 -2
  968. package/dist/index.es633.js +12 -5
  969. package/dist/index.es633.js.map +1 -1
  970. package/dist/index.es634.js +34 -3
  971. package/dist/index.es634.js.map +1 -1
  972. package/dist/index.es635.js +18 -107
  973. package/dist/index.es635.js.map +1 -1
  974. package/dist/index.es636.js +12 -2
  975. package/dist/index.es636.js.map +1 -1
  976. package/dist/index.es637.js +2 -2
  977. package/dist/index.es638.js +2 -12
  978. package/dist/index.es638.js.map +1 -1
  979. package/dist/index.es639.js +2 -34
  980. package/dist/index.es639.js.map +1 -1
  981. package/dist/index.es640.js +12 -19
  982. package/dist/index.es640.js.map +1 -1
  983. package/dist/index.es641.js +9 -9
  984. package/dist/index.es641.js.map +1 -1
  985. package/dist/index.es642.js +12 -2
  986. package/dist/index.es642.js.map +1 -1
  987. package/dist/index.es643.js +2 -14
  988. package/dist/index.es643.js.map +1 -1
  989. package/dist/index.es644.js +5 -12
  990. package/dist/index.es644.js.map +1 -1
  991. package/dist/index.es645.js +3 -12
  992. package/dist/index.es645.js.map +1 -1
  993. package/dist/index.es646.js +110 -2
  994. package/dist/index.es646.js.map +1 -1
  995. package/dist/index.es648.js +1 -1
  996. package/dist/index.es649.js +2 -2
  997. package/dist/index.es650.js +6 -3
  998. package/dist/index.es650.js.map +1 -1
  999. package/dist/index.es651.js +3 -6
  1000. package/dist/index.es651.js.map +1 -1
  1001. package/dist/index.es659.js +1 -1
  1002. package/dist/index.es661.js +2 -109
  1003. package/dist/index.es661.js.map +1 -1
  1004. package/dist/index.es662.js +2 -2
  1005. package/dist/index.es662.js.map +1 -1
  1006. package/dist/index.es663.js +109 -2
  1007. package/dist/index.es663.js.map +1 -1
  1008. package/dist/index.es668.js +478 -61
  1009. package/dist/index.es668.js.map +1 -1
  1010. package/dist/index.es669.js +45 -4
  1011. package/dist/index.es669.js.map +1 -1
  1012. package/dist/index.es670.js +24 -8
  1013. package/dist/index.es670.js.map +1 -1
  1014. package/dist/index.es671.js +25 -8
  1015. package/dist/index.es671.js.map +1 -1
  1016. package/dist/index.es672.js +60 -13
  1017. package/dist/index.es672.js.map +1 -1
  1018. package/dist/index.es673.js +5 -19
  1019. package/dist/index.es673.js.map +1 -1
  1020. package/dist/index.es674.js +7 -10
  1021. package/dist/index.es674.js.map +1 -1
  1022. package/dist/index.es675.js +6 -2
  1023. package/dist/index.es675.js.map +1 -1
  1024. package/dist/index.es676.js +18 -482
  1025. package/dist/index.es676.js.map +1 -1
  1026. package/dist/index.es677.js +19 -46
  1027. package/dist/index.es677.js.map +1 -1
  1028. package/dist/index.es678.js +11 -24
  1029. package/dist/index.es678.js.map +1 -1
  1030. package/dist/index.es679.js +4 -25
  1031. package/dist/index.es679.js.map +1 -1
  1032. package/dist/index.es680.js +12 -33
  1033. package/dist/index.es680.js.map +1 -1
  1034. package/dist/index.es681.js +14 -12
  1035. package/dist/index.es681.js.map +1 -1
  1036. package/dist/index.es682.js +7 -8
  1037. package/dist/index.es682.js.map +1 -1
  1038. package/dist/index.es683.js +13 -13
  1039. package/dist/index.es683.js.map +1 -1
  1040. package/dist/index.es684.js +20 -11
  1041. package/dist/index.es684.js.map +1 -1
  1042. package/dist/index.es685.js +2 -7
  1043. package/dist/index.es685.js.map +1 -1
  1044. package/dist/index.es686.js +12 -11
  1045. package/dist/index.es686.js.map +1 -1
  1046. package/dist/index.es687.js +305 -22
  1047. package/dist/index.es687.js.map +1 -1
  1048. package/dist/index.es688.js +22 -2
  1049. package/dist/index.es688.js.map +1 -1
  1050. package/dist/index.es689.js +33 -13
  1051. package/dist/index.es689.js.map +1 -1
  1052. package/dist/index.es690.js +12 -306
  1053. package/dist/index.es690.js.map +1 -1
  1054. package/dist/index.es691.js +8 -22
  1055. package/dist/index.es691.js.map +1 -1
  1056. package/dist/index.es692.js +112 -49
  1057. package/dist/index.es692.js.map +1 -1
  1058. package/dist/index.es693.js +54 -8
  1059. package/dist/index.es693.js.map +1 -1
  1060. package/dist/index.es694.js +9 -14
  1061. package/dist/index.es694.js.map +1 -1
  1062. package/dist/index.es695.js +14 -60
  1063. package/dist/index.es695.js.map +1 -1
  1064. package/dist/index.es696.js +59 -64
  1065. package/dist/index.es696.js.map +1 -1
  1066. package/dist/index.es697.js +65 -2
  1067. package/dist/index.es697.js.map +1 -1
  1068. package/dist/index.es698.js +2 -3
  1069. package/dist/index.es698.js.map +1 -1
  1070. package/dist/index.es699.js +3 -3
  1071. package/dist/index.es699.js.map +1 -1
  1072. package/dist/index.es70.js +15 -12
  1073. package/dist/index.es70.js.map +1 -1
  1074. package/dist/index.es700.js +4 -118
  1075. package/dist/index.es700.js.map +1 -1
  1076. package/dist/index.es701.js +14 -2
  1077. package/dist/index.es701.js.map +1 -1
  1078. package/dist/index.es702.js +2 -151
  1079. package/dist/index.es702.js.map +1 -1
  1080. package/dist/index.es703.js +2 -2
  1081. package/dist/index.es704.js +2 -6
  1082. package/dist/index.es704.js.map +1 -1
  1083. package/dist/index.es705.js +2 -2
  1084. package/dist/index.es706.js +2 -148
  1085. package/dist/index.es706.js.map +1 -1
  1086. package/dist/index.es708.js +2 -138
  1087. package/dist/index.es708.js.map +1 -1
  1088. package/dist/index.es709.js +2 -3
  1089. package/dist/index.es709.js.map +1 -1
  1090. package/dist/index.es71.js +26 -24
  1091. package/dist/index.es71.js.map +1 -1
  1092. package/dist/index.es710.js +2 -14
  1093. package/dist/index.es710.js.map +1 -1
  1094. package/dist/index.es713.js +2 -2
  1095. package/dist/index.es714.js +151 -2
  1096. package/dist/index.es714.js.map +1 -1
  1097. package/dist/index.es715.js +2 -2
  1098. package/dist/index.es716.js +6 -2
  1099. package/dist/index.es716.js.map +1 -1
  1100. package/dist/index.es717.js +2 -2
  1101. package/dist/index.es718.js +148 -2
  1102. package/dist/index.es718.js.map +1 -1
  1103. package/dist/index.es719.js +2 -2
  1104. package/dist/index.es720.js +138 -2
  1105. package/dist/index.es720.js.map +1 -1
  1106. package/dist/index.es723.js +4 -4
  1107. package/dist/index.es724.js +3 -3
  1108. package/dist/index.es725.js +3 -3
  1109. package/dist/index.es726.js +3 -3
  1110. package/dist/index.es727.js +3 -3
  1111. package/dist/index.es728.js +3 -3
  1112. package/dist/index.es740.js +2 -2
  1113. package/dist/index.es741.js +2 -2
  1114. package/dist/index.es742.js +2 -69
  1115. package/dist/index.es742.js.map +1 -1
  1116. package/dist/index.es743.js +2 -14
  1117. package/dist/index.es743.js.map +1 -1
  1118. package/dist/index.es744.js +2 -60
  1119. package/dist/index.es744.js.map +1 -1
  1120. package/dist/index.es745.js +14 -2
  1121. package/dist/index.es745.js.map +1 -1
  1122. package/dist/index.es746.js +2 -2
  1123. package/dist/index.es747.js +2 -2
  1124. package/dist/index.es748.js +2 -14
  1125. package/dist/index.es748.js.map +1 -1
  1126. package/dist/index.es750.js +69 -2
  1127. package/dist/index.es750.js.map +1 -1
  1128. package/dist/index.es751.js +14 -2
  1129. package/dist/index.es751.js.map +1 -1
  1130. package/dist/index.es752.js +60 -2
  1131. package/dist/index.es752.js.map +1 -1
  1132. package/dist/index.es753.js +1 -1
  1133. package/dist/index.es766.js +30 -2
  1134. package/dist/index.es766.js.map +1 -1
  1135. package/dist/index.es767.js +2 -30
  1136. package/dist/index.es767.js.map +1 -1
  1137. package/dist/index.es768.js +2 -2
  1138. package/dist/index.es77.js +1 -1
  1139. package/dist/index.es770.js +2 -2
  1140. package/dist/index.es772.js +2 -2
  1141. package/dist/index.es774.js +2 -2
  1142. package/dist/index.es775.js +2 -2
  1143. package/dist/index.es776.js +2 -2
  1144. package/dist/index.es777.js +1 -1
  1145. package/dist/index.es784.js +21 -11
  1146. package/dist/index.es784.js.map +1 -1
  1147. package/dist/index.es785.js +11 -26
  1148. package/dist/index.es785.js.map +1 -1
  1149. package/dist/index.es786.js +27 -4
  1150. package/dist/index.es786.js.map +1 -1
  1151. package/dist/index.es787.js +4 -22
  1152. package/dist/index.es787.js.map +1 -1
  1153. package/dist/index.es806.js +1 -1
  1154. package/dist/index.es811.js +6 -6
  1155. package/dist/index.es812.js +13 -16
  1156. package/dist/index.es812.js.map +1 -1
  1157. package/dist/index.es813.js +18 -39
  1158. package/dist/index.es813.js.map +1 -1
  1159. package/dist/index.es814.js +39 -12
  1160. package/dist/index.es814.js.map +1 -1
  1161. package/dist/index.es815.js +12 -37
  1162. package/dist/index.es815.js.map +1 -1
  1163. package/dist/index.es816.js +36 -38
  1164. package/dist/index.es816.js.map +1 -1
  1165. package/dist/index.es817.js +39 -12
  1166. package/dist/index.es817.js.map +1 -1
  1167. package/dist/index.es818.js +8 -11
  1168. package/dist/index.es818.js.map +1 -1
  1169. package/package.json +3 -3
  1170. package/src/components/FacetTimeline.js +96 -31
  1171. package/src/utils/Peripleo.js +9 -6
  1172. package/src/utils/Typesense.js +3 -1
  1173. package/types/components/EventDetailsModal.js.flow +35 -0
  1174. package/types/components/FacetTimeline.js.flow +96 -31
  1175. package/types/components/Icons.js.flow +12 -0
  1176. package/types/components/PlaceDetailsPanel.js.flow +126 -0
  1177. package/types/components/PlaceMarker.js.flow +77 -0
  1178. package/types/components/PlaceResultsList.js.flow +137 -0
  1179. package/types/context/I18n.js.flow +11 -0
  1180. package/types/types/Translations.js.flow +5 -0
  1181. package/types/utils/Peripleo.js.flow +9 -6
  1182. package/types/utils/Typesense.js.flow +3 -1
  1183. package/types/utils/test.mjs.flow +37 -0
@@ -1,269 +1,1637 @@
1
- import x from "./index.es269.js";
2
- function u(e) {
3
- return "Minified Redux error #" + e + "; visit https://redux.js.org/Errors?code=" + e + " for the full message or use the non-minified dev environment for full errors. ";
4
- }
5
- var I = function() {
6
- return typeof Symbol == "function" && Symbol.observable || "@@observable";
7
- }(), O = function() {
8
- return Math.random().toString(36).substring(7).split("").join(".");
9
- }, m = {
10
- INIT: "@@redux/INIT" + O(),
11
- REPLACE: "@@redux/REPLACE" + O(),
12
- PROBE_UNKNOWN_ACTION: function() {
13
- return "@@redux/PROBE_UNKNOWN_ACTION" + O();
14
- }
1
+ var ye = Object.defineProperty, Ae = (e, t, i) => t in e ? ye(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i, T = (e, t, i) => (Ae(e, typeof t != "symbol" ? t + "" : t, i), i);
2
+ const a = [];
3
+ Object.freeze(a);
4
+ const Ce = {
5
+ id: "https://iiif-parser/annotation-page",
6
+ type: "AnnotationPage",
7
+ behavior: a,
8
+ motivation: null,
9
+ label: null,
10
+ thumbnail: a,
11
+ summary: null,
12
+ requiredStatement: null,
13
+ metadata: a,
14
+ rights: null,
15
+ provider: a,
16
+ items: a,
17
+ seeAlso: a,
18
+ homepage: a,
19
+ logo: a,
20
+ rendering: a,
21
+ service: a
22
+ }, Ie = {
23
+ id: "https://iiif-parser/empty-canvas",
24
+ type: "Canvas",
25
+ label: null,
26
+ behavior: a,
27
+ motivation: null,
28
+ thumbnail: a,
29
+ posterCanvas: null,
30
+ accompanyingCanvas: null,
31
+ placeholderCanvas: null,
32
+ summary: null,
33
+ requiredStatement: null,
34
+ metadata: a,
35
+ rights: null,
36
+ navDate: null,
37
+ provider: a,
38
+ items: a,
39
+ annotations: a,
40
+ seeAlso: a,
41
+ homepage: a,
42
+ logo: a,
43
+ partOf: a,
44
+ rendering: a,
45
+ service: a,
46
+ duration: 0,
47
+ height: 0,
48
+ width: 0
49
+ }, _e = {
50
+ id: "https://iiif-parser/empty-collection",
51
+ type: "Collection",
52
+ label: null,
53
+ viewingDirection: "left-to-right",
54
+ behavior: a,
55
+ motivation: null,
56
+ thumbnail: a,
57
+ posterCanvas: null,
58
+ accompanyingCanvas: null,
59
+ placeholderCanvas: null,
60
+ summary: null,
61
+ requiredStatement: null,
62
+ metadata: a,
63
+ rights: null,
64
+ navDate: null,
65
+ provider: a,
66
+ items: a,
67
+ annotations: a,
68
+ seeAlso: a,
69
+ homepage: a,
70
+ logo: a,
71
+ partOf: a,
72
+ rendering: a,
73
+ service: a,
74
+ services: a
75
+ }, we = {
76
+ id: "https://iiif-parser/empty-manifest",
77
+ type: "Manifest",
78
+ annotations: a,
79
+ behavior: a,
80
+ homepage: a,
81
+ items: a,
82
+ label: null,
83
+ logo: a,
84
+ metadata: a,
85
+ motivation: null,
86
+ navDate: null,
87
+ provider: a,
88
+ partOf: a,
89
+ posterCanvas: null,
90
+ accompanyingCanvas: null,
91
+ placeholderCanvas: null,
92
+ rendering: a,
93
+ requiredStatement: null,
94
+ rights: null,
95
+ seeAlso: a,
96
+ service: a,
97
+ services: a,
98
+ start: null,
99
+ structures: a,
100
+ summary: null,
101
+ thumbnail: a,
102
+ viewingDirection: "left-to-right"
103
+ }, be = {
104
+ id: "https://iiif-parser/empty-canvas",
105
+ type: "Range",
106
+ label: null,
107
+ behavior: a,
108
+ motivation: null,
109
+ thumbnail: a,
110
+ posterCanvas: null,
111
+ accompanyingCanvas: null,
112
+ placeholderCanvas: null,
113
+ summary: null,
114
+ requiredStatement: null,
115
+ metadata: a,
116
+ rights: null,
117
+ navDate: null,
118
+ provider: a,
119
+ items: a,
120
+ annotations: a,
121
+ seeAlso: a,
122
+ homepage: a,
123
+ logo: a,
124
+ partOf: a,
125
+ rendering: a,
126
+ service: a,
127
+ start: null,
128
+ supplementary: null,
129
+ viewingDirection: "left-to-right"
130
+ }, Re = {
131
+ id: "https://iiif-parser/empty-agent",
132
+ type: "Agent",
133
+ label: {},
134
+ logo: a,
135
+ seeAlso: a,
136
+ homepage: a
15
137
  };
16
- function S(e) {
17
- if (typeof e != "object" || e === null)
18
- return !1;
19
- for (var t = e; Object.getPrototypeOf(t) !== null; )
20
- t = Object.getPrototypeOf(t);
21
- return Object.getPrototypeOf(e) === t;
138
+ function x(e) {
139
+ return Array.isArray(e) ? e : [e];
22
140
  }
23
- function j(e) {
24
- if (e === void 0)
25
- return "undefined";
26
- if (e === null)
27
- return "null";
28
- var t = typeof e;
29
- switch (t) {
30
- case "boolean":
31
- case "string":
32
- case "number":
33
- case "symbol":
34
- case "function":
35
- return t;
141
+ const G = [
142
+ "Collection",
143
+ "Manifest",
144
+ "Canvas",
145
+ "AnnotationPage",
146
+ "AnnotationCollection",
147
+ "Annotation",
148
+ "ContentResource",
149
+ "Range",
150
+ "Service",
151
+ "Selector",
152
+ "Agent"
153
+ ];
154
+ function Ee(e) {
155
+ if (typeof e > "u" || e === null)
156
+ throw new Error("Null or undefined is not a valid entity.");
157
+ if (Array.isArray(e))
158
+ throw new Error("Array is not a valid entity");
159
+ if (typeof e != "object")
160
+ throw new Error(`${typeof e} is not a valid entity`);
161
+ if (typeof e.type == "string") {
162
+ const t = G.indexOf(e.type);
163
+ if (t !== -1)
164
+ return G[t];
165
+ }
166
+ if (e.profile)
167
+ return "Service";
168
+ throw new Error("Resource type is not known");
169
+ }
170
+ class N {
171
+ constructor(t, i = {}) {
172
+ T(this, "traversals"), T(this, "options"), this.traversals = {
173
+ collection: [],
174
+ manifest: [],
175
+ canvas: [],
176
+ annotationCollection: [],
177
+ annotationPage: [],
178
+ annotation: [],
179
+ contentResource: [],
180
+ choice: [],
181
+ range: [],
182
+ service: [],
183
+ agent: [],
184
+ ...t
185
+ }, this.options = {
186
+ allowUndefinedReturn: !1,
187
+ ...i
188
+ };
189
+ }
190
+ static all(t) {
191
+ return new N({
192
+ collection: [t],
193
+ manifest: [t],
194
+ canvas: [t],
195
+ annotationCollection: [t],
196
+ annotationPage: [t],
197
+ annotation: [t],
198
+ contentResource: [t],
199
+ choice: [t],
200
+ range: [t],
201
+ service: [t]
202
+ });
203
+ }
204
+ traverseDescriptive(t) {
205
+ return t.thumbnail && (t.thumbnail = t.thumbnail.map(
206
+ (i) => this.traverseType(i, this.traversals.contentResource)
207
+ )), t.provider && (t.provider = t.provider.map((i) => this.traverseAgent(i))), t;
208
+ }
209
+ traverseLinking(t) {
210
+ return t.seeAlso && (t.seeAlso = t.seeAlso.map((i) => this.traverseType(i, this.traversals.contentResource))), t.service && (t.service = x(t.service).map(
211
+ (i) => this.traverseType(i, this.traversals.service)
212
+ )), t.services && (t.services = t.services.map((i) => this.traverseType(i, this.traversals.service))), t.logo && (t.logo = t.logo.map((i) => this.traverseType(i, this.traversals.contentResource))), t.homepage && (t.homepage = t.homepage.map(
213
+ (i) => this.traverseType(i, this.traversals.contentResource)
214
+ )), t.partOf && (t.partOf = t.partOf.map((i) => typeof i == "string" || !i.type ? this.traverseType(i, this.traversals.contentResource) : i.type === "Canvas" ? this.traverseType(i, this.traversals.canvas) : i.type === "AnnotationCollection" ? this.traverseType(i, this.traversals.annotationCollection) : i.type === "Collection" ? this.traverseType(i, this.traversals.collection) : this.traverseType(i, this.traversals.contentResource))), t.start && (t.start = t.start ? this.traverseType(t.start, this.traversals.canvas) : null), t.rendering && (t.rendering = t.rendering.map(
215
+ (i) => this.traverseType(i, this.traversals.contentResource)
216
+ )), t.supplementary && (t.supplementary = t.supplementary.map(
217
+ (i) => this.traverseType(i, this.traversals.contentResource)
218
+ )), t;
219
+ }
220
+ traverseCollectionItems(t) {
221
+ return t.items && t.items.map((i) => i.type === "Collection" ? this.traverseCollection(i) : this.traverseManifest(i)), t;
222
+ }
223
+ traverseCollection(t) {
224
+ return this.traverseType(
225
+ this.traverseDescriptive(
226
+ this.traverseInlineAnnotationPages(
227
+ this.traverseLinking(this.traversePosterCanvas(this.traverseCollectionItems(t)))
228
+ )
229
+ ),
230
+ this.traversals.collection
231
+ );
232
+ }
233
+ traverseManifestItems(t) {
234
+ return t.items && (t.items = t.items.map((i) => this.traverseCanvas(i))), t;
235
+ }
236
+ traverseManifestStructures(t) {
237
+ return t.structures && (t.structures = t.structures.map((i) => this.traverseRange(i))), t;
238
+ }
239
+ traverseManifest(t) {
240
+ return this.traverseType(
241
+ this.traverseInlineAnnotationPages(
242
+ this.traverseManifestStructures(
243
+ this.traversePosterCanvas(
244
+ this.traverseDescriptive(this.traverseLinking(this.traverseManifestItems(t)))
245
+ )
246
+ )
247
+ ),
248
+ this.traversals.manifest
249
+ );
250
+ }
251
+ traverseCanvasItems(t) {
252
+ return t.items = (t.items || []).map((i) => this.traverseAnnotationPage(i)), t;
253
+ }
254
+ traverseInlineAnnotationPages(t) {
255
+ return typeof t == "string" || !t || t.annotations && (t.annotations = t.annotations.map((i) => this.traverseAnnotationPage(i))), t;
256
+ }
257
+ traverseCanvas(t) {
258
+ return this.traverseType(
259
+ this.traverseInlineAnnotationPages(
260
+ this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseCanvasItems(t))))
261
+ ),
262
+ this.traversals.canvas
263
+ );
264
+ }
265
+ traverseAnnotationPageItems(t) {
266
+ return t.items && (t.items = t.items.map((i) => this.traverseAnnotation(i))), t;
267
+ }
268
+ traverseAnnotationPage(t) {
269
+ return this.traverseType(
270
+ this.traverseDescriptive(this.traverseLinking(this.traverseAnnotationPageItems(t))),
271
+ this.traversals.annotationPage
272
+ );
273
+ }
274
+ traverseAnnotationBody(t) {
275
+ return Array.isArray(t.body) ? t.body = t.body.map((i) => this.traverseContentResource(i)) : t.body && (t.body = this.traverseContentResource(t.body)), t;
276
+ }
277
+ traversePosterCanvas(t) {
278
+ return t.posterCanvas && (t.posterCanvas = this.traverseCanvas(t.posterCanvas)), t.placeholderCanvas && (t.placeholderCanvas = this.traverseCanvas(t.placeholderCanvas)), t.accompanyingCanvas && (t.accompanyingCanvas = this.traverseCanvas(t.accompanyingCanvas)), t;
36
279
  }
280
+ traverseAnnotation(t) {
281
+ return this.traverseType(
282
+ this.traverseLinking(this.traverseAnnotationBody(t)),
283
+ this.traversals.annotation
284
+ );
285
+ }
286
+ traverseContentResourceLinking(t) {
287
+ return typeof t == "string" || !t || t && t.service && (t.service = x(
288
+ t.service || []
289
+ ).map((i) => this.traverseType(i, this.traversals.service))), t;
290
+ }
291
+ traverseContentResource(t) {
292
+ return t.type === "Choice" && (t.items = t.items.map((i) => this.traverseContentResource(i))), this.traverseType(
293
+ this.traverseInlineAnnotationPages(this.traverseContentResourceLinking(t)),
294
+ this.traversals.contentResource
295
+ );
296
+ }
297
+ traverseRangeRanges(t) {
298
+ return t.items && (t.items = t.items.map((i) => typeof i == "string" ? this.traverseCanvas({ id: i, type: "Canvas" }) : i.type === "Manifest" ? this.traverseManifest(i) : this.traverseRange(i))), t;
299
+ }
300
+ traverseRange(t) {
301
+ return this.traverseType(
302
+ this.traversePosterCanvas(this.traverseDescriptive(this.traverseLinking(this.traverseRangeRanges(t)))),
303
+ this.traversals.range
304
+ );
305
+ }
306
+ traverseAgent(t) {
307
+ return this.traverseType(
308
+ this.traverseDescriptive(this.traverseLinking(t)),
309
+ this.traversals.agent
310
+ );
311
+ }
312
+ traverseType(t, i) {
313
+ return i.reduce((n, r) => {
314
+ const s = r(n);
315
+ return typeof s > "u" && !this.options.allowUndefinedReturn ? n : s;
316
+ }, t);
317
+ }
318
+ traverseService(t) {
319
+ return this.traverseType(t, this.traversals.service);
320
+ }
321
+ traverseUnknown(t) {
322
+ const i = Ee(t);
323
+ switch (i) {
324
+ case "Collection":
325
+ return this.traverseCollection(t);
326
+ case "Manifest":
327
+ return this.traverseManifest(t);
328
+ case "Canvas":
329
+ return this.traverseCanvas(t);
330
+ case "AnnotationPage":
331
+ return this.traverseAnnotationPage(t);
332
+ case "Annotation":
333
+ return this.traverseAnnotation(t);
334
+ case "ContentResource":
335
+ return this.traverseContentResource(t);
336
+ case "Range":
337
+ return this.traverseRange(t);
338
+ case "Service":
339
+ return this.traverseService(t);
340
+ case "Agent":
341
+ return this.traverseAgent(t);
342
+ default:
343
+ throw new Error(`Unknown or unsupported resource type of ${i}`);
344
+ }
345
+ }
346
+ }
347
+ const q = [
348
+ "sc:Collection",
349
+ "sc:Manifest",
350
+ "sc:Canvas",
351
+ "sc:AnnotationList",
352
+ "oa:Annotation",
353
+ "sc:Range",
354
+ "sc:Layer",
355
+ "sc:Sequence",
356
+ "oa:Choice",
357
+ "Service",
358
+ "ContentResource"
359
+ ];
360
+ function Le(e) {
361
+ if (typeof e > "u" || e === null)
362
+ throw new Error("Null or undefined is not a valid entity.");
37
363
  if (Array.isArray(e))
38
- return "array";
39
- if (A(e))
40
- return "date";
41
- if (V(e))
42
- return "error";
43
- var r = T(e);
44
- switch (r) {
45
- case "Symbol":
46
- case "Promise":
47
- case "WeakMap":
48
- case "WeakSet":
49
- case "Map":
50
- case "Set":
51
- return r;
52
- }
53
- return t.slice(8, -1).toLowerCase().replace(/\s/g, "");
54
- }
55
- function T(e) {
56
- return typeof e.constructor == "function" ? e.constructor.name : null;
57
- }
58
- function V(e) {
59
- return e instanceof Error || typeof e.message == "string" && e.constructor && typeof e.constructor.stackTraceLimit == "number";
60
- }
61
- function A(e) {
62
- return e instanceof Date ? !0 : typeof e.toDateString == "function" && typeof e.getDate == "function" && typeof e.setDate == "function";
63
- }
64
- function E(e) {
65
- var t = typeof e;
66
- return process.env.NODE_ENV !== "production" && (t = j(e)), t;
67
- }
68
- function P(e, t, r) {
69
- var o;
70
- if (typeof t == "function" && typeof r == "function" || typeof r == "function" && typeof arguments[3] == "function")
71
- throw new Error(process.env.NODE_ENV === "production" ? u(0) : "It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");
72
- if (typeof t == "function" && typeof r > "u" && (r = t, t = void 0), typeof r < "u") {
73
- if (typeof r != "function")
74
- throw new Error(process.env.NODE_ENV === "production" ? u(1) : "Expected the enhancer to be a function. Instead, received: '" + E(r) + "'");
75
- return r(P)(e, t);
76
- }
77
- if (typeof e != "function")
78
- throw new Error(process.env.NODE_ENV === "production" ? u(2) : "Expected the root reducer to be a function. Instead, received: '" + E(e) + "'");
79
- var i = e, c = t, a = [], s = a, f = !1;
80
- function p() {
81
- s === a && (s = a.slice());
82
- }
83
- function v() {
84
- if (f)
85
- throw new Error(process.env.NODE_ENV === "production" ? u(3) : "You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");
86
- return c;
87
- }
88
- function g(n) {
89
- if (typeof n != "function")
90
- throw new Error(process.env.NODE_ENV === "production" ? u(4) : "Expected the listener to be a function. Instead, received: '" + E(n) + "'");
91
- if (f)
92
- throw new Error(process.env.NODE_ENV === "production" ? u(5) : "You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");
93
- var l = !0;
94
- return p(), s.push(n), function() {
95
- if (l) {
96
- if (f)
97
- throw new Error(process.env.NODE_ENV === "production" ? u(6) : "You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
98
- l = !1, p();
99
- var d = s.indexOf(n);
100
- s.splice(d, 1), a = null;
101
- }
364
+ throw new Error("Array is not a valid entity");
365
+ if (typeof e != "object")
366
+ throw new Error(`${typeof e} is not a valid entity`);
367
+ if (typeof e["@type"] == "string") {
368
+ const t = q.indexOf(e["@type"]);
369
+ if (t !== -1)
370
+ return q[t];
371
+ }
372
+ if (e.profile)
373
+ return "Service";
374
+ if (e.format || e["@type"])
375
+ return "ContentResource";
376
+ throw new Error("Resource type is not known");
377
+ }
378
+ class k {
379
+ constructor(t, i = {}) {
380
+ T(this, "traversals"), T(this, "options"), this.traversals = {
381
+ collection: [],
382
+ manifest: [],
383
+ canvas: [],
384
+ annotationList: [],
385
+ sequence: [],
386
+ annotation: [],
387
+ contentResource: [],
388
+ choice: [],
389
+ range: [],
390
+ service: [],
391
+ layer: [],
392
+ ...t
393
+ }, this.options = {
394
+ convertPropsToArray: !0,
395
+ mergeMemberProperties: !0,
396
+ allowUndefinedReturn: !1,
397
+ ...i
102
398
  };
103
399
  }
104
- function h(n) {
105
- if (!S(n))
106
- throw new Error(process.env.NODE_ENV === "production" ? u(7) : "Actions must be plain objects. Instead, the actual type was: '" + E(n) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
107
- if (typeof n.type > "u")
108
- throw new Error(process.env.NODE_ENV === "production" ? u(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
109
- if (f)
110
- throw new Error(process.env.NODE_ENV === "production" ? u(9) : "Reducers may not dispatch actions.");
111
- try {
112
- f = !0, c = i(c, n);
113
- } finally {
114
- f = !1;
400
+ static all(t) {
401
+ return new k({
402
+ collection: [t],
403
+ manifest: [t],
404
+ canvas: [t],
405
+ annotationList: [t],
406
+ sequence: [t],
407
+ annotation: [t],
408
+ contentResource: [t],
409
+ choice: [t],
410
+ range: [t],
411
+ service: [t],
412
+ layer: [t]
413
+ });
414
+ }
415
+ traverseCollection(t) {
416
+ return this.traverseType(
417
+ this.traverseDescriptive(this.traverseLinking(this.traverseCollectionItems(t))),
418
+ this.traversals.collection
419
+ );
420
+ }
421
+ traverseCollectionItems(t) {
422
+ if (this.options.mergeMemberProperties) {
423
+ const i = [
424
+ ...(t.manifests || []).map((n) => typeof n == "string" ? { "@id": n, "@type": "sc:Manifest" } : n),
425
+ ...(t.collections || []).map((n) => typeof n == "string" ? { "@id": n, "@type": "sc:Collection" } : n),
426
+ ...t.members || []
427
+ ];
428
+ delete t.collections, delete t.manifests, t.members = i;
115
429
  }
116
- for (var l = a = s, y = 0; y < l.length; y++) {
117
- var d = l[y];
118
- d();
430
+ return t.manifests && (t.manifests = t.manifests.map(
431
+ (i) => this.traverseManifest(
432
+ typeof i == "string" ? { "@id": i, "@type": "sc:Manifest" } : i
433
+ )
434
+ )), t.collections && (t.collections = t.collections.map(
435
+ (i) => this.traverseCollection(
436
+ typeof i == "string" ? { "@id": i, "@type": "sc:Collection" } : i
437
+ )
438
+ )), t.members && (t.members = t.members.map((i) => typeof i == "string" ? i : this.traverseUnknown(i))), t;
439
+ }
440
+ traverseManifest(t) {
441
+ return this.traverseType(
442
+ this.traverseDescriptive(this.traverseLinking(this.traverseManifestItems(t))),
443
+ this.traversals.manifest
444
+ );
445
+ }
446
+ traverseManifestItems(t) {
447
+ return t.sequences && (t.sequences = t.sequences.map((i) => this.traverseSequence(i))), t.structures && (t.structures = t.structures.map((i) => this.traverseRange(i))), t;
448
+ }
449
+ traverseSequence(t) {
450
+ return this.traverseType(
451
+ this.traverseDescriptive(this.traverseLinking(this.traverseSequenceItems(t))),
452
+ this.traversals.sequence
453
+ );
454
+ }
455
+ traverseSequenceItems(t) {
456
+ return t.canvases && (t.canvases = t.canvases.map((i) => this.traverseCanvas(i))), t;
457
+ }
458
+ traverseCanvas(t) {
459
+ return this.traverseType(
460
+ this.traverseDescriptive(this.traverseLinking(this.traverseCanvasItems(t))),
461
+ this.traversals.canvas
462
+ );
463
+ }
464
+ traverseCanvasItems(t) {
465
+ return t.images && (t.images = t.images.map((i) => this.traverseAnnotation(i))), t.otherContent && (t.otherContent = t.otherContent.map((i) => this.traverseAnnotationList(i))), t;
466
+ }
467
+ traverseRange(t) {
468
+ return this.traverseType(
469
+ this.traverseDescriptive(this.traverseLinking(this.traverseRangeItems(t))),
470
+ this.traversals.range
471
+ );
472
+ }
473
+ traverseRangeItems(t) {
474
+ if (this.options.mergeMemberProperties) {
475
+ const i = [
476
+ ...(t.ranges || []).map((n) => typeof n == "string" ? { "@id": n, "@type": "sc:Range" } : n),
477
+ ...(t.canvases || []).map((n) => typeof n == "string" ? { "@id": n, "@type": "sc:Canvas" } : n),
478
+ ...t.members || []
479
+ ];
480
+ delete t.ranges, delete t.canvases, t.members = i.length ? i.map((n) => this.traverseUnknown(n)) : void 0;
481
+ }
482
+ return t;
483
+ }
484
+ traverseAnnotationList(t) {
485
+ const i = typeof t == "string" ? { "@id": t, "@type": "sc:AnnotationList" } : t;
486
+ return this.traverseType(
487
+ this.traverseDescriptive(this.traverseAnnotationListItems(i)),
488
+ this.traversals.annotationList
489
+ );
490
+ }
491
+ traverseAnnotationListItems(t) {
492
+ return t.resources && (t.resources = t.resources.map((i) => this.traverseAnnotation(i))), t;
493
+ }
494
+ traverseAnnotation(t) {
495
+ return this.traverseType(
496
+ this.traverseDescriptive(this.traverseLinking(this.traverseAnnotationItems(t))),
497
+ this.traversals.annotation
498
+ );
499
+ }
500
+ traverseAnnotationItems(t) {
501
+ return t.resource && (Array.isArray(t.resource) ? t.resource = t.resource.map(
502
+ (i) => this.traverseContentResource(i)
503
+ ) : t.resource = this.traverseContentResource(t.resource)), t.on, t;
504
+ }
505
+ traverseLayer(t) {
506
+ return this.traverseType(this.traverseLinking(this.traverseLayerItems(t)), this.traversals.layer);
507
+ }
508
+ traverseLayerItems(t) {
509
+ return t.otherContent && (t.otherContent = t.otherContent.map((i) => this.traverseAnnotationList(i))), t;
510
+ }
511
+ traverseChoice(t) {
512
+ return this.traverseType(this.traverseChoiceItems(t), this.traversals.choice);
513
+ }
514
+ traverseChoiceItems(t) {
515
+ return t.default && t.default !== "rdf:nil" && (t.default = this.traverseContentResource(t.default)), t.item && t.item !== "rdf:nil" && (t.item = t.item.map((i) => this.traverseContentResource(i))), t;
516
+ }
517
+ traverseService(t) {
518
+ return this.traverseType(this.traverseLinking(t), this.traversals.service);
519
+ }
520
+ traverseContentResource(t) {
521
+ return t["@type"] === "oa:Choice" ? this.traverseChoice(t) : this.traverseType(
522
+ this.traverseDescriptive(this.traverseLinking(t)),
523
+ this.traversals.contentResource
524
+ );
525
+ }
526
+ traverseUnknown(t) {
527
+ if (!t["@type"] || typeof t == "string")
528
+ return t;
529
+ switch (Le(t)) {
530
+ case "sc:Collection":
531
+ return this.traverseCollection(t);
532
+ case "sc:Manifest":
533
+ return this.traverseManifest(t);
534
+ case "sc:Canvas":
535
+ return this.traverseCanvas(t);
536
+ case "sc:Sequence":
537
+ return this.traverseSequence(t);
538
+ case "sc:Range":
539
+ return this.traverseRange(t);
540
+ case "oa:Annotation":
541
+ return this.traverseAnnotation(t);
542
+ case "sc:AnnotationList":
543
+ return this.traverseAnnotationList(t);
544
+ case "sc:Layer":
545
+ return this.traverseLayer(t);
546
+ case "Service":
547
+ return this.traverseService(t);
548
+ case "oa:Choice":
549
+ return this.traverseChoice(t);
550
+ case "ContentResource":
551
+ return this.traverseContentResource(t);
552
+ }
553
+ return t.profile ? this.traverseService(t) : t;
554
+ }
555
+ traverseImageResource(t) {
556
+ const i = Array.isArray(t), n = Array.isArray(t) ? t : [t], r = [];
557
+ for (const s of n)
558
+ typeof s == "string" ? r.push(
559
+ this.traverseContentResource({
560
+ "@id": s,
561
+ "@type": "dctypes:Image"
562
+ })
563
+ ) : r.push(this.traverseContentResource(s));
564
+ return !i && !this.options.convertPropsToArray ? r[0] : r;
565
+ }
566
+ traverseDescriptive(t) {
567
+ return t.thumbnail && (t.thumbnail = this.traverseImageResource(t.thumbnail)), t.logo && (t.logo = this.traverseImageResource(t.logo)), t;
568
+ }
569
+ traverseOneOrMoreServices(t) {
570
+ const i = Array.isArray(t), n = Array.isArray(t) ? t : [t], r = [];
571
+ for (const s of n)
572
+ r.push(this.traverseService(s));
573
+ return !i && !this.options.convertPropsToArray ? r[0] : r;
574
+ }
575
+ traverseLinking(t) {
576
+ return t.related && (t.related = this.traverseOneOrManyType(t.related, this.traversals.contentResource)), t.rendering && (t.rendering = this.traverseOneOrManyType(t.rendering, this.traversals.contentResource)), t.service && (t.service = this.traverseOneOrMoreServices(t.service)), t.seeAlso && (t.seeAlso = this.traverseOneOrManyType(t.seeAlso, this.traversals.contentResource)), t.within && (typeof t.within == "string" || (t.within = this.traverseOneOrManyType(
577
+ t.within,
578
+ this.traversals.contentResource
579
+ ))), t.startCanvas && (typeof t.startCanvas == "string" ? t.startCanvas = this.traverseType(
580
+ { "@id": t.startCanvas, "@type": "sc:Canvas" },
581
+ this.traversals.canvas
582
+ ) : t.startCanvas && this.traverseType(t.startCanvas, this.traversals.canvas)), t.contentLayer && (typeof t.contentLayer == "string" ? t.contentLayer = this.traverseLayer({
583
+ "@id": t.contentLayer,
584
+ "@type": "sc:Layer"
585
+ }) : t.contentLayer = this.traverseLayer(t.contentLayer)), t;
586
+ }
587
+ traverseOneOrManyType(t, i) {
588
+ if (!Array.isArray(t))
589
+ if (this.options.convertPropsToArray)
590
+ t = [t];
591
+ else
592
+ return this.traverseType(t, i);
593
+ return t.map((n) => this.traverseType(n, i));
594
+ }
595
+ traverseType(t, i) {
596
+ return i.reduce((n, r) => {
597
+ const s = r(n);
598
+ return typeof s > "u" && !this.options.allowUndefinedReturn ? n : s;
599
+ }, t);
600
+ }
601
+ }
602
+ const Te = "http://library.stanford.edu/iiif/image-api/compliance.html#level0", z = "http://library.stanford.edu/iiif/image-api/compliance.html#level1", B = "http://library.stanford.edu/iiif/image-api/compliance.html#level2", Se = "http://library.stanford.edu/iiif/image-api/conformance.html#level0", H = "http://library.stanford.edu/iiif/image-api/conformance.html#level1", Y = "http://library.stanford.edu/iiif/image-api/conformance.html#level2", Me = "http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0", K = "http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1", Q = "http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2", xe = "http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0", X = "http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1", Z = "http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2", Pe = "http://iiif.io/api/image/1/level0.json", Oe = "http://iiif.io/api/image/1/profiles/level0.json", J = "http://iiif.io/api/image/1/level1.json", ee = "http://iiif.io/api/image/1/profiles/level1.json", te = "http://iiif.io/api/image/1/level2.json", ie = "http://iiif.io/api/image/1/profiles/level2.json", Fe = "http://iiif.io/api/image/2/level0.json", De = "http://iiif.io/api/image/2/profiles/level0.json", ne = "http://iiif.io/api/image/2/level1.json", re = "http://iiif.io/api/image/2/profiles/level1.json", se = "http://iiif.io/api/image/2/level2.json", ae = "http://iiif.io/api/image/2/profiles/level2.json", Ne = "level0", oe = "level1", le = "level2", ke = "http://iiif.io/api/image/2/level0", ve = "http://iiif.io/api/image/2/level1", pe = "http://iiif.io/api/image/2/level2", je = [
603
+ ve,
604
+ pe,
605
+ z,
606
+ B,
607
+ H,
608
+ Y,
609
+ K,
610
+ Q,
611
+ X,
612
+ Z,
613
+ J,
614
+ ee,
615
+ te,
616
+ ie,
617
+ ne,
618
+ re,
619
+ se,
620
+ ae,
621
+ oe,
622
+ le
623
+ ], $e = [
624
+ ke,
625
+ ve,
626
+ pe,
627
+ Te,
628
+ z,
629
+ B,
630
+ Se,
631
+ H,
632
+ Y,
633
+ Me,
634
+ K,
635
+ Q,
636
+ xe,
637
+ X,
638
+ Z,
639
+ Pe,
640
+ Oe,
641
+ J,
642
+ ee,
643
+ te,
644
+ ie,
645
+ Fe,
646
+ De,
647
+ ne,
648
+ re,
649
+ se,
650
+ ae,
651
+ Ne,
652
+ oe,
653
+ le
654
+ ], P = {
655
+ attributionLabel: "Attribution",
656
+ lang: "none",
657
+ providerId: "http://example.org/provider",
658
+ providerName: "Unknown"
659
+ };
660
+ function I(e, t = "none") {
661
+ if (!e)
662
+ return {};
663
+ const i = Array.isArray(e) ? e : [e], n = {};
664
+ for (const r of i) {
665
+ if (typeof r == "string") {
666
+ n[t] = n[t] ? n[t] : [], n[t].push(r || "");
667
+ continue;
668
+ }
669
+ if (!r["@language"]) {
670
+ n[t] = n[t] ? n[t] : [], n[t].push(r["@value"] || "");
671
+ continue;
672
+ }
673
+ const s = r["@language"];
674
+ n[s] = n[s] ? n[s] : [], n[s].push(r["@value"] || "");
675
+ }
676
+ return n;
677
+ }
678
+ function fe(e) {
679
+ if (Array.isArray(e))
680
+ return fe(e.find((t) => typeof t == "string"));
681
+ if ($e.indexOf(e) !== -1)
682
+ return "level2";
683
+ if (je.indexOf(e) !== -1)
684
+ return "level1";
685
+ if (typeof e == "string")
686
+ return e;
687
+ }
688
+ function Ge(e) {
689
+ const t = Array.isArray(e) ? e : [e];
690
+ for (const i of t)
691
+ switch (i) {
692
+ case "http://iiif.io/api/image/2/context.json":
693
+ case "http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2":
694
+ return "ImageService2";
695
+ case "http://iiif.io/api/image/1/context.json":
696
+ case "http://library.stanford.edu/iiif/image-api/1.1/context.json":
697
+ return "ImageService1";
698
+ case "http://iiif.io/api/annex/openannotation/context.json":
699
+ return "ImageApiSelector";
119
700
  }
120
- return n;
701
+ }
702
+ function qe(e) {
703
+ switch (e) {
704
+ case "http://iiif.io/api/image/2/level0.json":
705
+ case "http://iiif.io/api/image/2/level1.json":
706
+ case "http://iiif.io/api/image/2/level2.json":
707
+ return "ImageService2";
708
+ case "http://iiif.io/api/auth/1/kiosk":
709
+ case "http://iiif.io/api/auth/1/login":
710
+ case "http://iiif.io/api/auth/1/clickthrough":
711
+ case "http://iiif.io/api/auth/1/external":
712
+ case "http://iiif.io/api/auth/0/kiosk":
713
+ case "http://iiif.io/api/auth/0/login":
714
+ case "http://iiif.io/api/auth/0/clickthrough":
715
+ case "http://iiif.io/api/auth/0/external":
716
+ return "AuthCookieService1";
717
+ case "http://iiif.io/api/auth/1/token":
718
+ case "http://iiif.io/api/auth/0/token":
719
+ return "AuthTokenService1";
720
+ case "http://iiif.io/api/auth/1/logout":
721
+ case "http://iiif.io/api/auth/0/logout":
722
+ return "AuthLogoutService1";
723
+ case "http://iiif.io/api/search/1/search":
724
+ case "http://iiif.io/api/search/0/search":
725
+ return "SearchService1";
726
+ case "http://iiif.io/api/search/1/autocomplete":
727
+ case "http://iiif.io/api/search/0/autocomplete":
728
+ return "AutoCompleteService1";
121
729
  }
122
- function N(n) {
123
- if (typeof n != "function")
124
- throw new Error(process.env.NODE_ENV === "production" ? u(10) : "Expected the nextReducer to be a function. Instead, received: '" + E(n));
125
- i = n, h({
126
- type: m.REPLACE
730
+ }
731
+ function U(e) {
732
+ for (const t of ["sc", "oa", "dcterms", "dctypes", "iiif"])
733
+ if (e.startsWith(`${t}:`))
734
+ return e.slice(t.length + 1);
735
+ return e;
736
+ }
737
+ const Ue = ["Collection", "Manifest", "Annotation", "AnnotationPage", "Range", "Service"];
738
+ function j(e) {
739
+ const t = e["@id"] || e.id;
740
+ let i = e["@type"] || e.type;
741
+ const n = e.profile || void 0, r = e["@context"] || void 0;
742
+ if (n) {
743
+ const s = qe(n);
744
+ if (s)
745
+ return s;
746
+ }
747
+ if (r) {
748
+ const s = Ge(r);
749
+ if (s)
750
+ return s;
751
+ }
752
+ if (i) {
753
+ if (Array.isArray(i)) {
754
+ if (i.indexOf("oa:CssStylesheet") !== -1)
755
+ return "CssStylesheet";
756
+ if (i.indexOf("cnt:ContentAsText") !== -1)
757
+ return "TextualBody";
758
+ i = i[0];
759
+ }
760
+ for (const s of ["sc", "oa", "dcterms", "dctypes", "iiif"])
761
+ if (i.startsWith(`${s}:`)) {
762
+ i = i.slice(s.length + 1);
763
+ break;
764
+ }
765
+ switch (i) {
766
+ case "Layer":
767
+ return "AnnotationCollection";
768
+ case "AnnotationList":
769
+ return "AnnotationPage";
770
+ case "cnt:ContentAsText":
771
+ return "TextualBody";
772
+ }
773
+ }
774
+ if (i && Ue.indexOf(i) !== -1)
775
+ return i;
776
+ if (e.format) {
777
+ if (e.format.startsWith("image/"))
778
+ return "Image";
779
+ if (e.format.startsWith("text/") || e.format === "application/pdf")
780
+ return "Text";
781
+ if (e.format.startsWith("application/"))
782
+ return "Dataset";
783
+ }
784
+ return t && (t.endsWith(".jpg") || t.endsWith(".png") || t.endsWith(".jpeg")) ? "Image" : i || "unknown";
785
+ }
786
+ const Ve = /http(s)?:\/\/(creativecommons.org|rightsstatements.org)[^"'\\<\n]+/gm;
787
+ function We(e) {
788
+ const t = e.match(Ve);
789
+ return t ? t[0] : e;
790
+ }
791
+ function ze(e, t = "Rights/License", i = "none") {
792
+ let n = null;
793
+ const r = [], s = Array.isArray(e) ? e : [e];
794
+ for (const l of s) {
795
+ const v = l ? We(l) : void 0;
796
+ if (v && (v.indexOf("creativecommons.org") !== -1 || v.indexOf("rightsstatements.org") !== -1)) {
797
+ v.startsWith("https://") ? n = `http://${v.slice(8)}` : n = v;
798
+ continue;
799
+ }
800
+ v && r.push({
801
+ label: { [i]: [t] },
802
+ value: { [i]: [v] }
127
803
  });
128
804
  }
129
- function b() {
130
- var n, l = g;
131
- return n = {
132
- /**
133
- * The minimal observable subscription method.
134
- * @param {Object} observer Any object that can be used as an observer.
135
- * The observer object should have a `next` method.
136
- * @returns {subscription} An object with an `unsubscribe` method that can
137
- * be used to unsubscribe the observable from the store, and prevent further
138
- * emission of values from the observable.
139
- */
140
- subscribe: function(d) {
141
- if (typeof d != "object" || d === null)
142
- throw new Error(process.env.NODE_ENV === "production" ? u(11) : "Expected the observer to be an object. Instead, received: '" + E(d) + "'");
143
- function w() {
144
- d.next && d.next(v());
805
+ return [n, r];
806
+ }
807
+ const Be = [
808
+ "http://iiif.io/api/presentation/2/context.json",
809
+ "http://iiif.io/api/image/2/context.json",
810
+ "http://iiif.io/api/image/1/context.json",
811
+ "http://library.stanford.edu/iiif/image-api/1.1/context.json",
812
+ "http://iiif.io/api/search/1/context.json",
813
+ "http://iiif.io/api/search/0/context.json",
814
+ "http://iiif.io/api/auth/1/context.json",
815
+ "http://iiif.io/api/auth/0/context.json",
816
+ "http://iiif.io/api/annex/openannotation/context.json"
817
+ ];
818
+ function He(e) {
819
+ if (e) {
820
+ const t = Array.isArray(e) ? e : [e], i = [];
821
+ for (const n of t)
822
+ n === "http://iiif.io/api/presentation/2/context.json" && i.push("http://iiif.io/api/presentation/3/context.json"), Be.indexOf(n) === -1 && i.push(n);
823
+ if (t.length)
824
+ return i.length === 1 ? i[0] : i;
825
+ }
826
+ }
827
+ function Ye(e) {
828
+ return e ? e.map((t) => ({
829
+ label: I(t.label),
830
+ value: I(t.value)
831
+ })) : [];
832
+ }
833
+ function p(e) {
834
+ for (const t in e)
835
+ (typeof e[t] > "u" || e[t] === null) && delete e[t];
836
+ return e;
837
+ }
838
+ let V = 0;
839
+ function ue(e, t) {
840
+ const i = encodeURI(e.id || e["@id"] || "").trim();
841
+ return i && t ? `${i}/${t}` : i || (V++, `http://example.org/${e["@type"]}${t ? `/${t}` : ""}/${V}`);
842
+ }
843
+ function f(e) {
844
+ const t = [...e.behavior || []];
845
+ e.viewingHint && t.push(e.viewingHint);
846
+ let i;
847
+ return Array.isArray(e.motivation) ? i = e.motivation.map(U) : e.motivation && (i = U(e.motivation)), {
848
+ "@context": e["@context"] ? He(e["@context"]) : void 0,
849
+ id: (e["@id"] || ue(e)).trim(),
850
+ type: j(e),
851
+ behavior: t.length ? t : void 0,
852
+ height: e.height ? e.height : void 0,
853
+ width: e.width ? e.width : void 0,
854
+ motivation: i,
855
+ viewingDirection: e.viewingDirection,
856
+ profile: e.profile,
857
+ format: e.format ? e.format : void 0,
858
+ duration: void 0,
859
+ timeMode: void 0
860
+ };
861
+ }
862
+ function u(e) {
863
+ const [t, i] = ze(e.license), n = [...e.metadata ? Ye(e.metadata) : [], ...i];
864
+ return {
865
+ rights: t,
866
+ metadata: n.length ? n : void 0,
867
+ label: e.label ? I(e.label) : void 0,
868
+ requiredStatement: e.attribution ? {
869
+ label: I(P.attributionLabel),
870
+ value: I(e.attribution)
871
+ } : void 0,
872
+ navDate: e.navDate,
873
+ summary: e.description ? I(e.description) : void 0,
874
+ thumbnail: e.thumbnail
875
+ };
876
+ }
877
+ function Ke(e) {
878
+ if (!e.within)
879
+ return;
880
+ const t = Array.isArray(e.within) ? e.within : [e.within], i = [];
881
+ for (const n of t)
882
+ if (typeof n == "string") {
883
+ if (n)
884
+ switch (e["@type"]) {
885
+ case "sc:Manifest":
886
+ i.push({ id: n, type: "Collection" });
887
+ break;
145
888
  }
146
- w();
147
- var _ = l(w);
148
- return {
149
- unsubscribe: _
150
- };
889
+ } else
890
+ n["@id"] && i.push({
891
+ id: n["@id"],
892
+ type: j(n)
893
+ });
894
+ return i.length ? i : void 0;
895
+ }
896
+ function c(e) {
897
+ const t = e.related ? Array.isArray(e.related) ? e.related : [e.related] : [], i = e.contentLayer;
898
+ return {
899
+ provider: e.logo || t.length ? [
900
+ {
901
+ id: P.providerId,
902
+ type: "Agent",
903
+ homepage: t.length ? [t[0]] : void 0,
904
+ logo: e.logo ? Array.isArray(e.logo) ? e.logo : [e.logo] : void 0,
905
+ label: I(P.providerName)
151
906
  }
152
- }, n[I] = function() {
153
- return this;
154
- }, n;
155
- }
156
- return h({
157
- type: m.INIT
158
- }), o = {
159
- dispatch: h,
160
- subscribe: g,
161
- getState: v,
162
- replaceReducer: N
163
- }, o[I] = b, o;
164
- }
165
- function D(e) {
166
- typeof console < "u" && typeof console.error == "function" && console.error(e);
167
- try {
168
- throw new Error(e);
169
- } catch {
170
- }
171
- }
172
- function R(e, t, r, o) {
173
- var i = Object.keys(t), c = r && r.type === m.INIT ? "preloadedState argument passed to createStore" : "previous state received by the reducer";
174
- if (i.length === 0)
175
- return "Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";
176
- if (!S(e))
177
- return "The " + c + ' has unexpected type of "' + E(e) + '". Expected argument to be an object with the following ' + ('keys: "' + i.join('", "') + '"');
178
- var a = Object.keys(e).filter(function(s) {
179
- return !t.hasOwnProperty(s) && !o[s];
907
+ ] : void 0,
908
+ partOf: Ke(e),
909
+ rendering: e.rendering,
910
+ seeAlso: e.seeAlso,
911
+ start: e.startCanvas,
912
+ service: e.service ? x(e.service) : void 0,
913
+ supplementary: i ? [i] : void 0
914
+ };
915
+ }
916
+ function Qe(e) {
917
+ return {
918
+ chars: e.chars,
919
+ format: e.format ? e.format : void 0,
920
+ language: e.language
921
+ };
922
+ }
923
+ function Xe(e) {
924
+ return p({
925
+ ...f(e),
926
+ ...u(e),
927
+ ...c(e),
928
+ items: e.members
180
929
  });
181
- if (a.forEach(function(s) {
182
- o[s] = !0;
183
- }), !(r && r.type === m.REPLACE) && a.length > 0)
184
- return "Unexpected " + (a.length > 1 ? "keys" : "key") + " " + ('"' + a.join('", "') + '" found in ' + c + ". ") + "Expected to find one of the known reducer keys instead: " + ('"' + i.join('", "') + '". Unexpected keys will be ignored.');
185
- }
186
- function k(e) {
187
- Object.keys(e).forEach(function(t) {
188
- var r = e[t], o = r(void 0, {
189
- type: m.INIT
190
- });
191
- if (typeof o > "u")
192
- throw new Error(process.env.NODE_ENV === "production" ? u(12) : 'The slice reducer for key "' + t + `" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);
193
- if (typeof r(void 0, {
194
- type: m.PROBE_UNKNOWN_ACTION()
195
- }) > "u")
196
- throw new Error(process.env.NODE_ENV === "production" ? u(13) : 'The slice reducer for key "' + t + '" returned undefined when probed with a random type. ' + ("Don't try to handle '" + m.INIT + `' or other actions in "redux/*" `) + "namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.");
930
+ }
931
+ function Ze(e) {
932
+ const t = [], i = [];
933
+ for (const r of e.sequences || [])
934
+ r.canvases.length && t.push(...r.canvases), r.behavior && i.push(...r.behavior);
935
+ const n = f(e);
936
+ return i.length && (n.behavior ? n.behavior.push(...i) : n.behavior = i), p({
937
+ ...n,
938
+ ...u(e),
939
+ ...c(e),
940
+ items: t,
941
+ structures: e.structures
197
942
  });
198
943
  }
199
- function M(e) {
200
- for (var t = Object.keys(e), r = {}, o = 0; o < t.length; o++) {
201
- var i = t[o];
202
- process.env.NODE_ENV !== "production" && typeof e[i] > "u" && D('No reducer provided for key "' + i + '"'), typeof e[i] == "function" && (r[i] = e[i]);
203
- }
204
- var c = Object.keys(r), a;
205
- process.env.NODE_ENV !== "production" && (a = {});
206
- var s;
207
- try {
208
- k(r);
209
- } catch (f) {
210
- s = f;
211
- }
212
- return function(p, v) {
213
- if (p === void 0 && (p = {}), s)
214
- throw s;
215
- if (process.env.NODE_ENV !== "production") {
216
- var g = R(p, r, v, a);
217
- g && D(g);
218
- }
219
- for (var h = !1, N = {}, b = 0; b < c.length; b++) {
220
- var n = c[b], l = r[n], y = p[n], d = l(y, v);
221
- if (typeof d > "u") {
222
- var w = v && v.type;
223
- throw new Error(process.env.NODE_ENV === "production" ? u(14) : "When called with an action of type " + (w ? '"' + String(w) + '"' : "(unknown type)") + ', the slice reducer for key "' + n + '" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');
944
+ function Je(e) {
945
+ return p({
946
+ ...f(e),
947
+ ...u(e),
948
+ ...c(e),
949
+ annotations: e.otherContent && e.otherContent.length ? e.otherContent : void 0,
950
+ items: e.images && e.images.length ? [
951
+ {
952
+ id: ue(e, "annotation-page"),
953
+ type: "AnnotationPage",
954
+ items: e.images
224
955
  }
225
- N[n] = d, h = h || d !== y;
956
+ ] : void 0
957
+ });
958
+ }
959
+ function et(e) {
960
+ return p({
961
+ ...f(e),
962
+ ...u(e),
963
+ ...c(e),
964
+ items: e.resources && e.resources.length ? e.resources : void 0
965
+ });
966
+ }
967
+ function tt(e) {
968
+ return !e.canvases || e.canvases.length === 0 ? {
969
+ canvases: [],
970
+ behavior: []
971
+ } : {
972
+ canvases: e.canvases,
973
+ behavior: e.viewingHint ? [e.viewingHint] : []
974
+ };
975
+ }
976
+ function it(e) {
977
+ function t(i) {
978
+ if (Array.isArray(i)) {
979
+ if (i.length > 1)
980
+ return { type: "List", items: i.map(t) };
981
+ i = i[0];
226
982
  }
227
- return h = h || c.length !== Object.keys(p).length, h ? N : p;
983
+ if (typeof i == "string")
984
+ return encodeURI(i).trim();
985
+ if ("@type" in i) {
986
+ let n;
987
+ if (typeof i.full == "string")
988
+ n = i.full;
989
+ else if (i.full["@type"] === "dctypes:Image")
990
+ n = { id: i.full["@id"], type: "Image" };
991
+ else if (i.full["@type"] === "sc:Canvas")
992
+ n = { id: i.full["@id"], type: "Canvas" };
993
+ else
994
+ throw new Error(`Unsupported source type on annotation: ${i.full["@type"]}`);
995
+ return {
996
+ type: "SpecificResource",
997
+ source: n,
998
+ selector: F(i.selector)
999
+ };
1000
+ } else
1001
+ return encodeURI(i["@id"]).trim();
1002
+ }
1003
+ return p({
1004
+ ...f(e),
1005
+ ...u(e),
1006
+ ...c(e),
1007
+ target: t(e.on),
1008
+ body: Array.isArray(e.resource) ? e.resource.map(O) : O(e.resource)
1009
+ });
1010
+ }
1011
+ function O(e) {
1012
+ const t = e;
1013
+ return p({
1014
+ ...f(t),
1015
+ ...u(t),
1016
+ ...c(t),
1017
+ ...Qe(t)
1018
+ });
1019
+ }
1020
+ function nt(e) {
1021
+ const t = [];
1022
+ return e.default && e.default !== "rdf:nil" && t.push(e.default), e.item && e.item !== "rdf:nil" && t.push(...e.item), {
1023
+ ...f(e),
1024
+ ...u(e),
1025
+ items: t
228
1026
  };
229
1027
  }
230
- function C() {
231
- for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
232
- t[r] = arguments[r];
233
- return t.length === 0 ? function(o) {
234
- return o;
235
- } : t.length === 1 ? t[0] : t.reduce(function(o, i) {
236
- return function() {
237
- return o(i.apply(void 0, arguments));
238
- };
1028
+ function rt(e) {
1029
+ return p({
1030
+ ...f(e),
1031
+ ...u(e),
1032
+ ...c(e),
1033
+ items: e.members
239
1034
  });
240
1035
  }
241
- function U() {
242
- for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
243
- t[r] = arguments[r];
244
- return function(o) {
245
- return function() {
246
- var i = o.apply(void 0, arguments), c = function() {
247
- throw new Error(process.env.NODE_ENV === "production" ? u(15) : "Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");
248
- }, a = {
249
- getState: i.getState,
250
- dispatch: function() {
251
- return c.apply(void 0, arguments);
252
- }
253
- }, s = t.map(function(f) {
254
- return f(a);
255
- });
256
- return c = C.apply(void 0, s)(i.dispatch), x(x({}, i), {}, {
257
- dispatch: c
258
- });
1036
+ function st(e) {
1037
+ const { "@id": t, "@type": i, "@context": n, profile: r, ...s } = e, l = {};
1038
+ return t && (l["@id"] = t), l["@type"] = j(e), l["@type"] === "unknown" && (n && n.length && (l["@context"] = n), l["@type"] = "Service"), r && (l.profile = fe(r)), p({
1039
+ ...l,
1040
+ ...s
1041
+ });
1042
+ }
1043
+ function at(e) {
1044
+ return p({
1045
+ ...f(e),
1046
+ ...u(e),
1047
+ ...c(e)
1048
+ });
1049
+ }
1050
+ const ot = new k({
1051
+ collection: [Xe],
1052
+ manifest: [Ze],
1053
+ canvas: [Je],
1054
+ annotationList: [et],
1055
+ sequence: [tt],
1056
+ annotation: [it],
1057
+ contentResource: [O],
1058
+ choice: [nt],
1059
+ range: [rt],
1060
+ service: [st],
1061
+ layer: [at]
1062
+ });
1063
+ function lt(e) {
1064
+ return e && e["@context"] && (e["@context"] === "http://iiif.io/api/presentation/2/context.json" || e["@context"].indexOf("http://iiif.io/api/presentation/2/context.json") !== -1 || e["@context"] === "http://www.shared-canvas.org/ns/context.json") || e["@context"] === "http://iiif.io/api/image/2/context.json" ? ot.traverseUnknown(e) : e;
1065
+ }
1066
+ function F(e) {
1067
+ if ((Array.isArray(e["@type"]) && e["@type"].includes("oa:SvgSelector") || e["@type"] == "oa:SvgSelector") && ("chars" in e || "value" in e))
1068
+ return {
1069
+ type: "SvgSelector",
1070
+ value: "chars" in e ? e.chars : e.value
1071
+ };
1072
+ if (e["@type"] === "oa:FragmentSelector")
1073
+ return {
1074
+ type: "FragmentSelector",
1075
+ value: e.value
1076
+ };
1077
+ if (e["@type"] === "oa:Choice")
1078
+ return [
1079
+ F(e.default),
1080
+ ...(Array.isArray(e.item) ? e.item : [e.item]).map(
1081
+ F
1082
+ )
1083
+ ];
1084
+ if (e["@type"] == "iiif:ImageApiSelector")
1085
+ return {
1086
+ type: "ImageApiSelector",
1087
+ region: "region" in e ? e.region : void 0,
1088
+ rotation: "rotation" in e ? e.rotation : void 0
1089
+ };
1090
+ throw new Error(`Unsupported selector type: ${e["@type"]}`);
1091
+ }
1092
+ function vt() {
1093
+ return {
1094
+ Collection: {},
1095
+ Manifest: {},
1096
+ Canvas: {},
1097
+ AnnotationPage: {},
1098
+ AnnotationCollection: {},
1099
+ Annotation: {},
1100
+ ContentResource: {},
1101
+ Range: {},
1102
+ Service: {},
1103
+ Selector: {},
1104
+ Agent: {}
1105
+ };
1106
+ }
1107
+ function he(e, t) {
1108
+ if (typeof e == "string")
1109
+ return { id: e, type: t };
1110
+ if (!e.id)
1111
+ throw new Error(`Invalid resource does not have an ID (${t})`);
1112
+ return e;
1113
+ }
1114
+ function pt(e) {
1115
+ return (t, i) => {
1116
+ const n = e[t] ? e[t] : {};
1117
+ return (r) => {
1118
+ const s = he(r, i || t);
1119
+ return s && s.id && t ? (n[s.id] = n[s.id] ? ft(n[s.id], s) : Object.assign({}, s), {
1120
+ id: s.id,
1121
+ type: t === "ContentResource" ? t : s.type
1122
+ }) : s;
259
1123
  };
260
1124
  };
261
1125
  }
1126
+ function D(e, t) {
1127
+ if (!t)
1128
+ return e;
1129
+ if (Array.isArray(e)) {
1130
+ if (!Array.isArray(t))
1131
+ throw new Error("Cannot merge array with non-array");
1132
+ const i = [...e];
1133
+ for (const n of t)
1134
+ if (n != null)
1135
+ if (Array.isArray(n))
1136
+ i.push(n);
1137
+ else if (typeof n == "object" && n.id && n.type) {
1138
+ const r = i.findIndex((s) => s.id === n.id && s.type === n.type);
1139
+ r >= 0 && (i[r] = D(i[r], n));
1140
+ } else
1141
+ e.indexOf(n) === -1 && i.push(n);
1142
+ return i;
1143
+ } else if (typeof e == "object") {
1144
+ if (Array.isArray(t) || typeof t != "object")
1145
+ throw new Error("Cannot merge object with non-object");
1146
+ const i = { ...e };
1147
+ for (const [n, r] of Object.entries(t)) {
1148
+ const s = i[n];
1149
+ s === a || !s ? i[n] = r : i[n] = D(s, r);
1150
+ }
1151
+ return i;
1152
+ } else if (e)
1153
+ return e;
1154
+ return t;
1155
+ }
1156
+ function ft(e, t) {
1157
+ if (typeof e == "string")
1158
+ return e;
1159
+ if (t.id !== e.id || t.type !== e.type)
1160
+ throw new Error("Can only merge entities with identical identifiers and type!");
1161
+ return D({ ...e }, t);
1162
+ }
1163
+ function ut(e) {
1164
+ return (t, i) => (n) => {
1165
+ const { id: r, type: s } = he(n, i || t);
1166
+ if (typeof r > "u")
1167
+ throw new Error("Found invalid entity without an ID.");
1168
+ return t === "ContentResource" ? e[r] = t : e[r] = s, n;
1169
+ };
1170
+ }
1171
+ function ht(e) {
1172
+ const t = JSON.stringify(e);
1173
+ let i = 5381, n = t.length;
1174
+ for (; n; )
1175
+ i = i * 33 ^ t.charCodeAt(--n);
1176
+ const s = (i >>> 0).toString(16);
1177
+ return s.length % 2 ? "0" + s : s;
1178
+ }
1179
+ function M(e) {
1180
+ return (t) => typeof t == "string" ? { id: t, type: e } : t.id ? t.type ? t : { type: e, ...t } : { id: `vault://${ht(t)}`, type: e, ...t };
1181
+ }
1182
+ function _(e) {
1183
+ return (t) => ({
1184
+ ...e,
1185
+ ...t
1186
+ });
1187
+ }
1188
+ function w(e) {
1189
+ return Array.isArray(e) ? e : [e];
1190
+ }
1191
+ function ct(e) {
1192
+ return e.body && (e.body = w(e.body)), e.seeAlso && (e.seeAlso = w(e.seeAlso)), e.body && (e.body = w(e.body)), e.audience && (e.audience = w(e.audience)), e.accessibility && (e.accessibility = w(e.accessibility)), e.motivation && (e.motivation = w(e.motivation)), e;
1193
+ }
1194
+ function yt(e) {
1195
+ const t = lt(e), i = vt(), n = {}, r = pt(i), s = ut(n), v = new N({
1196
+ collection: [
1197
+ _(_e),
1198
+ s("Collection"),
1199
+ r("Collection")
1200
+ ],
1201
+ manifest: [
1202
+ _(we),
1203
+ s("Manifest"),
1204
+ r("Manifest")
1205
+ ],
1206
+ canvas: [
1207
+ _(Ie),
1208
+ s("Canvas"),
1209
+ r("Canvas")
1210
+ ],
1211
+ annotationPage: [
1212
+ M("AnnotationPage"),
1213
+ _(Ce),
1214
+ s("AnnotationPage"),
1215
+ r("AnnotationPage")
1216
+ ],
1217
+ annotation: [
1218
+ M("Annotation"),
1219
+ ct,
1220
+ s("Annotation"),
1221
+ r("Annotation")
1222
+ ],
1223
+ contentResource: [
1224
+ M("ContentResource"),
1225
+ s("ContentResource"),
1226
+ r("ContentResource")
1227
+ ],
1228
+ range: [
1229
+ _(be),
1230
+ s("Range", "Canvas"),
1231
+ r("Range", "Canvas")
1232
+ ],
1233
+ agent: [
1234
+ _(Re),
1235
+ s("Agent"),
1236
+ r("Agent")
1237
+ ]
1238
+ }).traverseUnknown(t);
1239
+ return { entities: i, resource: v, mapping: n };
1240
+ }
1241
+ const C = "__$UNSET$__", ce = "__$UNWRAP$__";
1242
+ function dt(e, t) {
1243
+ const i = e.requests[t], n = e.mapping[t];
1244
+ if (!(!n || i && i.resourceUri && !e.entities[n][i.resourceUri]))
1245
+ return e.entities[n][i ? i.resourceUri : t];
1246
+ }
1247
+ function mt(e) {
1248
+ const t = {};
1249
+ for (const [i, n] of e) {
1250
+ if (i === ce && n !== C)
1251
+ return n;
1252
+ n !== C && typeof n < "u" && n !== null && (t[i] = n);
1253
+ }
1254
+ return t;
1255
+ }
1256
+ function At(e, t, i) {
1257
+ if (!t.type || !t.id)
1258
+ throw new Error("Unknown entity");
1259
+ if (!i[t.type])
1260
+ throw new Error(`Serializer not found for ${t.type}`);
1261
+ function n(r) {
1262
+ const s = i[r.type];
1263
+ if (!s)
1264
+ return C;
1265
+ const l = dt(e, r.id) || (r.id && r.type ? r : null);
1266
+ if (!l)
1267
+ return C;
1268
+ const v = s(l, e, { isTopLevel: t.id === r.id });
1269
+ let R = v.next();
1270
+ for (; !R.done; ) {
1271
+ const L = R.value;
1272
+ let S = C;
1273
+ if (L)
1274
+ if (Array.isArray(L)) {
1275
+ const $ = [];
1276
+ for (const ge of L)
1277
+ $.push(n(ge));
1278
+ S = $;
1279
+ } else
1280
+ S = n(L);
1281
+ R = v.next(S);
1282
+ }
1283
+ return R.value === C ? C : mt(R.value);
1284
+ }
1285
+ return n(t);
1286
+ }
1287
+ function b(e) {
1288
+ if (!e)
1289
+ return;
1290
+ const t = Object.keys(e);
1291
+ if (t.length !== 0) {
1292
+ if (t.length === 1) {
1293
+ const i = t[0];
1294
+ if (!i)
1295
+ return "";
1296
+ const n = (e[i] || []).join("");
1297
+ return i === "@none" || i === "none" || i === "en" ? n : {
1298
+ "@language": i,
1299
+ "@value": n
1300
+ };
1301
+ }
1302
+ return t.map((i) => ({
1303
+ "@language": i,
1304
+ "@value": (e[i] || []).join("")
1305
+ }));
1306
+ }
1307
+ }
1308
+ function de(e) {
1309
+ return Array.isArray(e) ? e.map((t) => de(t)) : typeof e == "string" ? e : e.type && e.type === "Canvas" ? e.id : e;
1310
+ }
1311
+ function h(e, t = !1) {
1312
+ if (e)
1313
+ return e.length > 1 && !t ? e : e[0] || void 0;
1314
+ }
1315
+ function gt(e) {
1316
+ if (e) {
1317
+ if (typeof e == "string")
1318
+ return {
1319
+ "@id": e
1320
+ };
1321
+ if ("@id" in e) {
1322
+ const t = { ...e };
1323
+ return delete t["@type"], t;
1324
+ }
1325
+ return {
1326
+ "@context": "http://iiif.io/api/image/2/context.json",
1327
+ "@id": e.id,
1328
+ profile: `http://iiif.io/api/image/2/profiles/${e.profile}.json`
1329
+ };
1330
+ }
1331
+ }
1332
+ function d(e, t) {
1333
+ return [
1334
+ ["@id", e.id],
1335
+ ["@type", t],
1336
+ ["format", e.format],
1337
+ ["height", e.height],
1338
+ ["width", e.width],
1339
+ ["viewingDirection", e.viewingDirection !== "left-to-right" ? e.viewingDirection : void 0]
1340
+ ];
1341
+ }
1342
+ function* m(e) {
1343
+ const t = e.provider ? yield e.provider[0] : void 0;
1344
+ return [
1345
+ ["label", b(e.label)],
1346
+ [
1347
+ "metadata",
1348
+ e.metadata && e.metadata.length ? e.metadata.map((i) => ({
1349
+ label: b(i.label) || "",
1350
+ value: b(i.value) || ""
1351
+ })) : void 0
1352
+ ],
1353
+ ["description", b(e.summary)],
1354
+ ["thumbnail", h(yield e.thumbnail)],
1355
+ ["navDate", e.navDate],
1356
+ ["logo", t ? h(t.logo) : void 0],
1357
+ ["homepage", t ? t.homepage : void 0],
1358
+ ["attribution", e.requiredStatement ? b(e.requiredStatement.value) : void 0]
1359
+ ];
1360
+ }
1361
+ function* E(e) {
1362
+ return [
1363
+ ["seeAlso", h(yield e.seeAlso)],
1364
+ ["service", h((e.service || []).map(gt))],
1365
+ ["rendering", h(yield e.rendering)],
1366
+ ["startCanvas", e.start ? e.start.id : void 0]
1367
+ ];
1368
+ }
1369
+ const Ct = {
1370
+ Manifest: function* (e) {
1371
+ return [
1372
+ ...d(e, "sc:Manifest"),
1373
+ ...yield* m(e),
1374
+ ...yield* E(e),
1375
+ [
1376
+ "sequences",
1377
+ [
1378
+ {
1379
+ "@id": `${e.id}/sequence0`,
1380
+ "@type": "sc:Sequence",
1381
+ canvases: yield e.items
1382
+ }
1383
+ ]
1384
+ ],
1385
+ ["structures", yield e.structures]
1386
+ ];
1387
+ },
1388
+ Canvas: function* (e) {
1389
+ const i = (yield e.items)[0];
1390
+ return [
1391
+ ...d(e, "sc:Canvas"),
1392
+ ...yield* m(e),
1393
+ ...yield* E(e),
1394
+ ["images", i ? [i.resources] : void 0],
1395
+ [
1396
+ "annotations",
1397
+ e.annotations && e.annotations.length ? h(yield e.annotations) : void 0
1398
+ ]
1399
+ ];
1400
+ },
1401
+ AnnotationPage: function* (e) {
1402
+ return [
1403
+ ...d(e, "sc:AnnotationList"),
1404
+ ...yield* m(e),
1405
+ ["resources", e.items && e.items.length ? h(yield e.items) : void 0]
1406
+ ];
1407
+ },
1408
+ Annotation: function* (e) {
1409
+ return [
1410
+ ["@id", e.id],
1411
+ ["@type", "oa:Annotation"],
1412
+ ["motivation", "sc:painting"],
1413
+ ["on", de(e.target)],
1414
+ ["resource", h(yield e.body, !0)]
1415
+ ];
1416
+ },
1417
+ ContentResource: function* (e) {
1418
+ switch (e.type) {
1419
+ case "Image":
1420
+ return [
1421
+ ...d(e, "dctypes:Image"),
1422
+ ...yield* m(e),
1423
+ ...yield* E(e)
1424
+ ];
1425
+ case "Text":
1426
+ case "Dataset":
1427
+ default:
1428
+ return [...d(e, void 0), ...yield* m(e)];
1429
+ }
1430
+ },
1431
+ AnnotationCollection: function* (e) {
1432
+ return [
1433
+ ["@id", e.id],
1434
+ ["@type", "sc:Layer"],
1435
+ ["label", b(e.label)]
1436
+ ];
1437
+ },
1438
+ Collection: function* (e) {
1439
+ return [
1440
+ ...d(e, "sc:Collection"),
1441
+ ...yield* m(e),
1442
+ ...yield* E(e),
1443
+ ["members", yield* e.items]
1444
+ ];
1445
+ },
1446
+ Range: function* (e) {
1447
+ const t = [], i = [];
1448
+ if (e.items)
1449
+ for (const n of e.items) {
1450
+ const r = yield n;
1451
+ t.push({
1452
+ "@id": n.id,
1453
+ "@type": n.type,
1454
+ label: r ? r.label : void 0,
1455
+ within: e.id
1456
+ }), n.type === "Canvas" && i.push(n.id);
1457
+ }
1458
+ return [
1459
+ ...d(e, "sc:Range"),
1460
+ ...yield* m(e),
1461
+ ...yield* E(e),
1462
+ ["canvases", i.length === t.length ? i : void 0],
1463
+ ["members", i.length !== t.length ? t : void 0]
1464
+ ];
1465
+ }
1466
+ };
1467
+ function g(e) {
1468
+ var t;
1469
+ return [
1470
+ ["id", (t = e.id) != null && t.startsWith("vault://") ? void 0 : e.id],
1471
+ ["type", e.type],
1472
+ ["format", e.format],
1473
+ ["profile", e.profile],
1474
+ ["height", e.height],
1475
+ ["width", e.width],
1476
+ ["duration", e.duration || void 0],
1477
+ ["viewingDirection", e.viewingDirection !== "left-to-right" ? e.viewingDirection : void 0],
1478
+ ["behavior", e.behavior && e.behavior.length ? e.behavior : void 0],
1479
+ ["timeMode", e.timeMode],
1480
+ ["motivation", Array.isArray(e.motivation) ? e.motivation[0] : e.motivation]
1481
+ ];
1482
+ }
1483
+ function o(e) {
1484
+ if (!(!e || e.length === 0))
1485
+ return e;
1486
+ }
1487
+ function me(e) {
1488
+ if (e && e.type && e.type === "ImageService2") {
1489
+ const { id: t, type: i, profile: n, ...r } = e, s = typeof n == "string" ? n : Array.isArray(n) ? n.find((l) => typeof l == "string") : "";
1490
+ return {
1491
+ "@id": t,
1492
+ "@type": i,
1493
+ profile: s ? s.startsWith("http") ? s : `http://iiif.io/api/image/2/${s}.json` : "http://iiif.io/api/image/2/level0.json",
1494
+ ...r
1495
+ };
1496
+ }
1497
+ return e;
1498
+ }
1499
+ function W(e) {
1500
+ if (!(!e || e.length === 0))
1501
+ return e.map(me);
1502
+ }
1503
+ function* y(e) {
1504
+ return [
1505
+ ["label", e.label],
1506
+ ["metadata", o(e.metadata)],
1507
+ ["summary", e.summary],
1508
+ ["requiredStatement", e.requiredStatement],
1509
+ ["rights", e.rights],
1510
+ ["navDate", e.navDate],
1511
+ ["language", e.language],
1512
+ ["thumbnail", o(yield e.thumbnail)],
1513
+ ["placeholderCanvas", yield e.placeholderCanvas],
1514
+ ["accompanyingCanvas", yield e.accompanyingCanvas],
1515
+ ["provider", o(yield e.provider)]
1516
+ ];
1517
+ }
1518
+ function* A(e) {
1519
+ return [
1520
+ ["seeAlso", o(yield e.seeAlso)],
1521
+ ["service", W(e.service)],
1522
+ ["services", W(e.services)],
1523
+ ["rendering", o(yield e.rendering)],
1524
+ ["supplementary", o(yield e.supplementary)],
1525
+ ["homepage", o(yield e.homepage)],
1526
+ ["logo", o(yield e.logo)],
1527
+ ["partOf", o(yield e.partOf)],
1528
+ ["start", e.start]
1529
+ ];
1530
+ }
1531
+ const It = {
1532
+ Manifest: function* (e, t, { isTopLevel: i }) {
1533
+ return i ? [
1534
+ ["@context", "http://iiif.io/api/presentation/3/context.json"],
1535
+ ...g(e),
1536
+ ...yield* y(e),
1537
+ ...yield* A(e),
1538
+ ["items", yield e.items],
1539
+ ["structures", o(yield e.structures)],
1540
+ ["annotations", o(yield e.annotations)]
1541
+ ] : [
1542
+ ...g(e),
1543
+ ...yield* y(e)
1544
+ ];
1545
+ },
1546
+ Canvas: function* (e) {
1547
+ return [
1548
+ ...g(e),
1549
+ ...yield* y(e),
1550
+ ...yield* A(e),
1551
+ ["items", yield e.items],
1552
+ ["annotations", o(yield e.annotations)]
1553
+ ];
1554
+ },
1555
+ Agent: function* (e) {
1556
+ return [
1557
+ ["id", e.id],
1558
+ ["type", "Agent"],
1559
+ ["label", e.label],
1560
+ ...yield* A(e)
1561
+ ];
1562
+ },
1563
+ AnnotationPage: function* (e) {
1564
+ return [
1565
+ ...Object.entries(e).map(([i, n]) => [i, Array.isArray(n) ? o(n) : n]).filter(([i, n]) => i !== "items"),
1566
+ ...yield* A(e),
1567
+ ["items", yield e.items]
1568
+ ];
1569
+ },
1570
+ Service: function* (e) {
1571
+ return [[ce, me(e)]];
1572
+ },
1573
+ Annotation: function* (e) {
1574
+ const t = Object.entries(e).map(([n, r]) => n === "motivation" ? [n, Array.isArray(r) ? r[0] : r] : [n, Array.isArray(r) ? o(r) : r]).filter(([n]) => n !== "body"), i = yield e.body;
1575
+ return [...t, ["body", i.length === 1 ? i[0] : i]];
1576
+ },
1577
+ ContentResource: function* (e) {
1578
+ return [
1579
+ ...g(e),
1580
+ ...yield* y(e),
1581
+ ...yield* A(e),
1582
+ ["annotations", o(yield e.annotations)],
1583
+ ["items", o(yield e.items)]
1584
+ ];
1585
+ },
1586
+ AnnotationCollection: function* (e) {
1587
+ return [
1588
+ ["id", e.id],
1589
+ ["type", "AnnotationCollection"],
1590
+ ["label", e.label]
1591
+ ];
1592
+ },
1593
+ Collection: function* (e, t, { isTopLevel: i }) {
1594
+ return i ? [
1595
+ ["@context", "http://iiif.io/api/presentation/3/context.json"],
1596
+ ...g(e),
1597
+ ...yield* y(e),
1598
+ ...yield* A(e),
1599
+ ["items", o(yield e.items)]
1600
+ ] : [...g(e), ...yield* y(e)];
1601
+ },
1602
+ Range: function* (e) {
1603
+ const t = [];
1604
+ for (const i of e.items)
1605
+ i.type === "Range" ? t.push(yield i) : t.push(i);
1606
+ return [
1607
+ ...g(e),
1608
+ ...yield* y(e),
1609
+ ...yield* A(e),
1610
+ ["items", t],
1611
+ ["annotations", o(yield e.annotations)]
1612
+ ];
1613
+ }
1614
+ };
262
1615
  export {
263
- m as __DO_NOT_USE__ActionTypes,
264
- U as applyMiddleware,
265
- M as combineReducers,
266
- C as compose,
267
- P as createStore
1616
+ a as EMPTY,
1617
+ N as Traverse,
1618
+ C as UNSET,
1619
+ ce as UNWRAP,
1620
+ Re as emptyAgent,
1621
+ Ce as emptyAnnotationPage,
1622
+ Ie as emptyCanvas,
1623
+ _e as emptyCollection,
1624
+ we as emptyManifest,
1625
+ be as emptyRange,
1626
+ vt as getDefaultEntities,
1627
+ Ee as identifyResource,
1628
+ b as languageString2to3,
1629
+ ft as mergeEntities,
1630
+ yt as normalize,
1631
+ At as serialize,
1632
+ Ct as serializeConfigPresentation2,
1633
+ It as serializeConfigPresentation3,
1634
+ mt as serializedFieldsToObject,
1635
+ G as types
268
1636
  };
269
1637
  //# sourceMappingURL=index.es259.js.map