lido-player 0.0.2-beta-25-dev → 0.0.2-beta-26-dev

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 (236) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{decode-BSImuLEU.js → decode-CE64w_Pc.js} +1 -1
  3. package/dist/cjs/{index-DRw2yVbg.js → index-Cf9LHdIw.js} +126 -60
  4. package/dist/cjs/{index-DBCFoh1I.js → index-DnaH8sO-.js} +1 -1
  5. package/dist/cjs/index.cjs.js +2 -2
  6. package/dist/cjs/lido-avatar_22.cjs.entry.js +103 -42
  7. package/dist/cjs/lido-player.cjs.js +2 -2
  8. package/dist/cjs/loader.cjs.js +2 -2
  9. package/dist/collection/components/avatar/lido-avatar.css +4 -4
  10. package/dist/collection/components/avatar/lido-avatar.js +1 -1
  11. package/dist/collection/components/avatar/lido-avatar.tsx +214 -214
  12. package/dist/collection/components/avatar/readme.md +49 -49
  13. package/dist/collection/components/calculator/lido-calculator.css +89 -89
  14. package/dist/collection/components/calculator/lido-calculator.js +2 -2
  15. package/dist/collection/components/canvas/lido-canvas.css +33 -33
  16. package/dist/collection/components/canvas/lido-canvas.js +1 -1
  17. package/dist/collection/components/cell/lido-cell.css +100 -100
  18. package/dist/collection/components/cell/lido-cell.js +12 -12
  19. package/dist/collection/components/column/lido-col.css +19 -19
  20. package/dist/collection/components/column/lido-col.js +6 -6
  21. package/dist/collection/components/container/lido-container.css +34 -34
  22. package/dist/collection/components/container/lido-container.js +8 -8
  23. package/dist/collection/components/flashCard/lido-flash-card.css +72 -72
  24. package/dist/collection/components/flashCard/lido-flash-card.js +72 -12
  25. package/dist/collection/components/float/lido-float.css +30 -30
  26. package/dist/collection/components/float/lido-float.js +2 -2
  27. package/dist/collection/components/home/lido-home.css +309 -309
  28. package/dist/collection/components/home/lido-home.js +35 -8
  29. package/dist/collection/components/image/lido-image.css +17 -17
  30. package/dist/collection/components/image/lido-image.js +6 -6
  31. package/dist/collection/components/keyboard/lido-keyboard.css +38 -38
  32. package/dist/collection/components/keyboard/lido-keyboard.js +3 -3
  33. package/dist/collection/components/mathMatrix/lido-math-matrix.css +56 -56
  34. package/dist/collection/components/mathMatrix/lido-math-matrix.js +1 -1
  35. package/dist/collection/components/position/lido-pos.css +16 -16
  36. package/dist/collection/components/position/lido-pos.js +2 -2
  37. package/dist/collection/components/random/lido-random.css +8 -8
  38. package/dist/collection/components/random/lido-random.js +2 -2
  39. package/dist/collection/components/root/lido-root.js +5 -5
  40. package/dist/collection/components/row/lido-row.css +10 -10
  41. package/dist/collection/components/row/lido-row.js +6 -6
  42. package/dist/collection/components/scale/assets/Shadow.svg +9 -9
  43. package/dist/collection/components/scale/lido-balance.css +174 -174
  44. package/dist/collection/components/scale/lido-balance.js +13 -13
  45. package/dist/collection/components/shape/lido-shape.css +216 -216
  46. package/dist/collection/components/shape/lido-shape.js +6 -6
  47. package/dist/collection/components/slideFill/lido-slide-fill.css +3 -3
  48. package/dist/collection/components/slideFill/lido-slide-fill.js +13 -13
  49. package/dist/collection/components/text/lido-text.css +53 -53
  50. package/dist/collection/components/text/lido-text.js +6 -6
  51. package/dist/collection/components/trace/assets/Tracing-hand.svg +8 -8
  52. package/dist/collection/components/trace/lido-trace.css +97 -97
  53. package/dist/collection/components/trace/lido-trace.js +2 -2
  54. package/dist/collection/components/wrap/lido-wrap.css +18 -18
  55. package/dist/collection/components/wrap/lido-wrap.js +6 -6
  56. package/dist/collection/css/animation.css +211 -211
  57. package/dist/collection/css/index.css +323 -323
  58. package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +61 -61
  59. package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +123 -123
  60. package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +48 -48
  61. package/dist/collection/stories/Templates/Tag/tagGame.stories.js +39 -39
  62. package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +44 -44
  63. package/dist/collection/stories/Templates/balancing/balancing.stories.js +35 -35
  64. package/dist/collection/stories/Templates/balloonPop/balloonPop.stories.js +38 -38
  65. package/dist/collection/stories/Templates/blender/blender.stories.js +59 -59
  66. package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +42 -42
  67. package/dist/collection/stories/Templates/calculator/calculator.stories.js +28 -28
  68. package/dist/collection/stories/Templates/categorize/categorize.stories.js +37 -37
  69. package/dist/collection/stories/Templates/categorize2/categorize2.stories.js +67 -67
  70. package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +29 -29
  71. package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +13 -13
  72. package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +74 -74
  73. package/dist/collection/stories/Templates/dragAndDrop/drag-drop.stories.js +69 -69
  74. package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +43 -43
  75. package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +282 -282
  76. package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +35 -35
  77. package/dist/collection/stories/Templates/grid/grid.stories.js +118 -118
  78. package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +57 -57
  79. package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +44 -44
  80. package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +41 -41
  81. package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +183 -183
  82. package/dist/collection/stories/Templates/makeSentence/make-sentence.stories.js +36 -36
  83. package/dist/collection/stories/Templates/matchBox/matchBox.stories.js +69 -69
  84. package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +84 -84
  85. package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +31 -31
  86. package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +112 -112
  87. package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +47 -47
  88. package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +57 -57
  89. package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +53 -53
  90. package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +46 -46
  91. package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +45 -45
  92. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +56 -56
  93. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +53 -53
  94. package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +127 -127
  95. package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +47 -47
  96. package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +38 -38
  97. package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +97 -97
  98. package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +90 -90
  99. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +63 -63
  100. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +45 -45
  101. package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +63 -63
  102. package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +79 -79
  103. package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +32 -32
  104. package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +42 -42
  105. package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +63 -63
  106. package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +44 -44
  107. package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +34 -34
  108. package/dist/collection/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.js +52 -52
  109. package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +33 -33
  110. package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +40 -40
  111. package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +48 -48
  112. package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +48 -48
  113. package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +18 -18
  114. package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +44 -44
  115. package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +34 -34
  116. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +36 -36
  117. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +30 -30
  118. package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +20 -20
  119. package/dist/collection/stories/Templates/puzzleGame/puzzleGame.stories.js +17 -17
  120. package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +58 -58
  121. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +50 -50
  122. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +36 -36
  123. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +43 -43
  124. package/dist/collection/stories/Templates/quizMaths/quizMaths.stories.js +633 -633
  125. package/dist/collection/stories/Templates/reorder/reorder.stories.js +63 -63
  126. package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +47 -47
  127. package/dist/collection/stories/Templates/sentenceMatch/sentenceMatch.stories.js +29 -29
  128. package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +64 -64
  129. package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +62 -62
  130. package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +106 -106
  131. package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +50 -50
  132. package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +41 -41
  133. package/dist/collection/stories/Templates/storyTale/storyTale.stories.js +39 -39
  134. package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +62 -62
  135. package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +42 -42
  136. package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +50 -50
  137. package/dist/collection/stories/Templates/tenBox/tenBox.stories.js +88 -88
  138. package/dist/collection/stories/Templates/total/total.stories.js +28 -28
  139. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +35 -35
  140. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +34 -34
  141. package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +31 -31
  142. package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +58 -58
  143. package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +44 -44
  144. package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +31 -31
  145. package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +34 -34
  146. package/dist/collection/stories/components/flash-card.stories.js +48 -48
  147. package/dist/collection/stories/components/keyboard.stories.js +10 -10
  148. package/dist/collection/stories/components/slider.stories.js +4 -4
  149. package/dist/collection/stories/components/trace.stories.js +5 -5
  150. package/dist/collection/utils/audioPlayer.js +7 -2
  151. package/dist/collection/utils/constants.js +6 -0
  152. package/dist/collection/utils/utils.js +59 -7
  153. package/dist/collection/utils/utilsHandlers/dragDropHandler.js +8 -8
  154. package/dist/collection/utils/utilsHandlers/highlightHandler.js +54 -54
  155. package/dist/collection/utils/utilsHandlers/sortHandler.js +10 -10
  156. package/dist/components/index.js +1 -1
  157. package/dist/components/lido-avatar.js +1 -1
  158. package/dist/components/lido-balance.js +1 -1
  159. package/dist/components/lido-calculator.js +1 -1
  160. package/dist/components/lido-canvas.js +1 -1
  161. package/dist/components/lido-cell.js +1 -1
  162. package/dist/components/lido-col.js +1 -1
  163. package/dist/components/lido-container.js +1 -1
  164. package/dist/components/lido-flash-card.js +1 -1
  165. package/dist/components/lido-float.js +1 -1
  166. package/dist/components/lido-home.js +1 -1
  167. package/dist/components/lido-image.js +1 -1
  168. package/dist/components/lido-keyboard.js +1 -1
  169. package/dist/components/lido-math-matrix.js +1 -1
  170. package/dist/components/lido-pos.js +1 -1
  171. package/dist/components/lido-random.js +1 -1
  172. package/dist/components/lido-root.js +1 -1
  173. package/dist/components/lido-row.js +1 -1
  174. package/dist/components/lido-shape.js +1 -1
  175. package/dist/components/lido-slide-fill.js +1 -1
  176. package/dist/components/lido-text.js +1 -1
  177. package/dist/components/lido-trace.js +1 -1
  178. package/dist/components/lido-wrap.js +1 -1
  179. package/dist/components/p-B4iWvszS.js +1 -0
  180. package/dist/components/{p-Cf85Nc-6.js → p-BA-XmR9g.js} +1 -1
  181. package/dist/components/p-BJt-z8VW.js +1 -0
  182. package/dist/components/{p-CTlcpv4a.js → p-BfwUqpXc.js} +1 -1
  183. package/dist/components/{p-DNo3iX_r.js → p-BiBt9LGP.js} +1 -1
  184. package/dist/components/{p-DG0KR2iN.js → p-BlN0IsR4.js} +1 -1
  185. package/dist/components/{p-BSWrnLbC.js → p-BpVpANK9.js} +1 -1
  186. package/dist/components/{p-CgsPIpg0.js → p-Bw-OC9iR.js} +1 -1
  187. package/dist/components/p-C2J7-bcH.js +1 -0
  188. package/dist/components/{p-BfJG1wmU.js → p-CEmofYPx.js} +1 -1
  189. package/dist/components/{p-C5WmmkI6.js → p-CPYnt0P-.js} +1 -1
  190. package/dist/components/{p-CsDu4kiC.js → p-ChfVUoX4.js} +1 -1
  191. package/dist/components/{p-AaE392x7.js → p-CnQ-4EIw.js} +1 -1
  192. package/dist/components/{p-CXHPZN3m.js → p-CyGxEcn7.js} +1 -1
  193. package/dist/components/{p-CuDMRxx_.js → p-D1cBkIab.js} +1 -1
  194. package/dist/components/p-DP6jQ5ML.js +1 -0
  195. package/dist/components/{p-BW0855oZ.js → p-DV-k1ulI.js} +1 -1
  196. package/dist/components/p-Qhj9-H6e.js +12 -0
  197. package/dist/components/{p-CVZEVfip.js → p-hUfX1As2.js} +1 -1
  198. package/dist/components/p-leIEepjl.js +1 -0
  199. package/dist/components/{p-CK9M0Kcf.js → p-s4oGlKg6.js} +1 -1
  200. package/dist/components/{p-C70ykycD.js → p-useuhkjH.js} +1 -1
  201. package/dist/esm/{decode-D2f5bktc.js → decode-DhjaTUf2.js} +1 -1
  202. package/dist/esm/{index-BB56Mo3L.js → index-Bc6Y7rds.js} +124 -61
  203. package/dist/esm/{index-mMpK8062.js → index-Dvjbti-h.js} +1 -1
  204. package/dist/esm/index.js +2 -2
  205. package/dist/esm/lido-avatar_22.entry.js +103 -42
  206. package/dist/esm/lido-player.js +3 -3
  207. package/dist/esm/loader.js +3 -3
  208. package/dist/lido-player/assets/Shadow.svg +9 -9
  209. package/dist/lido-player/assets/Tracing-hand.svg +8 -8
  210. package/dist/lido-player/index.esm.js +1 -1
  211. package/dist/lido-player/lido-avatar.css +4 -4
  212. package/dist/lido-player/lido-avatar.tsx +214 -214
  213. package/dist/lido-player/lido-player.css +7 -7
  214. package/dist/lido-player/lido-player.esm.js +1 -1
  215. package/dist/lido-player/{p-DSlo480E.js → p-CORilAH-.js} +1 -1
  216. package/dist/lido-player/p-D66K5DXn.js +1 -0
  217. package/dist/lido-player/p-Dvjbti-h.js +2 -0
  218. package/dist/lido-player/p-ca195982.entry.js +12 -0
  219. package/dist/lido-player/readme.md +49 -49
  220. package/dist/types/components/flashCard/lido-flash-card.d.ts +2 -0
  221. package/dist/types/components.d.ts +1 -0
  222. package/dist/types/types/json.d.ts +3 -3
  223. package/dist/types/utils/audioPlayer.d.ts +1 -1
  224. package/dist/types/utils/constants.d.ts +2 -0
  225. package/dist/types/utils/utils.d.ts +4 -0
  226. package/package.json +73 -73
  227. package/readme.md +113 -113
  228. package/dist/components/p-B-mIxynb.js +0 -1
  229. package/dist/components/p-CSxwfvl3.js +0 -1
  230. package/dist/components/p-DONbWJGn.js +0 -1
  231. package/dist/components/p-DPGOqpde.js +0 -1
  232. package/dist/components/p-DXy70SGv.js +0 -1
  233. package/dist/components/p-i3W5bJbL.js +0 -12
  234. package/dist/lido-player/p-53d245b0.entry.js +0 -12
  235. package/dist/lido-player/p-DKuh-2gv.js +0 -1
  236. package/dist/lido-player/p-mMpK8062.js +0 -2
@@ -1 +0,0 @@
1
- import{t,p as i,H as e,k as s,i as o,m as n,a4 as r,c as a,a as h,h as l,b as u,Z as c}from"./index.js";const d=t=>"string"==typeof t,g=()=>{let t,i;const e=new Promise(((e,s)=>{t=e,i=s}));return e.resolve=t,e.reject=i,e},p=t=>null==t?"":""+t,f=/###/g,m=t=>t&&t.indexOf("###")>-1?t.replace(f,"."):t,y=t=>!t||d(t),b=(t,i,e)=>{const s=d(i)?i.split("."):i;let o=0;for(;o<s.length-1;){if(y(t))return{};const i=m(s[o]);!t[i]&&e&&(t[i]=new e),t=Object.prototype.hasOwnProperty.call(t,i)?t[i]:{},++o}return y(t)?{}:{obj:t,k:m(s[o])}},w=(t,i,e)=>{const{obj:s,k:o}=b(t,i,Object);if(void 0!==s||1===i.length)return void(s[o]=e);let n=i[i.length-1],r=i.slice(0,i.length-1),a=b(t,r,Object);for(;void 0===a.obj&&r.length;)n=`${r[r.length-1]}.${n}`,r=r.slice(0,r.length-1),a=b(t,r,Object),a?.obj&&void 0!==a.obj[`${a.k}.${n}`]&&(a.obj=void 0);a.obj[`${a.k}.${n}`]=e},v=(t,i)=>{const{obj:e,k:s}=b(t,i);if(e&&Object.prototype.hasOwnProperty.call(e,s))return e[s]},x=(t,i,e)=>{for(const s in i)"__proto__"!==s&&"constructor"!==s&&(s in t?d(t[s])||t[s]instanceof String||d(i[s])||i[s]instanceof String?e&&(t[s]=i[s]):x(t[s],i[s],e):t[s]=i[s]);return t},$=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var A={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const k=t=>d(t)?t.replace(/[&<>"'\/]/g,(t=>A[t])):t,S=[" ",",","?","!",";"],E=new class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const i=this.regExpMap.get(t);if(void 0!==i)return i;const e=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,e),this.regExpQueue.push(t),e}}(20),I=(t,i,e=".")=>{if(!t)return;if(t[i]){if(!Object.prototype.hasOwnProperty.call(t,i))return;return t[i]}const s=i.split(e);let o=t;for(let t=0;t<s.length;){if(!o||"object"!=typeof o)return;let i,n="";for(let r=t;r<s.length;++r)if(r!==t&&(n+=e),n+=s[r],i=o[n],void 0!==i){if(["string","number","boolean"].indexOf(typeof i)>-1&&r<s.length-1)continue;t+=r-t+1;break}o=i}return o},W=t=>t?.replace(/_/g,"-"),O={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,i){console?.[t]?.apply?.(console,i)}};class j{constructor(t,i={}){this.init(t,i)}init(t,i={}){this.prefix=i.prefix||"i18next:",this.logger=t||O,this.options=i,this.debug=i.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,i,e,s){return s&&!this.debug?null:(d(t[0])&&(t[0]=`${e}${this.prefix} ${t[0]}`),this.logger[i](t))}create(t){return new j(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new j(this.logger,t)}}var L=new j;class P{constructor(){this.observers={}}on(t,i){return t.split(" ").forEach((t=>{this.observers[t]||(this.observers[t]=new Map);const e=this.observers[t].get(i)||0;this.observers[t].set(i,e+1)})),this}off(t,i){this.observers[t]&&(i?this.observers[t].delete(i):delete this.observers[t])}emit(t,...i){this.observers[t]&&Array.from(this.observers[t].entries()).forEach((([t,e])=>{for(let s=0;s<e;s++)t(...i)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((([e,s])=>{for(let o=0;o<s;o++)e.apply(e,[t,...i])}))}}class M extends P{constructor(t,i={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=i,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const i=this.options.ns.indexOf(t);i>-1&&this.options.ns.splice(i,1)}getResource(t,i,e,s={}){const o=void 0!==s.keySeparator?s.keySeparator:this.options.keySeparator,n=void 0!==s.ignoreJSONStructure?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let r;t.indexOf(".")>-1?r=t.split("."):(r=[t,i],e&&(Array.isArray(e)?r.push(...e):d(e)&&o?r.push(...e.split(o)):r.push(e)));const a=v(this.data,r);return!a&&!i&&!e&&t.indexOf(".")>-1&&(t=r[0],i=r[1],e=r.slice(2).join(".")),!a&&n&&d(e)?I(this.data?.[t]?.[i],e,o):a}addResource(t,i,e,s,o={silent:!1}){const n=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let r=[t,i];e&&(r=r.concat(n?e.split(n):e)),t.indexOf(".")>-1&&(r=t.split("."),s=i,i=r[1]),this.addNamespaces(i),w(this.data,r,s),o.silent||this.emit("added",t,i,e,s)}addResources(t,i,e,s={silent:!1}){for(const s in e)(d(e[s])||Array.isArray(e[s]))&&this.addResource(t,i,s,e[s],{silent:!0});s.silent||this.emit("added",t,i,e)}addResourceBundle(t,i,e,s,o,n={silent:!1,skipCopy:!1}){let r=[t,i];t.indexOf(".")>-1&&(r=t.split("."),s=e,e=i,i=r[1]),this.addNamespaces(i);let a=v(this.data,r)||{};n.skipCopy||(e=JSON.parse(JSON.stringify(e))),s?x(a,e,o):a={...a,...e},w(this.data,r,a),n.silent||this.emit("added",t,i,e)}removeResourceBundle(t,i){this.hasResourceBundle(t,i)&&delete this.data[t][i],this.removeNamespaces(i),this.emit("removed",t,i)}hasResourceBundle(t,i){return void 0!==this.getResource(t,i)}getResourceBundle(t,i){return i||(i=this.options.defaultNS),this.getResource(t,i)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const i=this.getDataByLanguage(t);return!!(i&&Object.keys(i)||[]).find((t=>i[t]&&Object.keys(i[t]).length>0))}toJSON(){return this.data}}var C={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,i,e,s,o){return t.forEach((t=>{i=this.processors[t]?.process(i,e,s,o)??i})),i}};const D=Symbol("i18next/PATH_KEY");function N(t,i){const{[D]:e}=t(function(){const t=[],i=Object.create(null);let e;return i.get=(s,o)=>(e?.revoke?.(),o===D?t:(t.push(o),e=Proxy.revocable(s,i),e.proxy)),Proxy.revocable(Object.create(null),i).proxy}()),s=i?.keySeparator??".",o=i?.nsSeparator??":";if(e.length>1&&o){const t=i?.ns,n=Array.isArray(t)?t:null;if(n&&n.length>1&&n.slice(1).includes(e[0]))return`${e[0]}${o}${e.slice(1).join(s)}`}return e.join(s)}const R={},T=t=>!d(t)&&"boolean"!=typeof t&&"number"!=typeof t;class K extends P{constructor(t,i={}){var e,s;super(),e=t,s=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((t=>{e[t]&&(s[t]=e[t])})),this.options=i,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=L.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,i={interpolation:{}}){const e={...i};if(null==t)return!1;const s=this.resolve(t,e);if(void 0===s?.res)return!1;const o=T(s.res);return!1!==e.returnObjects||!o}extractFromKey(t,i){let e=void 0!==i.nsSeparator?i.nsSeparator:this.options.nsSeparator;void 0===e&&(e=":");const s=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let o=i.ns||this.options.defaultNS||[];const n=e&&t.indexOf(e)>-1,r=!(this.options.userDefinedKeySeparator||i.keySeparator||this.options.userDefinedNsSeparator||i.nsSeparator||((t,i,e)=>{i=i||"",e=e||"";const s=S.filter((t=>i.indexOf(t)<0&&e.indexOf(t)<0));if(0===s.length)return!0;const o=E.getRegExp(`(${s.map((t=>"?"===t?"\\?":t)).join("|")})`);let n=!o.test(t);if(!n){const i=t.indexOf(e);i>0&&!o.test(t.substring(0,i))&&(n=!0)}return n})(t,e,s));if(n&&!r){const i=t.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:t,namespaces:d(o)?[o]:o};const n=t.split(e);(e!==s||e===s&&this.options.ns.indexOf(n[0])>-1)&&(o=n.shift()),t=n.join(s)}return{key:t,namespaces:d(o)?[o]:o}}translate(t,i,e){let s="object"==typeof i?{...i}:i;if("object"!=typeof s&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof s&&(s={...s}),s||(s={}),null==t)return"";"function"==typeof t&&(t=N(t,{...this.options,...s})),Array.isArray(t)||(t=[String(t)]),t=t.map((t=>"function"==typeof t?N(t,{...this.options,...s}):String(t)));const o=void 0!==s.returnDetails?s.returnDetails:this.options.returnDetails,n=void 0!==s.keySeparator?s.keySeparator:this.options.keySeparator,{key:r,namespaces:a}=this.extractFromKey(t[t.length-1],s),h=a[a.length-1];let l=void 0!==s.nsSeparator?s.nsSeparator:this.options.nsSeparator;void 0===l&&(l=":");const u=s.lng||this.language,c=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===u?.toLowerCase())return c?o?{res:`${h}${l}${r}`,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:h,usedParams:this.getUsedParamsDetails(s)}:`${h}${l}${r}`:o?{res:r,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:h,usedParams:this.getUsedParamsDetails(s)}:r;const g=this.resolve(t,s);let p=g?.res;const f=g?.usedKey||r,m=g?.exactUsedKey||r,y=void 0!==s.joinArrays?s.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,w=void 0!==s.count&&!d(s.count),v=K.hasDefaultValue(s),x=w?this.pluralResolver.getSuffix(u,s.count,s):"",$=s.ordinal&&w?this.pluralResolver.getSuffix(u,s.count,{ordinal:!1}):"",A=w&&!s.ordinal&&0===s.count,k=A&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${x}`]||s[`defaultValue${$}`]||s.defaultValue;let S=p;b&&!p&&v&&(S=k);const E=T(S),I=Object.prototype.toString.apply(S);if(!(b&&S&&E&&["[object Number]","[object Function]","[object RegExp]"].indexOf(I)<0)||d(y)&&Array.isArray(S))if(b&&d(y)&&Array.isArray(p))p=p.join(y),p&&(p=this.extendTranslation(p,t,s,e));else{let i=!1,o=!1;!this.isValidLookup(p)&&v&&(i=!0,p=k),this.isValidLookup(p)||(o=!0,p=r);const a=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:p,c=v&&k!==p&&this.options.updateMissing;if(o||i||c){if(this.logger.log(c?"updateKey":"missingKey",u,h,r,c?k:p),n){const t=this.resolve(r,{...s,keySeparator:!1});t&&t.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let t=[];const i=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if("fallback"===this.options.saveMissingTo&&i&&i[0])for(let e=0;e<i.length;e++)t.push(i[e]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(s.lng||this.language):t.push(s.lng||this.language);const e=(t,i,e)=>{const o=v&&e!==p?e:a;this.options.missingKeyHandler?this.options.missingKeyHandler(t,h,i,o,c,s):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(t,h,i,o,c,s),this.emit("missingKey",t,h,i,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&w?t.forEach((t=>{const i=this.pluralResolver.getSuffixes(t,s);A&&s[`defaultValue${this.options.pluralSeparator}zero`]&&i.indexOf(`${this.options.pluralSeparator}zero`)<0&&i.push(`${this.options.pluralSeparator}zero`),i.forEach((i=>{e([t],r+i,s[`defaultValue${i}`]||k)}))})):e(t,r,k))}p=this.extendTranslation(p,t,s,g,e),o&&p===r&&this.options.appendNamespaceToMissingKey&&(p=`${h}${l}${r}`),(o||i)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${h}${l}${r}`:r,i?p:void 0,s))}else{if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,S,{...s,ns:a}):`key '${r} (${this.language})' returned an object instead of string.`;return o?(g.res=t,g.usedParams=this.getUsedParamsDetails(s),g):t}if(n){const t=Array.isArray(S),i=t?[]:{},e=t?m:f;for(const t in S)if(Object.prototype.hasOwnProperty.call(S,t)){const o=`${e}${n}${t}`;i[t]=this.translate(o,v&&!p?{...s,defaultValue:T(k)?k[t]:void 0,joinArrays:!1,ns:a}:{...s,joinArrays:!1,ns:a}),i[t]===o&&(i[t]=S[t])}p=i}}return o?(g.res=p,g.usedParams=this.getUsedParamsDetails(s),g):p}extendTranslation(t,i,e,s,o){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...e},e.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!e.skipInterpolation){e.interpolation&&this.interpolator.init({...e,interpolation:{...this.options.interpolation,...e.interpolation}});const n=d(t)&&(void 0!==e?.interpolation?.skipOnVariables?e.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let r;if(n){const i=t.match(this.interpolator.nestingRegexp);r=i&&i.length}let a=e.replace&&!d(e.replace)?e.replace:e;if(this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),t=this.interpolator.interpolate(t,a,e.lng||this.language||s.usedLng,e),n){const i=t.match(this.interpolator.nestingRegexp);r<(i&&i.length)&&(e.nest=!1)}!e.lng&&s&&s.res&&(e.lng=this.language||s.usedLng),!1!==e.nest&&(t=this.interpolator.nest(t,((...t)=>o?.[0]!==t[0]||e.context?this.translate(...t,i):(this.logger.warn(`It seems you are nesting recursively key: ${t[0]} in key: ${i[0]}`),null)),e)),e.interpolation&&this.interpolator.reset()}const n=e.postProcess||this.options.postProcess,r=d(n)?[n]:n;return null!=t&&r?.length&&!1!==e.applyPostProcessor&&(t=C.handle(r,t,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(e)},...e}:e,this)),t}resolve(t,i={}){let e,s,o,n,r;return d(t)&&(t=[t]),Array.isArray(t)&&(t=t.map((t=>"function"==typeof t?N(t,{...this.options,...i}):t))),t.forEach((t=>{if(this.isValidLookup(e))return;const a=this.extractFromKey(t,i),h=a.key;s=h;let l=a.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));const u=void 0!==i.count&&!d(i.count),c=u&&!i.ordinal&&0===i.count,g=void 0!==i.context&&(d(i.context)||"number"==typeof i.context)&&""!==i.context,p=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);l.forEach((t=>{this.isValidLookup(e)||(r=t,R[`${p[0]}-${t}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(r)||(R[`${p[0]}-${t}`]=!0,this.logger.warn(`key "${s}" for languages "${p.join(", ")}" won't get resolved as namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((s=>{if(this.isValidLookup(e))return;n=s;const r=[h];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(r,h,s,t,i);else{let t;u&&(t=this.pluralResolver.getSuffix(s,i.count,i));const e=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(i.ordinal&&0===t.indexOf(o)&&r.push(h+t.replace(o,this.options.pluralSeparator)),r.push(h+t),c&&r.push(h+e)),g){const s=`${h}${this.options.contextSeparator||"_"}${i.context}`;r.push(s),u&&(i.ordinal&&0===t.indexOf(o)&&r.push(s+t.replace(o,this.options.pluralSeparator)),r.push(s+t),c&&r.push(s+e))}}let a;for(;a=r.pop();)this.isValidLookup(e)||(o=a,e=this.getResource(s,t,a,i))})))}))})),{res:e,usedKey:s,exactUsedKey:o,usedLng:n,usedNS:r}}isValidLookup(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}getResource(t,i,e,s={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,i,e,s):this.resourceStore.getResource(t,i,e,s)}getUsedParamsDetails(t={}){const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],e=t.replace&&!d(t.replace);let s=e?t.replace:t;if(e&&void 0!==t.count&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!e){s={...s};for(const t of i)delete s[t]}return s}static hasDefaultValue(t){for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&"defaultValue"===i.substring(0,12)&&void 0!==t[i])return!0;return!1}}class H{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=L.create("languageUtils")}getScriptPartFromCode(t){if(!(t=W(t))||t.indexOf("-")<0)return null;const i=t.split("-");return 2===i.length?null:(i.pop(),"x"===i[i.length-1].toLowerCase()?null:this.formatLanguageCode(i.join("-")))}getLanguagePartFromCode(t){if(!(t=W(t))||t.indexOf("-")<0)return t;const i=t.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(t){if(d(t)&&t.indexOf("-")>-1){let i;try{i=Intl.getCanonicalLocales(t)[0]}catch(t){}return i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let i;return t.forEach((t=>{if(i)return;const e=this.formatLanguageCode(t);this.options.supportedLngs&&!this.isSupportedCode(e)||(i=e)})),!i&&this.options.supportedLngs&&t.forEach((t=>{if(i)return;const e=this.getScriptPartFromCode(t);if(this.isSupportedCode(e))return i=e;const s=this.getLanguagePartFromCode(t);if(this.isSupportedCode(s))return i=s;i=this.options.supportedLngs.find((t=>t===s?t:t.indexOf("-")<0&&s.indexOf("-")<0?void 0:t.indexOf("-")>0&&s.indexOf("-")<0&&t.substring(0,t.indexOf("-"))===s||0===t.indexOf(s)&&s.length>1?t:void 0))})),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(t,i){if(!t)return[];if("function"==typeof t&&(t=t(i)),d(t)&&(t=[t]),Array.isArray(t))return t;if(!i)return t.default||[];let e=t[i];return e||(e=t[this.getScriptPartFromCode(i)]),e||(e=t[this.formatLanguageCode(i)]),e||(e=t[this.getLanguagePartFromCode(i)]),e||(e=t.default),e||[]}toResolveHierarchy(t,i){const e=this.getFallbackCodes((!1===i?[]:i)||this.options.fallbackLng||[],t),s=[],o=t=>{t&&(this.isSupportedCode(t)?s.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return d(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(t))):d(t)&&o(this.formatLanguageCode(t)),e.forEach((t=>{s.indexOf(t)<0&&o(this.formatLanguageCode(t))})),s}}const z={zero:0,one:1,two:2,few:3,many:4,other:5},B={select:t=>1===t?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class F{constructor(t,i={}){this.languageUtils=t,this.options=i,this.logger=L.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,i={}){const e=W("dev"===t?"en":t),s=i.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:e,type:s});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let n;try{n=new Intl.PluralRules(e,{type:s})}catch(e){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),B;if(!t.match(/-|_/))return B;const s=this.languageUtils.getLanguagePartFromCode(t);n=this.getRule(s,i)}return this.pluralRulesCache[o]=n,n}needsPlural(t,i={}){let e=this.getRule(t,i);return e||(e=this.getRule("dev",i)),e?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,i,e={}){return this.getSuffixes(t,e).map((t=>`${i}${t}`))}getSuffixes(t,i={}){let e=this.getRule(t,i);return e||(e=this.getRule("dev",i)),e?e.resolvedOptions().pluralCategories.sort(((t,i)=>z[t]-z[i])).map((t=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${t}`)):[]}getSuffix(t,i,e={}){const s=this.getRule(t,e);return s?`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${s.select(i)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",i,e))}}const q=(t,i,e,s=".",o=!0)=>{let n=((t,i,e)=>{const s=v(t,e);return void 0!==s?s:v(i,e)})(t,i,e);return!n&&o&&d(e)&&(n=I(t,e,s),void 0===n&&(n=I(i,e,s))),n},V=t=>t.replace(/\$/g,"$$$$");class _{constructor(t={}){this.logger=L.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(t=>t),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:i,escapeValue:e,useRawValueToEscape:s,prefix:o,prefixEscaped:n,suffix:r,suffixEscaped:a,formatSeparator:h,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:c,nestingPrefixEscaped:d,nestingSuffix:g,nestingSuffixEscaped:p,nestingOptionsSeparator:f,maxReplaces:m,alwaysFormat:y}=t.interpolation;this.escape=void 0!==i?i:k,this.escapeValue=void 0===e||e,this.useRawValueToEscape=void 0!==s&&s,this.prefix=o?$(o):n||"{{",this.suffix=r?$(r):a||"}}",this.formatSeparator=h||",",this.unescapePrefix=l?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=c?$(c):d||$("$t("),this.nestingSuffix=g?$(g):p||$(")"),this.nestingOptionsSeparator=f||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(t,i)=>t?.source===i?(t.lastIndex=0,t):new RegExp(i,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,i,e,s){let o,n,r;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=t=>{if(t.indexOf(this.formatSeparator)<0){const o=q(i,a,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,e,{...s,...i,interpolationkey:t}):o}const o=t.split(this.formatSeparator),n=o.shift().trim(),r=o.join(this.formatSeparator).trim();return this.format(q(i,a,n,this.options.keySeparator,this.options.ignoreJSONStructure),r,e,{...s,...i,interpolationkey:n})};this.resetRegExp();const l=s?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=void 0!==s?.interpolation?.skipOnVariables?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t=>V(t)},{regex:this.regexp,safeValue:t=>V(this.escapeValue?this.escape(t):t)}].forEach((i=>{for(r=0;o=i.regex.exec(t);){const e=o[1].trim();if(n=h(e),void 0===n)if("function"==typeof l){const i=l(t,o,s);n=d(i)?i:""}else if(s&&Object.prototype.hasOwnProperty.call(s,e))n="";else{if(u){n=o[0];continue}this.logger.warn(`missed to pass in variable ${e} for interpolating ${t}`),n=""}else d(n)||this.useRawValueToEscape||(n=p(n));const a=i.safeValue(n);if(t=t.replace(o[0],a),u?(i.regex.lastIndex+=n.length,i.regex.lastIndex-=o[0].length):i.regex.lastIndex=0,r++,r>=this.maxReplaces)break}})),t}nest(t,i,e={}){let s,o,n;const r=(t,i)=>{const e=this.nestingOptionsSeparator;if(t.indexOf(e)<0)return t;const s=t.split(new RegExp(`${$(e)}[ ]*{`));let o=`{${s[1]}`;t=s[0],o=this.interpolate(o,n);const r=o.match(/'/g),a=o.match(/"/g);((r?.length??0)%2==0&&!a||(a?.length??0)%2!=0)&&(o=o.replace(/'/g,'"'));try{n=JSON.parse(o),i&&(n={...i,...n})}catch(i){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,i),`${t}${e}${o}`}return n.defaultValue&&n.defaultValue.indexOf(this.prefix)>-1&&delete n.defaultValue,t};for(;s=this.nestingRegexp.exec(t);){let a=[];n={...e},n=n.replace&&!d(n.replace)?n.replace:n,n.applyPostProcessor=!1,delete n.defaultValue;const h=/{.*}/.test(s[1])?s[1].lastIndexOf("}")+1:s[1].indexOf(this.formatSeparator);if(-1!==h&&(a=s[1].slice(h).split(this.formatSeparator).map((t=>t.trim())).filter(Boolean),s[1]=s[1].slice(0,h)),o=i(r.call(this,s[1].trim(),n),n),o&&s[0]===t&&!d(o))return o;d(o)||(o=p(o)),o||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),o=""),a.length&&(o=a.reduce(((t,i)=>this.format(t,i,e.lng,{...e,interpolationkey:s[1].trim()})),o.trim())),t=t.replace(s[0],o),this.regexp.lastIndex=0}return t}}const U=t=>{const i={};return(e,s,o)=>{let n=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(n={...n,[o.interpolationkey]:void 0});const r=s+JSON.stringify(n);let a=i[r];return a||(a=t(W(s),o),i[r]=a),a(e)}},J=t=>(i,e,s)=>t(W(e),s)(i);class Y{constructor(t={}){this.logger=L.create("formatter"),this.options=t,this.init(t)}init(t,i={interpolation:{}}){this.formatSeparator=i.interpolation.formatSeparator||",";const e=i.cacheInBuiltFormats?U:J;this.formats={number:e(((t,i)=>{const e=new Intl.NumberFormat(t,{...i});return t=>e.format(t)})),currency:e(((t,i)=>{const e=new Intl.NumberFormat(t,{...i,style:"currency"});return t=>e.format(t)})),datetime:e(((t,i)=>{const e=new Intl.DateTimeFormat(t,{...i});return t=>e.format(t)})),relativetime:e(((t,i)=>{const e=new Intl.RelativeTimeFormat(t,{...i});return t=>e.format(t,i.range||"day")})),list:e(((t,i)=>{const e=new Intl.ListFormat(t,{...i});return t=>e.format(t)}))}}add(t,i){this.formats[t.toLowerCase().trim()]=i}addCached(t,i){this.formats[t.toLowerCase().trim()]=U(i)}format(t,i,e,s={}){const o=i.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find((t=>t.indexOf(")")>-1))){const t=o.findIndex((t=>t.indexOf(")")>-1));o[0]=[o[0],...o.splice(1,t)].join(this.formatSeparator)}return o.reduce(((t,i)=>{const{formatName:o,formatOptions:n}=(t=>{let i=t.toLowerCase().trim();const e={};if(t.indexOf("(")>-1){const s=t.split("(");i=s[0].toLowerCase().trim();const o=s[1].substring(0,s[1].length-1);"currency"===i&&o.indexOf(":")<0?e.currency||(e.currency=o.trim()):"relativetime"===i&&o.indexOf(":")<0?e.range||(e.range=o.trim()):o.split(";").forEach((t=>{if(t){const[i,...s]=t.split(":"),o=s.join(":").trim().replace(/^'+|'+$/g,""),n=i.trim();e[n]||(e[n]=o),"false"===o&&(e[n]=!1),"true"===o&&(e[n]=!0),isNaN(o)||(e[n]=parseInt(o,10))}}))}return{formatName:i,formatOptions:e}})(i);if(this.formats[o]){let i=t;try{const r=s?.formatParams?.[s.interpolationkey]||{};i=this.formats[o](t,r.locale||r.lng||s.locale||s.lng||e,{...n,...s,...r})}catch(t){this.logger.warn(t)}return i}return this.logger.warn(`there was no format function for ${o}`),t}),t)}}class G extends P{constructor(t,i,e,s={}){super(),this.backend=t,this.store=i,this.services=e,this.languageUtils=e.languageUtils,this.options=s,this.logger=L.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(e,s.backend,s)}queueLoad(t,i,e,s){const o={},n={},r={},a={};return t.forEach((t=>{let s=!0;i.forEach((i=>{const r=`${t}|${i}`;!e.reload&&this.store.hasResourceBundle(t,i)?this.state[r]=2:this.state[r]<0||(1===this.state[r]?void 0===n[r]&&(n[r]=!0):(this.state[r]=1,s=!1,void 0===n[r]&&(n[r]=!0),void 0===o[r]&&(o[r]=!0),void 0===a[i]&&(a[i]=!0)))})),s||(r[t]=!0)})),(Object.keys(o).length||Object.keys(n).length)&&this.queue.push({pending:n,pendingCount:Object.keys(n).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(o),pending:Object.keys(n),toLoadLanguages:Object.keys(r),toLoadNamespaces:Object.keys(a)}}loaded(t,i,e){const s=t.split("|"),o=s[0],n=s[1];i&&this.emit("failedLoading",o,n,i),!i&&e&&this.store.addResourceBundle(o,n,e,void 0,void 0,{skipCopy:!0}),this.state[t]=i?-1:2,i&&e&&(this.state[t]=0);const r={};this.queue.forEach((e=>{((t,i,e)=>{const{obj:s,k:o}=b(t,i,Object);s[o]=s[o]||[],s[o].push(e)})(e.loaded,[o],n),((t,i)=>{void 0!==t.pending[i]&&(delete t.pending[i],t.pendingCount--)})(e,t),i&&e.errors.push(i),0!==e.pendingCount||e.done||(Object.keys(e.loaded).forEach((t=>{r[t]||(r[t]={});const i=e.loaded[t];i.length&&i.forEach((i=>{void 0===r[t][i]&&(r[t][i]=!0)}))})),e.done=!0,e.errors.length?e.callback(e.errors):e.callback())})),this.emit("loaded",r),this.queue=this.queue.filter((t=>!t.done))}read(t,i,e,s=0,o=this.retryTimeout,n){if(!t.length)return n(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:i,fcName:e,tried:s,wait:o,callback:n});this.readingCalls++;const r=(r,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}r&&a&&s<this.maxRetries?setTimeout((()=>{this.read.call(this,t,i,e,s+1,2*o,n)}),o):n(r,a)},a=this.backend[e].bind(this.backend);if(2!==a.length)return a(t,i,r);try{const e=a(t,i);e&&"function"==typeof e.then?e.then((t=>r(null,t))).catch(r):r(null,e)}catch(t){r(t)}}prepareLoading(t,i,e={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();d(t)&&(t=this.languageUtils.toResolveHierarchy(t)),d(i)&&(i=[i]);const o=this.queueLoad(t,i,e,s);if(!o.toLoad.length)return o.pending.length||s(),null;o.toLoad.forEach((t=>{this.loadOne(t)}))}load(t,i,e){this.prepareLoading(t,i,{},e)}reload(t,i,e){this.prepareLoading(t,i,{reload:!0},e)}loadOne(t,i=""){const e=t.split("|"),s=e[0],o=e[1];this.read(s,o,"read",void 0,void 0,((e,n)=>{e&&this.logger.warn(`${i}loading namespace ${o} for language ${s} failed`,e),!e&&n&&this.logger.log(`${i}loaded namespace ${o} for language ${s}`,n),this.loaded(t,e,n)}))}saveMissing(t,i,e,s,o,n={},r=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(i)){if(null!=e&&""!==e){if(this.backend?.create){const a={...n,isUpdate:o},h=this.backend.create.bind(this.backend);if(h.length<6)try{let o;o=5===h.length?h(t,i,e,s,a):h(t,i,e,s),o&&"function"==typeof o.then?o.then((t=>r(null,t))).catch(r):r(null,o)}catch(t){r(t)}else h(t,i,e,s,r,a)}t&&t[0]&&this.store.addResource(t[0],i,e,s)}}else this.logger.warn(`did not save key "${e}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const Q=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let i={};if("object"==typeof t[1]&&(i=t[1]),d(t[1])&&(i.defaultValue=t[1]),d(t[2])&&(i.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){const e=t[3]||t[2];Object.keys(e).forEach((t=>{i[t]=e[t]}))}return i},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Z=t=>(d(t.ns)&&(t.ns=[t.ns]),d(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),d(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),"boolean"==typeof t.initImmediate&&(t.initAsync=t.initImmediate),t),X=()=>{},tt="__i18next_supportNoticeShown";class it extends P{constructor(t={},i){var e;if(super(),this.options=Z(t),this.services={},this.logger=L,this.modules={external:[]},e=this,Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})),i&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,i),this;setTimeout((()=>{this.init(t,i)}),0)}}init(t={},i){this.isInitializing=!0,"function"==typeof t&&(i=t,t={}),null==t.defaultNS&&t.ns&&(d(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const e=Q();var s;this.options={...e,...this.options,...Z(t)},this.options.interpolation={...e.interpolation,...this.options.interpolation},void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=e.overloadTranslationOptionHandler),!1===this.options.showSupportNotice||(s=this,s?.modules?.backend?.name?.indexOf("Locize")>0||s?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||s?.options?.backend?.backends&&s.options.backend.backends.some((t=>t?.name?.indexOf("Locize")>0||t?.constructor?.name?.indexOf("Locize")>0))||s?.options?.backend?.projectId||s?.options?.backend?.backendOptions&&s.options.backend.backendOptions.some((t=>t?.projectId)))||"undefined"!=typeof globalThis&&globalThis[tt]||"undefined"!=typeof process&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||"undefined"!=typeof process&&process.env||("undefined"!=typeof console&&void 0!==console.info&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),"undefined"!=typeof globalThis&&(globalThis[tt]=!0));const o=t=>t?"function"==typeof t?new t:t:null;if(!this.options.isClone){let t;L.init(this.modules.logger?o(this.modules.logger):null,this.options),t=this.modules.formatter?this.modules.formatter:Y;const i=new H(this.options);this.store=new M(this.options.resources,this.options);const s=this.services;s.logger=L,s.resourceStore=this.store,s.languageUtils=i,s.pluralResolver=new F(i,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==e.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!t||this.options.interpolation.format&&this.options.interpolation.format!==e.interpolation.format||(s.formatter=o(t),s.formatter.init&&s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new _(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new G(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",((t,...i)=>{this.emit(t,...i)})),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new K(this.services,this.options),this.translator.on("*",((t,...i)=>{this.emit(t,...i)})),this.modules.external.forEach((t=>{t.init&&t.init(this)}))}if(this.format=this.options.interpolation.format,i||(i=X),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=(...i)=>this.store[t](...i)})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=(...i)=>(this.store[t](...i),this)}));const n=g(),r=()=>{const t=(t,e)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),n.resolve(e),i(t,e)};if(this.languages&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initAsync?r():setTimeout(r,0),n}loadResources(t,i=X){let e=i;const s=d(t)?t:this.language;if("function"==typeof t&&(e=t),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===s?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return e();const t=[],i=i=>{i&&"cimode"!==i&&this.services.languageUtils.toResolveHierarchy(i).forEach((i=>{"cimode"!==i&&t.indexOf(i)<0&&t.push(i)}))};s?i(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((t=>i(t))),this.options.preload?.forEach?.((t=>i(t))),this.services.backendConnector.load(t,this.options.ns,(t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(t)}))}else e(null)}reloadResources(t,i,e){const s=g();return"function"==typeof t&&(e=t,t=void 0),"function"==typeof i&&(e=i,i=void 0),t||(t=this.languages),i||(i=this.options.ns),e||(e=X),this.services.backendConnector.reload(t,i,(t=>{s.resolve(),e(t)})),s}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&C.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1)){for(let t=0;t<this.languages.length;t++){const i=this.languages[t];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,i){this.isLanguageChangingTo=t;const e=g();this.emit("languageChanging",t);const s=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},o=(o,n)=>{n?this.isLanguageChangingTo===t&&(s(n),this.translator.changeLanguage(n),this.isLanguageChangingTo=void 0,this.emit("languageChanged",n),this.logger.log("languageChanged",n)):this.isLanguageChangingTo=void 0,e.resolve(((...t)=>this.t(...t))),i&&i(o,((...t)=>this.t(...t)))},n=i=>{t||i||!this.services.languageDetector||(i=[]);const e=d(i)?i:i&&i[0],n=this.store.hasLanguageSomeTranslations(e)?e:this.services.languageUtils.getBestMatchFromCodes(d(i)?[i]:i);n&&(this.language||s(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector?.cacheUserLanguage?.(n)),this.loadResources(n,(t=>{o(t,n)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(n):this.services.languageDetector.detect(n):n(t):n(this.services.languageDetector.detect()),e}getFixedT(t,i,e){const s=(t,i,...o)=>{let n;n="object"!=typeof i?this.options.overloadTranslationOptionHandler([t,i].concat(o)):{...i},n.lng=n.lng||s.lng,n.lngs=n.lngs||s.lngs,n.ns=n.ns||s.ns,""!==n.keyPrefix&&(n.keyPrefix=n.keyPrefix||e||s.keyPrefix);const r={...this.options,...n};"function"==typeof n.keyPrefix&&(n.keyPrefix=N(n.keyPrefix,r));const a=this.options.keySeparator||".";let h;return n.keyPrefix&&Array.isArray(t)?h=t.map((t=>("function"==typeof t&&(t=N(t,r)),`${n.keyPrefix}${a}${t}`))):("function"==typeof t&&(t=N(t,r)),h=n.keyPrefix?`${n.keyPrefix}${a}${t}`:t),this.t(h,n)};return d(t)?s.lng=t:s.lngs=t,s.ns=i,s.keyPrefix=e,s}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,i={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const e=i.lng||this.resolvedLanguage||this.languages[0],s=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===e.toLowerCase())return!0;const n=(t,i)=>{const e=this.services.backendConnector.state[`${t}|${i}`];return-1===e||0===e||2===e};if(i.precheck){const t=i.precheck(this,n);if(void 0!==t)return t}return!(!this.hasResourceBundle(e,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!n(e,t)||s&&!n(o,t)))}loadNamespaces(t,i){const e=g();return this.options.ns?(d(t)&&(t=[t]),t.forEach((t=>{this.options.ns.indexOf(t)<0&&this.options.ns.push(t)})),this.loadResources((t=>{e.resolve(),i&&i(t)})),e):(i&&i(),Promise.resolve())}loadLanguages(t,i){const e=g();d(t)&&(t=[t]);const s=this.options.preload||[],o=t.filter((t=>s.indexOf(t)<0&&this.services.languageUtils.isSupportedCode(t)));return o.length?(this.options.preload=s.concat(o),this.loadResources((t=>{e.resolve(),i&&i(t)})),e):(i&&i(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const i=new Intl.Locale(t);if(i&&i.getTextInfo){const t=i.getTextInfo();if(t&&t.direction)return t.direction}}catch(t){}const i=this.services?.languageUtils||new H(Q());return t.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},i){const e=new it(t,i);return e.createInstance=it.createInstance,e}cloneInstance(t={},i=X){const e=t.forkResourceStore;e&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},o=new it(s);if(void 0===t.debug&&void 0===t.prefix||(o.logger=o.logger.clone(t)),["store","services","language"].forEach((t=>{o[t]=this[t]})),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},e){const t=Object.keys(this.store.data).reduce(((t,i)=>(t[i]={...this.store.data[i]},t[i]=Object.keys(t[i]).reduce(((e,s)=>(e[s]={...t[i][s]},e)),t[i]),t)),{});o.store=new M(t,s),o.services.resourceStore=o.store}if(t.interpolation){const i={...Q().interpolation,...this.options.interpolation,...t.interpolation},e={...s,interpolation:i};o.services.interpolator=new _(e)}return o.translator=new K(o.services,s),o.translator.on("*",((t,...i)=>{o.emit(t,...i)})),o.init(s,i),o.translator.options=s,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const et=it.createInstance(),{slice:st,forEach:ot}=[],nt=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,rt={create(t,i,e,s){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};e&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+60*e*1e3)),s&&(o.domain=s),document.cookie=function(t,i){const e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"};let s=`${t}=${encodeURIComponent(i)}`;if(e.maxAge>0){const t=e.maxAge-0;if(Number.isNaN(t))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(t)}`}if(e.domain){if(!nt.test(e.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${e.domain}`}if(e.path){if(!nt.test(e.path))throw new TypeError("option path is invalid");s+=`; Path=${e.path}`}if(e.expires){if("function"!=typeof e.expires.toUTCString)throw new TypeError("option expires is invalid");s+=`; Expires=${e.expires.toUTCString()}`}if(e.httpOnly&&(s+="; HttpOnly"),e.secure&&(s+="; Secure"),e.sameSite)switch("string"==typeof e.sameSite?e.sameSite.toLowerCase():e.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return e.partitioned&&(s+="; Partitioned"),s}(t,i,o)},read(t){const i=`${t}=`,e=document.cookie.split(";");for(let t=0;t<e.length;t++){let s=e[t];for(;" "===s.charAt(0);)s=s.substring(1,s.length);if(0===s.indexOf(i))return s.substring(i.length,s.length)}return null},remove(t,i){this.create(t,"",-1,i)}};var at={name:"cookie",lookup(t){let{lookupCookie:i}=t;if(i&&"undefined"!=typeof document)return rt.read(i)||void 0},cacheUserLanguage(t,i){let{lookupCookie:e,cookieMinutes:s,cookieDomain:o,cookieOptions:n}=i;e&&"undefined"!=typeof document&&rt.create(e,t,s,o,n)}},ht={name:"querystring",lookup(t){let i,{lookupQuerystring:e}=t;if("undefined"!=typeof window){let{search:t}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(t=window.location.hash.substring(window.location.hash.indexOf("?")));const s=t.substring(1).split("&");for(let t=0;t<s.length;t++){const o=s[t].indexOf("=");o>0&&s[t].substring(0,o)===e&&(i=s[t].substring(o+1))}}return i}},lt={name:"hash",lookup(t){let i,{lookupHash:e,lookupFromHashIndex:s}=t;if("undefined"!=typeof window){const{hash:t}=window.location;if(t&&t.length>2){const o=t.substring(1);if(e){const t=o.split("&");for(let s=0;s<t.length;s++){const o=t[s].indexOf("=");o>0&&t[s].substring(0,o)===e&&(i=t[s].substring(o+1))}}if(i)return i;if(!i&&s>-1){const i=t.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(i))return;const e="number"==typeof s?s:0;return i[e]?.replace("/","")}}}return i}};let ut=null;const ct=()=>{if(null!==ut)return ut;try{if(ut="undefined"!=typeof window&&null!==window.localStorage,!ut)return!1;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch(t){ut=!1}return ut};var dt={name:"localStorage",lookup(t){let{lookupLocalStorage:i}=t;if(i&&ct())return window.localStorage.getItem(i)||void 0},cacheUserLanguage(t,i){let{lookupLocalStorage:e}=i;e&&ct()&&window.localStorage.setItem(e,t)}};let gt=null;const pt=()=>{if(null!==gt)return gt;try{if(gt="undefined"!=typeof window&&null!==window.sessionStorage,!gt)return!1;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch(t){gt=!1}return gt};var ft={name:"sessionStorage",lookup(t){let{lookupSessionStorage:i}=t;if(i&&pt())return window.sessionStorage.getItem(i)||void 0},cacheUserLanguage(t,i){let{lookupSessionStorage:e}=i;e&&pt()&&window.sessionStorage.setItem(e,t)}},mt={name:"navigator",lookup(t){const i=[];if("undefined"!=typeof navigator){const{languages:t,userLanguage:e,language:s}=navigator;if(t)for(let e=0;e<t.length;e++)i.push(t[e]);e&&i.push(e),s&&i.push(s)}return i.length>0?i:void 0}},yt={name:"htmlTag",lookup(t){let i,{htmlTag:e}=t;const s=e||("undefined"!=typeof document?document.documentElement:null);return s&&"function"==typeof s.getAttribute&&(i=s.getAttribute("lang")),i}},bt={name:"path",lookup(t){let{lookupFromPathIndex:i}=t;if("undefined"==typeof window)return;const e=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(e))return;const s="number"==typeof i?i:0;return e[s]?.replace("/","")}},wt={name:"subdomain",lookup(t){let{lookupFromSubdomainIndex:i}=t;const e="number"==typeof i?i+1:1,s="undefined"!=typeof window&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(s)return s[e]}};let vt=!1;try{vt=!0}catch(t){}const xt=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];vt||xt.splice(1,1);class $t{constructor(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,i)}init(){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{languageUtils:{}},this.options=function(t){return ot.call(st.call(arguments,1),(i=>{if(i)for(const e in i)void 0===t[e]&&(t[e]=i[e])})),t}(t,this.options||{},{order:xt,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=t=>t.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(at),this.addDetector(ht),this.addDetector(dt),this.addDetector(ft),this.addDetector(mt),this.addDetector(yt),this.addDetector(bt),this.addDetector(wt),this.addDetector(lt)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.order).forEach((i=>{if(this.detectors[i]){let e=this.detectors[i].lookup(this.options);e&&"string"==typeof e&&(e=[e]),e&&(t=t.concat(e))}})),t=t.filter((t=>{return null!=t&&!("string"==typeof(i=t)&&[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some((t=>t.test(i))));var i})).map((t=>this.options.convertDetectedLanguage(t))),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.caches;i&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||i.forEach((i=>{this.detectors[i]&&this.detectors[i].cacheUserLanguage(t,this.options)})))}}$t.type="languageDetector";et.use($t).init({resources:{en:{translation:{" balloon":"Balloon"," box":"Box"," egg":"Egg"," flower":"Flower"," heart":"Heart"," house":"House"," lamp":"Lamp"," moon":"Moon"," rectangle":"Rectangle"," star":"Star"," watermelon":"Watermelon"," trophy":"Trophy"," dog":"Dog"," fish":"Fish"," bird":"Bird"," arrow":"Arrow","Do you want to exit? button":"Do you want to exit?","Exit button":"Exit","Continue playing button":"Continue playing","Drop the elements to match the given symbol order":"Drop the elements to match the given symbol order","Fill in the blanks":"Fill in the blanks",instruction:{dragAndDrop:"Match the items by dragging and dropping them into the correct places.",mcq:"Select the correct answer from the options provided.",tracing:"Trace the shape by following the outline carefully.",flashcards:"Review the flashcards to reinforce your learning.",substractionWithImage:"substractionWithImageEngAudio",substractionWithoutImage:"substractionWithoutImageEngAudio",numberIdentificationWithImage:"numberIdentificationWithImageEngAudio",numberIdentificationWithoutImage:"numberIdentificationWithoutImageEngAudio",wordBuildingWithImage:"wordBuildingWithImageEngAudio",wordBuildingWithoutImage:"wordBuildingWithoutImageEngAudio",pictureClues:"pictureCluesEngAudio",pictureWordMatchMultipleImages:"pictureWordMatchMultipleImagesEngAudio",pictureWordMatchSingleImage:"pictureWordMatchSingleImageEngAudio",sentenceMatch:"sentenceMatchEngAudio",imageMatch:"imageMatchEngAudio",palStoryTale:"palStoryTaleEngAudio",palEgmaPatternMatching:"palEgmaPatternMatchingEngAudio",palEgmaWordProblemDragnDrop:"palEgmaWordProblemDragnDropEngAudio",palEgmaWordProblemClick:"palEgmaWordProblemClickEngAudio",palEgraOddOneOut:"palEgraOddOneOutEngAudio",palEgraArrangePictures:"palEgraArrangePicturesEngAudio",palEgraBuildWord:"palEgraBuildWordEngAudio",palEgraWordFormation:"palEgraWordFormationEngAudio",palInventedSpelling:"palInventedSpellingEngAudio",palLetterIdentification:"palLetterIdentificationEngAudio",palStoryMaking:"palStoryMakingEngAudio",palegmasumtogether:"palegmasumtogetherEngAudio",palegmamultioption:"palegmamultioptionEngAudio",palegraoptionaudio:"palegraoptionaudioEngAudio",palegrawordmatch:"palegrawordmatchEngAudio",palegramcqimages:"palegramcqimagesEngAudio"}}},fr:{translation:{"Do you want to exit? button":"Voulez-vous quitter?","Exit button":"Quitter","Continue playing button":"Continuer à jouer","Drop the elements to match the given symbol order":"Déposez les éléments pour correspondre au symbole donné","Fill in the blanks":"Remplissez les blancs",instruction:{dragAndDrop:"Faites glisser les objets vers le bon emplacement.",mcq:"Choisissez la bonne réponse parmi les options proposées.",tracing:"Tracez soigneusement la forme en suivant la ligne.",flashcards:"Regardez les cartes mémoire pour renforcer l’apprentissage."}}},hi:{translation:{" balloon":"गुब्बारा"," box":"डिब्बा"," egg":"अंडा"," flower":"फूल"," heart":"दिल"," house":"घर"," lamp":"दीपक"," moon":"चंद्रमा"," rectangle":"आयत"," star":"तारा"," watermelon":"तरबूज"," trophy":"ट्रॉफी"," dog":"कुत्ता"," fish":"मछली"," bird":"चिड़िया"," arrow":"तीर","Do you want to exit? button":"क्या आप बाहर निकलना चाहते हैं?","Exit button":"बाहर निकलें","Continue playing button":"खेलना जारी रखें","Drop the elements to match the given symbol order":"दिए गए चिन्ह से मिलाने के लिए तत्वों को ड्रॉप करें","Fill in the blanks":"रिक्त स्थान भरें",instruction:{dragAndDrop:"Match the items by dragging and dropping them into the correct places.",mcq:"Select the correct answer from the options provided.",tracing:"Trace the shape by following the outline carefully.",flashcards:"Review the flashcards to reinforce your learning.",substractionWithImage:"substractionWithImageHiAudio",substractionWithoutImage:"substractionWithoutImageHiAudio",numberIdentificationWithImage:"numberIdentificationWithImageHiAudio",numberIdentificationWithoutImage:"numberIdentificationWithoutImageHiAudio",wordBuildingWithImage:"wordBuildingWithImageHiAudio",wordBuildingWithoutImage:"wordBuildingWithoutImageHiAudio",pictureClues:"pictureCluesHiAudio",pictureWordMatchMultipleImages:"pictureWordMatchMultipleImagesHiAudio",pictureWordMatchSingleImage:"pictureWordMatchSingleImageHiAudio",sentenceMatch:"sentenceMatchHiAudio",imageMatch:"imageMatchHiAudio",palStoryTale:"palStoryTaleHiAudio",palEgmaPatternMatching:"palEgmaPatternMatchingHiAudio",palEgmaWordProblemDragnDrop:"palEgmaWordProblemDragnDropHiAudio",palEgmaWordProblemClick:"palEgmaWordProblemClickHiAudio",palEgraOddOneOut:"palEgraOddOneOutHiAudio",palEgraArrangePictures:"palEgraArrangePicturesHiAudio",palEgraBuildWord:"palEgraBuildWordHiAudio",palEgraWordFormation:"palEgraWordFormationHiAudio",palInventedSpelling:"palInventedSpellingHiAudio",palLetterIdentification:"palLetterIdentificationHiAudio",palStoryMaking:"palStoryMakingHiAudio",palegmasumtogether:"palegmasumtogetherHiAudio",palegmamultioption:"palegmamultioptionHiAudio",palegraoptionaudio:"palegraoptionaudioHiAudio",palegrawordmatch:"palegrawordmatchHiAudio",palegramcqimages:"palegramcqimagesHiAudio"}}},kn:{translation:{" balloon":"ಪುಗ್ಗ"," box":"ಡಬ್ಬ"," egg":"ಮೊಟ್ಟೆ"," flower":"ಹೂವು"," heart":"ಹೃದಯ"," house":"ಮನೆ"," lamp":"ದೀಪ"," moon":"ಚಂದ್ರ"," rectangle":"ಆಯತ"," star":"ನಕ್ಷತ್ರ"," watermelon":"ಕಲ್ಲಂಗಡಿ"," trophy":"ಟ್ರೋಫಿ"," dog":"ನಾಯಿ"," fish":"ಮೀನು"," bird":"ಹಕ್ಕಿ"," arrow":"ಬಾಣ","Do you want to exit? button":"ನೀವು ನಿರ್ಗಮಿಸಲು ಬಯಸುವಿರಾ?","Exit button":"ನಿರ್ಗಮಿಸು","Continue playing button":"ಆಟವನ್ನು ಮುಂದುವರಿಸಿ","Drop the elements to match the given symbol order":"ನೀಡಿರುವ ಸಂಕೇತಕ್ಕೆ ಹೊಂದುವಂತೆ ಅಂಶಗಳನ್ನು ಬಿಡಿ","Fill in the blanks":"ಖಾಲಿ ಸ್ಥಳಗಳನ್ನು ಭರ್ತಿ ಮಾಡಿ",instruction:{dragAndDrop:"Match the items by dragging and dropping them into the correct places.",mcq:"Select the correct answer from the options provided.",tracing:"Trace the shape by following the outline carefully.",flashcards:"Review the flashcards to reinforce your learning.",substractionWithImage:"substractionWithImageKaAudio",substractionWithoutImage:"substractionWithoutImageKaAudio",numberIdentificationWithImage:"numberIdentificationWithImageKaAudio",numberIdentificationWithoutImage:"numberIdentificationWithoutImageKaAudio",wordBuildingWithImage:"wordBuildingWithImageKaAudio",wordBuildingWithoutImage:"wordBuildingWithoutImageKaAudio",pictureClues:"pictureCluesKaAudio",pictureWordMatchMultipleImages:"pictureWordMatchMultipleImagesKaAudio",pictureWordMatchSingleImage:"pictureWordMatchSingleImageKaAudio",sentenceMatch:"sentenceMatchKaAudio",imageMatch:"imageMatchKaAudio",palStoryTale:"palStoryTaleKaAudio",palEgmaPatternMatching:"palEgmaPatternMatchingKaAudio",palEgmaWordProblemDragnDrop:"palEgmaWordProblemDragnDropKaAudio",palEgmaWordProblemClick:"palEgmaWordProblemClickKaAudio",palEgraOddOneOut:"palEgraOddOneOutKaAudio",palEgraArrangePictures:"palEgraArrangePicturesKaAudio",palEgraBuildWord:"palEgraBuildWordKaAudio",palEgraWordFormation:"palEgraWordFormationKaAudio",palInventedSpelling:"palInventedSpellingKaAudio",palLetterIdentification:"palLetterIdentificationKaAudio",palStoryMaking:"palStoryMakingKaAudio",palegmasumtogether:"palegmasumtogetherKaAudio",palegmamultioption:"palegmamultioptionKaAudio",palegraoptionaudio:"palegraoptionaudioKaAudio",palegrawordmatch:"palegrawordmatchKaAudio",palegramcqimages:"palegramcqimagesKaAudio"}}},te:{translation:{"Do you want to exit? button":"మీరు బయటకు వెళ్లాలనుకుంటున్నారా?","Exit button":"బయటకు వెళ్ళు","Continue playing button":"ఆటను కొనసాగించు","Drop the elements to match the given symbol order":"ఇచ్చిన చిహ్నానికి సరిపడేలా అంశాలను డ్రాప్ చేయಂడಿ","Fill in the blanks":"ಖಾಲಿ ಸ್ಥಳಗಳನ್ನು ಭರ್ತಿ ಮಾಡಿ"}},pt:{translation:{"Do you want to exit? button":"Você deseja sair?","Exit button":"Sair","Continue playing button":"Continuar jogando","Drop the elements to match the given symbol order":"Solte os elementos para corresponder à ordem dos símbolos fornecida","Fill in the blanks":"Preencha os espaços em branco"}},mr:{translation:{"Do you want to exit? button":"तुम्हाला बाहेर पडायचे आहे का?","Exit button":"बाहेर पडा","Continue playing button":"खेळ सुरू ठेवा",instruction:{dragAndDrop:"वस्तू योग्य ठिकाणी ओढून आणि सोडून जुळवा.",mcq:"दिलेल्या पर्यायांमधून योग्य उत्तर निवडा.",tracing:"रेषेचा काळजीपूर्वक मागोवा घेत आकृती काढा.",flashcards:"तुमचे शिक्षण मजबूत करण्यासाठी फ्लॅशकार्ड्स पाहा."}}}},fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1},detection:{order:["querystring","localStorage","navigator","htmlTag"],caches:["localStorage"]}});const At=i(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.showSpeakIcon=!1,this.id="",this.value="",this.requiredDrops="",this.string="",this.fontFamily="",this.fontSize="20px",this.fontColor="",this.highlightWhileSpeaking=!1,this.height="auto",this.width="auto",this.ariaLabel="",this.ariaHidden="",this.move="false",this.x="0px",this.y="0px",this.z="0",this.bgColor="",this.borderImage="",this.type="",this.tabIndex=0,this.visible=!1,this.audio="",this.onTouch="",this.onInCorrect="",this.onCorrect="",this.minDrops=1,this.maxDrops=1,this.onEntry="",this.margin="",this.padding="",this.borderRadius="0px",this.spanType="",this.style={},this.handleWindowResize=()=>this.updateStyles(),this.handleWindowLoad=()=>this.updateStyles(),this.delayVisible="",this.disableSpeak=!1}componentDidLoad(){if(s(this.el,this.delayVisible),o(this.el,this.type),"words"!==this.spanType&&"letters"!==this.spanType||this.addSpanToText(),this.showSpeakIcon&&n(this.el),!this.audio||""===this.audio.trim()){const t=()=>{const t=this.resolveAutoAudio();t&&(this.audio=t)};window.__LIDO_COMMON_AUDIO_PATH__?t():window.addEventListener(r,t,{once:!0})}}resolveAutoAudio(){const t=window[c];return t&&this.string?`${t}/${this.string}.mp3`:null}componentWillLoad(){this.updateStyles(),window.addEventListener("resize",this.handleWindowResize),window.addEventListener("load",this.handleWindowLoad)}disconnectedCallback(){window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("load",this.handleWindowLoad)}updateStyles(){const t=this.borderImage?a(this.borderImage):"",i=window.innerHeight>window.innerWidth?"portrait":"landscape";this.style={height:h(this.height,i),width:h(this.width,i),backgroundColor:h(this.bgColor,i),top:h(this.y,i),left:h(this.x,i),zIndex:this.z,fontSize:h(this.fontSize,i),fontFamily:this.fontFamily,color:h(this.fontColor,i),display:"true"===h(`${this.visible}`,i)?"flex":"none",borderImage:`url(${t})`,borderImageSlice:t?"0 fill":"",margin:h(this.margin,i),padding:h(this.padding,i),borderRadius:h(this.borderRadius,i)}}async addSpanToText(){const t=this.el.querySelector(".lido-text-content");if(!t)return;const i=t.textContent||"";t.innerHTML="","letters"===this.spanType&&i.split("").forEach((i=>{if(""===i.trim())return;const e=document.createElement("span");e.textContent=i,e.className="text-letters",t.appendChild(e)})),"words"===this.spanType&&i.split(" ").forEach((i=>{const e=document.createElement("span");e.textContent=i,e.className="text-words",t.appendChild(e)}))}render(){const t=et.t(this.string).replace(/_phonics?/gi,"");return l(u,{key:"4fd148b3700fa894e6dc38810453a08a1c6858d1",class:"lido-text",value:this.value,"required-drops":this.requiredDrops,type:this.type,"tab-index":this.tabIndex,audio:this.audio,onTouch:this.onTouch,onCorrect:this.onCorrect,onInCorrect:this.onInCorrect,onEntry:this.onEntry,minDrops:this.minDrops,maxDrops:this.maxDrops,id:this.id,style:this.style,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,move:this.move,"span-type":this.spanType,"disable-speak":`${this.disableSpeak}`},""!==this.spanType?l("div",{class:"lido-text-content"}," ",t):t)}get el(){return this}static get style(){return".lido-text{transition:background-color 0.3s ease;user-select:none;align-items:center;justify-content:center;text-align:center;border-radius:24px;color:#333;cursor:pointer;font-family:'Baloo Bhai 2', serif}.text-letters{transition:color 0.3s, text-shadow 0.3s;display:inline-block;padding:0 2px}.text-letters.letter-highlight{color:#8e24aa;background:none;border-radius:0;text-shadow:0 2px 8px #8e24aa88;animation:text-letter-bounce 0.4s}.text-words{transition:color 0.3s, text-shadow 0.3s;display:inline-block;padding:0 2px}.text-words.word-highlight{color:#8e24aa;background:none;border-radius:0;text-shadow:0 2px 8px #8e24aa88;animation:text-word-bounce 0.4s}@keyframes text-letter-bounce{0%{transform:scale(1)}60%{transform:scale(1.4)}100%{transform:scale(1)}}@keyframes text-word-bounce{0%{transform:scale(1)}60%{transform:scale(1.3)}100%{transform:scale(1)}}"}},[0,"lido-text",{showSpeakIcon:[4,"show-speak-icon"],id:[1],value:[1],requiredDrops:[1,"required-drops"],string:[1],fontFamily:[1,"font-family"],fontSize:[1,"font-size"],fontColor:[1,"font-color"],highlightWhileSpeaking:[4,"highlight-while-speaking"],height:[1],width:[1],ariaLabel:[1,"aria-label"],ariaHidden:[1,"aria-hidden"],move:[1],x:[1],y:[1],z:[1],bgColor:[1,"bg-color"],borderImage:[1,"border-image"],type:[1],tabIndex:[2,"tab-index"],visible:[8],audio:[1],onTouch:[1,"on-touch"],onInCorrect:[1,"on-in-correct"],onCorrect:[1,"on-correct"],minDrops:[2,"min-drops"],maxDrops:[2,"max-drops"],onEntry:[1,"on-entry"],margin:[1],padding:[1],borderRadius:[1,"border-radius"],spanType:[1,"span-type"],delayVisible:[1,"delay-visible"],disableSpeak:[4,"disable-speak"],style:[32]}]);function kt(){"undefined"!=typeof customElements&&["lido-text"].forEach((i=>{"lido-text"===i&&(customElements.get(t(i))||customElements.define(t(i),At))}))}kt();export{At as L,kt as d,et as i}
@@ -1 +0,0 @@
1
- import{t,p as a,H as i,k as e,i as r,a as o,h,b as s}from"./index.js";const d=a(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.id="",this.value="",this.height="auto",this.width="auto",this.ariaLabel="",this.ariaHidden="",this.x="0px",this.y="0px",this.z="0",this.bgColor="",this.type="",this.tabIndex=0,this.shapeType="circle",this.visible=!1,this.audio="",this.onTouch="",this.onInCorrect="",this.onCorrect="",this.onEntry="",this.minDrops=1,this.maxDrops=1,this.margin="",this.delayVisible="",this.disableSpeak=!1,this.style={}}componentDidLoad(){e(this.el,this.delayVisible),r(this.el,this.type),this.updateStyles(),this.lido3DShapes()}updateStyles(){const t=window.innerHeight>window.innerWidth?"portrait":"landscape";this.style={x:o(`${this.x}`,t),y:o(`${this.y}`,t),height:o(`${this.height}`,t),width:o(`${this.width}`,t)}}lido3DShapes(){const t=window.innerHeight>window.innerWidth?"portrait":"landscape";"lido-cube"===this.shapeType&&this.el.querySelectorAll(".face").forEach((a=>{const i=a;i.style.setProperty("--face-width",o(`${this.width}`,t));const e=parseInt(o(`${this.width}`,t))/2;i.style.setProperty("--face-translate",`${e}px`),i.style.setProperty("--face-bg-color",this.bgColor)}))}render(){return h(s,{key:"27ddc6d8019a8aaed121d5af47ffc6b76dbeda9c",class:`lido-shape ${this.shapeType}`,value:this.value,type:this.type,"tab-index":this.tabIndex,style:{height:"polygon"!==this.shapeType?this.style.height:void 0,width:"polygon"!==this.shapeType?this.style.width:void 0,top:this.style.y,left:this.style.x,display:this.visible?"block":"none",zIndex:this.z,backgroundColor:"polygon"!==this.shapeType?this.bgColor:"transparent",margin:this.margin},"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,audio:this.audio,minDrops:this.minDrops,maxDrops:this.maxDrops,onTouch:this.onTouch,onCorrect:this.onCorrect,onInCorrect:this.onInCorrect,onEntry:this.onEntry,"disable-speak":this.disableSpeak},"lido-cube"===this.shapeType&&h("div",{key:"e46ef618c7652aa4aee6e1e618be42a6f1a6b654",class:"cube"},h("div",{key:"af6d6e16ffaeadaff6906e2a927d9dd120bcbced",class:"face top"}),h("div",{key:"dcfefb7a09127f5d5fab9e4538e750bf36f3fb79",class:"face bottom"}),h("div",{key:"08d30a512aabb0fdb2fe50f6db375897b02ebde8",class:"face left"}),h("div",{key:"cec476d4b207c936aa71be50457ada4e029d12e8",class:"face right"}),h("div",{key:"f36023469d224c14b9172b215fd7cda57e5144df",class:"face front"}),h("div",{key:"af4df1450a0b0f18c8e50079b45aaaabe49b3b8e",class:"face back"})))}get el(){return this}static get style(){return".lido-shape{position:absolute;top:var(--y);left:var(--x);display:var(--display);z-index:var(--z);justify-content:center;align-items:center}.lido-rectangle{border-radius:0}.lido-circle{width:var(--width);height:var(--width);border-radius:50%;background-color:var(--bgColor)}.lido-ellipse{width:var(--width);height:var(--height);border-radius:50%;background-color:var(--bgColor)}.lido-triangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--bgColor);clip-path:polygon(50% 0%, 100% 100%, 0% 100%)}.lido-rightTriangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--bgColor);clip-path:polygon(100% 0%, 100% 100%, 0% 100%)}.lido-leftTriangle{width:var(--triangleWidth);height:var(--triangleHeight);background-color:var(--triangleBgColor);clip-path:polygon(0% 0%, 100% 100%, 0% 100%)}.lido-parallelogram{width:var(--paralleWidth);height:var(--paralleHeight);transform:skew(20deg)}.lido-trapezium{width:var(--trapeziumWidth);height:var(--trapeziumHeight);background-color:var(--bgColor);clip-path:polygon( 20% 0%, 80% 0%, 100% 100%, 0% 100% )}.lido-hexagon{width:var(--hexagonWidth);height:var(--hexagonHeight);background-color:var(--bgColor);clip-path:polygon( 25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50% )}.lido-cone{width:var(--coneWidth);height:var(--coneHeight);background-color:var(--bgColor);clip-path:polygon( 15% 10%, 25% 4%, 35% 1%, 50% 0%, 65% 1%, 75% 4%, 85% 10%, 50% 100% )}.lido-star{width:var(--starWidth);height:var(--starHeight);background-color:var(--starBgColor);clip-path:polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)}.lido-pentagon{width:var(--pentagonWidth);height:var(--pentagonHeight);background-color:var(--pentagonBgColor);clip-path:polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)}.lido-heptagon{width:var(--heptagonWidth);height:var(--heptagonHeight);background-color:var(--heptagonBgColor);clip-path:polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%)}.lido-octagon{width:var(--octagonWidth);height:var(--octagonHeight);background-color:var(--octagonBgColor);clip-path:polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%)}.lido-rhombus{width:var(--rhombusWidth);height:var(--rhombusHeight);background-color:var(--rhombusBgColor);clip-path:polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)}.lido-heart{height:var(--heartHeight);width:var(--heartWidth);border-image:radial-gradient(var(--heartBgColor) 69%, #0000 70%) 84.5%/50%;clip-path:polygon(-41% 0, 50% 91%, 141% 0)}.cube{width:100%;height:100%;position:relative;transform-style:preserve-3d;transform:rotateX(-20deg) rotateY(45deg)}.face{position:absolute;width:var(--face-width,150px);height:var(--face-width,150px);background:var(--face-bg-color,150px);box-shadow:inset -20px -20px 40px rgba(0,0,0,0.3)}.front{transform:rotateY( 0deg) translateZ(var(--face-translate, 75px))}.back{transform:rotateY(180deg) translateZ(var(--face-translate, 75px))}.right{transform:rotateY( 90deg) translateZ(var(--face-translate, 75px))}.left{transform:rotateY(-90deg) translateZ(var(--face-translate, 75px))}.top{transform:rotateX( 90deg) translateZ(var(--face-translate, 75px))}.bottom{transform:rotateX(-90deg) translateZ(var(--face-translate, 75px))}.lido-cylinder{width:var(--width);height:var(--height);border-radius:100% / 80px;background:radial-gradient(50% 40px at 50% 40px, #0003 99.99%, #0000 0), radial-gradient(50% 40px at 50% calc(100% - 40px), #fff3 99.99%, #0000 0), red}.lido-sphere{position:relative;width:var(--width);height:var(--width);border-radius:50%;background:radial-gradient(circle at 30% 18%, #22d4ff 0%, #18c2f4 9%, rgba(24, 194, 244, 0.2) 18%, transparent 30%), radial-gradient(circle at 36% 26%, #0f8fff 0%, #0b67e6 30%, #083fbe 62%, #120084 100%);box-shadow:inset -22px -26px 40px rgba(5, 0, 70, 0.38), inset 14px 14px 24px rgba(255, 255, 255, 0.05), 0 4px 2px rgba(0, 0, 0, 0.78);overflow:visible}.lido-sphere::after{content:'';position:absolute;top:50%;left:50%;width:100%;height:16%;border-radius:50%;border-top:2px dashed rgba(0, 0, 0, 0.65);border-bottom:3px solid rgba(0, 0, 0, 0.85);box-sizing:border-box;transform:translate(-50%, -50%);pointer-events:none}"}},[0,"lido-shape",{id:[1],value:[1],height:[1],width:[1],ariaLabel:[1,"aria-label"],ariaHidden:[1,"aria-hidden"],x:[1],y:[1],z:[1],bgColor:[1,"bg-color"],type:[1],tabIndex:[2,"tab-index"],shapeType:[1,"shape-type"],visible:[4],audio:[1],onTouch:[1,"on-touch"],onInCorrect:[1,"on-in-correct"],onCorrect:[1,"on-correct"],onEntry:[1,"on-entry"],minDrops:[2,"min-drops"],maxDrops:[2,"max-drops"],margin:[1],delayVisible:[1,"delay-visible"],disableSpeak:[4,"disable-speak"],style:[32]}]);function l(){"undefined"!=typeof customElements&&["lido-shape"].forEach((a=>{"lido-shape"===a&&(customElements.get(t(a))||customElements.define(t(a),d))}))}l();export{d as L,l as d}
@@ -1,12 +0,0 @@
1
- import{I as t,J as i,t as r,p as n,H as e,K as o,A as s,M as a,N as h,r as f,O as u,P as c,Q as l,U as d,V as p,W as m,X as b,Y as w,getAssetPath as v,Z as x,x as g,h as y,T as k,f as E,_ as A,S as j,$ as S,j as z,o as C,a0 as B,b as O,c as U,a1 as D,a2 as T,a3 as R}from"./index.js";import{c as F,d as P}from"./p-Cf85Nc-6.js";import{d as I,i as _}from"./p-DPGOqpde.js";import{d as X}from"./p-DG0KR2iN.js";import{d as Z}from"./p-DNo3iX_r.js";import{d as W}from"./p-BSWrnLbC.js";import{d as N}from"./p-C5WmmkI6.js";import{d as L}from"./p-CgsPIpg0.js";import{d as G}from"./p-CTlcpv4a.js";import{d as Y}from"./p-AaE392x7.js";import{d as M}from"./p-B-mIxynb.js";import{d as $}from"./p-CSxwfvl3.js";import{d as H}from"./p-BW0855oZ.js";import{d as K}from"./p-CK9M0Kcf.js";import{d as J}from"./p-CXHPZN3m.js";import{d as V}from"./p-DONbWJGn.js";import{d as q}from"./p-C70ykycD.js";import{d as Q}from"./p-DXy70SGv.js";import{d as tt}from"./p-CuDMRxx_.js";import{d as it}from"./p-BfJG1wmU.js";import{d as rt}from"./p-CsDu4kiC.js";var nt,et={exports:{}},ot=(nt||(nt=1,et.exports=function t(i,r,n){function e(s,a){if(!r[s]){if(!i[s]){var h="function"==typeof F&&F;if(!a&&h)return h(s,!0);if(o)return o(s,!0);var f=new Error("Cannot find module '"+s+"'");throw f.code="MODULE_NOT_FOUND",f}var u=r[s]={exports:{}};i[s][0].call(u.exports,(function(t){return e(i[s][1][t]||t)}),u,u.exports,t,i,r,n)}return r[s].exports}for(var o="function"==typeof F&&F,s=0;s<n.length;s++)e(n[s]);return e}({1:[function(t,i,r){var n=t("./utils"),e=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(t){for(var i,r,e,s,a,h,f=[],u=0,c=t.length,l=c,d="string"!==n.getTypeOf(t);u<t.length;)l=c-u,e=d?(i=t[u++],r=u<c?t[u++]:0,u<c?t[u++]:0):(i=t.charCodeAt(u++),r=u<c?t.charCodeAt(u++):0,u<c?t.charCodeAt(u++):0),s=(3&i)<<4|r>>4,a=1<l?(15&r)<<2|e>>6:64,h=2<l?63&e:64,f.push(o.charAt(i>>2)+o.charAt(s)+o.charAt(a)+o.charAt(h));return f.join("")},r.decode=function(t){var i,r,n,s,a,h,f=0,u=0,c="data:";if(t.substr(0,5)===c)throw new Error("Invalid base64 input, it looks like a data url.");var l,d=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&d--,t.charAt(t.length-2)===o.charAt(64)&&d--,d%1!=0)throw new Error("Invalid base64 input, bad content length.");for(l=e.uint8array?new Uint8Array(0|d):new Array(0|d);f<t.length;)i=o.indexOf(t.charAt(f++))<<2|(s=o.indexOf(t.charAt(f++)))>>4,r=(15&s)<<4|(a=o.indexOf(t.charAt(f++)))>>2,n=(3&a)<<6|(h=o.indexOf(t.charAt(f++))),l[u++]=i,64!==a&&(l[u++]=r),64!==h&&(l[u++]=n);return l}},{"./support":30,"./utils":32}],2:[function(t,i){var r=t("./external"),n=t("./stream/DataWorker"),e=t("./stream/Crc32Probe"),o=t("./stream/DataLengthProbe");function s(t,i,r,n,e){this.compressedSize=t,this.uncompressedSize=i,this.crc32=r,this.compression=n,this.compressedContent=e}s.prototype={getContentWorker:function(){var t=new n(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),i=this;return t.on("end",(function(){if(this.streamInfo.data_length!==i.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new n(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,i,r){return t.pipe(new e).pipe(new o("uncompressedSize")).pipe(i.compressWorker(r)).pipe(new o("compressedSize")).withStreamInfo("compression",i)},i.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,i,r){var n=t("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,i){var r=t("./utils"),n=function(){for(var t,i=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;i[r]=t}return i}();i.exports=function(t,i){return void 0!==t&&t.length?"string"!==r.getTypeOf(t)?function(t,i,r){var e=n,o=0+r;t^=-1;for(var s=0;s<o;s++)t=t>>>8^e[255&(t^i[s])];return~t}(0|i,t,t.length):function(t,i,r){var e=n,o=0+r;t^=-1;for(var s=0;s<o;s++)t=t>>>8^e[255&(t^i.charCodeAt(s))];return~t}(0|i,t,t.length):0}},{"./utils":32}],5:[function(t,i,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,i){var r;r="undefined"!=typeof Promise?Promise:t("lie"),i.exports={Promise:r}},{lie:37}],7:[function(t,i,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,e=t("pako"),o=t("./utils"),s=t("./stream/GenericWorker"),a=n?"uint8array":"array";function h(t,i){s.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=i,this.meta={}}r.magic="\b\0",o.inherits(h,s),h.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(a,t.data),!1)},h.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new e[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(i){t.push({data:i,meta:t.meta})}},r.compressWorker=function(t){return new h("Deflate",t)},r.uncompressWorker=function(){return new h("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,i){function r(t,i){var r,n="";for(r=0;r<i;r++)n+=String.fromCharCode(255&t),t>>>=8;return n}function n(t,i,n,o,f,u){var c,l,d=t.file,p=t.compression,m=u!==s.utf8encode,b=e.transformTo("string",u(d.name)),w=e.transformTo("string",s.utf8encode(d.name)),v=d.comment,x=e.transformTo("string",u(v)),g=e.transformTo("string",s.utf8encode(v)),y=w.length!==d.name.length,k=g.length!==v.length,E="",A="",j="",S=d.dir,z=d.date,C={crc32:0,compressedSize:0,uncompressedSize:0};i&&!n||(C.crc32=t.crc32,C.compressedSize=t.compressedSize,C.uncompressedSize=t.uncompressedSize);var B=0;i&&(B|=8),m||!y&&!k||(B|=2048);var O=0,U=0;S&&(O|=16),"UNIX"===f?(U=798,O|=function(t,i){var r=t;return t||(r=i?16893:33204),(65535&r)<<16}(d.unixPermissions,S)):(U=20,O|=function(t){return 63&(t||0)}(d.dosPermissions)),c=z.getUTCHours(),c<<=6,c|=z.getUTCMinutes(),c<<=5,c|=z.getUTCSeconds()/2,l=z.getUTCFullYear()-1980,l<<=4,l|=z.getUTCMonth()+1,l<<=5,l|=z.getUTCDate(),y&&(A=r(1,1)+r(a(b),4)+w,E+="up"+r(A.length,2)+A),k&&(j=r(1,1)+r(a(x),4)+g,E+="uc"+r(j.length,2)+j);var D="";return D+="\n\0",D+=r(B,2),D+=p.magic,D+=r(c,2),D+=r(l,2),D+=r(C.crc32,4),D+=r(C.compressedSize,4),D+=r(C.uncompressedSize,4),D+=r(b.length,2),D+=r(E.length,2),{fileRecord:h.LOCAL_FILE_HEADER+D+b+E,dirRecord:h.CENTRAL_FILE_HEADER+r(U,2)+D+r(x.length,2)+"\0\0\0\0"+r(O,4)+r(o,4)+b+E+x}}var e=t("../utils"),o=t("../stream/GenericWorker"),s=t("../utf8"),a=t("../crc32"),h=t("../signature");function f(t,i,r,n){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=i,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}e.inherits(f,o),f.prototype.push=function(t){var i=t.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,o.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(i+100*(r-n-1))/r:100}}))},f.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var i=this.streamFiles&&!t.file.dir;if(i){var r=n(t,i,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(t){this.accumulate=!1;var i=this.streamFiles&&!t.file.dir,e=n(t,i,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(e.dirRecord),i)this.push({data:function(t){return h.DATA_DESCRIPTOR+r(t.crc32,4)+r(t.compressedSize,4)+r(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:e.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var t=this.bytesWritten,i=0;i<this.dirRecords.length;i++)this.push({data:this.dirRecords[i],meta:{percent:100}});var n=function(t,i,n,o,s){var a=e.transformTo("string",s(o));return h.CENTRAL_DIRECTORY_END+"\0\0\0\0"+r(t,2)+r(t,2)+r(i,4)+r(n,4)+r(a.length,2)+a}(this.dirRecords.length,this.bytesWritten-t,t,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(t){this._sources.push(t);var i=this;return t.on("data",(function(t){i.processChunk(t)})),t.on("end",(function(){i.closedSource(i.previous.streamInfo),i._sources.length?i.prepareNextSource():i.end()})),t.on("error",(function(t){i.error(t)})),this},f.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(t){var i=this._sources;if(!o.prototype.error.call(this,t))return!1;for(var r=0;r<i.length;r++)try{i[r].error(t)}catch(t){}return!0},f.prototype.lock=function(){o.prototype.lock.call(this);for(var t=this._sources,i=0;i<t.length;i++)t[i].lock()},i.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,i,r){var n=t("../compressions"),e=t("./ZipFileWorker");r.generateWorker=function(t,i,r){var o=new e(i.streamFiles,r,i.platform,i.encodeFileName),s=0;try{t.forEach((function(t,r){s++;var e=function(t,i){var r=t||i,e=n[r];if(!e)throw new Error(r+" is not a valid compression method !");return e}(r.options.compression,i.compression),a=r.dir,h=r.date;r._compressWorker(e,r.options.compressionOptions||i.compressionOptions||{}).withStreamInfo("file",{name:t,dir:a,date:h,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(o)})),o.entriesCount=s}catch(t){o.error(t)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,i){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new r;for(var i in this)"function"!=typeof this[i]&&(t[i]=this[i]);return t}}(r.prototype=t("./object")).loadAsync=t("./load"),r.support=t("./support"),r.defaults=t("./defaults"),r.version="3.10.2",r.loadAsync=function(t,i){return(new r).loadAsync(t,i)},r.external=t("./external"),i.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,i){var r=t("./utils"),n=t("./external"),e=t("./utf8"),o=t("./zipEntries"),s=t("./stream/Crc32Probe"),a=t("./nodejsUtils");function h(t){return new n.Promise((function(i,r){var n=t.decompressed.getContentWorker().pipe(new s);n.on("error",(function(t){r(t)})).on("end",(function(){n.streamInfo.crc32!==t.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):i()})).resume()}))}i.exports=function(t,i){var s=this;return i=r.extend(i||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:e.utf8decode}),a.isNode&&a.isStream(t)?n.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",t,!0,i.optimizedBinaryString,i.base64).then((function(t){var r=new o(i);return r.load(t),r})).then((function(t){var r=[n.Promise.resolve(t)],e=t.files;if(i.checkCRC32)for(var o=0;o<e.length;o++)r.push(h(e[o]));return n.Promise.all(r)})).then((function(t){for(var n=t.shift(),e=n.files,o=0;o<e.length;o++){var a=e[o],h=a.fileNameStr,f=r.resolve(a.fileNameStr);s.file(f,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:i.createFolders}),a.dir||(s.file(f).unsafeOriginalName=h)}return n.zipComment.length&&(s.comment=n.zipComment),s}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,i){var r=t("../utils"),n=t("../stream/GenericWorker");function e(t,i){n.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(i)}r.inherits(e,n),e.prototype._bindStream=function(t){var i=this;(this._stream=t).pause(),t.on("data",(function(t){i.push({data:t,meta:{percent:0}})})).on("error",(function(t){i.isPaused?this.generatedError=t:i.error(t)})).on("end",(function(){i.isPaused?i._upstreamEnded=!0:i.end()}))},e.prototype.pause=function(){return!!n.prototype.pause.call(this)&&(this._stream.pause(),!0)},e.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},i.exports=e},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,i){var r=t("readable-stream").Readable;function n(t,i,n){r.call(this,i),this._helper=t;var e=this;t.on("data",(function(t,i){e.push(t)||e._helper.pause(),n&&n(i)})).on("error",(function(t){e.emit("error",t)})).on("end",(function(){e.push(null)}))}t("../utils").inherits(n,r),n.prototype._read=function(){this._helper.resume()},i.exports=n},{"../utils":32,"readable-stream":16}],14:[function(t,i){i.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(t,i){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,i);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new Buffer(t,i)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var i=new Buffer(t);return i.fill(0),i},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,i){function r(t,i,r){var n,s=e.getTypeOf(i),u=e.extend(r||{},a);u.date=u.date||new Date,null!==u.compression&&(u.compression=u.compression.toUpperCase()),"string"==typeof u.unixPermissions&&(u.unixPermissions=parseInt(u.unixPermissions,8)),u.unixPermissions&&16384&u.unixPermissions&&(u.dir=!0),u.dosPermissions&&16&u.dosPermissions&&(u.dir=!0),u.dir&&(t=p(t)),u.createFolders&&(n=d(t))&&m.call(this,n,!0),r&&void 0!==r.binary||(u.binary=!("string"===s&&!1===u.binary&&!1===u.base64)),(i instanceof h&&0===i.uncompressedSize||u.dir||!i||0===i.length)&&(u.base64=!1,u.binary=!0,i="",u.compression="STORE",s="string");var b;b=i instanceof h||i instanceof o?i:c.isNode&&c.isStream(i)?new l(t,i):e.prepareContent(t,i,u.binary,u.optimizedBinaryString,u.base64);var w=new f(t,b,u);this.files[t]=w}var n=t("./utf8"),e=t("./utils"),o=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),a=t("./defaults"),h=t("./compressedObject"),f=t("./zipObject"),u=t("./generate"),c=t("./nodejsUtils"),l=t("./nodejs/NodejsStreamInputAdapter"),d=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var i=t.lastIndexOf("/");return 0<i?t.substring(0,i):""},p=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},m=function(t,i){return i=void 0!==i?i:a.createFolders,t=p(t),this.files[t]||r.call(this,t,null,{dir:!0,createFolders:i}),this.files[t]};function b(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var w={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var i,r,n;for(i in this.files)n=this.files[i],(r=i.slice(this.root.length,i.length))&&i.slice(0,this.root.length)===this.root&&t(r,n)},filter:function(t){var i=[];return this.forEach((function(r,n){t(r,n)&&i.push(n)})),i},file:function(t,i,n){if(1!==arguments.length)return r.call(this,t=this.root+t,i,n),this;if(b(t)){var e=t;return this.filter((function(t,i){return!i.dir&&e.test(t)}))}var o=this.files[this.root+t];return o&&!o.dir?o:null},folder:function(t){if(!t)return this;if(b(t))return this.filter((function(i,r){return r.dir&&t.test(i)}));var i=m.call(this,this.root+t),r=this.clone();return r.root=i.name,r},remove:function(t){var i=this.files[t=this.root+t];if(i||("/"!==t.slice(-1)&&(t+="/"),i=this.files[t]),i&&!i.dir)delete this.files[t];else for(var r=this.filter((function(i,r){return r.name.slice(0,t.length)===t})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var i,r={};try{if((r=e.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:n.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");e.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS"),i=u.generateWorker(this,r,r.comment||this.comment||"")}catch(t){(i=new o("error")).error(t)}return new s(i,r.type||"string",r.mimeType)},generateAsync:function(t,i){return this.generateInternalStream(t).accumulate(i)},generateNodeStream:function(t,i){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(i)}};i.exports=w},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,i){i.exports=t("stream")},{stream:void 0}],17:[function(t,i){var r=t("./DataReader");function n(t){r.call(this,t);for(var i=0;i<this.data.length;i++)t[i]=255&t[i]}t("../utils").inherits(n,r),n.prototype.byteAt=function(t){return this.data[this.zero+t]},n.prototype.lastIndexOfSignature=function(t){for(var i=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),e=t.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===i&&this.data[o+1]===r&&this.data[o+2]===n&&this.data[o+3]===e)return o-this.zero;return-1},n.prototype.readAndCheckSignature=function(t){var i=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),e=t.charCodeAt(3),o=this.readData(4);return i===o[0]&&r===o[1]&&n===o[2]&&e===o[3]},n.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var i=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,i},i.exports=n},{"../utils":32,"./DataReader":18}],18:[function(t,i){var r=t("../utils");function n(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}n.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var i,r=0;for(this.checkOffset(t),i=this.index+t-1;i>=this.index;i--)r=(r<<8)+this.byteAt(i);return this.index+=t,r},readString:function(t){return r.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},i.exports=n},{"../utils":32}],19:[function(t,i){var r=t("./Uint8ArrayReader");function n(t){r.call(this,t)}t("../utils").inherits(n,r),n.prototype.readData=function(t){this.checkOffset(t);var i=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,i},i.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,i){var r=t("./DataReader");function n(t){r.call(this,t)}t("../utils").inherits(n,r),n.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},n.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},n.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},n.prototype.readData=function(t){this.checkOffset(t);var i=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,i},i.exports=n},{"../utils":32,"./DataReader":18}],21:[function(t,i){var r=t("./ArrayReader");function n(t){r.call(this,t)}t("../utils").inherits(n,r),n.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var i=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,i},i.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(t,i){var r=t("../utils"),n=t("../support"),e=t("./ArrayReader"),o=t("./StringReader"),s=t("./NodeBufferReader"),a=t("./Uint8ArrayReader");i.exports=function(t){var i=r.getTypeOf(t);return r.checkSupport(i),"string"!==i||n.uint8array?"nodebuffer"===i?new s(t):n.uint8array?new a(r.transformTo("uint8array",t)):new e(r.transformTo("array",t)):new o(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,i,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,i){var r=t("./GenericWorker"),n=t("../utils");function e(t){r.call(this,"ConvertWorker to "+t),this.destType=t}n.inherits(e,r),e.prototype.processChunk=function(t){this.push({data:n.transformTo(this.destType,t.data),meta:t.meta})},i.exports=e},{"../utils":32,"./GenericWorker":28}],25:[function(t,i){var r=t("./GenericWorker"),n=t("../crc32");function e(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(e,r),e.prototype.processChunk=function(t){this.streamInfo.crc32=n(t.data,this.streamInfo.crc32||0),this.push(t)},i.exports=e},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,i){var r=t("../utils"),n=t("./GenericWorker");function e(t){n.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}r.inherits(e,n),e.prototype.processChunk=function(t){t&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+t.data.length),n.prototype.processChunk.call(this,t)},i.exports=e},{"../utils":32,"./GenericWorker":28}],27:[function(t,i){var r=t("../utils"),n=t("./GenericWorker");function e(t){n.call(this,"DataWorker");var i=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){i.dataIsReady=!0,i.data=t,i.max=t&&t.length||0,i.type=r.getTypeOf(t),i.isPaused||i._tickAndRepeat()}),(function(t){i.error(t)}))}r.inherits(e,n),e.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},e.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},e.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},e.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,i=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,i);break;case"uint8array":t=this.data.subarray(this.index,i);break;case"array":case"nodebuffer":t=this.data.slice(this.index,i)}return this.index=i,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},i.exports=e},{"../utils":32,"./GenericWorker":28}],28:[function(t,i){function r(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,i){return this._listeners[t].push(i),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,i){if(this._listeners[t])for(var r=0;r<this._listeners[t].length;r++)this._listeners[t][r].call(this,i)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var i=this;return t.on("data",(function(t){i.processChunk(t)})),t.on("end",(function(){i.end()})),t.on("error",(function(t){i.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,i){return this.extraStreamInfo[t]=i,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},i.exports=r},{}],29:[function(t,i){var r=t("../utils"),n=t("./ConvertWorker"),e=t("./GenericWorker"),o=t("../base64"),s=t("../support"),a=t("../external"),h=null;if(s.nodestream)try{h=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function f(t,i,o){var s=i;switch(i){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=i,this._mimeType=o,r.checkSupport(s),this._worker=t.pipe(new n(s)),t.lock()}catch(t){this._worker=new e("error"),this._worker.error(t)}}f.prototype={accumulate:function(t){return function(t,i){return new a.Promise((function(n,e){var s=[],a=t._internalType,h=t._outputType,f=t._mimeType;t.on("data",(function(t,r){s.push(t),i&&i(r)})).on("error",(function(t){s=[],e(t)})).on("end",(function(){try{var t=function(t,i,n){switch(t){case"blob":return r.newBlob(r.transformTo("arraybuffer",i),n);case"base64":return o.encode(i);default:return r.transformTo(t,i)}}(h,function(t,i){var r,n=0,e=null,o=0;for(r=0;r<i.length;r++)o+=i[r].length;switch(t){case"string":return i.join("");case"array":return Array.prototype.concat.apply([],i);case"uint8array":for(e=new Uint8Array(o),r=0;r<i.length;r++)e.set(i[r],n),n+=i[r].length;return e;case"nodebuffer":return Buffer.concat(i);default:throw new Error("concat : unsupported type '"+t+"'")}}(a,s),f);n(t)}catch(t){e(t)}s=[]})).resume()}))}(this,t)},on:function(t,i){var n=this;return this._worker.on(t,"data"===t?function(t){i.call(n,t.data,t.meta)}:function(){r.delay(i,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(r.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new h(this,{objectMode:"nodebuffer"!==this._outputType},t)}},i.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,i,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(t){try{var e=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);e.append(n),r.blob=0===e.getBlob("application/zip").size}catch(t){r.blob=!1}}}try{r.nodestream=!!t("readable-stream").Readable}catch(t){r.nodestream=!1}},{"readable-stream":16}],31:[function(t,i,r){for(var n=t("./utils"),e=t("./support"),o=t("./nodejsUtils"),s=t("./stream/GenericWorker"),a=new Array(256),h=0;h<256;h++)a[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;function f(){s.call(this,"utf-8 decode"),this.leftOver=null}function u(){s.call(this,"utf-8 encode")}a[254]=a[254]=1,r.utf8encode=function(t){return e.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var i,r,n,o,s,a=t.length,h=0;for(o=0;o<a;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(n=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),h+=r<128?1:r<2048?2:r<65536?3:4;for(i=e.uint8array?new Uint8Array(h):new Array(h),o=s=0;s<h;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(n=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),r<128?i[s++]=r:(r<2048?i[s++]=192|r>>>6:(r<65536?i[s++]=224|r>>>12:(i[s++]=240|r>>>18,i[s++]=128|r>>>12&63),i[s++]=128|r>>>6&63),i[s++]=128|63&r);return i}(t)},r.utf8decode=function(t){return e.nodebuffer?n.transformTo("nodebuffer",t).toString("utf-8"):function(t){var i,r,e,o,s=t.length,h=new Array(2*s);for(i=r=0;i<s;)if((e=t[i++])<128)h[r++]=e;else if(4<(o=a[e]))h[r++]=65533,i+=o-1;else{for(e&=2===o?31:3===o?15:7;1<o&&i<s;)e=e<<6|63&t[i++],o--;1<o?h[r++]=65533:e<65536?h[r++]=e:(h[r++]=55296|(e-=65536)>>10&1023,h[r++]=56320|1023&e)}return h.length!==r&&(h.subarray?h=h.subarray(0,r):h.length=r),n.applyFromCharCode(h)}(t=n.transformTo(e.uint8array?"uint8array":"array",t))},n.inherits(f,s),f.prototype.processChunk=function(t){var i=n.transformTo(e.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(e.uint8array){var o=i;(i=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),i.set(o,this.leftOver.length)}else i=this.leftOver.concat(i);this.leftOver=null}var s=function(t,i){var r;for((i=i||t.length)>t.length&&(i=t.length),r=i-1;0<=r&&128==(192&t[r]);)r--;return r<0||0===r?i:r+a[t[r]]>i?r:i}(i),h=i;s!==i.length&&(e.uint8array?(h=i.subarray(0,s),this.leftOver=i.subarray(s,i.length)):(h=i.slice(0,s),this.leftOver=i.slice(s,i.length))),this.push({data:r.utf8decode(h),meta:t.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=f,n.inherits(u,s),u.prototype.processChunk=function(t){this.push({data:r.utf8encode(t.data),meta:t.meta})},r.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,i,r){var n=t("./support"),e=t("./base64"),o=t("./nodejsUtils"),s=t("./external");function a(t){return t}function h(t,i){for(var r=0;r<t.length;++r)i[r]=255&t.charCodeAt(r);return i}t("setimmediate"),r.newBlob=function(t,i){r.checkSupport("blob");try{return new Blob([t],{type:i})}catch(r){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(t),n.getBlob(i)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var f={stringifyByChunk:function(t,i,r){var n=[],e=0,o=t.length;if(o<=r)return String.fromCharCode.apply(null,t);for(;e<o;)n.push(String.fromCharCode.apply(null,"array"===i||"nodebuffer"===i?t.slice(e,Math.min(e+r,o)):t.subarray(e,Math.min(e+r,o)))),e+=r;return n.join("")},stringifyByChar:function(t){for(var i="",r=0;r<t.length;r++)i+=String.fromCharCode(t[r]);return i},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(t){return!1}}()}};function u(t){var i=65536,n=r.getTypeOf(t),e=!0;if("uint8array"===n?e=f.applyCanBeUsed.uint8array:"nodebuffer"===n&&(e=f.applyCanBeUsed.nodebuffer),e)for(;1<i;)try{return f.stringifyByChunk(t,n,i)}catch(t){i=Math.floor(i/2)}return f.stringifyByChar(t)}function c(t,i){for(var r=0;r<t.length;r++)i[r]=t[r];return i}r.applyFromCharCode=u;var l={};l.string={string:a,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return l.string.uint8array(t).buffer},uint8array:function(t){return h(t,new Uint8Array(t.length))},nodebuffer:function(t){return h(t,o.allocBuffer(t.length))}},l.array={string:u,array:a,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},l.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return c(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:a,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},l.uint8array={string:u,array:function(t){return c(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:a,nodebuffer:function(t){return o.newBufferFrom(t)}},l.nodebuffer={string:u,array:function(t){return c(t,new Array(t.length))},arraybuffer:function(t){return l.nodebuffer.uint8array(t).buffer},uint8array:function(t){return c(t,new Uint8Array(t.length))},nodebuffer:a},r.transformTo=function(t,i){if(i=i||"",!t)return i;r.checkSupport(t);var n=r.getTypeOf(i);return l[n][t](i)},r.resolve=function(t){for(var i=t.split("/"),r=[],n=0;n<i.length;n++){var e=i[n];"."===e||""===e&&0!==n&&n!==i.length-1||(".."===e?r.pop():r.push(e))}return r.join("/")},r.getTypeOf=function(t){if("string"==typeof t)return"string";var i=Object.prototype.toString.call(t);return"[object Array]"===i?"array":n.nodebuffer&&o.isBuffer(t)?"nodebuffer":n.uint8array&&"[object Uint8Array]"===i?"uint8array":n.arraybuffer&&"[object ArrayBuffer]"===i?"arraybuffer":void 0},r.checkSupport=function(t){if(!n[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(t){var i,r,n="";for(r=0;r<(t||"").length;r++)n+="\\x"+((i=t.charCodeAt(r))<16?"0":"")+i.toString(16).toUpperCase();return n},r.delay=function(t,i,r){setImmediate((function(){t.apply(r||null,i||[])}))},r.inherits=function(t,i){function r(){}r.prototype=i.prototype,t.prototype=new r},r.extend=function(){var t,i,r={};for(t=0;t<arguments.length;t++)for(i in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],i)&&void 0===r[i]&&(r[i]=arguments[t][i]);return r},r.prepareContent=function(t,i,o,a,f){return s.Promise.resolve(i).then((function(i){return n.blob&&(i instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(i)))?void 0!==Blob.prototype.arrayBuffer?i.arrayBuffer():"undefined"!=typeof FileReader?new s.Promise((function(t,r){var n=new FileReader;n.onload=function(i){t(i.target.result)},n.onerror=function(t){r(t.target.error)},n.readAsArrayBuffer(i)})):s.Promise.reject(new Error(t+" is a Blob, but we have no way of reading it.")):i})).then((function(i){var u=r.getTypeOf(i);return u?("arraybuffer"===u?i=r.transformTo("uint8array",i):"string"===u&&(f?i=e.decode(i):o&&!0!==a&&(i=function(t){return h(t,n.uint8array?new Uint8Array(t.length):new Array(t.length))}(i))),i):s.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,i){var r=t("./reader/readerFor"),n=t("./utils"),e=t("./signature"),o=t("./zipEntry"),s=t("./support");function a(t){this.files=[],this.loadOptions=t}a.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var i=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+n.pretty(i)+", expected "+n.pretty(t)+")")}},isSignature:function(t,i){var r=this.reader.index;this.reader.setIndex(t);var n=this.reader.readString(4)===i;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),i=n.transformTo(s.uint8array?"uint8array":"array",t);this.zipComment=this.loadOptions.decodeFileName(i)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,i,r,n=this.zip64EndOfCentralSize-44;0<n;)t=this.reader.readInt(2),i=this.reader.readInt(4),r=this.reader.readData(i),this.zip64ExtensibleData[t]={id:t,length:i,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,i;for(t=0;t<this.files.length;t++)this.reader.setIndex((i=this.files[t]).localHeaderOffset),this.checkSignature(e.LOCAL_FILE_HEADER),i.readLocalPart(this.reader),i.handleUTF8(),i.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(e.CENTRAL_FILE_HEADER);)(t=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(e.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,e.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var i=t;if(this.checkSignature(e.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===n.MAX_VALUE_16BITS||this.diskWithCentralDirStart===n.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===n.MAX_VALUE_16BITS||this.centralDirRecords===n.MAX_VALUE_16BITS||this.centralDirSize===n.MAX_VALUE_32BITS||this.centralDirOffset===n.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(e.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(e.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,e.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(e.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(e.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var o=i-r;if(0<o)this.isSignature(i,e.CENTRAL_FILE_HEADER)||(this.reader.zero=o);else if(o<0)throw new Error("Corrupted zip: missing "+Math.abs(o)+" bytes.")},prepareReader:function(t){this.reader=r(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},i.exports=a},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,i){var r=t("./reader/readerFor"),n=t("./utils"),e=t("./compressedObject"),o=t("./crc32"),s=t("./utf8"),a=t("./compressions"),h=t("./support");function f(t,i){this.options=t,this.loadOptions=i}f.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(t){var i,r;if(t.skip(22),this.fileNameLength=t.readInt(2),r=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(i=function(t){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)&&a[i].magic===t)return a[i];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+n.pretty(this.compressionMethod)+" unknown (inner file : "+n.transformTo("string",this.fileName)+")");this.decompressed=new e(this.compressedSize,this.uncompressedSize,this.crc32,i,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var i=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(i),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var i,r,n,e=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<e;)i=t.readInt(2),r=t.readInt(2),n=t.readData(r),this.extraFields[i]={id:i,length:r,value:n};t.setIndex(e)},handleUTF8:function(){var t=h.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var i=this.findExtraFieldUnicodePath();if(null!==i)this.fileNameStr=i;else{var r=n.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var e=this.findExtraFieldUnicodeComment();if(null!==e)this.fileCommentStr=e;else{var o=n.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var i=r(t.value);return 1!==i.readInt(1)||o(this.fileName)!==i.readInt(4)?null:s.utf8decode(i.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var i=r(t.value);return 1!==i.readInt(1)||o(this.fileComment)!==i.readInt(4)?null:s.utf8decode(i.readData(t.length-5))}return null}},i.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,i){function r(t,i,r){this.name=t,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=i,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var n=t("./stream/StreamHelper"),e=t("./stream/DataWorker"),o=t("./utf8"),s=t("./compressedObject"),a=t("./stream/GenericWorker");r.prototype={internalStream:function(t){var i=null,r="string";try{if(!t)throw new Error("No output type specified.");var e="string"===(r=t.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),i=this._decompressWorker();var s=!this._dataBinary;s&&!e&&(i=i.pipe(new o.Utf8EncodeWorker)),!s&&e&&(i=i.pipe(new o.Utf8DecodeWorker))}catch(t){(i=new a("error")).error(t)}return new n(i,r,"")},async:function(t,i){return this.internalStream(t).accumulate(i)},nodeStream:function(t,i){return this.internalStream(t||"nodebuffer").toNodejsStream(i)},_compressWorker:function(t,i){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(r,t,i)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof a?this._data:new e(this._data)}};for(var h=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},u=0;u<h.length;u++)r.prototype[h[u]]=f;i.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(i,r){(function(t){var i,n,e=t.MutationObserver||t.WebKitMutationObserver;if(e){var o=0,s=new e(u),a=t.document.createTextNode("");s.observe(a,{characterData:!0}),i=function(){a.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)i="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var i=t.document.createElement("script");i.onreadystatechange=function(){u(),i.onreadystatechange=null,i.parentNode.removeChild(i),i=null},t.document.documentElement.appendChild(i)}:function(){setTimeout(u,0)};else{var h=new t.MessageChannel;h.port1.onmessage=u,i=function(){h.port2.postMessage(0)}}var f=[];function u(){var t,i;n=!0;for(var r=f.length;r;){for(i=f,f=[],t=-1;++t<r;)i[t]();r=f.length}n=!1}r.exports=function(t){1!==f.push(t)||n||i()}}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,i){var r=t("immediate");function n(){}var e={},o=["REJECTED"],s=["FULFILLED"],a=["PENDING"];function h(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=a,this.queue=[],this.outcome=void 0,t!==n&&l(this,t)}function f(t,i,r){this.promise=t,"function"==typeof i&&(this.onFulfilled=i,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function u(t,i,n){r((function(){var r;try{r=i(n)}catch(r){return e.reject(t,r)}r===t?e.reject(t,new TypeError("Cannot resolve promise with itself")):e.resolve(t,r)}))}function c(t){var i=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof i)return function(){i.apply(t,arguments)}}function l(t,i){var r=!1;function n(i){r||(r=!0,e.reject(t,i))}function o(i){r||(r=!0,e.resolve(t,i))}var s=d((function(){i(o,n)}));"error"===s.status&&n(s.value)}function d(t,i){var r={};try{r.value=t(i),r.status="success"}catch(t){r.status="error",r.value=t}return r}(i.exports=h).prototype.finally=function(t){if("function"!=typeof t)return this;var i=this.constructor;return this.then((function(r){return i.resolve(t()).then((function(){return r}))}),(function(r){return i.resolve(t()).then((function(){throw r}))}))},h.prototype.catch=function(t){return this.then(null,t)},h.prototype.then=function(t,i){if("function"!=typeof t&&this.state===s||"function"!=typeof i&&this.state===o)return this;var r=new this.constructor(n);return this.state!==a?u(r,this.state===s?t:i,this.outcome):this.queue.push(new f(r,t,i)),r},f.prototype.callFulfilled=function(t){e.resolve(this.promise,t)},f.prototype.otherCallFulfilled=function(t){u(this.promise,this.onFulfilled,t)},f.prototype.callRejected=function(t){e.reject(this.promise,t)},f.prototype.otherCallRejected=function(t){u(this.promise,this.onRejected,t)},e.resolve=function(t,i){var r=d(c,i);if("error"===r.status)return e.reject(t,r.value);var n=r.value;if(n)l(t,n);else{t.state=s,t.outcome=i;for(var o=-1,a=t.queue.length;++o<a;)t.queue[o].callFulfilled(i)}return t},e.reject=function(t,i){t.state=o,t.outcome=i;for(var r=-1,n=t.queue.length;++r<n;)t.queue[r].callRejected(i);return t},h.resolve=function(t){return t instanceof this?t:e.resolve(new this(n),t)},h.reject=function(t){var i=new this(n);return e.reject(i,t)},h.all=function(t){var i=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var r=t.length,o=!1;if(!r)return this.resolve([]);for(var s=new Array(r),a=0,h=-1,f=new this(n);++h<r;)u(t[h],h);return f;function u(t,n){i.resolve(t).then((function(t){s[n]=t,++a!==r||o||(o=!0,e.resolve(f,s))}),(function(t){o||(o=!0,e.reject(f,t))}))}},h.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var i=t.length,r=!1;if(!i)return this.resolve([]);for(var o=-1,s=new this(n);++o<i;)this.resolve(t[o]).then((function(t){r||(r=!0,e.resolve(s,t))}),(function(t){r||(r=!0,e.reject(s,t))}));return s}},{immediate:36}],38:[function(t,i){var r={};(0,t("./lib/utils/common").assign)(r,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),i.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,i,r){var n=t("./zlib/deflate"),e=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/messages"),a=t("./zlib/zstream"),h=Object.prototype.toString;function f(t){if(!(this instanceof f))return new f(t);this.options=e.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var i=this.options;i.raw&&0<i.windowBits?i.windowBits=-i.windowBits:i.gzip&&0<i.windowBits&&i.windowBits<16&&(i.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,i.level,i.method,i.windowBits,i.memLevel,i.strategy);if(0!==r)throw new Error(s[r]);if(i.header&&n.deflateSetHeader(this.strm,i.header),i.dictionary){var u;if(u="string"==typeof i.dictionary?o.string2buf(i.dictionary):"[object ArrayBuffer]"===h.call(i.dictionary)?new Uint8Array(i.dictionary):i.dictionary,0!==(r=n.deflateSetDictionary(this.strm,u)))throw new Error(s[r]);this._dict_set=!0}}function u(t,i){var r=new f(i);if(r.push(t,!0),r.err)throw r.msg||s[r.err];return r.result}f.prototype.push=function(t,i){var r,s,a=this.strm,f=this.options.chunkSize;if(this.ended)return!1;s=i===~~i?i:!0===i?4:0,a.input="string"==typeof t?o.string2buf(t):"[object ArrayBuffer]"===h.call(t)?new Uint8Array(t):t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new e.Buf8(f),a.next_out=0,a.avail_out=f),1!==(r=n.deflate(a,s))&&0!==r)return this.onEnd(r),!(this.ended=!0);0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||this.onData("string"===this.options.to?o.buf2binstring(e.shrinkBuf(a.output,a.next_out)):e.shrinkBuf(a.output,a.next_out))}while((0<a.avail_in||0===a.avail_out)&&1!==r);return 4===s?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==s||(this.onEnd(0),!(a.avail_out=0))},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){0===t&&(this.result="string"===this.options.to?this.chunks.join(""):e.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Deflate=f,r.deflate=u,r.deflateRaw=function(t,i){return(i=i||{}).raw=!0,u(t,i)},r.gzip=function(t,i){return(i=i||{}).gzip=!0,u(t,i)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,i,r){var n=t("./zlib/inflate"),e=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/constants"),a=t("./zlib/messages"),h=t("./zlib/zstream"),f=t("./zlib/gzheader"),u=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=e.assign({chunkSize:16384,windowBits:0,to:""},t||{});var i=this.options;i.raw&&0<=i.windowBits&&i.windowBits<16&&(i.windowBits=-i.windowBits,0===i.windowBits&&(i.windowBits=-15)),!(0<=i.windowBits&&i.windowBits<16)||t&&t.windowBits||(i.windowBits+=32),15<i.windowBits&&i.windowBits<48&&!(15&i.windowBits)&&(i.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,i.windowBits);if(r!==s.Z_OK)throw new Error(a[r]);this.header=new f,n.inflateGetHeader(this.strm,this.header)}function l(t,i){var r=new c(i);if(r.push(t,!0),r.err)throw r.msg||a[r.err];return r.result}c.prototype.push=function(t,i){var r,a,h,f,c,l,d=this.strm,p=this.options.chunkSize,m=this.options.dictionary,b=!1;if(this.ended)return!1;a=i===~~i?i:!0===i?s.Z_FINISH:s.Z_NO_FLUSH,d.input="string"==typeof t?o.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?new Uint8Array(t):t,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new e.Buf8(p),d.next_out=0,d.avail_out=p),(r=n.inflate(d,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&m&&(l="string"==typeof m?o.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,l)),r===s.Z_BUF_ERROR&&!0===b&&(r=s.Z_OK,b=!1),r!==s.Z_STREAM_END&&r!==s.Z_OK)return this.onEnd(r),!(this.ended=!0);d.next_out&&(0!==d.avail_out&&r!==s.Z_STREAM_END&&(0!==d.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(h=o.utf8border(d.output,d.next_out),f=d.next_out-h,c=o.buf2string(d.output,h),d.next_out=f,d.avail_out=p-f,f&&e.arraySet(d.output,d.output,h,f,0),this.onData(c)):this.onData(e.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(b=!0)}while((0<d.avail_in||0===d.avail_out)&&r!==s.Z_STREAM_END);return r===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(d.avail_out=0))},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){t===s.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):e.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Inflate=c,r.inflate=l,r.inflateRaw=function(t,i){return(i=i||{}).raw=!0,l(t,i)},r.ungzip=l},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,i,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(t){for(var i=Array.prototype.slice.call(arguments,1);i.length;){var r=i.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n])}}return t},r.shrinkBuf=function(t,i){return t.length===i?t:t.subarray?t.subarray(0,i):(t.length=i,t)};var e={arraySet:function(t,i,r,n,e){if(i.subarray&&t.subarray)t.set(i.subarray(r,r+n),e);else for(var o=0;o<n;o++)t[e+o]=i[r+o]},flattenChunks:function(t){var i,r,n,e,o,s;for(i=n=0,r=t.length;i<r;i++)n+=t[i].length;for(s=new Uint8Array(n),i=e=0,r=t.length;i<r;i++)s.set(o=t[i],e),e+=o.length;return s}},o={arraySet:function(t,i,r,n,e){for(var o=0;o<n;o++)t[e+o]=i[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};r.setTyped=function(t){t?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,e)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],42:[function(t,i,r){var n=t("./common"),e=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){e=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var s=new n.Buf8(256),a=0;a<256;a++)s[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function h(t,i){if(i<65537&&(t.subarray&&o||!t.subarray&&e))return String.fromCharCode.apply(null,n.shrinkBuf(t,i));for(var r="",s=0;s<i;s++)r+=String.fromCharCode(t[s]);return r}s[254]=s[254]=1,r.string2buf=function(t){var i,r,e,o,s,a=t.length,h=0;for(o=0;o<a;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(e=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(e-56320),o++),h+=r<128?1:r<2048?2:r<65536?3:4;for(i=new n.Buf8(h),o=s=0;s<h;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(e=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(e-56320),o++),r<128?i[s++]=r:(r<2048?i[s++]=192|r>>>6:(r<65536?i[s++]=224|r>>>12:(i[s++]=240|r>>>18,i[s++]=128|r>>>12&63),i[s++]=128|r>>>6&63),i[s++]=128|63&r);return i},r.buf2binstring=function(t){return h(t,t.length)},r.binstring2buf=function(t){for(var i=new n.Buf8(t.length),r=0,e=i.length;r<e;r++)i[r]=t.charCodeAt(r);return i},r.buf2string=function(t,i){var r,n,e,o,a=i||t.length,f=new Array(2*a);for(r=n=0;r<a;)if((e=t[r++])<128)f[n++]=e;else if(4<(o=s[e]))f[n++]=65533,r+=o-1;else{for(e&=2===o?31:3===o?15:7;1<o&&r<a;)e=e<<6|63&t[r++],o--;1<o?f[n++]=65533:e<65536?f[n++]=e:(f[n++]=55296|(e-=65536)>>10&1023,f[n++]=56320|1023&e)}return h(f,n)},r.utf8border=function(t,i){var r;for((i=i||t.length)>t.length&&(i=t.length),r=i-1;0<=r&&128==(192&t[r]);)r--;return r<0||0===r?i:r+s[t[r]]>i?r:i}},{"./common":41}],43:[function(t,i){i.exports=function(t,i,r,n){for(var e=65535&t,o=t>>>16&65535,s=0;0!==r;){for(r-=s=2e3<r?2e3:r;o=o+(e=e+i[n++]|0)|0,--s;);e%=65521,o%=65521}return e|o<<16}},{}],44:[function(t,i){i.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,i){var r=function(){for(var t,i=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;i[r]=t}return i}();i.exports=function(t,i,n,e){var o=r,s=e+n;t^=-1;for(var a=e;a<s;a++)t=t>>>8^o[255&(t^i[a])];return~t}},{}],46:[function(t,i,r){var n,e=t("../utils/common"),o=t("./trees"),s=t("./adler32"),a=t("./crc32"),h=t("./messages"),f=-2,u=258,c=262,l=113;function d(t,i){return t.msg=h[i],i}function p(t){return(t<<1)-(4<t?9:0)}function m(t){for(var i=t.length;0<=--i;)t[i]=0}function b(t){var i=t.state,r=i.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(e.arraySet(t.output,i.pending_buf,i.pending_out,r,t.next_out),t.next_out+=r,i.pending_out+=r,t.total_out+=r,t.avail_out-=r,i.pending-=r,0===i.pending&&(i.pending_out=0))}function w(t,i){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,i),t.block_start=t.strstart,b(t.strm)}function v(t,i){t.pending_buf[t.pending++]=i}function x(t,i){t.pending_buf[t.pending++]=i>>>8&255,t.pending_buf[t.pending++]=255&i}function g(t,i){var r,n,e=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,h=t.strstart>t.w_size-c?t.strstart-(t.w_size-c):0,f=t.window,l=t.w_mask,d=t.prev,p=t.strstart+u,m=f[o+s-1],b=f[o+s];t.prev_length>=t.good_match&&(e>>=2),a>t.lookahead&&(a=t.lookahead);do{if(f[(r=i)+s]===b&&f[r+s-1]===m&&f[r]===f[o]&&f[++r]===f[o+1]){o+=2,r++;do{}while(f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&o<p);if(n=u-(p-o),o=p-u,s<n){if(t.match_start=i,a<=(s=n))break;m=f[o+s-1],b=f[o+s]}}}while((i=d[i&l])>h&&0!=--e);return s<=t.lookahead?s:t.lookahead}function y(t){var i,r,n,o,h,f,u,l,d,p,m=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=m+(m-c)){for(e.arraySet(t.window,t.window,m,m,0),t.match_start-=m,t.strstart-=m,t.block_start-=m,i=r=t.hash_size;n=t.head[--i],t.head[i]=m<=n?n-m:0,--r;);for(i=r=m;n=t.prev[--i],t.prev[i]=m<=n?n-m:0,--r;);o+=m}if(0===t.strm.avail_in)break;if(u=t.window,l=t.strstart+t.lookahead,p=void 0,(d=o)<(p=(f=t.strm).avail_in)&&(p=d),r=0===p?0:(f.avail_in-=p,e.arraySet(u,f.input,f.next_in,p,l),1===f.state.wrap?f.adler=s(f.adler,u,p,l):2===f.state.wrap&&(f.adler=a(f.adler,u,p,l)),f.next_in+=p,f.total_in+=p,p),t.lookahead+=r,t.lookahead+t.insert>=3)for(t.ins_h=t.window[h=t.strstart-t.insert],t.ins_h=(t.ins_h<<t.hash_shift^t.window[h+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[h+3-1])&t.hash_mask,t.prev[h&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=h,h++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<c&&0!==t.strm.avail_in)}function k(t,i){for(var r,n;;){if(t.lookahead<c){if(y(t),t.lookahead<c&&0===i)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-c&&(t.match_length=g(t,r)),t.match_length>=3)if(n=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(w(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===i?(w(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(w(t,!1),0===t.strm.avail_out)?1:2}function E(t,i){for(var r,n,e;;){if(t.lookahead<c){if(y(t),t.lookahead<c&&0===i)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-c&&(t.match_length=g(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(e=t.strstart+t.lookahead-3,n=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=e&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,n&&(w(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=o._tr_tally(t,0,t.window[t.strstart-1]))&&w(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===i?(w(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(w(t,!1),0===t.strm.avail_out)?1:2}function A(t,i,r,n,e){this.good_length=t,this.max_lazy=i,this.nice_length=r,this.max_chain=n,this.func=e}function j(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(1146),this.dyn_dtree=new e.Buf16(122),this.bl_tree=new e.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(16),this.heap=new e.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(573),m(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function S(t){var i;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(i=t.state).pending=0,i.pending_out=0,i.wrap<0&&(i.wrap=-i.wrap),i.status=i.wrap?42:l,t.adler=2===i.wrap?0:1,i.last_flush=0,o._tr_init(i),0):d(t,f)}function z(t){var i=S(t);return 0===i&&function(t){t.window_size=2*t.w_size,m(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0}(t.state),i}function C(t,i,r,n,o,s){if(!t)return f;var a=1;if(-1===i&&(i=6),n<0?(a=0,n=-n):15<n&&(a=2,n-=16),o<1||9<o||8!==r||n<8||15<n||i<0||9<i||s<0||4<s)return d(t,f);8===n&&(n=9);var h=new j;return(t.state=h).strm=t,h.wrap=a,h.gzhead=null,h.w_bits=n,h.w_size=1<<h.w_bits,h.w_mask=h.w_size-1,h.hash_bits=o+7,h.hash_size=1<<h.hash_bits,h.hash_mask=h.hash_size-1,h.hash_shift=~~((h.hash_bits+3-1)/3),h.window=new e.Buf8(2*h.w_size),h.head=new e.Buf16(h.hash_size),h.prev=new e.Buf16(h.w_size),h.lit_bufsize=1<<o+6,h.pending_buf_size=4*h.lit_bufsize,h.pending_buf=new e.Buf8(h.pending_buf_size),h.d_buf=1*h.lit_bufsize,h.l_buf=3*h.lit_bufsize,h.level=i,h.strategy=s,h.method=r,z(t)}n=[new A(0,0,0,0,(function(t,i){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(y(t),0===t.lookahead&&0===i)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,w(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-c&&(w(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===i?(w(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&w(t,!1),1)})),new A(4,4,8,4,k),new A(4,5,16,8,k),new A(4,6,32,32,k),new A(4,4,16,16,E),new A(8,16,32,32,E),new A(8,16,128,128,E),new A(8,32,128,256,E),new A(32,128,258,1024,E),new A(32,258,258,4096,E)],r.deflateInit=function(t,i){return C(t,i,8,15,8,0)},r.deflateInit2=C,r.deflateReset=z,r.deflateResetKeep=S,r.deflateSetHeader=function(t,i){return t&&t.state?2!==t.state.wrap?f:(t.state.gzhead=i,0):f},r.deflate=function(t,i){var r,e,s,h;if(!t||!t.state||5<i||i<0)return t?d(t,f):f;if(e=t.state,!t.output||!t.input&&0!==t.avail_in||666===e.status&&4!==i)return d(t,0===t.avail_out?-5:f);if(e.strm=t,r=e.last_flush,e.last_flush=i,42===e.status)if(2===e.wrap)t.adler=0,v(e,31),v(e,139),v(e,8),e.gzhead?(v(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),v(e,255&e.gzhead.time),v(e,e.gzhead.time>>8&255),v(e,e.gzhead.time>>16&255),v(e,e.gzhead.time>>24&255),v(e,9===e.level?2:2<=e.strategy||e.level<2?4:0),v(e,255&e.gzhead.os),e.gzhead.extra&&e.gzhead.extra.length&&(v(e,255&e.gzhead.extra.length),v(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(t.adler=a(t.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=69):(v(e,0),v(e,0),v(e,0),v(e,0),v(e,0),v(e,9===e.level?2:2<=e.strategy||e.level<2?4:0),v(e,3),e.status=l);else{var c=8+(e.w_bits-8<<4)<<8;c|=(2<=e.strategy||e.level<2?0:e.level<6?1:6===e.level?2:3)<<6,0!==e.strstart&&(c|=32),c+=31-c%31,e.status=l,x(e,c),0!==e.strstart&&(x(e,t.adler>>>16),x(e,65535&t.adler)),t.adler=1}if(69===e.status)if(e.gzhead.extra){for(s=e.pending;e.gzindex<(65535&e.gzhead.extra.length)&&(e.pending!==e.pending_buf_size||(e.gzhead.hcrc&&e.pending>s&&(t.adler=a(t.adler,e.pending_buf,e.pending-s,s)),b(t),s=e.pending,e.pending!==e.pending_buf_size));)v(e,255&e.gzhead.extra[e.gzindex]),e.gzindex++;e.gzhead.hcrc&&e.pending>s&&(t.adler=a(t.adler,e.pending_buf,e.pending-s,s)),e.gzindex===e.gzhead.extra.length&&(e.gzindex=0,e.status=73)}else e.status=73;if(73===e.status)if(e.gzhead.name){s=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>s&&(t.adler=a(t.adler,e.pending_buf,e.pending-s,s)),b(t),s=e.pending,e.pending===e.pending_buf_size)){h=1;break}h=e.gzindex<e.gzhead.name.length?255&e.gzhead.name.charCodeAt(e.gzindex++):0,v(e,h)}while(0!==h);e.gzhead.hcrc&&e.pending>s&&(t.adler=a(t.adler,e.pending_buf,e.pending-s,s)),0===h&&(e.gzindex=0,e.status=91)}else e.status=91;if(91===e.status)if(e.gzhead.comment){s=e.pending;do{if(e.pending===e.pending_buf_size&&(e.gzhead.hcrc&&e.pending>s&&(t.adler=a(t.adler,e.pending_buf,e.pending-s,s)),b(t),s=e.pending,e.pending===e.pending_buf_size)){h=1;break}h=e.gzindex<e.gzhead.comment.length?255&e.gzhead.comment.charCodeAt(e.gzindex++):0,v(e,h)}while(0!==h);e.gzhead.hcrc&&e.pending>s&&(t.adler=a(t.adler,e.pending_buf,e.pending-s,s)),0===h&&(e.status=103)}else e.status=103;if(103===e.status&&(e.gzhead.hcrc?(e.pending+2>e.pending_buf_size&&b(t),e.pending+2<=e.pending_buf_size&&(v(e,255&t.adler),v(e,t.adler>>8&255),t.adler=0,e.status=l)):e.status=l),0!==e.pending){if(b(t),0===t.avail_out)return e.last_flush=-1,0}else if(0===t.avail_in&&p(i)<=p(r)&&4!==i)return d(t,-5);if(666===e.status&&0!==t.avail_in)return d(t,-5);if(0!==t.avail_in||0!==e.lookahead||0!==i&&666!==e.status){var g=2===e.strategy?function(t,i){for(var r;;){if(0===t.lookahead&&(y(t),0===t.lookahead)){if(0===i)return 1;break}if(t.match_length=0,r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(w(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===i?(w(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(w(t,!1),0===t.strm.avail_out)?1:2}(e,i):3===e.strategy?function(t,i){for(var r,n,e,s,a=t.window;;){if(t.lookahead<=u){if(y(t),t.lookahead<=u&&0===i)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(n=a[e=t.strstart-1])===a[++e]&&n===a[++e]&&n===a[++e]){s=t.strstart+u;do{}while(n===a[++e]&&n===a[++e]&&n===a[++e]&&n===a[++e]&&n===a[++e]&&n===a[++e]&&n===a[++e]&&n===a[++e]&&e<s);t.match_length=u-(s-e),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(w(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===i?(w(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(w(t,!1),0===t.strm.avail_out)?1:2}(e,i):n[e.level].func(e,i);if(3!==g&&4!==g||(e.status=666),1===g||3===g)return 0===t.avail_out&&(e.last_flush=-1),0;if(2===g&&(1===i?o._tr_align(e):5!==i&&(o._tr_stored_block(e,0,0,!1),3===i&&(m(e.head),0===e.lookahead&&(e.strstart=0,e.block_start=0,e.insert=0))),b(t),0===t.avail_out))return e.last_flush=-1,0}return 4!==i?0:e.wrap<=0?1:(2===e.wrap?(v(e,255&t.adler),v(e,t.adler>>8&255),v(e,t.adler>>16&255),v(e,t.adler>>24&255),v(e,255&t.total_in),v(e,t.total_in>>8&255),v(e,t.total_in>>16&255),v(e,t.total_in>>24&255)):(x(e,t.adler>>>16),x(e,65535&t.adler)),b(t),0<e.wrap&&(e.wrap=-e.wrap),0!==e.pending?0:1)},r.deflateEnd=function(t){var i;return t&&t.state?42!==(i=t.state.status)&&69!==i&&73!==i&&91!==i&&103!==i&&i!==l&&666!==i?d(t,f):(t.state=null,i===l?d(t,-3):0):f},r.deflateSetDictionary=function(t,i){var r,n,o,a,h,u,c,l,d=i.length;if(!t||!t.state)return f;if(2===(a=(r=t.state).wrap)||1===a&&42!==r.status||r.lookahead)return f;for(1===a&&(t.adler=s(t.adler,i,d,0)),r.wrap=0,d>=r.w_size&&(0===a&&(m(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new e.Buf8(r.w_size),e.arraySet(l,i,d-r.w_size,r.w_size,0),i=l,d=r.w_size),h=t.avail_in,u=t.next_in,c=t.input,t.avail_in=d,t.next_in=0,t.input=i,y(r);r.lookahead>=3;){for(n=r.strstart,o=r.lookahead-2;r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--o;);r.strstart=n,r.lookahead=2,y(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,t.next_in=u,t.input=c,t.avail_in=h,r.wrap=a,0},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,i){i.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,i){i.exports=function(t,i){var r,n,e,o,s,a,h,f,u,c,l,d,p,m,b,w,v,x,g,y,k,E,A,j,S;j=t.input,e=(n=t.next_in)+(t.avail_in-5),S=t.output,s=(o=t.next_out)-(i-t.avail_out),a=o+(t.avail_out-257),h=(r=t.state).dmax,f=r.wsize,u=r.whave,c=r.wnext,l=r.window,d=r.hold,p=r.bits,m=r.lencode,b=r.distcode,w=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;t:do{p<15&&(d+=j[n++]<<p,d+=j[n++]<<(p+=8),p+=8),x=m[d&w];i:for(;;){if(d>>>=g=x>>>24,p-=g,0==(g=x>>>16&255))S[o++]=65535&x;else{if(!(16&g)){if(!(64&g)){x=m[(65535&x)+(d&(1<<g)-1)];continue i}if(32&g){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}y=65535&x,(g&=15)&&(p<g&&(d+=j[n++]<<p,p+=8),y+=d&(1<<g)-1,d>>>=g,p-=g),p<15&&(d+=j[n++]<<p,d+=j[n++]<<(p+=8),p+=8),x=b[d&v];r:for(;;){if(d>>>=g=x>>>24,p-=g,!(16&(g=x>>>16&255))){if(!(64&g)){x=b[(65535&x)+(d&(1<<g)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(k=65535&x,p<(g&=15)&&(d+=j[n++]<<p,(p+=8)<g&&(d+=j[n++]<<p,p+=8)),h<(k+=d&(1<<g)-1)){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=g,p-=g,(g=o-s)<k){if(u<(g=k-g)&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(A=l,(E=0)===c){if(E+=f-g,g<y){for(y-=g;S[o++]=l[E++],--g;);E=o-k,A=S}}else if(c<g){if(E+=f+c-g,(g-=c)<y){for(y-=g;S[o++]=l[E++],--g;);if(E=0,c<y){for(y-=g=c;S[o++]=l[E++],--g;);E=o-k,A=S}}}else if(E+=c-g,g<y){for(y-=g;S[o++]=l[E++],--g;);E=o-k,A=S}for(;2<y;)S[o++]=A[E++],S[o++]=A[E++],S[o++]=A[E++],y-=3;y&&(S[o++]=A[E++],1<y&&(S[o++]=A[E++]))}else{for(E=o-k;S[o++]=S[E++],S[o++]=S[E++],S[o++]=S[E++],2<(y-=3););y&&(S[o++]=S[E++],1<y&&(S[o++]=S[E++]))}break}}break}}while(n<e&&o<a);n-=y=p>>3,d&=(1<<(p-=y<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<e?e-n+5:5-(n-e),t.avail_out=o<a?a-o+257:257-(o-a),r.hold=d,r.bits=p}},{}],49:[function(t,i,r){var n=t("../utils/common"),e=t("./adler32"),o=t("./crc32"),s=t("./inffast"),a=t("./inftrees"),h=-2;function f(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function c(t){var i;return t&&t.state?(t.total_in=t.total_out=(i=t.state).total=0,t.msg="",i.wrap&&(t.adler=1&i.wrap),i.mode=1,i.last=0,i.havedict=0,i.dmax=32768,i.head=null,i.hold=0,i.bits=0,i.lencode=i.lendyn=new n.Buf32(852),i.distcode=i.distdyn=new n.Buf32(592),i.sane=1,i.back=-1,0):h}function l(t){var i;return t&&t.state?((i=t.state).wsize=0,i.whave=0,i.wnext=0,c(t)):h}function d(t,i){var r,n;return t&&t.state?(n=t.state,i<0?(r=0,i=-i):(r=1+(i>>4),i<48&&(i&=15)),i&&(i<8||15<i)?h:(null!==n.window&&n.wbits!==i&&(n.window=null),n.wrap=r,n.wbits=i,l(t))):h}function p(t,i){var r,n;return t?(n=new u,(t.state=n).window=null,0!==(r=d(t,i))&&(t.state=null),r):h}var m,b,w=!0;function v(t){if(w){var i;for(m=new n.Buf32(512),b=new n.Buf32(32),i=0;i<144;)t.lens[i++]=8;for(;i<256;)t.lens[i++]=9;for(;i<280;)t.lens[i++]=7;for(;i<288;)t.lens[i++]=8;for(a(1,t.lens,0,288,m,0,t.work,{bits:9}),i=0;i<32;)t.lens[i++]=5;a(2,t.lens,0,32,b,0,t.work,{bits:5}),w=!1}t.lencode=m,t.lenbits=9,t.distcode=b,t.distbits=5}function x(t,i,r,e){var o,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),e>=s.wsize?(n.arraySet(s.window,i,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(e<(o=s.wsize-s.wnext)&&(o=e),n.arraySet(s.window,i,r-e,o,s.wnext),(e-=o)?(n.arraySet(s.window,i,r-e,e,0),s.wnext=e,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}r.inflateReset=l,r.inflateReset2=d,r.inflateResetKeep=c,r.inflateInit=function(t){return p(t,15)},r.inflateInit2=p,r.inflate=function(t,i){var r,u,c,l,d,p,m,b,w,g,y,k,E,A,j,S,z,C,B,O,U,D,T,R,F=0,P=new n.Buf8(4),I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return h;12===(r=t.state).mode&&(r.mode=13),d=t.next_out,c=t.output,l=t.next_in,u=t.input,b=r.hold,w=r.bits,g=p=t.avail_in,y=m=t.avail_out,D=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;w<16;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(2&r.wrap&&35615===b){P[r.check=0]=255&b,P[1]=b>>>8&255,r.check=o(r.check,P,2,0),w=b=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&b)<<8)+(b>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&b)){t.msg="unknown compression method",r.mode=30;break}if(w-=4,U=8+(15&(b>>>=4)),0===r.wbits)r.wbits=U;else if(U>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<U,t.adler=r.check=1,r.mode=512&b?10:12,w=b=0;break;case 2:for(;w<16;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(r.flags=b,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=b>>8&1),512&r.flags&&(P[0]=255&b,P[1]=b>>>8&255,r.check=o(r.check,P,2,0)),w=b=0,r.mode=3;case 3:for(;w<32;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}r.head&&(r.head.time=b),512&r.flags&&(P[0]=255&b,P[1]=b>>>8&255,P[2]=b>>>16&255,P[3]=b>>>24&255,r.check=o(r.check,P,4,0)),w=b=0,r.mode=4;case 4:for(;w<16;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}r.head&&(r.head.xflags=255&b,r.head.os=b>>8),512&r.flags&&(P[0]=255&b,P[1]=b>>>8&255,r.check=o(r.check,P,2,0)),w=b=0,r.mode=5;case 5:if(1024&r.flags){for(;w<16;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}r.length=b,r.head&&(r.head.extra_len=b),512&r.flags&&(P[0]=255&b,P[1]=b>>>8&255,r.check=o(r.check,P,2,0)),w=b=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(p<(k=r.length)&&(k=p),k&&(r.head&&(U=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,u,l,k,U)),512&r.flags&&(r.check=o(r.check,u,k,l)),p-=k,l+=k,r.length-=k),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===p)break t;for(k=0;U=u[l+k++],r.head&&U&&r.length<65536&&(r.head.name+=String.fromCharCode(U)),U&&k<p;);if(512&r.flags&&(r.check=o(r.check,u,k,l)),p-=k,l+=k,U)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===p)break t;for(k=0;U=u[l+k++],r.head&&U&&r.length<65536&&(r.head.comment+=String.fromCharCode(U)),U&&k<p;);if(512&r.flags&&(r.check=o(r.check,u,k,l)),p-=k,l+=k,U)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;w<16;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(b!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}w=b=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;w<32;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}t.adler=r.check=f(b),w=b=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=d,t.avail_out=m,t.next_in=l,t.avail_in=p,r.hold=b,r.bits=w,2;t.adler=r.check=1,r.mode=12;case 12:if(5===i||6===i)break t;case 13:if(r.last){b>>>=7&w,w-=7&w,r.mode=27;break}for(;w<3;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}switch(r.last=1&b,w-=1,3&(b>>>=1)){case 0:r.mode=14;break;case 1:if(v(r),r.mode=20,6!==i)break;b>>>=2,w-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}b>>>=2,w-=2;break;case 14:for(b>>>=7&w,w-=7&w;w<32;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if((65535&b)!=(b>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&b,w=b=0,r.mode=15,6===i)break t;case 15:r.mode=16;case 16:if(k=r.length){if(p<k&&(k=p),m<k&&(k=m),0===k)break t;n.arraySet(c,u,l,k,d),p-=k,l+=k,m-=k,d+=k,r.length-=k;break}r.mode=12;break;case 17:for(;w<14;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(r.nlen=257+(31&b),w-=5,r.ndist=1+(31&(b>>>=5)),w-=5,r.ncode=4+(15&(b>>>=5)),b>>>=4,w-=4,286<r.nlen||30<r.ndist){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;w<3;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}r.lens[I[r.have++]]=7&b,b>>>=3,w-=3}for(;r.have<19;)r.lens[I[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,D=a(0,r.lens,0,19,r.lencode,0,r.work,T={bits:r.lenbits}),r.lenbits=T.bits,D){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;S=(F=r.lencode[b&(1<<r.lenbits)-1])>>>16&255,z=65535&F,!((j=F>>>24)<=w);){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(z<16)b>>>=j,w-=j,r.lens[r.have++]=z;else{if(16===z){for(R=j+2;w<R;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(b>>>=j,w-=j,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}U=r.lens[r.have-1],k=3+(3&b),b>>>=2,w-=2}else if(17===z){for(R=j+3;w<R;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}w-=j,U=0,k=3+(7&(b>>>=j)),b>>>=3,w-=3}else{for(R=j+7;w<R;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}w-=j,U=0,k=11+(127&(b>>>=j)),b>>>=7,w-=7}if(r.have+k>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;k--;)r.lens[r.have++]=U}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,D=a(1,r.lens,0,r.nlen,r.lencode,0,r.work,T={bits:r.lenbits}),r.lenbits=T.bits,D){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,D=a(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,T={bits:r.distbits}),r.distbits=T.bits,D){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===i)break t;case 20:r.mode=21;case 21:if(6<=p&&258<=m){t.next_out=d,t.avail_out=m,t.next_in=l,t.avail_in=p,r.hold=b,r.bits=w,s(t,y),d=t.next_out,c=t.output,m=t.avail_out,l=t.next_in,u=t.input,p=t.avail_in,b=r.hold,w=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;S=(F=r.lencode[b&(1<<r.lenbits)-1])>>>16&255,z=65535&F,!((j=F>>>24)<=w);){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(S&&!(240&S)){for(C=j,B=S,O=z;S=(F=r.lencode[O+((b&(1<<C+B)-1)>>C)])>>>16&255,z=65535&F,!(C+(j=F>>>24)<=w);){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}b>>>=C,w-=C,r.back+=C}if(b>>>=j,w-=j,r.back+=j,r.length=z,0===S){r.mode=26;break}if(32&S){r.back=-1,r.mode=12;break}if(64&S){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&S,r.mode=22;case 22:if(r.extra){for(R=r.extra;w<R;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}r.length+=b&(1<<r.extra)-1,b>>>=r.extra,w-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;S=(F=r.distcode[b&(1<<r.distbits)-1])>>>16&255,z=65535&F,!((j=F>>>24)<=w);){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(!(240&S)){for(C=j,B=S,O=z;S=(F=r.distcode[O+((b&(1<<C+B)-1)>>C)])>>>16&255,z=65535&F,!(C+(j=F>>>24)<=w);){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}b>>>=C,w-=C,r.back+=C}if(b>>>=j,w-=j,r.back+=j,64&S){t.msg="invalid distance code",r.mode=30;break}r.offset=z,r.extra=15&S,r.mode=24;case 24:if(r.extra){for(R=r.extra;w<R;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}r.offset+=b&(1<<r.extra)-1,b>>>=r.extra,w-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===m)break t;if(r.offset>(k=y-m)){if((k=r.offset-k)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}E=k>r.wnext?r.wsize-(k-=r.wnext):r.wnext-k,k>r.length&&(k=r.length),A=r.window}else A=c,E=d-r.offset,k=r.length;for(m<k&&(k=m),m-=k,r.length-=k;c[d++]=A[E++],--k;);0===r.length&&(r.mode=21);break;case 26:if(0===m)break t;c[d++]=r.length,m--,r.mode=21;break;case 27:if(r.wrap){for(;w<32;){if(0===p)break t;p--,b|=u[l++]<<w,w+=8}if(t.total_out+=y-=m,r.total+=y,y&&(t.adler=r.check=r.flags?o(r.check,c,y,d-y):e(r.check,c,y,d-y)),y=m,(r.flags?b:f(b))!==r.check){t.msg="incorrect data check",r.mode=30;break}w=b=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;w<32;){if(0===p)break t;p--,b+=u[l++]<<w,w+=8}if(b!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}w=b=0}r.mode=29;case 29:D=1;break t;case 30:D=-3;break t;case 31:return-4;default:return h}return t.next_out=d,t.avail_out=m,t.next_in=l,t.avail_in=p,r.hold=b,r.bits=w,(r.wsize||y!==t.avail_out&&r.mode<30&&(r.mode<27||4!==i))&&x(t,t.output,t.next_out,y-t.avail_out)?(r.mode=31,-4):(y-=t.avail_out,t.total_in+=g-=t.avail_in,t.total_out+=y,r.total+=y,r.wrap&&y&&(t.adler=r.check=r.flags?o(r.check,c,y,t.next_out-y):e(r.check,c,y,t.next_out-y)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==g&&0===y||4===i)&&0===D&&(D=-5),D)},r.inflateEnd=function(t){if(!t||!t.state)return h;var i=t.state;return i.window&&(i.window=null),t.state=null,0},r.inflateGetHeader=function(t,i){var r;return t&&t.state&&2&(r=t.state).wrap?((r.head=i).done=!1,0):h},r.inflateSetDictionary=function(t,i){var r,n=i.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?h:11===r.mode&&e(1,i,n,0)!==r.check?-3:x(t,i,n,n)?(r.mode=31,-4):(r.havedict=1,0):h},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,i){var r=t("../utils/common"),n=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],e=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];i.exports=function(t,i,a,h,f,u,c,l){var d,p,m,b,w,v,x,g,y,k=l.bits,E=0,A=0,j=0,S=0,z=0,C=0,B=0,O=0,U=0,D=0,T=null,R=0,F=new r.Buf16(16),P=new r.Buf16(16),I=null,_=0;for(E=0;E<=15;E++)F[E]=0;for(A=0;A<h;A++)F[i[a+A]]++;for(z=k,S=15;1<=S&&0===F[S];S--);if(S<z&&(z=S),0===S)return f[u++]=20971520,f[u++]=20971520,l.bits=1,0;for(j=1;j<S&&0===F[j];j++);for(z<j&&(z=j),E=O=1;E<=15;E++)if(O<<=1,(O-=F[E])<0)return-1;if(0<O&&(0===t||1!==S))return-1;for(P[1]=0,E=1;E<15;E++)P[E+1]=P[E]+F[E];for(A=0;A<h;A++)0!==i[a+A]&&(c[P[i[a+A]]++]=A);if(v=0===t?(T=I=c,19):1===t?(T=n,R-=257,I=e,_-=257,256):(T=o,I=s,-1),E=j,w=u,B=A=D=0,m=-1,b=(U=1<<(C=z))-1,1===t&&852<U||2===t&&592<U)return 1;for(;;){for(x=E-B,y=c[A]<v?(g=0,c[A]):c[A]>v?(g=I[_+c[A]],T[R+c[A]]):(g=96,0),d=1<<E-B,j=p=1<<C;f[w+(D>>B)+(p-=d)]=x<<24|g<<16|y,0!==p;);for(d=1<<E-1;D&d;)d>>=1;if(0!==d?(D&=d-1,D+=d):D=0,A++,0==--F[E]){if(E===S)break;E=i[a+c[A]]}if(z<E&&(D&b)!==m){for(0===B&&(B=z),w+=j,O=1<<(C=E-B);C+B<S&&!((O-=F[C+B])<=0);)C++,O<<=1;if(U+=1<<C,1===t&&852<U||2===t&&592<U)return 1;f[m=D&b]=z<<24|C<<16|w-u}}return 0!==D&&(f[w+D]=E-B<<24|64<<16),l.bits=z,0}},{"../utils/common":41}],51:[function(t,i){i.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,i,r){var n=t("../utils/common");function e(t){for(var i=t.length;0<=--i;)t[i]=0}var o=256,s=286,a=30,h=15,f=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],u=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],d=new Array(576);e(d);var p=new Array(60);e(p);var m=new Array(512);e(m);var b=new Array(256);e(b);var w=new Array(29);e(w);var v,x,g,y=new Array(a);function k(t,i,r,n,e){this.static_tree=t,this.extra_bits=i,this.extra_base=r,this.elems=n,this.max_length=e,this.has_stree=t&&t.length}function E(t,i){this.dyn_tree=t,this.max_code=0,this.stat_desc=i}function A(t){return t<256?m[t]:m[256+(t>>>7)]}function j(t,i){t.pending_buf[t.pending++]=255&i,t.pending_buf[t.pending++]=i>>>8&255}function S(t,i,r){t.bi_valid>16-r?(t.bi_buf|=i<<t.bi_valid&65535,j(t,t.bi_buf),t.bi_buf=i>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=i<<t.bi_valid&65535,t.bi_valid+=r)}function z(t,i,r){S(t,r[2*i],r[2*i+1])}function C(t,i){for(var r=0;r|=1&t,t>>>=1,r<<=1,0<--i;);return r>>>1}function B(t,i,r){var n,e,o=new Array(16),s=0;for(n=1;n<=h;n++)o[n]=s=s+r[n-1]<<1;for(e=0;e<=i;e++){var a=t[2*e+1];0!==a&&(t[2*e]=C(o[a]++,a))}}function O(t){var i;for(i=0;i<s;i++)t.dyn_ltree[2*i]=0;for(i=0;i<a;i++)t.dyn_dtree[2*i]=0;for(i=0;i<19;i++)t.bl_tree[2*i]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function U(t){8<t.bi_valid?j(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function D(t,i,r,n){var e=2*i,o=2*r;return t[e]<t[o]||t[e]===t[o]&&n[i]<=n[r]}function T(t,i,r){for(var n=t.heap[r],e=r<<1;e<=t.heap_len&&(e<t.heap_len&&D(i,t.heap[e+1],t.heap[e],t.depth)&&e++,!D(i,n,t.heap[e],t.depth));)t.heap[r]=t.heap[e],r=e,e<<=1;t.heap[r]=n}function R(t,i,r){var n,e,s,a,h=0;if(0!==t.last_lit)for(;n=t.pending_buf[t.d_buf+2*h]<<8|t.pending_buf[t.d_buf+2*h+1],e=t.pending_buf[t.l_buf+h],h++,0===n?z(t,e,i):(z(t,(s=b[e])+o+1,i),0!==(a=f[s])&&S(t,e-=w[s],a),z(t,s=A(--n),r),0!==(a=u[s])&&S(t,n-=y[s],a)),h<t.last_lit;);z(t,256,i)}function F(t,i){var r,n,e,o=i.dyn_tree,s=i.stat_desc.static_tree,a=i.stat_desc.has_stree,f=i.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<f;r++)0!==o[2*r]?(t.heap[++t.heap_len]=u=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(e=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[e]=0,t.opt_len--,a&&(t.static_len-=s[2*e+1]);for(i.max_code=u,r=t.heap_len>>1;1<=r;r--)T(t,o,r);for(e=f;r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],T(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*e]=o[2*r]+o[2*n],t.depth[e]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=e,t.heap[1]=e++,T(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,i){var r,n,e,o,s,a,f=i.dyn_tree,u=i.max_code,c=i.stat_desc.static_tree,l=i.stat_desc.has_stree,d=i.stat_desc.extra_bits,p=i.stat_desc.extra_base,m=i.stat_desc.max_length,b=0;for(o=0;o<=h;o++)t.bl_count[o]=0;for(f[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;r++)m<(o=f[2*f[2*(n=t.heap[r])+1]+1]+1)&&(o=m,b++),f[2*n+1]=o,u<n||(t.bl_count[o]++,s=0,p<=n&&(s=d[n-p]),t.opt_len+=(a=f[2*n])*(o+s),l&&(t.static_len+=a*(c[2*n+1]+s)));if(0!==b){do{for(o=m-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[m]--,b-=2}while(0<b);for(o=m;0!==o;o--)for(n=t.bl_count[o];0!==n;)u<(e=t.heap[--r])||(f[2*e+1]!==o&&(t.opt_len+=(o-f[2*e+1])*f[2*e],f[2*e+1]=o),n--)}}(t,i),B(o,u,t.bl_count)}function P(t,i,r){var n,e,o=-1,s=i[1],a=0,h=7,f=4;for(0===s&&(h=138,f=3),i[2*(r+1)+1]=65535,n=0;n<=r;n++)e=s,s=i[2*(n+1)+1],++a<h&&e===s||(a<f?t.bl_tree[2*e]+=a:0!==e?(e!==o&&t.bl_tree[2*e]++,t.bl_tree[32]++):a<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=e,f=(a=0)===s?(h=138,3):e===s?(h=6,3):(h=7,4))}function I(t,i,r){var n,e,o=-1,s=i[1],a=0,h=7,f=4;for(0===s&&(h=138,f=3),n=0;n<=r;n++)if(e=s,s=i[2*(n+1)+1],!(++a<h&&e===s)){if(a<f)for(;z(t,e,t.bl_tree),0!=--a;);else 0!==e?(e!==o&&(z(t,e,t.bl_tree),a--),z(t,16,t.bl_tree),S(t,a-3,2)):a<=10?(z(t,17,t.bl_tree),S(t,a-3,3)):(z(t,18,t.bl_tree),S(t,a-11,7));o=e,f=(a=0)===s?(h=138,3):e===s?(h=6,3):(h=7,4)}}e(y);var _=!1;function X(t,i,r,e){S(t,0+(e?1:0),3),function(t,i,r){U(t),j(t,r),j(t,~r),n.arraySet(t.pending_buf,t.window,i,r,t.pending),t.pending+=r}(t,i,r)}r._tr_init=function(t){_||(function(){var t,i,r,n,e,o=new Array(16);for(n=r=0;n<28;n++)for(w[n]=r,t=0;t<1<<f[n];t++)b[r++]=n;for(b[r-1]=n,n=e=0;n<16;n++)for(y[n]=e,t=0;t<1<<u[n];t++)m[e++]=n;for(e>>=7;n<a;n++)for(y[n]=e<<7,t=0;t<1<<u[n]-7;t++)m[256+e++]=n;for(i=0;i<=h;i++)o[i]=0;for(t=0;t<=143;)d[2*t+1]=8,t++,o[8]++;for(;t<=255;)d[2*t+1]=9,t++,o[9]++;for(;t<=279;)d[2*t+1]=7,t++,o[7]++;for(;t<=287;)d[2*t+1]=8,t++,o[8]++;for(B(d,287,o),t=0;t<a;t++)p[2*t+1]=5,p[2*t]=C(t,5);v=new k(d,f,257,s,h),x=new k(p,u,0,a,h),g=new k(new Array(0),c,0,19,7)}(),_=!0),t.l_desc=new E(t.dyn_ltree,v),t.d_desc=new E(t.dyn_dtree,x),t.bl_desc=new E(t.bl_tree,g),t.bi_buf=0,t.bi_valid=0,O(t)},r._tr_stored_block=X,r._tr_flush_block=function(t,i,r,n){var e,s,a=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var i,r=4093624447;for(i=0;i<=31;i++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*i])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(i=32;i<o;i++)if(0!==t.dyn_ltree[2*i])return 1;return 0}(t)),F(t,t.l_desc),F(t,t.d_desc),a=function(t){var i;for(P(t,t.dyn_ltree,t.l_desc.max_code),P(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),i=18;3<=i&&0===t.bl_tree[2*l[i]+1];i--);return t.opt_len+=3*(i+1)+5+5+4,i}(t),(s=t.static_len+3+7>>>3)<=(e=t.opt_len+3+7>>>3)&&(e=s)):e=s=r+5,r+4<=e&&-1!==i?X(t,i,r,n):4===t.strategy||s===e?(S(t,2+(n?1:0),3),R(t,d,p)):(S(t,4+(n?1:0),3),function(t,i,r,n){var e;for(S(t,i-257,5),S(t,r-1,5),S(t,n-4,4),e=0;e<n;e++)S(t,t.bl_tree[2*l[e]+1],3);I(t,t.dyn_ltree,i-1),I(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),R(t,t.dyn_ltree,t.dyn_dtree)),O(t),n&&U(t)},r._tr_tally=function(t,i,r){return t.pending_buf[t.d_buf+2*t.last_lit]=i>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&i,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===i?t.dyn_ltree[2*r]++:(t.matches++,i--,t.dyn_ltree[2*(b[r]+o+1)]++,t.dyn_dtree[2*A(i)]++),t.last_lit===t.lit_bufsize-1},r._tr_align=function(t){S(t,2,3),z(t,256,d),function(t){16===t.bi_valid?(j(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,i){i.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(){(function(t){!function(t){if(!t.setImmediate){var i,r,n,e,o=1,s={},a=!1,h=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,i="[object process]"==={}.toString.call(t.process)?function(t){process.nextTick((function(){c(t)}))}:function(){if(t.postMessage&&!t.importScripts){var i=!0,r=t.onmessage;return t.onmessage=function(){i=!1},t.postMessage("","*"),t.onmessage=r,i}}()?(e="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",l,!1):t.attachEvent("onmessage",l),function(i){t.postMessage(e+i,"*")}):t.MessageChannel?((n=new MessageChannel).port1.onmessage=function(t){c(t.data)},function(t){n.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(r=h.documentElement,function(t){var i=h.createElement("script");i.onreadystatechange=function(){c(t),i.onreadystatechange=null,r.removeChild(i),i=null},r.appendChild(i)}):function(t){setTimeout(c,0,t)},f.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var r=new Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];return s[o]={callback:t,args:r},i(o),o++},f.clearImmediate=u}function u(t){delete s[t]}function c(t){if(a)setTimeout(c,0,t);else{var i=s[t];if(i){a=!0;try{!function(t){var i=t.callback,r=t.args;switch(r.length){case 0:i();break;case 1:i(r[0]);break;case 2:i(r[0],r[1]);break;case 3:i(r[0],r[1],r[2]);break;default:i.apply(undefined,r)}}(i)}finally{u(t),a=!1}}}}function l(i){i.source===t&&"string"==typeof i.data&&0===i.data.indexOf(e)&&c(+i.data.slice(e.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,void 0!==t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)),et.exports),st=i(ot);
2
- /*!
3
-
4
- JSZip v3.10.2 - A JavaScript class for generating and reading zip files
5
- <http://stuartk.com/jszip>
6
-
7
- (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
8
- Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
9
-
10
- JSZip uses the library pako released under the MIT license :
11
- https://github.com/nodeca/pako/blob/main/LICENSE
12
- */const at=new u,ht=n(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.commonAudioPath="",this.showNav=!0,this.activeContainerIndexes=[],this.Lang="en",this.xmlData="",this.initialIndex=0,this.canplay=!0,this.baseUrl="",this.height="",this.uuid=o(),this.zipUrl="",this.currentContainerIndex=this.initialIndex,this.resizeTrigger=0,this.exitFlag=!1,this.containers=[],this.templateData=[],this.placeholderRegex=/\{([a-zA-Z0-9_]+)\}/g,this.extractedAssets={},this.handleNextContainerEvent=()=>{this.NextContainerKey()},this.handlePrevContainerEvent=()=>{this.PrevContainerKey()},this.handleChangeContainerEvent=t=>{this.NextContainerKey(t.detail.index)},this.handleBeforeUnload=()=>{s.getI().stop(),localStorage.removeItem(a)},this.handleWindowResize=()=>{this.scaleNavbarContainer(),this.resizeTrigger++,this.containers=[...this.containers]},this.NextContainerKey=t=>{var i;this.uuid===(null===(i=document.querySelector("lido-home"))||void 0===i?void 0:i.getAttribute("uuid"))&&(null!=t&&t==this.currentContainerIndex||(null!=t&&t<this.containers.length?(this.currentContainerIndex=t,h(this.currentContainerIndex)):this.currentContainerIndex<this.containers.length-1?(this.currentContainerIndex++,h(this.currentContainerIndex)):this.currentContainerIndex>=this.containers.length-1&&(localStorage.removeItem(a),this.currentContainerIndex=null),this.containers=[...this.containers],this.updateArrowVisibility()))},this.PrevContainerKey=()=>{this.currentContainerIndex<=0||(this.currentContainerIndex--,h(this.currentContainerIndex),this.containers=[...this.containers],this.updateArrowVisibility())},this.showDotsandbtn=!1,this.updateArrowVisibility=()=>{this.showNav&&setTimeout((()=>{const t=this.el.querySelector("lido-container");if(!t)return;const i=t.getAttribute("show-prev-button"),r=t.getAttribute("show-next-button"),n=this.el.querySelector("#lido-arrow-right");this.el.querySelector("#lido-arrow-left").style.visibility="true"!==i?"hidden":"visible",n.style.visibility="true"!==r?"hidden":"visible"}),100)},this.btnpopupRunId=0,this.activeBtnpopupRunId=null,this.shouldStopActiveBtnpopupAudio=!0,this.handleWindowTouch=t=>{null!==this.activeBtnpopupRunId&&this.cancelBtnpopupRun(this.hasAudioOnInteractionTarget(t.target))},this.handleWindowPointer=t=>{"touch"===t.pointerType&&null!==this.activeBtnpopupRunId&&this.cancelBtnpopupRun(this.hasAudioOnInteractionTarget(t.target))},this.popUpClick=t=>{const i=this.el.querySelector(".lido-alert-popup");this.exitFlag=!1,i&&("exit"===t?(s.getI().stop(),f.getI().stop(),at.rightMoves=0,at.wrongMoves=0,at.totalRightMovesCount=0,at.totalWrongMovesCount=0,localStorage.removeItem(a),i.remove(),this.currentContainerIndex=0,c()):i.remove())}}translateHomeText(t){var i;const r=(null===(i=this.Lang)||void 0===i?void 0:i.trim())||_.language||"en";return _.getFixedT(r)(t)}onCommonAudioPathChange(t){this.publishCommonAudioPath(t)}async componentWillLoad(){if(this.publishCommonAudioPath(this.commonAudioPath),this.navBarIcons={exit:this.exitButtonUrl||m,prev:this.prevButtonUrl||p,next:this.nextButtonUrl||d,speak:this.speakerButtonUrl||l},0===this.currentContainerIndex&&localStorage.removeItem(a),window.addEventListener(b,this.handleNextContainerEvent),window.addEventListener(w,this.handlePrevContainerEvent),window.addEventListener("changeContainer",this.handleChangeContainerEvent),this.zipUrl&&(this.xmlData="",await this.extractZipAndSetBase(),await this.loadXmlFromZip()),await this.loadTemplateData(),(this.xmlData||"").trim().includes("lido-container"))this.parseXMLData(this.xmlData);else{const t=await this.decompressBrotliBase64(this.xmlData);this.parseXMLData(t)}window.addEventListener("beforeunload",this.handleBeforeUnload)}async loadTemplateData(){if(!this.baseUrl&&!this.zipUrl)return;const t=[this.resolveAsset("data.json")].filter(Boolean);for(const i of t)try{const t=i.startsWith("http")||i.startsWith("blob")?i:v(i),r=await fetch(t);if(!r.ok)continue;const n=await r.json();if(Array.isArray(n)&&(this.templateData=n.filter((t=>t&&"object"==typeof t)),this.templateData.length))return}catch(t){console.warn(`[LidoHome] Failed to load template data from ${i}`,t)}}async decompressBrotliBase64(t){var i;for(t=(t||"").trim().replace(/^data:.*;base64,/,"").replace(/^['"]|['"]$/g,"").replace(/\\n/g,"").replace(/\s+/g,"").replace(/-/g,"+").replace(/_/g,"/");t.length%4;)t+="=";const r=atob(t),n=new Uint8Array(r.length);for(let t=0;t<r.length;t++)n[t]=r.charCodeAt(t);if("DecompressionStream"in window)try{const t=new window.DecompressionStream("br"),i=new Blob([n]).stream().pipeThrough(t),r=await new Response(i).arrayBuffer();return(new TextDecoder).decode(r)}catch(t){console.warn("[LidoRoot] Native Brotli unavailable, trying WASM fallback.",t)}try{const t=await import("./p-CVZEVfip.js").then((function(t){return t.d})),r=t.BrotliDecompressBuffer||(null===(i=t.default)||void 0===i?void 0:i.BrotliDecompressBuffer);if("function"!=typeof r)throw new Error("BrotliDecompressBuffer function not found in brotli/dec/decode");const e=r(n);return(new TextDecoder).decode(e)}catch(t){throw new Error(`Brotli decompression failed (native + fallback): ${t instanceof Error?t.message:String(t)}`)}}async extractZipAndSetBase(){this.revokeExtractedAssets();const t=this.zipUrl.replace(/\\/g,"/"),i=t.startsWith("http")||t.startsWith("blob")||t.startsWith("data")?t:v(t),r=await fetch(i);if(!r.ok)throw new Error("Unable to fetch ZIP");const n=await r.blob(),e=await st.loadAsync(n);for(const t of Object.keys(e.files)){const i=e.files[t];if(!i.dir){const r=await i.async("blob");this.extractedAssets[t]=URL.createObjectURL(r)}}D(this.extractedAssets)}revokeExtractedAssets(){for(const t of Object.values(this.extractedAssets))URL.revokeObjectURL(t);this.extractedAssets={},T()}async loadXmlFromZip(){const t="index.xml",i=this.resolveAsset(t);if(!i)throw console.warn("[LidoHome] ZIP extraction keys:",Object.keys(this.extractedAssets)),new Error(`Unable to find XML file '${t}' inside ZIP`);const r=await fetch(i);if(!r.ok)throw new Error(`Unable to fetch XML from ZIP: ${r.statusText}`);this.xmlData=await r.text()}resolveAsset(t){if(this.zipUrl){const i=t.replace(/^\/+/,""),r=this.extractedAssets[t]||this.extractedAssets[i];if(r)return r;const n=i.replace(/^.*\//,""),e=Object.keys(this.extractedAssets).find((t=>t===i||t===n||t.endsWith(`/${i}`)||t.endsWith(`/${n}`)));return e?this.extractedAssets[e]:void 0}return`${this.baseUrl.replace(/\/+$/,"")}/${t}`}componentDidLoad(){setTimeout((()=>{this.showDotsandbtn=!0}),10),this.updateArrowVisibility(),this.scaleNavbarContainer(),this.handleIcons(),window.addEventListener("resize",this.handleWindowResize),window.addEventListener("touchstart",this.handleWindowTouch,{passive:!0}),window.addEventListener("pointerdown",this.handleWindowPointer,{passive:!0})}publishCommonAudioPath(t){if(!t)return;const i=t.replace(/\/+$/,"");window[x]=i,window.dispatchEvent(new Event("lidoCommonAudioPathReady"))}async handleIcons(){var t;const i=async(t,i,r)=>t?U(t):i?U(i):null!=r&&r,r=document.getElementById(g),n=r.getAttribute("exit-button-url"),e=r.getAttribute("prev-button-url"),o=r.getAttribute("next-button-url"),s=null!==(t=r.getAttribute("speak-button-url"))&&void 0!==t?t:r.getAttribute("speaker-button-url");this.navBarIcons={exit:`${await i(this.exitButtonUrl,n,m)}`,prev:`${await i(this.prevButtonUrl,e,p)}`,next:`${await i(this.nextButtonUrl,o,d)}`,speak:`${await i(this.speakerButtonUrl,s,l)}`}}updateBackgroundImage(){const t=document.querySelector(g),i=t.getAttribute("bg-image");document.body.style.background="none",t.style.backgroundImage=i?`url(${i})`:"none",t.style.backgroundPosition=i?"bottom":"none",setTimeout((()=>{const i=document.querySelector(".lido-dot-container");i.classList.add("nav-for-lanai"),t.append(i)}),50)}disconnectedCallback(){s.destroyI(),this.revokeExtractedAssets(),window.removeEventListener(b,this.handleNextContainerEvent),window.removeEventListener("changeContainer",this.handleChangeContainerEvent),window.removeEventListener(w,this.handlePrevContainerEvent),window.removeEventListener("beforeunload",this.handleBeforeUnload),window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("touchstart",this.handleWindowTouch),window.removeEventListener("pointerdown",this.handleWindowPointer)}parseXMLData(t){if(t){const i=(new DOMParser).parseFromString(t,"text/xml");this.parseContainers(i.documentElement)}}resolveContainerData(t){var i;return(null===(i=this.templateData)||void 0===i?void 0:i.length)?this.templateData[t]?this.templateData[t]:1===this.templateData.length?this.templateData[0]:null:null}replacePlaceholders(t,i){return i&&t?t.replace(this.placeholderRegex,((t,r)=>{const n=i[r];return null==n?`{${r}}`:String(n)})):t}applyDataToElement(t,i){return i?([t,...Array.from(t.querySelectorAll("*"))].forEach((t=>{Array.from(t.attributes).forEach((r=>{const n=r.value.replace(this.placeholderRegex,((t,r)=>{const n=i[r];return null==n?`{${r}}`:String(n)}));n!==r.value&&t.setAttribute(r.name,n)}))})),t):t}onXmlDataChange(t){this.parseXMLData(t)}parseElement(t){const i=t.nodeName.toLowerCase(),r={};Array.from(t.attributes).forEach((t=>{r[t.name]=t.value}));const n=Array.from(t.childNodes).map((t=>1===t.nodeType?this.parseElement(t):3===t.nodeType&&""!==t.textContent.trim()?t.textContent:null)).filter(Boolean);"lido-text"===i&&r.string&&(r.string=this.translateHomeText(r.string));const e={"lido-container":y("lido-container",Object.assign({key:this.resizeTrigger},r,{canplay:this.canplay},this.zipUrl?{}:{baseUrl:this.baseUrl},{height:this.height}),n),"lido-flash-card":y("lido-flash-card",Object.assign({},r),n),"lido-col":y("lido-col",Object.assign({},r),n),"lido-trace":y("lido-trace",Object.assign({},r),n),"lido-image":y("lido-image",Object.assign({},r),n),"lido-row":y("lido-row",Object.assign({},r),n),"lido-text":y("lido-text",Object.assign({},r),n),"lido-pos":y("lido-pos",Object.assign({},r),n),"lido-shape":y("lido-shape",Object.assign({},r),n),"lido-wrap":y("lido-wrap",Object.assign({},r),n),"lido-random":y("lido-random",Object.assign({},r),n),"lido-avatar":y("lido-avatar",Object.assign({},r),n),"lido-cell":y("lido-cell",Object.assign({},r),n),"lido-slide-fill":y("lido-slide-fill",Object.assign({},r),n),"lido-float":y("lido-float",Object.assign({},r),n),"lido-keyboard":y("lido-keyboard",Object.assign({},r),n),"lido-math-matrix":y("lido-math-matrix",Object.assign({},r),n),"lido-balance":y("lido-balance",Object.assign({},r),n),"lido-calculator":y("lido-calculator",Object.assign({},r),n),"lido-canvas":y("lido-canvas",Object.assign({},r),n)};return e[i]?e[i]:(console.warn(`Unknown tag: ${i}`),null)}parseContainers(t){const i=t.querySelectorAll("lido-container"),r=Array.from(i).map(((t,i)=>{if(this.activeContainerIndexes.length&&!this.activeContainerIndexes.includes(i))return;const r=this.resolveContainerData(i),n=this.applyDataToElement(t,r);return()=>this.parseElement(n)})).filter(Boolean);this.containers=r}areAllDropsFilled(){const t=Array.from(document.querySelectorAll('[type="drop"]')),i=Array.from(document.querySelectorAll('[type="drag"]')).filter((t=>t.getAttribute("drop-to")));return t.every((t=>{const r=t.id;return i.some((t=>t.getAttribute("drop-to")===r))}))}async btnpopup(t){var i,r;const n=()=>t!==this.btnpopupRunId,e=document.getElementById(g);if(n())return;if(!e||"true"===e.getAttribute("game-completed"))return;if(R(!1),await s.getI().stop(),n())return;const o=e.querySelectorAll("*"),a=e.getAttribute(k);if(a){const t=this.el.querySelector(`#${a}`);if(t&&(await E("this.speak='true';",t),n()))return}for(const t of Array.from(o)){if(A()||n())break;const i=t.getAttribute("tab-index"),r=t;if(i&&Number(i)>0){const t=t=>{const i=t.getBoundingClientRect();return i.width>0&&i.height>0&&i.bottom>0&&i.right>0&&i.top<window.innerHeight&&i.left<window.innerWidth},i=null==r?void 0:r.getAttribute("type");if(r&&"true"!==r.getAttribute("disable-speak")&&((null==i?void 0:i.trim())&&t(r)||!i||!i.trim())&&await s.getI().play(r),A()||n()){this.shouldStopActiveBtnpopupAudio&&await s.getI().stop();break}if(await new Promise((t=>setTimeout(t,300))),n())break}}if(!n())if(this.areAllDropsFilled()){const t=e.objective,n=null!==(r=JSON.parse(null!==(i=e.getAttribute(j))&&void 0!==i?i:"[]"))&&void 0!==r?r:[];S(t,n)&&z()}else"true"===e.getAttribute("game-completed")&&z()}hasAudioOnInteractionTarget(t){const i=t;if(!i)return!1;const r=t=>{if(!(t instanceof e))return!1;const i=t.getAttribute("audio");return!!i&&i.trim().length>0};return!!r(i)||!!r(i.closest("[audio]"))||!!r(i.querySelector("[audio]"))}async cancelBtnpopupRun(t=!0){this.btnpopupRunId++,this.shouldStopActiveBtnpopupAudio=t,R(!0),t&&await s.getI().stop()}async handleBtnpopupClick(){await this.cancelBtnpopupRun();const t=this.btnpopupRunId;R(!1),this.activeBtnpopupRunId=t,this.shouldStopActiveBtnpopupAudio=!0;try{await this.btnpopup(t)}finally{this.activeBtnpopupRunId===t&&(this.activeBtnpopupRunId=null),this.shouldStopActiveBtnpopupAudio=!0}}scaleNavbarContainer(){setTimeout((()=>{const t=document.querySelector(".lido-dot-container");t&&((1600===window.innerWidth&&900===window.innerHeight||900===window.innerWidth&&1600===window.innerHeight)&&document.querySelectorAll(".lido-exit-button, #main-audio").forEach((t=>{t.style.marginLeft="10px",t.style.marginRight="10px"})),t.style.top=window.innerWidth>window.innerHeight?"6%":"3.5%",t.style.transform="translate(-50%, -50%)",t.style.visibility="visible",Array.from(t.children).forEach((t=>{t.style.transform=`scale(${C()})`})),t.style.width=window.outerWidth+"px")}),500)}renderDots(){const t={pointerEvents:this.canplay?"none":""};return y("div",{id:"lido-dot-indicator",class:"lido-dot-container",style:{visibility:"hidden"}},y("div",{class:"lido-exit-button popup-button",onClick:()=>{this.exitFlag=!0,s.getI().stop()}},y("lido-image",{src:this.navBarIcons.exit,width:"stretch"})),y("div",{class:"lido-btn-dot-container"},y("div",{id:"lido-arrow-left",onClick:()=>{B()}},y("lido-image",{src:this.navBarIcons.prev,width:"stretch"})),this.containers.map(((i,r)=>y("div",{class:"parent_dots"},y("span",{class:"lido-dot "+(r<this.currentContainerIndex?"completed":r===this.currentContainerIndex?"current":""),onClick:()=>this.jumpToContainer(r),style:t})))),y("div",{id:"lido-arrow-right",onClick:t=>{E("this.nextBtn='true'",t.currentTarget)}},y("lido-image",{src:this.navBarIcons.next,width:"stretch"}))),y("div",{id:"main-audio",class:"popup-button",onClick:()=>this.handleBtnpopupClick()},y("lido-image",{visible:"true",src:this.navBarIcons.speak,width:"stretch"})))}jumpToContainer(t){this.NextContainerKey(t)}render(){var t,i;return this.xmlData?y(O,{class:"lido-home",uuid:this.uuid,"template-id":"",index:this.currentContainerIndex,totalIndex:this.containers.length,style:{userSelect:"none"}},y("div",{key:this.currentContainerIndex},null===(i=(t=this.containers)[this.currentContainerIndex])||void 0===i?void 0:i.call(t)),this.renderDots(),this.exitFlag&&y("div",{class:"lido-alert-parent"},y("div",{class:"lido-alert-popup"},y("lido-cell",{class:"lido-alert-content",visible:"true",layout:"col",width:"340px",height:"210px","bg-color":"#fff","border-radius":"16px",onEntry:"this.box-shadow= '0 4px 8px 0 rgba(0, 0, 0, 0.25)';"},y("lido-text",{visible:"true",string:this.translateHomeText("Do you want to exit? button"),width:"294px",height:"38px",class:"popup-exit-text","font-size":"22px",onEntry:"this.margin-bottom =' -36px';"}),y("lido-cell",{visible:"true",layout:"row",width:"294px",class:"btn-cell"},y("lido-text",{visible:"true",string:this.translateHomeText("Exit button"),width:"92px",height:"53px","font-size":"16px",margin:"0px 50px 0px 0px",class:"popup-button",onClick:()=>this.popUpClick("exit"),borderRadius:"16px",onEntry:'this.color="#F34D08"; this.font-weight="700"; this.box-shadow="0 2px 0 #F34D08";',fontFamily:"Baloo Bhai 2","font-weight":"700",bgColor:"white","border-radius":"16px"}),y("lido-text",{visible:"true",string:this.translateHomeText("Continue playing button"),width:"155px",height:"53px","font-size":"16px",class:"popup-button",onClick:()=>this.popUpClick("cancel"),borderRadius:"16px",onEntry:'this.color=white; this.font-weight="700"; this.box-shadow="0 2px 0 #F34D08";',"font-family":"Baloo Bhai 2","font-weight":"700",bgColor:"#F34D08","border-radius":"16px"})))))):y("div",null,"Please provide XML data.")}get el(){return this}static get watchers(){return{commonAudioPath:[{onCommonAudioPathChange:0}],xmlData:[{onXmlDataChange:0}]}}static get style(){return"@font-face{font-family:'Baloo Bhai 2';font-style:normal;font-weight:400 800;font-display:swap;src:url('../assets/offline-assets/fonts/Baloo-Bhai-2/Baloo-Bhai-2-Variable.woff2') format('woff2')}body{overflow:hidden;background-position:center;background-size:cover;background-repeat:no-repeat;height:100vh}*{user-select:none}.lido-disable-check-button{pointer-events:none;background-color:#9393935c !important;color:white}.lido-element-selected{border:2px solid;background-color:#ffdf7d !important}.diagonal-target,.diagonal-drop *{transform:scale(0.8) !important;opacity:1 !important}.cloned-element{display:flex !important;position:absolute !important;filter:grayscale(100%);pointer-events:none}.removeShadow{box-shadow:0px 0px 0px 0px #ff8900 !important}.highlight-element{border:2px solid white;box-shadow:rgb(243, 77, 8) 0px 0px 40px !important}.drop-element.empty{border:4px dashed #f34d08 !important}.drop-element.filled{border:'none' !important}.drag-element{box-shadow:0px 15px 11px rgba(43, 0, 0, 0.3) !important}.drag-element.dropped{box-shadow:none !important}.click-element{background-color:var(--btn-bg-color, rgba(255, 172, 76, 1)) !important;box-shadow:var(--btn-shadow-px) var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;cursor:pointer;transition:box-shadow 0.1s ease-out, transform 0.2s ease-out;}.click-element:active{box-shadow:0px 0px 0px var(--btn-shadow-color, rgba(225, 121, 76, 1)) !important;transform:translateY(var(--btn-active));}.click-element:focus{outline:2px solid dodgerblue;outline-offset:3px}.after-drop-popup-container{width:200%;height:200%;background-color:rgba(0, 0, 0, 0.8);position:absolute;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center !important;gap:80px}.after-drop-popup-drag-element{scale:1.5;border-radius:8px;transform:none !important;position:unset !important}.after-drop-popup-drop-element{scale:1.5;border:unset;border-radius:8px;transform:none !important;position:unset !important}@keyframes zoomFadeIn{0%{transform:scale(0.6);opacity:0}100%{transform:scale(1);opacity:1}}.zoom-fade-in{animation:zoomFadeIn 0.8s ease-out forwards}@keyframes zoomFadeOut{0%{transform:scale(1);opacity:1}100%{transform:scale(0.6);opacity:0}}.zoom-fade-out{animation:zoomFadeOut 0.8s ease-in forwards}.slide-numbers{width:70px;height:70px;border:1px solid #f57139;background-color:white;font-weight:500;color:#f57139;font-size:44px;border-radius:40px;display:flex;align-items:center;justify-content:center;font-family:'Baloo Bhai 2', serif}.slide-numbers-bottom{position:absolute;display:flex;justify-content:space-around;align-items:center;bottom:-25px;width:100%;height:50px}.slide-numbers-left{position:absolute;display:flex;flex-direction:column;justify-content:space-around;height:100%;width:50px;left:-25px;bottom:0px}.lido-speak-icon{width:56px;height:56px;position:absolute;top:-25px;right:-25px;z-index:10;background-color:white;border:4px solid #F34D08;border-radius:16px;box-shadow:0px 4px 0px 0px #F34D08;background-size:contain;background-repeat:no-repeat;cursor:pointer}.lido-speak-icon:active{transform:translateY(8px);box-shadow:0px 0px 0px 0px !important}.lido-strong-shake{animation:strongShake 0.3s ease}.lido-scaled-shake{animation:scaledShake 0.6s ease-in-out}.lido-horizontal-shake{animation:horizontalShake 0.6s ease-in-out;border-radius:20px}.lido-vertical-shake{animation:verticalShake 0.6s ease-in-out;border-radius:20px}.lido-diagonal-shake{animation:diagonalShake 0.5s ease-in-out;border-radius:20px;will-change:transform}.lido-glow{animation:glowPulse 1s infinite alternate;transition:opacity 0.5s ease-in-out}.lido-box-highlight{animation:topToPlace 0.3s linear}.lido-display-hiddenvalue{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:80px;font-weight:1000;color:brown;-webkit-text-stroke:2px white;font-family:'Baloo Bhai 2', sans-serif;pointer-events:none}.lido-image-colorize{position:relative;display:inline-block}.lido-image-colorize::after{content:'';position:absolute;inset:0;background:var(--tint-color);mix-blend-mode:multiply;opacity:0.8;pointer-events:none;mask-image:var(--mask-url);mask-size:cover;mask-repeat:no-repeat;mask-position:center}.lido-tts-highlight-overlay{position:fixed;left:0;top:0;pointer-events:none;z-index:9999;background:linear-gradient( 180deg, rgba(255, 235, 59, 0.95), rgba(255, 214, 0, 0.95) );border-radius:6px;box-shadow:0 2px 6px rgba(0, 0, 0, 0.18), inset 0 -1px 0 rgba(255, 255, 255, 0.25);transition:width 25ms ease-out, height 25ms ease-out, opacity 80ms ease-out;opacity:0.95;will-change:transform, width, height;contain:layout paint style}.category-dropped-onCorrect{box-shadow:rgba(129, 193, 39, 1) 0px 8px 8px 0px !important}.category-dropped-onInCorrect{box-shadow:rgba(255, 4, 16, 1) 0px 8px 8px 0px !important}@keyframes rightToPlace{from{transform:translateX(2000px)}to{transform:translateX(0)}}@keyframes topToPlace{from{transform:translateY(-1000px)}to{transform:translateY(0)}}@keyframes bottomToPlace{from{transform:translateY(1000px)}to{transform:translateY(0)}}@keyframes placeToLeft{from{}to{transform:translateX(-2000px)}}@keyframes placeToRight{from{}to{transform:translateX(2000px)}}@keyframes leftToPlace{from{transform:translateX(-2000px)}to{transform:translateX(0)}}@keyframes shake{0%{transform:translateX(0)}10%{transform:translateX(-5px)}20%{transform:translateX(5px)}30%{transform:translateX(-5px)}40%{transform:translateX(5px)}50%{transform:translateX(-5px)}60%{transform:translateX(5px)}70%{transform:translateX(-5px)}80%{transform:translateX(5px)}90%{transform:translateX(-5px)}100%{transform:translateX(0)}}@keyframes fallAndBounce{0%{transform:translateY(-1000px)}25%{transform:translateY(0px)}50%{transform:translateY(-200px)}75%{transform:translateY(0)}90%{transform:translateY(-100px)}100%{transform:translateY(0)}}@keyframes placeToDown{0%{transform:translateY(0)}100%{transform:translateY(1000px)}}@keyframes strongShake{0%{transform:translateX(0)}20%{transform:translateX(-8px)}40%{transform:translateX(8px)}60%{transform:translateX(-6px)}80%{transform:translateX(6px)}100%{transform:translateX(0)}}@keyframes scaledShake{0%{transform:scale(1) translateX(0);box-shadow:0 0 0 transparent}20%{transform:scale(1.10) translateX(-12px);box-shadow:0 0 10px red}40%{transform:scale(1.10) translateX(12px);box-shadow:0 0 12px red}60%{transform:scale(1.10) translateX(-8px);box-shadow:0 0 10px red}80%{transform:scale(1.10) translateX(8px);box-shadow:0 0 12px red}100%{transform:scale(1) translateX(0);box-shadow:none}}@keyframes horizontalShake{0%{transform:scale(1) translateX(0);background-color:transparent}20%{transform:translateX(-20px);background-color:rgba(255, 0, 0, 0.2)}40%{transform:translateX(20px);background-color:rgba(255, 0, 0, 0.4)}60%{transform:translateX(-10px);background-color:rgba(255, 0, 0, 0.3)}80%{transform:translateX(10px);background-color:rgba(255, 0, 0, 0.2)}100%{transform:translateX(0);background-color:transparent}}@keyframes verticalShake{0%{transform:translateY(0);background-color:transparent}20%{transform:translateY(-20px);background-color:rgba(255, 0, 0, 0.2)}40%{transform:translateY(0);background-color:rgba(255, 0, 0, 0.4)}60%{transform:translateY(20px);background-color:rgba(255, 0, 0, 0.2)}80%{transform:translateY(0);background-color:rgba(255, 0, 0, 0.1)}100%{transform:translateY(0);background-color:transparent}}@keyframes diagonalShake{0%{transform:translate(0, 0);background-color:transparent}25%{transform:translate(20px, -20px);background-color:rgba(255, 0, 0, 0.2)}50%{transform:translate(-20px, 20px);background-color:rgba(255, 0, 0, 0.3)}75%{transform:translate(10px, -10px);background-color:rgba(255, 0, 0, 0.2)}100%{transform:translate(0, 0);background-color:transparent}}@keyframes glowPulse{0%{filter:drop-shadow(0 0 5px yellow) drop-shadow(0 0 10px yellow) drop-shadow(0 0 20px yellow) drop-shadow(0 0 30px orange)}50%{filter:drop-shadow(0 0 10px yellow) drop-shadow(0 0 20px yellow) drop-shadow(0 0 40px yellow) drop-shadow(0 0 50px orange)}100%{filter:drop-shadow(0 0 5px yellow) drop-shadow(0 0 10px yellow) drop-shadow(0 0 20px yellow) drop-shadow(0 0 30px orange)}}@keyframes trace-animation{0%{}100%{width:var(--trace-width, 100px);height:var(--trace-height, 100px)}}.lido-snackbar{visibility:visible;min-width:250px;background-color:#333;color:#fff;text-align:center;border-radius:2px;padding:16px;position:fixed;z-index:1;bottom:30px;left:50%;transform:translateX(-50%);font-size:17px}.lido-dot-container{display:flex;justify-content:space-between;align-items:center;visibility:hidden;position:absolute;left:50%;padding:0 5px;z-index:1;width:100vw;max-width:100vw;box-sizing:border-box;height:0px}.lido-dot{height:18px;width:18px;margin:0 4px;background-color:#bbb;border-radius:50%;display:inline-block;transition:background-color 0.3s;cursor:pointer;z-index:1}.lido-btn-dot-container{flex-shrink:1;flex-grow:1;display:flex;justify-content:center;align-items:center;text-align:center;z-index:1;min-width:0;height:0px}.lido-dot.completed{background-color:grey}.lido-dot.current{background-color:green}.lido-dot:not(.completed):not(.current){background-color:#bbb}#lido-arrow-left,#lido-arrow-right{width:88px;height:88px;display:flex;align-items:center;justify-content:center;border-radius:12px;z-index:1000;box-shadow:0px 8px 0px 0px #8b310f;background-color:#f34d08;cursor:pointer;visibility:hidden;flex-shrink:0}#lido-arrow-left:active,#lido-arrow-right:active{transform:translateY(8px);box-shadow:0px 0px 0px 0px}.navbar{display:flex;justify-content:center}.lido-exit-button,#main-audio{width:80px;height:80px;z-index:1000;cursor:pointer;background-color:white;display:flex;align-items:center;justify-content:center;border:4px solid #f34d08;border-radius:16px;box-shadow:0px 8px #f34d08;flex-shrink:0;}#main-audio:active,.popup-button:active,.lido-exit-button:active{margin-bottom:-8px;box-shadow:0px 0px 0px 0px !important}.lido-alert-popup{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);display:flex;align-items:center;justify-content:center;z-index:1000}@media (max-width: 768px){#lido-arrow-left,#lido-arrow-right{width:70px;height:70px;margin:0 8px}.lido-exit-button,#main-audio{width:65px;height:65px;margin:0 8px}.lido-dot{height:16px;width:16px;margin:0 2.5px}}@media (max-width: 480px){#lido-arrow-left,#lido-arrow-right{width:74px;height:74px;margin:0px 5px}.lido-exit-button,#main-audio{width:65px;height:65px;margin:0px 5px}.lido-dot{height:15px;width:15px;margin:0 1.5px}.lido-dot-container{padding:0 3px}}@media (max-width: 375px){#lido-arrow-left,#lido-arrow-right{width:70px;height:70px;margin:0px 3px}.lido-exit-button,#main-audio{width:70px;height:70px;margin:0px 3px}.lido-dot{height:14px;width:14px;margin:0 1px}.lido-dot-container{padding:0 2px}}@media (max-width: 320px){#lido-arrow-left,#lido-arrow-right,.lido-exit-button,#main-audio{width:70px;height:70px;margin:0px 2px}.lido-dot{height:12px;width:12px;margin:0 0.5px}.lido-dot-container{padding:0 2px}}@media (max-width: 900px) and (orientation: landscape){#lido-arrow-left,#lido-arrow-right{width:70px;height:70px;margin:0px 5px}.lido-exit-button,#main-audio{width:70px;height:70px;margin:0px 5px}.lido-dot{height:14px;width:14px;margin:0 1px}.lido-dot-container{padding:0 5px}}.popup-exit-text{white-space:nowrap;font-size:22px;font-weight:600;margin-top:-8%}.lido-alert-parent{z-index:10000 !important;position:absolute;top:0;left:0}.popup-button{width:80px;height:80px;z-index:1000;cursor:pointer;display:flex;align-items:center;justify-content:center;border:4px solid #F34D08;border-radius:16px;box-shadow:0 8px 0 #F34D08}.nav-for-lanai{position:absolute;top:0%;left:0%;max-width:none;width:100%;height:auto;visibility:visible}"}},[0,"lido-home",{commonAudioPath:[1,"common-audio-path"],showNav:[4,"show-nav"],activeContainerIndexes:[16],Lang:[1,"lang"],xmlData:[1,"xml-data"],initialIndex:[2,"initial-index"],canplay:[4],baseUrl:[1,"base-url"],height:[1],exitButtonUrl:[1,"exit-button-url"],prevButtonUrl:[1,"prev-button-url"],nextButtonUrl:[1,"next-button-url"],speakerButtonUrl:[1,"speaker-button-url"],avatarUrl:[1,"avatar-url"],uuid:[1],zipUrl:[513,"zip-url"],navBarIcons:[32],currentContainerIndex:[32],resizeTrigger:[32],exitFlag:[32],containers:[32],templateData:[32],showDotsandbtn:[32]},void 0,{commonAudioPath:[{onCommonAudioPathChange:0}],xmlData:[{onXmlDataChange:0}]}]);function ft(){"undefined"!=typeof customElements&&["lido-home","lido-avatar","lido-balance","lido-calculator","lido-canvas","lido-cell","lido-col","lido-container","lido-flash-card","lido-float","lido-image","lido-keyboard","lido-math-matrix","lido-pos","lido-random","lido-row","lido-shape","lido-slide-fill","lido-text","lido-trace","lido-wrap"].forEach((t=>{switch(t){case"lido-home":customElements.get(r(t))||customElements.define(r(t),ht);break;case"lido-avatar":customElements.get(r(t))||X();break;case"lido-balance":customElements.get(r(t))||Z();break;case"lido-calculator":customElements.get(r(t))||W();break;case"lido-canvas":customElements.get(r(t))||N();break;case"lido-cell":customElements.get(r(t))||L();break;case"lido-col":customElements.get(r(t))||G();break;case"lido-container":customElements.get(r(t))||Y();break;case"lido-flash-card":customElements.get(r(t))||M();break;case"lido-float":customElements.get(r(t))||$();break;case"lido-image":customElements.get(r(t))||P();break;case"lido-keyboard":customElements.get(r(t))||H();break;case"lido-math-matrix":customElements.get(r(t))||K();break;case"lido-pos":customElements.get(r(t))||J();break;case"lido-random":customElements.get(r(t))||V();break;case"lido-row":customElements.get(r(t))||q();break;case"lido-shape":customElements.get(r(t))||Q();break;case"lido-slide-fill":customElements.get(r(t))||tt();break;case"lido-text":customElements.get(r(t))||I();break;case"lido-trace":customElements.get(r(t))||it();break;case"lido-wrap":customElements.get(r(t))||rt()}}))}ft();export{ht as L,ft as d}