lido-player 0.0.2-beta-14 → 0.0.2-beta-15-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 (229) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{decode-BLUeYhas.js → decode-Xh5IDmFh.js} +1 -1
  3. package/dist/cjs/{index-CNWniNnt.js → index-B9AON0kM.js} +206 -86
  4. package/dist/cjs/{index-CS8kGcZo.js → index-Dy19zuTX.js} +1 -1
  5. package/dist/cjs/index.cjs.js +2 -2
  6. package/dist/cjs/lido-avatar_22.cjs.entry.js +73 -50
  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 +207 -207
  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 +10 -10
  22. package/dist/collection/components/container/lido-container.js +9 -9
  23. package/dist/collection/components/flashCard/lido-flash-card.css +28 -28
  24. package/dist/collection/components/flashCard/lido-flash-card.js +4 -4
  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 +5 -5
  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/lido-balance.css +145 -145
  43. package/dist/collection/components/scale/lido-balance.js +13 -13
  44. package/dist/collection/components/shape/lido-shape.css +216 -216
  45. package/dist/collection/components/shape/lido-shape.js +6 -6
  46. package/dist/collection/components/slideFill/lido-slide-fill.css +3 -3
  47. package/dist/collection/components/slideFill/lido-slide-fill.js +13 -13
  48. package/dist/collection/components/text/lido-text.css +53 -53
  49. package/dist/collection/components/text/lido-text.js +29 -5
  50. package/dist/collection/components/trace/lido-trace.css +97 -97
  51. package/dist/collection/components/trace/lido-trace.js +2 -2
  52. package/dist/collection/components/wrap/lido-wrap.css +18 -18
  53. package/dist/collection/components/wrap/lido-wrap.js +6 -6
  54. package/dist/collection/css/animation.css +211 -211
  55. package/dist/collection/css/index.css +312 -312
  56. package/dist/collection/stories/Templates/Fill-Up/fill-up.stories.js +61 -61
  57. package/dist/collection/stories/Templates/LetterPairing/LetterPairing.stories.js +123 -123
  58. package/dist/collection/stories/Templates/RocketGame/rocketGame.stories.js +48 -48
  59. package/dist/collection/stories/Templates/Tag/tagGame.stories.js +39 -39
  60. package/dist/collection/stories/Templates/arrangeLetters/arrangeLetters.stories.js +44 -44
  61. package/dist/collection/stories/Templates/balancing/balancing.stories.js +35 -35
  62. package/dist/collection/stories/Templates/balloonPop/balloonPop.stories.js +38 -38
  63. package/dist/collection/stories/Templates/blender/blender.stories.js +58 -58
  64. package/dist/collection/stories/Templates/bubbleType/bubbleType.stories.js +42 -42
  65. package/dist/collection/stories/Templates/calculator/calculator.stories.js +28 -28
  66. package/dist/collection/stories/Templates/categorize/categorize.stories.js +37 -37
  67. package/dist/collection/stories/Templates/categorize2/categorize2.stories.js +67 -67
  68. package/dist/collection/stories/Templates/checker-block/checkerBlock.stories.js +29 -29
  69. package/dist/collection/stories/Templates/checkerBlock/checkerBlock.stories.js +13 -13
  70. package/dist/collection/stories/Templates/create-sentence/createSentence.stories.js +74 -74
  71. package/dist/collection/stories/Templates/dragAndDrop/drag-drop.stories.js +69 -69
  72. package/dist/collection/stories/Templates/fillAnswer/fill-answer.stories.js +43 -43
  73. package/dist/collection/stories/Templates/fillBlank/fill-blank.stories.js +282 -282
  74. package/dist/collection/stories/Templates/foodJar/food-jar.stories.js +35 -35
  75. package/dist/collection/stories/Templates/grid/grid.stories.js +118 -118
  76. package/dist/collection/stories/Templates/gridGame/grid-game.stories.js +57 -57
  77. package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +44 -44
  78. package/dist/collection/stories/Templates/jumpSentence/jumpSentence.stories.js +41 -41
  79. package/dist/collection/stories/Templates/letterboard/letterboard.stories.js +183 -183
  80. package/dist/collection/stories/Templates/makeSentence/make-sentence.stories.js +36 -36
  81. package/dist/collection/stories/Templates/matchBox/matchBox.stories.js +69 -69
  82. package/dist/collection/stories/Templates/matchBox/matchBox2.stories.js +84 -84
  83. package/dist/collection/stories/Templates/matchingCard/matching-card.stories.js +31 -31
  84. package/dist/collection/stories/Templates/multipleOption/mcqWithQuestionImage.stories.js +112 -112
  85. package/dist/collection/stories/Templates/multipleOption/multiple-option.stories.js +47 -47
  86. package/dist/collection/stories/Templates/multiplyBeeds/multiplyBeeds.stories.js +57 -57
  87. package/dist/collection/stories/Templates/nimbleTable/nimbleTable.stories.js +53 -53
  88. package/dist/collection/stories/Templates/numberBoard/numberBoard.stories.js +46 -46
  89. package/dist/collection/stories/Templates/numberBoardTwo/numberBoardTwo.stories.js +45 -45
  90. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationimageTotext.stories.js +56 -56
  91. package/dist/collection/stories/Templates/numberIdentification/numberIdentificationtextTotext.stories.js +53 -53
  92. package/dist/collection/stories/Templates/numberPair/numberPair.stories.js +127 -127
  93. package/dist/collection/stories/Templates/openwindow/openwindow.stories.js +47 -47
  94. package/dist/collection/stories/Templates/openwindow/openwindow2.stories.js +38 -38
  95. package/dist/collection/stories/Templates/order-tractor/order-tractor-ascending-order.stories.js +97 -97
  96. package/dist/collection/stories/Templates/order-tractor/order-tractor.stories.js +90 -90
  97. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +63 -63
  98. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +45 -45
  99. package/dist/collection/stories/Templates/palEgmaPatternMatching/palEgmaPatternMatching.stories.js +63 -63
  100. package/dist/collection/stories/Templates/palEgmaWordProblem/palEgmaWordProblem.stories.js +79 -79
  101. package/dist/collection/stories/Templates/palEgraInventedSpelling/pal_egra_invented_spelling_schema.stories.js +32 -32
  102. package/dist/collection/stories/Templates/palEgraMCQWithImage/palEgraMCQWithImage.stories.js +42 -42
  103. package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +63 -63
  104. package/dist/collection/stories/Templates/palEgraStoryMaking/pal_egra_story_making.stories.js +44 -44
  105. package/dist/collection/stories/Templates/palEgraTemplate1/palEgraLetterIdentification.stories.js +34 -34
  106. package/dist/collection/stories/Templates/palEgraWordMatch/palEgraWordMatch.stories.js +52 -52
  107. package/dist/collection/stories/Templates/palEgra_OddOneOut/palEgra_oddOneOut.stories.js +33 -33
  108. package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +40 -40
  109. package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +48 -48
  110. package/dist/collection/stories/Templates/palEgra_word_formation/palEgra_WordFormation.stories.js +48 -48
  111. package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +18 -18
  112. package/dist/collection/stories/Templates/phonic-tractor/phonic-tractor.stories.js +44 -44
  113. package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +34 -34
  114. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch1.stories.js +36 -36
  115. package/dist/collection/stories/Templates/pictureWordMatch/pictureWordMatch2.stories.js +30 -30
  116. package/dist/collection/stories/Templates/picturemeaning/pictureMeaningCocos.stories.js +20 -20
  117. package/dist/collection/stories/Templates/puzzleGame/puzzleGame.stories.js +17 -17
  118. package/dist/collection/stories/Templates/questionBoard/questionBoard.stories.js +58 -58
  119. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracy.stories.js +50 -50
  120. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWithText.stories.js +36 -36
  121. package/dist/collection/stories/Templates/quizLiteracy/quizLiteracyImageWord.stories.js +43 -43
  122. package/dist/collection/stories/Templates/quizMaths/quizMaths.stories.js +631 -631
  123. package/dist/collection/stories/Templates/reorder/reorder.stories.js +63 -63
  124. package/dist/collection/stories/Templates/rowBlocks/rowBlocks.stories.js +47 -47
  125. package/dist/collection/stories/Templates/sentenceMatch/sentenceMatch.stories.js +29 -29
  126. package/dist/collection/stories/Templates/sequenceBox/sequenceBox1.stories.js +64 -64
  127. package/dist/collection/stories/Templates/sequenceBox/sequenceBox2.stories.js +62 -62
  128. package/dist/collection/stories/Templates/shapePair/shape-pair.stories.js +106 -106
  129. package/dist/collection/stories/Templates/shapeTractor/shape-tractor.stories.js +50 -50
  130. package/dist/collection/stories/Templates/spellDoor/spellDoor.stories.js +41 -41
  131. package/dist/collection/stories/Templates/storyTale/storyTale.stories.js +39 -39
  132. package/dist/collection/stories/Templates/substraction/substractionWithimg.stories.js +62 -62
  133. package/dist/collection/stories/Templates/substraction/substractionWithoutImg.stories.js +42 -42
  134. package/dist/collection/stories/Templates/sumTogether/sumTogether.stories.js +50 -50
  135. package/dist/collection/stories/Templates/tenBox/tenBox.stories.js +88 -88
  136. package/dist/collection/stories/Templates/total/total.stories.js +28 -28
  137. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithimg.stories.js +35 -35
  138. package/dist/collection/stories/Templates/wordBuilding/wordBuildingwithoutimg.stories.js +34 -34
  139. package/dist/collection/stories/Templates/writeCard/writeCard.stories.js +31 -31
  140. package/dist/collection/stories/Templates/writeLetter/writeLetter.stories.js +58 -58
  141. package/dist/collection/stories/Templates/writeNumber/writeNumber.stories.js +44 -44
  142. package/dist/collection/stories/Templates/writeSet/writeSet.stories.js +31 -31
  143. package/dist/collection/stories/Templates/writeWord/writeWord.stories.js +34 -34
  144. package/dist/collection/stories/components/flash-card.stories.js +48 -48
  145. package/dist/collection/stories/components/keyboard.stories.js +10 -10
  146. package/dist/collection/stories/components/slider.stories.js +4 -4
  147. package/dist/collection/stories/components/trace.stories.js +5 -5
  148. package/dist/collection/utils/utils.js +16 -10
  149. package/dist/collection/utils/utilsHandlers/animationHandler.js +25 -21
  150. package/dist/collection/utils/utilsHandlers/dragDropHandler.js +8 -8
  151. package/dist/collection/utils/utilsHandlers/highlightHandler.js +54 -54
  152. package/dist/collection/utils/utilsHandlers/lidoCalculatorHandler.js +8 -8
  153. package/dist/collection/utils/utilsHandlers/moveHandler.js +111 -0
  154. package/dist/collection/utils/utilsHandlers/sortHandler.js +10 -10
  155. package/dist/components/index.js +1 -1
  156. package/dist/components/lido-avatar.js +1 -1
  157. package/dist/components/lido-balance.js +1 -1
  158. package/dist/components/lido-calculator.js +1 -1
  159. package/dist/components/lido-canvas.js +1 -1
  160. package/dist/components/lido-cell.js +1 -1
  161. package/dist/components/lido-col.js +1 -1
  162. package/dist/components/lido-container.js +1 -1
  163. package/dist/components/lido-flash-card.js +1 -1
  164. package/dist/components/lido-float.js +1 -1
  165. package/dist/components/lido-home.js +1 -1
  166. package/dist/components/lido-image.js +1 -1
  167. package/dist/components/lido-keyboard.js +1 -1
  168. package/dist/components/lido-math-matrix.js +1 -1
  169. package/dist/components/lido-pos.js +1 -1
  170. package/dist/components/lido-random.js +1 -1
  171. package/dist/components/lido-root.js +1 -1
  172. package/dist/components/lido-row.js +1 -1
  173. package/dist/components/lido-shape.js +1 -1
  174. package/dist/components/lido-slide-fill.js +1 -1
  175. package/dist/components/lido-text.js +1 -1
  176. package/dist/components/lido-trace.js +1 -1
  177. package/dist/components/lido-wrap.js +1 -1
  178. package/dist/components/{p-CCR42e0i.js → p-BE25wHoo.js} +1 -1
  179. package/dist/components/p-BSV5U72F.js +1 -0
  180. package/dist/components/{p-CTlcpv4a.js → p-BfwUqpXc.js} +1 -1
  181. package/dist/components/{p-CgsPIpg0.js → p-Bw-OC9iR.js} +1 -1
  182. package/dist/components/{p-NHusmM9J.js → p-C2p0KZh4.js} +1 -1
  183. package/dist/components/p-C5jvgiPE.js +1 -0
  184. package/dist/components/{p-MkbxS5lW.js → p-C7U1h9gI.js} +1 -1
  185. package/dist/components/{p-C5WmmkI6.js → p-CPYnt0P-.js} +1 -1
  186. package/dist/components/{p-DaMpzrMk.js → p-CS6iRQJh.js} +1 -1
  187. package/dist/components/{p-BeRr8u5m.js → p-CwDTdXe5.js} +1 -1
  188. package/dist/components/{p-CXHPZN3m.js → p-CyGxEcn7.js} +1 -1
  189. package/dist/components/p-D-B1groh.js +1 -0
  190. package/dist/components/{p-CRzTmKDJ.js → p-D-IYWSAa.js} +1 -1
  191. package/dist/components/{p-DbZeFECr.js → p-DGvzMlyn.js} +2 -2
  192. package/dist/components/{p-D4s9ZWCB.js → p-DPAlnts-.js} +1 -1
  193. package/dist/components/{p-CayICx4g.js → p-DYs8s-uh.js} +1 -1
  194. package/dist/components/p-DbR5sNOj.js +1 -0
  195. package/dist/components/{p-BBHM059l.js → p-Sl9R-E6h.js} +1 -1
  196. package/dist/components/p-Uluc7jQ7.js +1 -0
  197. package/dist/components/p-leIEepjl.js +1 -0
  198. package/dist/components/{p-C70ykycD.js → p-useuhkjH.js} +1 -1
  199. package/dist/esm/{decode-DpcU-915.js → decode-C-vVYHke.js} +1 -1
  200. package/dist/esm/{index-Dki_0kla.js → index-BswlHnsY.js} +206 -86
  201. package/dist/esm/{index-Dfj4noku.js → index-Dq-Z8Dx0.js} +1 -1
  202. package/dist/esm/index.js +2 -2
  203. package/dist/esm/lido-avatar_22.entry.js +73 -50
  204. package/dist/esm/lido-player.js +3 -3
  205. package/dist/esm/loader.js +3 -3
  206. package/dist/lido-player/index.esm.js +1 -1
  207. package/dist/lido-player/lido-avatar.css +4 -4
  208. package/dist/lido-player/lido-avatar.tsx +207 -207
  209. package/dist/lido-player/lido-player.css +7 -7
  210. package/dist/lido-player/lido-player.esm.js +1 -1
  211. package/dist/lido-player/p-0l6uR1lH.js +1 -0
  212. package/dist/lido-player/{p-BZv5PD3F.js → p-CYMdg2_E.js} +1 -1
  213. package/dist/lido-player/p-Dq-Z8Dx0.js +2 -0
  214. package/dist/lido-player/{p-476aaf0e.entry.js → p-b2c60372.entry.js} +2 -2
  215. package/dist/lido-player/readme.md +49 -49
  216. package/dist/types/components/text/lido-text.d.ts +4 -0
  217. package/dist/types/components.d.ts +11 -0
  218. package/dist/types/types/json.d.ts +3 -3
  219. package/dist/types/utils/utilsHandlers/moveHandler.d.ts +1 -0
  220. package/package.json +73 -73
  221. package/readme.md +113 -113
  222. package/dist/components/p-CwIlwnQk.js +0 -1
  223. package/dist/components/p-DLyacZap.js +0 -1
  224. package/dist/components/p-DONbWJGn.js +0 -1
  225. package/dist/components/p-DVTigdH_.js +0 -1
  226. package/dist/components/p-DbDgJi-A.js +0 -1
  227. package/dist/components/p-fBjZoiLo.js +0 -1
  228. package/dist/lido-player/p-Dfj4noku.js +0 -2
  229. package/dist/lido-player/p-pxe3GMFr.js +0 -1
@@ -1 +0,0 @@
1
- import{I as t,t as n,p as e,H as r,k as i,i as o,a4 as s,m as a,c as u,a as c,h as l,b as h}from"./index.js";function f(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var d,g,b={exports:{}},m={},v={},p={};function w(){return d||(d=1,t=p,Object.defineProperty(t,"__esModule",{value:!0}),t.MUST_INSTALL_PUPPETEER=t.DEFAULT_CONVERSION_ERROR_MESSAGE=t.UNEXPECTED_ERROR_MESSAGE_INTRODUCTION=t.UNEXPECTED_ERROR_MESSAGE_LINK=t.UNEXPECTED_ERROR_MESSAGE_PREFIX=void 0,t.UNEXPECTED_ERROR_MESSAGE_PREFIX="Unexpected error has occurred, please report this by using the following link: ",t.UNEXPECTED_ERROR_MESSAGE_LINK="https://github.com/OvidijusParsiunas/css-filter-converter/issues/new",t.UNEXPECTED_ERROR_MESSAGE_INTRODUCTION=t.UNEXPECTED_ERROR_MESSAGE_PREFIX+t.UNEXPECTED_ERROR_MESSAGE_LINK,t.DEFAULT_CONVERSION_ERROR_MESSAGE="Input value is invalid",t.MUST_INSTALL_PUPPETEER="To convert filter values to color in Node - you will first need to install 'puppeteer' by running: \n npm install puppeteer"),p;var t}function y(){if(g)return v;g=1,Object.defineProperty(v,"__esModule",{value:!0}),v.ErrorHandling=void 0;const t=w();class n{static generateErrorResult(t){return{color:null,error:{message:t}}}static generateInputErrorMessage(t,n,e){const r=[`Input ${t} color string could not be parsed.`,`String received: ${n}.`];return e&&r.splice(1,0,`Expected format: ${e}.`),r.join(" ")}static generateUnexpectedError(e){return n.generateErrorResult(`${t.UNEXPECTED_ERROR_MESSAGE_INTRODUCTION}: \n${e.message}`)}static hasError(t){return!!t.errorMessage}}return v.ErrorHandling=n,v}var M,k={};function j(){if(M)return k;M=1,Object.defineProperty(k,"__esModule",{value:!0}),k.SheenUtil=void 0;class t{static parseSheenFromOptions(t){return!t||"boolean"!=typeof t.sheen||t.sheen}}return k.SheenUtil=t,t.SHEEN_FILTER_PREFIX="brightness(0) saturate(100%)",k}var x,O={};function P(){return x||(x=1,t=O,Object.defineProperty(t,"__esModule",{value:!0}),t.ColorTypes=void 0,(n=t.ColorTypes||(t.ColorTypes={})).HEX="hex",n.RGB="rgb",n.HSL="hsl",n.KEYWORD="keyword",n.FILTER="filter"),O;var t,n}var T,E,_,$={},S={},I={};function A(){return T||(T=1,Object.defineProperty(I,"__esModule",{value:!0}),I.RgbColor=void 0,I.RgbColor=class{constructor(t=[0,0,0]){this.r=this.clamp(t[0]),this.g=this.clamp(t[1]),this.b=this.clamp(t[2])}clamp(t){return t>255?t=255:t<0&&(t=0),t}setRgb(t,n,e){this.r=this.clamp(t),this.g=this.clamp(n),this.b=this.clamp(e)}multiply(t){const n=this.clamp(this.r*t[0]+this.g*t[1]+this.b*t[2]),e=this.clamp(this.r*t[3]+this.g*t[4]+this.b*t[5]),r=this.clamp(this.r*t[6]+this.g*t[7]+this.b*t[8]);this.r=n,this.g=e,this.b=r}hueRotate(t=0){t=t/180*Math.PI;const n=Math.sin(t),e=Math.cos(t);this.multiply([.213+.787*e-.213*n,.715-.715*e-.715*n,.072-.072*e+.928*n,.213-.213*e+.143*n,.715+.285*e+.14*n,.072-.072*e-.283*n,.213-.213*e-.787*n,.715-.715*e+.715*n,.072+.928*e+.072*n])}sepia(t=1){this.multiply([.393+.607*(1-t),.769-.769*(1-t),.189-.189*(1-t),.349-.349*(1-t),.686+.314*(1-t),.168-.168*(1-t),.272-.272*(1-t),.534-.534*(1-t),.131+.869*(1-t)])}saturate(t=1){this.multiply([.213+.787*t,.715-.715*t,.072-.072*t,.213-.213*t,.715+.285*t,.072-.072*t,.213-.213*t,.715-.715*t,.072+.928*t])}linear(t=1,n=0){this.r=this.clamp(this.r*t+255*n),this.g=this.clamp(this.g*t+255*n),this.b=this.clamp(this.b*t+255*n)}brightness(t=1){this.linear(t)}contrast(t=1){this.linear(t,-.5*t+.5)}invert(t=1){this.r=this.clamp(255*(t+this.r/255*(1-2*t))),this.g=this.clamp(255*(t+this.g/255*(1-2*t))),this.b=this.clamp(255*(t+this.b/255*(1-2*t)))}}),I}var R,C,F,H,q,D,V,L,z,G,B,U,N,W={},X={},J={},K={};function Q(){return F||(F=1,t=K,Object.defineProperty(t,"__esModule",{value:!0}),t.ColorFormats=void 0,(n=t.ColorFormats||(t.ColorFormats={})).HEX="#ffffff or #fff",n.RGB="rgb([0-255], [0-255], [0-255]) or rgb([0-255], [0-255], [0-255], [0-1]) or rgb([0-100%], [0-100%], [0-100%]) or rgb([0-100%], [0-100%], [0-100%], [0-100%]) or [0-255], [0-255], [0-255] or [0-255] [0-255] [0-255]",n.HSL="hsl([0-360], [0-100], [0-100]) or hsl([0-360], [0-100%], [0-100%]) or [0-360], [0-100], [0-100] or [0-360] [0-100] [0-100]",n.FILTER="blur(), brightness(), contrast(), drop-shadow(), grayscale(), hue-rotate(), invert(), saturate(), sepia() with each parameter populated with %, px or deg where approriate e.g. contrast(101%)",n.KEYWORD="Generic color string. See the following link for all available colors: https://github.com/colorjs/color-name/blob/master/index.js"),K;var t,n}function Y(){return q?H:(q=1,H={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]})}function Z(){if(L)return V;L=1;const t=Y(),n={};for(const e of Object.keys(t))n[t[e]]=e;const e={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};V=e;for(const t of Object.keys(e)){if(!("channels"in e[t]))throw new Error("missing channels property: "+t);if(!("labels"in e[t]))throw new Error("missing channel labels property: "+t);if(e[t].labels.length!==e[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:n,labels:r}=e[t];delete e[t].channels,delete e[t].labels,Object.defineProperty(e[t],"channels",{value:n}),Object.defineProperty(e[t],"labels",{value:r})}return e.rgb.hsl=function(t){const n=t[0]/255,e=t[1]/255,r=t[2]/255,i=Math.min(n,e,r),o=Math.max(n,e,r),s=o-i;let a,u;o===i?a=0:n===o?a=(e-r)/s:e===o?a=2+(r-n)/s:r===o&&(a=4+(n-e)/s),a=Math.min(60*a,360),a<0&&(a+=360);const c=(i+o)/2;return u=o===i?0:c<=.5?s/(o+i):s/(2-o-i),[a,100*u,100*c]},e.rgb.hsv=function(t){let n,e,r,i,o;const s=t[0]/255,a=t[1]/255,u=t[2]/255,c=Math.max(s,a,u),l=c-Math.min(s,a,u),h=function(t){return(c-t)/6/l+.5};return 0===l?(i=0,o=0):(o=l/c,n=h(s),e=h(a),r=h(u),s===c?i=r-e:a===c?i=1/3+n-r:u===c&&(i=2/3+e-n),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*c]},e.rgb.hwb=function(t){const n=t[0],r=t[1];let i=t[2];const o=e.rgb.hsl(t)[0],s=1/255*Math.min(n,Math.min(r,i));return i=1-1/255*Math.max(n,Math.max(r,i)),[o,100*s,100*i]},e.rgb.cmyk=function(t){const n=t[0]/255,e=t[1]/255,r=t[2]/255,i=Math.min(1-n,1-e,1-r);return[100*((1-n-i)/(1-i)||0),100*((1-e-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*i]},e.rgb.keyword=function(e){const r=n[e];if(r)return r;let i,o=1/0;for(const n of Object.keys(t)){const r=((s=e)[0]-(a=t[n])[0])**2+(s[1]-a[1])**2+(s[2]-a[2])**2;r<o&&(o=r,i=n)}var s,a;return i},e.keyword.rgb=function(n){return t[n]},e.rgb.xyz=function(t){let n=t[0]/255,e=t[1]/255,r=t[2]/255;return n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*n+.3576*e+.1805*r),100*(.2126*n+.7152*e+.0722*r),100*(.0193*n+.1192*e+.9505*r)]},e.rgb.lab=function(t){const n=e.rgb.xyz(t);let r=n[0],i=n[1],o=n[2];return r/=95.047,i/=100,o/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,[116*i-16,500*(r-i),200*(i-o)]},e.hsl.rgb=function(t){const n=t[0]/360,e=t[1]/100,r=t[2]/100;let i,o,s;if(0===e)return s=255*r,[s,s,s];i=r<.5?r*(1+e):r+e-r*e;const a=2*r-i,u=[0,0,0];for(let t=0;t<3;t++)o=n+1/3*-(t-1),o<0&&o++,o>1&&o--,s=6*o<1?a+6*(i-a)*o:2*o<1?i:3*o<2?a+(i-a)*(2/3-o)*6:a,u[t]=255*s;return u},e.hsl.hsv=function(t){const n=t[0];let e=t[1]/100,r=t[2]/100,i=e;const o=Math.max(r,.01);return r*=2,e*=r<=1?r:2-r,i*=o<=1?o:2-o,[n,100*(0===r?2*i/(o+i):2*e/(r+e)),(r+e)/2*100]},e.hsv.rgb=function(t){const n=t[0]/60,e=t[1]/100;let r=t[2]/100;const i=Math.floor(n)%6,o=n-Math.floor(n),s=255*r*(1-e),a=255*r*(1-e*o),u=255*r*(1-e*(1-o));switch(r*=255,i){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},e.hsv.hsl=function(t){const n=t[0],e=t[1]/100,r=t[2]/100,i=Math.max(r,.01);let o,s;s=(2-e)*r;const a=(2-e)*i;return o=e*i,o/=a<=1?a:2-a,o=o||0,s/=2,[n,100*o,100*s]},e.hwb.rgb=function(t){const n=t[0]/360;let e=t[1]/100,r=t[2]/100;const i=e+r;let o;i>1&&(e/=i,r/=i);const s=Math.floor(6*n),a=1-r;o=6*n-s,1&s&&(o=1-o);const u=e+o*(a-e);let c,l,h;switch(s){default:case 6:case 0:c=a,l=u,h=e;break;case 1:c=u,l=a,h=e;break;case 2:c=e,l=a,h=u;break;case 3:c=e,l=u,h=a;break;case 4:c=u,l=e,h=a;break;case 5:c=a,l=e,h=u}return[255*c,255*l,255*h]},e.cmyk.rgb=function(t){const n=t[1]/100,e=t[2]/100,r=t[3]/100;return[255*(1-Math.min(1,t[0]/100*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,e*(1-r)+r))]},e.xyz.rgb=function(t){const n=t[0]/100,e=t[1]/100,r=t[2]/100;let i,o,s;return i=3.2406*n+-1.5372*e+-.4986*r,o=-.9689*n+1.8758*e+.0415*r,s=.0557*n+-.204*e+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[255*i,255*o,255*s]},e.xyz.lab=function(t){let n=t[0],e=t[1],r=t[2];return n/=95.047,e/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*e-16,500*(n-e),200*(e-r)]},e.lab.xyz=function(t){let n,e,r;e=(t[0]+16)/116,n=t[1]/500+e,r=e-t[2]/200;const i=e**3,o=n**3,s=r**3;return e=i>.008856?i:(e-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,n*=95.047,e*=100,r*=108.883,[n,e,r]},e.lab.lch=function(t){const n=t[0],e=t[1],r=t[2];let i;return i=360*Math.atan2(r,e)/2/Math.PI,i<0&&(i+=360),[n,Math.sqrt(e*e+r*r),i]},e.lch.lab=function(t){const n=t[1],e=t[2]/360*2*Math.PI;return[t[0],n*Math.cos(e),n*Math.sin(e)]},e.rgb.ansi16=function(t,n=null){const[r,i,o]=t;let s=null===n?e.rgb.hsv(t)[2]:n;if(s=Math.round(s/50),0===s)return 30;let a=30+(Math.round(o/255)<<2|Math.round(i/255)<<1|Math.round(r/255));return 2===s&&(a+=60),a},e.hsv.ansi16=function(t){return e.rgb.ansi16(e.hsv.rgb(t),t[2])},e.rgb.ansi256=function(t){const n=t[0],e=t[1],r=t[2];return n===e&&e===r?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5)},e.ansi16.rgb=function(t){let n=t%10;if(0===n||7===n)return t>50&&(n+=3.5),n=n/10.5*255,[n,n,n];const e=.5*(1+~~(t>50));return[(1&n)*e*255,(n>>1&1)*e*255,(n>>2&1)*e*255]},e.ansi256.rgb=function(t){if(t>=232){const n=10*(t-232)+8;return[n,n,n]}let n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},e.rgb.hex=function(t){const n=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(n.length)+n},e.hex.rgb=function(t){const n=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];let e=n[0];3===n[0].length&&(e=e.split("").map((t=>t+t)).join(""));const r=parseInt(e,16);return[r>>16&255,r>>8&255,255&r]},e.rgb.hcg=function(t){const n=t[0]/255,e=t[1]/255,r=t[2]/255,i=Math.max(Math.max(n,e),r),o=Math.min(Math.min(n,e),r),s=i-o;let a,u;return a=s<1?o/(1-s):0,u=s<=0?0:i===n?(e-r)/s%6:i===e?2+(r-n)/s:4+(n-e)/s,u/=6,u%=1,[360*u,100*s,100*a]},e.hsl.hcg=function(t){const n=t[1]/100,e=t[2]/100,r=e<.5?2*n*e:2*n*(1-e);let i=0;return r<1&&(i=(e-.5*r)/(1-r)),[t[0],100*r,100*i]},e.hsv.hcg=function(t){const n=t[2]/100,e=t[1]/100*n;let r=0;return e<1&&(r=(n-e)/(1-e)),[t[0],100*e,100*r]},e.hcg.rgb=function(t){const n=t[1]/100,e=t[2]/100;if(0===n)return[255*e,255*e,255*e];const r=[0,0,0],i=t[0]/360%1*6,o=i%1,s=1-o;let a=0;switch(Math.floor(i)){case 0:r[0]=1,r[1]=o,r[2]=0;break;case 1:r[0]=s,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=o;break;case 3:r[0]=0,r[1]=s,r[2]=1;break;case 4:r[0]=o,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=s}return a=(1-n)*e,[255*(n*r[0]+a),255*(n*r[1]+a),255*(n*r[2]+a)]},e.hcg.hsv=function(t){const n=t[1]/100,e=n+t[2]/100*(1-n);let r=0;return e>0&&(r=n/e),[t[0],100*r,100*e]},e.hcg.hsl=function(t){const n=t[1]/100,e=t[2]/100*(1-n)+.5*n;let r=0;return e>0&&e<.5?r=n/(2*e):e>=.5&&e<1&&(r=n/(2*(1-e))),[t[0],100*r,100*e]},e.hcg.hwb=function(t){const n=t[1]/100,e=n+t[2]/100*(1-n);return[t[0],100*(e-n),100*(1-e)]},e.hwb.hcg=function(t){const n=1-t[2]/100,e=n-t[1]/100;let r=0;return e<1&&(r=(n-e)/(1-e)),[t[0],100*e,100*r]},e.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},e.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},e.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},e.gray.hsl=function(t){return[0,0,t[0]]},e.gray.hsv=e.gray.hsl,e.gray.hwb=function(t){return[0,100,t[0]]},e.gray.cmyk=function(t){return[0,0,0,t[0]]},e.gray.lab=function(t){return[t[0],0,0]},e.gray.hex=function(t){const n=255&Math.round(t[0]/100*255),e=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".substring(e.length)+e},e.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]},V}function tt(){if(G)return z;G=1;const t=Z();function n(t,n){return function(e){return n(t(e))}}function e(e,r){const i=[r[e].parent,e];let o=t[r[e].parent][e],s=r[e].parent;for(;r[s].parent;)i.unshift(r[s].parent),o=n(t[r[s].parent][s],o),s=r[s].parent;return o.conversion=i,o}return z=function(n){const r=function(n){const e=function(){const n={},e=Object.keys(t);for(let t=e.length,r=0;r<t;r++)n[e[r]]={distance:-1,parent:null};return n}(),r=[n];for(e[n].distance=0;r.length;){const n=r.pop(),i=Object.keys(t[n]);for(let t=i.length,o=0;o<t;o++){const t=i[o],s=e[t];-1===s.distance&&(s.distance=e[n].distance+1,s.parent=n,r.unshift(t))}}return e}(n),i={},o=Object.keys(r);for(let t=o.length,n=0;n<t;n++){const t=o[n];null!==r[t].parent&&(i[t]=e(t,r))}return i}}function nt(){if(U)return B;U=1;const t=Z(),n=tt(),e={};return Object.keys(t).forEach((r=>{e[r]={},Object.defineProperty(e[r],"channels",{value:t[r].channels}),Object.defineProperty(e[r],"labels",{value:t[r].labels});const i=n(r);Object.keys(i).forEach((t=>{const n=i[t];e[r][t]=function(t){const n=function(...n){const e=n[0];if(null==e)return e;e.length>1&&(n=e);const r=t(n);if("object"==typeof r)for(let t=r.length,n=0;n<t;n++)r[n]=Math.round(r[n]);return r};return"conversion"in t&&(n.conversion=t.conversion),n}(n),e[r][t].raw=function(t){const n=function(...n){const e=n[0];return null==e?e:(e.length>1&&(n=e),t(n))};return"conversion"in t&&(n.conversion=t.conversion),n}(n)}))})),B=e}var et,rt={},it={},ot={},st={};function at(){if(et)return st;et=1,Object.defineProperty(st,"__esModule",{value:!0}),st.FilterToHexShared=void 0;const t=y(),n=Q(),e=P();return st.FilterToHexShared=class{static generateInputErrorMessage(r){return t.ErrorHandling.generateInputErrorMessage(e.ColorTypes.FILTER,r,n.ColorFormats.FILTER)}static addSVGElementsToDOMAndValidateFilter(t,n=1){const e=function(){const t=document.createElement("div");return t.style.height=`${n}px`,t.style.width=`${n}px`,t.style.position="absolute",t.style.top="0px",t.style.left="0px",t}(),r=function(){const e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");r.style.height="inherit",r.style.width="inherit",r.style.float="left",r.style.filter=t;const i=document.createElementNS(e,"rect");return i.setAttributeNS(null,"width",n.toString()),i.setAttributeNS(null,"height",n.toString()),r.appendChild(i),r}();return""===r.style.filter?{errorMessage:"error indicator",svgContainerElement:e}:(e.appendChild(r),document.body.appendChild(e),{svgContainerElement:e})}static async getColorViaImageDataURL(t){return function(t){const n=function(t){const n=t.width;return t.getContext("2d").getImageData(0,0,n,n).data}(t);return`#${`000000${function(t,n,e){if(t>255||n>255||e>255)throw new Error("Invalid color component");return(t<<16|n<<8|e).toString(16)}(n[0],n[1],n[2])}`.slice(-6)}`}(function(t){const n=document.createElement("canvas");return n.width=t.width,n.height=t.height,n.getContext("2d").drawImage(t,0,0,t.width,t.height),n}(await async function(){const n=new Image;return n.src=t,new Promise((t=>{setTimeout((()=>t(n)))}))}()))}},st}var ut,ct,lt={exports:{}};function ht(){return ut||(ut=1,t=lt,function(){var n=function(){return{escape:function(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:n,mimeType:function(t){var e,r;return(e="application/font-woff",r="image/jpeg",{woff:e,woff2:e,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:r,jpeg:r,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"})[n(t).toLowerCase()]||""},dataAsUrl:function(t,n){return"data:"+n+";base64,"+t},isDataUrl:function(t){return-1!==t.search(/^(data:)/)},canvasToBlob:function(t){return t.toBlob?new Promise((function(n){t.toBlob(n)})):function(t){return new Promise((function(n){for(var e=window.atob(t.toDataURL().split(",")[1]),r=e.length,i=new Uint8Array(r),o=0;o<r;o++)i[o]=e.charCodeAt(o);n(new Blob([i],{type:"image/png"}))}))}(t)},resolveUrl:function(t,n){var e=document.implementation.createHTMLDocument(),r=e.createElement("base");e.head.appendChild(r);var i=e.createElement("a");return e.body.appendChild(i),r.href=n,i.href=t,i.href},getAndEncode:function(t){return a.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime()),new Promise((function(n){var e,r=new XMLHttpRequest;if(r.onreadystatechange=function(){if(4===r.readyState)if(200===r.status){var i=new FileReader;i.onloadend=function(){var t=i.result.split(/,/)[1];n(t)},i.readAsDataURL(r.response)}else e?n(e):o("cannot fetch resource: "+t+", status: "+r.status)},r.ontimeout=function(){e?n(e):o("timeout of 30000ms occured while fetching resource: "+t)},r.responseType="blob",r.timeout=3e4,r.open("GET",t,!0),r.send(),a.impl.options.imagePlaceholder){var i=a.impl.options.imagePlaceholder.split(/,/);i&&i[1]&&(e=i[1])}function o(t){console.error(t),n("")}}))},uid:(t=0,function(){return"u"+("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4)+t++}),delay:function(t){return function(n){return new Promise((function(e){setTimeout((function(){e(n)}),t)}))}},asArray:function(t){for(var n=[],e=t.length,r=0;r<e;r++)n.push(t[r]);return n},escapeXhtml:function(t){return t.replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(t){return new Promise((function(n,e){var r=new Image;r.onload=function(){n(r)},r.onerror=e,r.src=t}))},width:function(t){var n=e(t,"border-left-width"),r=e(t,"border-right-width");return t.scrollWidth+n+r},height:function(t){var n=e(t,"border-top-width"),r=e(t,"border-bottom-width");return t.scrollHeight+n+r}};var t;function n(t){var n=/\.([^\.\/]*?)$/g.exec(t);return n?n[1]:""}function e(t,n){var e=window.getComputedStyle(t).getPropertyValue(n);return parseFloat(e.replace("px",""))}}(),e=function(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(t,n,o){return e(t)?Promise.resolve(t).then(r).then((function(e){var r=Promise.resolve(t);return e.forEach((function(t){r=r.then((function(e){return i(e,t,n,o)}))})),r})):Promise.resolve(t)},shouldProcess:e,impl:{readUrls:r,inline:i}};function e(n){return-1!==n.search(t)}function r(e){for(var r,i=[];null!==(r=t.exec(e));)i.push(r[1]);return i.filter((function(t){return!n.isDataUrl(t)}))}function i(t,e,r,i){return Promise.resolve(e).then((function(t){return r?n.resolveUrl(t,r):t})).then(i||n.getAndEncode).then((function(t){return n.dataAsUrl(t,n.mimeType(e))})).then((function(r){return t.replace(function(t){return new RegExp("(url\\(['\"]?)("+n.escape(t)+")(['\"]?\\))","g")}(e),"$1"+r+"$3")}))}}(),r=function(){return{resolveAll:function(){return t().then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))},impl:{readAll:t}};function t(){return Promise.resolve(n.asArray(document.styleSheets)).then((function(t){var e=[];return t.forEach((function(t){try{n.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(n){console.log("Error while reading CSS rules from "+t.href,n.toString())}})),e})).then((function(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return e.shouldProcess(t.style.getPropertyValue("src"))}))})).then((function(n){return n.map(t)}));function t(t){return{resolve:function(){return e.inlineAll(t.cssText,(t.parentStyleSheet||{}).href)},src:function(){return t.style.getPropertyValue("src")}}}}}(),i=function(){return{inlineAll:function r(i){return i instanceof Element?function(t){var n=t.style.getPropertyValue("background");return n?e.inlineAll(n).then((function(n){t.style.setProperty("background",n,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}(i).then((function(){return i instanceof HTMLImageElement?t(i).inline():Promise.all(n.asArray(i.childNodes).map((function(t){return r(t)})))})):Promise.resolve(i)},impl:{newImage:t}};function t(t){return{inline:function(e){return n.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||n.getAndEncode).then((function(e){return n.dataAsUrl(e,n.mimeType(t.src))})).then((function(n){return new Promise((function(e,r){t.onload=e,t.onerror=r,t.src=n}))}))}}}}(),o=void 0,s=!1,a={toSvg:u,toPng:function(t,n){return c(t,n||{}).then((function(t){return t.toDataURL()}))},toJpeg:function(t,n){return c(t,n=n||{}).then((function(t){return t.toDataURL("image/jpeg",n.quality||1)}))},toBlob:function(t,e){return c(t,e||{}).then(n.canvasToBlob)},toPixelData:function(t,e){return c(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,n.width(t),n.height(t)).data}))},impl:{fontFaces:r,images:i,util:n,inliner:e,options:{}}};function u(t,e){return function(t){a.impl.options.imagePlaceholder=void 0===t.imagePlaceholder?o:t.imagePlaceholder,a.impl.options.cacheBust=void 0===t.cacheBust?s:t.cacheBust}(e=e||{}),Promise.resolve(t).then((function(t){return l(t,e.filter,!0)})).then(h).then(f).then((function(t){return e.bgcolor&&(t.style.backgroundColor=e.bgcolor),e.width&&(t.style.width=e.width+"px"),e.height&&(t.style.height=e.height+"px"),e.style&&Object.keys(e.style).forEach((function(n){t.style[n]=e.style[n]})),t})).then((function(r){return function(t,e,r){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(n.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+r+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}(r,e.width||n.width(t),e.height||n.height(t))}))}function c(t,e){return u(t,e).then(n.makeImage).then(n.delay(100)).then((function(r){var i=function(t){var r=document.createElement("canvas");if(r.width=e.width||n.width(t),r.height=e.height||n.height(t),e.bgcolor){var i=r.getContext("2d");i.fillStyle=e.bgcolor,i.fillRect(0,0,r.width,r.height)}return r}(t);return i.getContext("2d").drawImage(r,0,0),i}))}function l(t,e,r){return r||!e||e(t)?Promise.resolve(t).then((function(t){return t instanceof HTMLCanvasElement?n.makeImage(t.toDataURL()):t.cloneNode(!1)})).then((function(r){return function(t,e,r){var i=t.childNodes;return 0===i.length?Promise.resolve(e):function(t,n,e){var r=Promise.resolve();return n.forEach((function(n){r=r.then((function(){return l(n,e)})).then((function(n){n&&t.appendChild(n)}))})),r}(e,n.asArray(i),r).then((function(){return e}))}(t,r,e)})).then((function(e){return function(t,e){return e instanceof Element?Promise.resolve().then((function(){r=window.getComputedStyle(t),i=e.style,r.cssText?i.cssText=r.cssText:function(t,e){n.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}(r,i);var r,i})).then((function(){[":before",":after"].forEach((function(r){!function(r){var i=window.getComputedStyle(t,r),o=i.getPropertyValue("content");if(""!==o&&"none"!==o){var s=n.uid();e.className=e.className+" "+s;var a=document.createElement("style");a.appendChild(function(t,e,r){var i="."+t+":"+e,o=r.cssText?s(r):a(r);return document.createTextNode(i+"{"+o+"}");function s(t){var n=t.getPropertyValue("content");return t.cssText+" content: "+n+";"}function a(t){return n.asArray(t).map(e).join("; ")+";";function e(n){return n+": "+t.getPropertyValue(n)+(t.getPropertyPriority(n)?" !important":"")}}}(s,r,i)),e.appendChild(a)}}(r)}))})).then((function(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)})).then((function(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach((function(t){var n=e.getAttribute(t);n&&e.style.setProperty(t,n)})))})).then((function(){return e})):e}(t,e)})):Promise.resolve()}function h(t){return r.resolveAll().then((function(n){var e=document.createElement("style");return t.appendChild(e),e.appendChild(document.createTextNode(n)),t}))}function f(t){return i.inlineAll(t).then((function(){return t}))}t.exports=a}()),lt.exports;var t}var ft,dt,gt={};var bt,mt,vt,pt,wt={},yt={};var Mt=t((pt||(pt=1,function(t,n){Object.defineProperty(n,"__esModule",{value:!0});const e=function(){if(N)return m;N=1;var t=m&&m.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(m,"__esModule",{value:!0}),m.ColorToFilter=void 0;const n=y(),e=j(),r=P(),i=function(){if(_)return $;_=1,Object.defineProperty($,"__esModule",{value:!0}),$.RgbToFilter=void 0;const t=y(),n=w(),e=function(){if(E)return S;E=1,Object.defineProperty(S,"__esModule",{value:!0}),S.RgbToFilterWorker=void 0;const t=j(),n=A();class e{constructor(t,e){this.targetRgbColor=t,this.reusedRgbColor=new n.RgbColor,this.addSheen=e}static fmt(t,n,e=1){return Math.round(t[n]*e)}generateCss(n){return`${this.addSheen?`${t.SheenUtil.SHEEN_FILTER_PREFIX} `:""}invert(${e.fmt(n,0)}%) sepia(${e.fmt(n,1)}%) saturate(${e.fmt(n,2)}%) hue-rotate(${e.fmt(n,3,3.6)}deg) brightness(${e.fmt(n,4)}%) contrast(${e.fmt(n,5)}%)`}loss(t){return this.reusedRgbColor.setRgb(0,0,0),this.reusedRgbColor.invert(t[0]/100),this.reusedRgbColor.sepia(t[1]/100),this.reusedRgbColor.saturate(t[2]/100),this.reusedRgbColor.hueRotate(3.6*t[3]),this.reusedRgbColor.brightness(t[4]/100),this.reusedRgbColor.contrast(t[5]/100),Math.abs(this.reusedRgbColor.r-this.targetRgbColor.r)+Math.abs(this.reusedRgbColor.g-this.targetRgbColor.g)+Math.abs(this.reusedRgbColor.b-this.targetRgbColor.b)}static fixSpsa(t,n){let e=100;return 2===n?e=7500:4!==n&&5!==n||(e=200),3===n?t>e?t%=e:t<0&&(t=e+t%e):t<0?t=0:t>e&&(t=e),t}spsa(t,n,r,i,o){let s=[],a=1/0;const u=new Array(6),c=new Array(6),l=new Array(6);for(let h=0;h<o;h+=1){const o=r/Math.pow(h+1,.16666666666666666);for(let t=0;t<6;t+=1)u[t]=Math.random()>.5?1:-1,c[t]=i[t]+o*u[t],l[t]=i[t]-o*u[t];const f=this.loss(c)-this.loss(l);for(let r=0;r<6;r+=1){const s=f/(2*o)*u[r],a=n[r]/Math.pow(t+h+1,1);i[r]=e.fixSpsa(i[r]-a*s,r)}const d=this.loss(i);d<a&&(s=i.slice(0),a=d)}return{values:s,loss:a}}solveNarrow(t){const n=t.loss,e=n+1;return this.spsa(n,[.25*e,.25*e,e,.25*e,.2*e,.2*e],2,t.values,500)}solveWide(){const t=[60,180,18e3,600,1.2,1.2];let n={values:[],loss:1/0};for(let e=0;n.loss>25&&e<3;e+=1){const e=this.spsa(5,t,15,[50,20,3750,50,100,100],1e3);e.loss<n.loss&&(n=e)}return n}convert(){const t=this.solveNarrow(this.solveWide());return{loss:t.loss,color:this.generateCss(t.values)}}}return S.RgbToFilterWorker=e,S}(),r=A();class i{static generateConversionError(e){return t.ErrorHandling.generateErrorResult(e||n.DEFAULT_CONVERSION_ERROR_MESSAGE)}static generateValidateAndParseError(n){return t.ErrorHandling.generateErrorResult(n)}static execute(t,n){const i=new r.RgbColor(t);return new e.RgbToFilterWorker(i,n).convert()}static convertToRGB(t,n){return t&&n?n(t):null}static convert(n){try{const{colorString:e,validateAndParse:r,convertToRgb:o,conversionErrorMessage:s,addSheen:a}=n,u=e.trim().toLocaleLowerCase(),c=(null==r?void 0:r(u))||{color:u};if(t.ErrorHandling.hasError(c))return i.generateValidateAndParseError(c.errorMessage);const l=i.convertToRGB(c.color,o)||c.color;return l?i.execute(l,a):i.generateConversionError(s)}catch(n){return t.ErrorHandling.generateUnexpectedError(n)}}}return $.RgbToFilter=i,$}(),o=function(){if(D)return W;D=1;var t=W&&W.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(W,"__esModule",{value:!0}),W.ColorParser=void 0;const n=(R||(R=1,Object.defineProperty(X,"__esModule",{value:!0}),X.MATCH_HEXADECIMAL=X.MATCH_INTEGER_AND_FLOAT_NUMBERS=void 0,X.MATCH_INTEGER_AND_FLOAT_NUMBERS=/(-?\d+(?:\.\d+)?)/g,X.MATCH_HEXADECIMAL=/^#[0-9a-f]{3}([0-9a-f]{3})?$/i),X),e=y(),r=(C||(C=1,Object.defineProperty(J,"__esModule",{value:!0}),J.MAX_COLOR_INPUT_STRING_LENGTH=void 0,J.MAX_COLOR_INPUT_STRING_LENGTH=25),J),i=Q(),o=P(),s=t(Y());class a{static validateAndParseHex(t){return t.length<r.MAX_COLOR_INPUT_STRING_LENGTH&&t.match(n.MATCH_HEXADECIMAL)?{color:t}:{errorMessage:e.ErrorHandling.generateInputErrorMessage(o.ColorTypes.HEX,t,i.ColorFormats.HEX)}}static parseFirstThreeIntegersFromString(t){if(t.length<r.MAX_COLOR_INPUT_STRING_LENGTH){const e=t.match(n.MATCH_INTEGER_AND_FLOAT_NUMBERS);if(n.MATCH_INTEGER_AND_FLOAT_NUMBERS.lastIndex=0,e&&e.length>=3)return e.slice(0,3).map((t=>Number.parseInt(t)))}return null}static validateAndParseRgb(t){const n=a.parseFirstThreeIntegersFromString(t);return n&&n[0]>=0&&n[0]<=255&&n[1]>=0&&n[1]<=255&&n[2]>=0&&n[2]<=255?{color:n}:{errorMessage:e.ErrorHandling.generateInputErrorMessage(o.ColorTypes.RGB,t,i.ColorFormats.RGB)}}static validateAndParseHsl(t){const n=a.parseFirstThreeIntegersFromString(t);return n&&n[0]>=0&&n[0]<=360&&n[1]>=0&&n[1]<=100&&n[2]>=0&&n[2]<=100?{color:n}:{errorMessage:e.ErrorHandling.generateInputErrorMessage(o.ColorTypes.HSL,t,i.ColorFormats.HSL)}}static validateAndParseKeyword(t){return t.length<r.MAX_COLOR_INPUT_STRING_LENGTH&&s.default[t]?{color:t}:{errorMessage:e.ErrorHandling.generateInputErrorMessage(o.ColorTypes.KEYWORD,t,i.ColorFormats.KEYWORD)}}}return W.ColorParser=a,W}(),s=t(nt());return m.ColorToFilter=class{static rgbToFilter(t,n){return i.RgbToFilter.convert({colorString:t,validateAndParse:o.ColorParser.validateAndParseRgb,addSheen:e.SheenUtil.parseSheenFromOptions(n)})}static hexToFilter(t,n){return i.RgbToFilter.convert({colorString:t,validateAndParse:o.ColorParser.validateAndParseHex,convertToRgb:s.default.hex.rgb,addSheen:e.SheenUtil.parseSheenFromOptions(n)})}static hslToFilter(t,n){return i.RgbToFilter.convert({colorString:t,validateAndParse:o.ColorParser.validateAndParseHsl,convertToRgb:s.default.hsl.rgb,addSheen:e.SheenUtil.parseSheenFromOptions(n)})}static keywordToFilter(t,a){return i.RgbToFilter.convert({colorString:t,validateAndParse:o.ColorParser.validateAndParseKeyword,convertToRgb:s.default.keyword.rgb,conversionErrorMessage:n.ErrorHandling.generateInputErrorMessage(r.ColorTypes.KEYWORD,t),addSheen:e.SheenUtil.parseSheenFromOptions(a)})}},m}(),r=function(){if(vt)return rt;vt=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.FilterToColor=void 0;const t=function(){if(dt)return it;dt=1;var t=it&&it.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),n=it&&it.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),e=it&&it.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(it,"__esModule",{value:!0}),it.FilterToHex=void 0;const r=y(),i=function(){if(ct)return ot;ct=1;var t=ot&&ot.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(n,e);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,i)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),n=ot&&ot.__setModuleDefault||(Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n}),e=ot&&ot.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(ot,"__esModule",{value:!0}),ot.FilterToHexBrowser=void 0;const r=y(),i=at();class o extends i.FilterToHexShared{static cleanup(t){t.remove()}static returnInputError(t,n){const e=i.FilterToHexShared.generateInputErrorMessage(t),s=r.ErrorHandling.generateErrorResult(e);return o.cleanup(n),s}static async getImageBase64ViaSVG(t){return(await Promise.resolve().then((()=>e(ht())))).toPng(t)}static async convert(t){const{errorMessage:n,svgContainerElement:e}=i.FilterToHexShared.addSVGElementsToDOMAndValidateFilter(t);if(n)return o.returnInputError(t,e);const r=await o.getImageBase64ViaSVG(e),s=await i.FilterToHexShared.getColorViaImageDataURL(r);return o.cleanup(e),{color:s}}}return ot.FilterToHexBrowser=o,ot}();return it.FilterToHex=class{static async convert(t,n,o){try{let r;if("undefined"==typeof window){const{FilterToHexNode:n}=await Promise.resolve().then((()=>e(function(){if(ft)return gt;ft=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.FilterToHexNode=void 0;const t=y(),n=w(),e=Q(),r=P(),i=at();class o extends i.FilterToHexShared{static cleanup(t){o.IS_HEADLESS&&(null==t||t.close())}static returnError(n,e){const r=t.ErrorHandling.generateErrorResult(n);return o.cleanup(e),r}static async getImageBase64ViaSVG(t){const n=await t.screenshot({encoding:o.BASE_64_ENCODING});return`${o.ENCODED_DATA_URL_PREFIX}${n}`}static async openBrowserPage(t){const n=await t.newPage();return await n.setViewport({width:o.SVG_SIDE_LENGTH_PX,height:o.SVG_SIDE_LENGTH_PX}),n}static async addSVGAndValidateFilter(n,s){const a=await n.evaluate(i.FilterToHexShared.addSVGElementsToDOMAndValidateFilter,s,o.SVG_SIDE_LENGTH_PX);return a.errorMessage?{errorMessage:t.ErrorHandling.generateInputErrorMessage(r.ColorTypes.FILTER,s,e.ColorFormats.FILTER)}:a}static async getPuppeteerDependency(){try{return f("puppeteer")}catch(t){return{errorMessage:n.MUST_INSTALL_PUPPETEER}}}static async preparePuppeteerBrowser(){const n=await o.getPuppeteerDependency();return t.ErrorHandling.hasError(n)?n:n.launch({headless:o.IS_HEADLESS})}static async convert(n){const e=await o.preparePuppeteerBrowser();if(t.ErrorHandling.hasError(e))return o.returnError(e.errorMessage);const r=await o.openBrowserPage(e),s=await o.addSVGAndValidateFilter(r,n);if(t.ErrorHandling.hasError(s))return o.returnError(s.errorMessage,e);const a=await o.getImageBase64ViaSVG(r),u=await r.evaluate(i.FilterToHexShared.getColorViaImageDataURL,a);return o.cleanup(e),{color:u}}}return gt.FilterToHexNode=o,o.BASE_64_ENCODING="base64",o.ENCODED_DATA_URL_PREFIX=`data:image/png;${o.BASE_64_ENCODING},`,o.IS_HEADLESS=!0,o.SVG_SIDE_LENGTH_PX=2,gt}())));r=await n.convert(t)}else r=await i.FilterToHexBrowser.convert(t);return r.color&&n&&"string"==typeof r.color&&(r.color=n(r.color,o)),r}catch(t){return r.ErrorHandling.generateUnexpectedError(t)}}},it}(),n=function(){if(mt)return wt;mt=1;var t=wt&&wt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wt,"__esModule",{value:!0}),wt.HexToColor=void 0;const n=(bt||(bt=1,Object.defineProperty(yt,"__esModule",{value:!0}),yt.ColorFormatter=void 0,yt.ColorFormatter=class{static arrayToRgbString(t){return`rgb(${t[0]}, ${t[1]}, ${t[2]})`}static arrayToHslString(t){return`hsl(${t[0]}deg, ${t[1]}%, ${t[2]}%)`}}),yt),e=t(nt());return wt.HexToColor=class{static convertToRgb(t,r){const i=e.default.hex.rgb(t);return"string"===(null==r?void 0:r.resultType)?n.ColorFormatter.arrayToRgbString(i):i}static convertToHsl(t,r){const i=e.default.hex.hsl(t);return"string"===(null==r?void 0:r.resultType)?n.ColorFormatter.arrayToHslString(i):i}},wt}();return rt.FilterToColor=class{static async filterToHex(n){const e=await t.FilterToHex.convert(n);return e.color&&(e.color=e.color.toUpperCase()),e}static async filterToRgb(e,r){return t.FilterToHex.convert(e,n.HexToColor.convertToRgb,r)}static async filterToHsl(e,r){return t.FilterToHex.convert(e,n.HexToColor.convertToHsl,r)}},rt}();class i{static rgbToFilter(t,n){return e.ColorToFilter.rgbToFilter(t,n)}static hexToFilter(t,n){return e.ColorToFilter.hexToFilter(t,n)}static hslToFilter(t,n){return e.ColorToFilter.hslToFilter(t,n)}static keywordToFilter(t,n){return e.ColorToFilter.keywordToFilter(t,n)}static async filterToHex(t){return r.FilterToColor.filterToHex(t)}static async filterToRgb(t,n){return r.FilterToColor.filterToRgb(t,n)}static async filterToHsl(t,n){return r.FilterToColor.filterToHsl(t,n)}}n.default=i,t.exports=i}(b,b.exports)),b.exports));const kt=e(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.showSpeakIcon=!1,this.sliceWidth="30px",this.minDrops=1,this.maxDrops=1,this.margin="",this.padding="",this.filter="",this.borderRadius="0px",this.transform="",this.handleWindowResize=()=>this.updateStyles(),this.handleWindowLoad=()=>this.updateStyles(),this.delayVisible="",this.disableSpeak=!1}componentDidLoad(){if(i(this.el,this.delayVisible),o(this.el,this.type),""!==this.filter){const t=this.el.getElementsByTagName("img")[0];t&&(t.style.filter=`${Mt.hexToFilter(s(this.filter).toHexString()).color}`)}this.showSpeakIcon&&a(this.el)}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=window.innerHeight>window.innerWidth?"portrait":"landscape";this.style={height:c(this.height,t),width:c(this.width,t),backgroundColor:c(this.bgColor,t),top:c(this.y,t),left:c(this.x,t),zIndex:this.z,display:c(`${this.visible}`,t)?"flex":"none",alignItems:"center",justifyContent:"center",margin:c(this.margin,t),padding:c(this.padding,t),transform:c(this.transform,t),borderRadius:this.borderRadius,borderImageSource:"true"===this.isSlice?`url(${u(this.src)})`:"none",borderImageSlice:"true"===this.isSlice?`${parseInt(this.sliceWidth)} fill`:"unset",borderImageRepeat:"true"===this.isSlice?"round":"unset",borderImageWidth:"true"===this.isSlice?`${this.sliceWidth}`:"unset",backgroundImage:"true"===this.isSlice?`url(${u(this.src)})`:"none"}}render(){return"true"===this.isSlice?l(h,{class:"slice",id:this.id,type:this.type,"tab-index":this.tabIndex,style:this.style,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,value:this.value,minDrops:this.minDrops,maxDrops:this.maxDrops,audio:this.audio,onTouch:this.onTouch,onCorrect:this.onCorrect,onInCorrect:this.onInCorrect,onEntry:this.onEntry}):l(h,{id:this.id,type:this.type,"tab-index":this.tabIndex,style:this.style,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,value:this.value,minDrops:this.minDrops,maxDrops:this.maxDrops,audio:this.audio,onTouch:this.onTouch,onCorrect:this.onCorrect,onInCorrect:this.onInCorrect,onEntry:this.onEntry,"disable-speak":this.disableSpeak},l("img",{class:"lido-image",src:u(this.src),alt:"",style:this.style}))}get el(){return this}static get style(){return".lido-image{user-select:none;-webkit-user-drag:none;object-fit:contain;width:100% !important;height:100% !important;aspect-ratio:1 / 1;transform:rotate(0) !important;margin:0 !important}.slice{background-repeat:no-repeat;background-position:center;background-size:100% 100%}"}},[0,"lido-image",{showSpeakIcon:[4,"show-speak-icon"],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"],visible:[8],audio:[1],onTouch:[1,"on-touch"],onInCorrect:[1,"on-in-correct"],onCorrect:[1,"on-correct"],onEntry:[1,"on-entry"],src:[1],isSlice:[1,"is-slice"],sliceWidth:[1,"slice-width"],minDrops:[2,"min-drops"],maxDrops:[2,"max-drops"],margin:[1],padding:[1],filter:[1],borderRadius:[1,"border-radius"],transform:[1],delayVisible:[1,"delay-visible"],disableSpeak:[4,"disable-speak"],style:[32]}]);function jt(){"undefined"!=typeof customElements&&["lido-image"].forEach((t=>{"lido-image"===t&&(customElements.get(n(t))||customElements.define(n(t),kt))}))}jt();export{kt as L,f as c,jt as d}
@@ -1 +0,0 @@
1
- import{t,p as e,H as i,L as a,T as o,n,c as r,i as s,o as l,q as u,h,b as d,r as c}from"./index.js";import{d as g,i as m}from"./p-NHusmM9J.js";const p=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.Lang="",this.showDropBorder=!0,this.appendToDropOnCompletion=!1,this.id="",this.objective="",this.customStyle="",this.value="",this.height="auto",this.width="auto",this.ariaLabel="auto",this.ariaHidden="",this.x="0px",this.y="0px",this.z="0",this.bgColor="",this.bgImage="",this.type="",this.tabIndex=0,this.visible=!1,this.audio="",this.onTouch="",this.onInCorrect="",this.onCorrect="",this.onEntry="",this.canplay=!0,this.showCheck=!1,this.isContinueOnCorrect=!1,this.isAllowOnlyCorrect=!1,this.baseUrl="",this.margin="",this.showPrevButton="false",this.showNextButton="false",this.delayVisible="",this.disableSpeak=!1,this.templateId="",this.highlightWordByWord=!1,this.instructName="",this.speakFlag=!1,this.handleWindowResize=()=>this.scaleContainer(this.el),this.handleWindowLoad=()=>this.scaleContainer(this.el)}cleanupInteractionHandlers(){this.el.querySelectorAll('[type="drag"], [type="slide"]').forEach((t=>{t.dispatchEvent(new Event(a))}))}languageChanged(t){const e=t||this.resolveLanguage();this.updateChildTextLanguage(e)}componentWillLoad(){const t=this.resolveLanguage();this.updateChildTextLanguage(t),this.resolveInstructionAudio()}resolveInstructionAudio(){var t;this.instructName=null!==(t={flashcard:"instruction.flashcards",mcq:"instruction.mcq",tracing:"instruction.tracing",dragAndDrop:"instruction.dragAndDrop",arrangeLetters:"arrangeLetters",balancing:"balancing",balloonPop:"balloonPop",blender:"blender",bubbleType:"bubbleType",calculator:"calculator",categorize:"categorize",checkerBlocks:"checkerBlocks",createSentence:"createSentence",fillAnswer:"fillAnswer",fillBlank:"fillBlank",fillUp:"fillUp",flashcardtemplate:"flashcard",foodJar:"foodJar",grid:"grid",imageMatchWithQuestionImageAndMultiOption:"imageMatchWithQuestionImageAndMultiOption",inventedSpelling:"inventedSpelling",jumpSentence:"jumpSentence",letterBoard:"letterBoard",letterIdentification:"letterIdentification",letterPairing:"letterPairing",makeSentence:"makeSentence",matchingCard:"matchingCard",multiplyBeeds:"multiplyBeeds",nimbleTable:"nimbleTable",numberBoardOneTwo:"numberBoardOneTwo",numberPair:"numberPair",openWindow:"openWindow",orderTractor:"orderTractor",phonicTractor:"phonicTractor",pictureMeaningCocos:"pictureMeaningCocos",pictureWordMatch1:"pictureWordMatch1",pictureWordMatch2:"pictureWordMatch2",puzzleGame:"puzzleGame",questionBoard:"questionBoard",quizLiteracySentenceSentence:"quizLiteracySentenceSentence",quizLiteracySoundOnlyImage:"quizLiteracySoundOnlyImage",quizLiteracySoundOnlySentence:"quizLiteracySoundOnlySentence",quizLiteracySoundOnlyWord:"quizLiteracySoundonlyWord",quizLiteracyAndShapes1:"quizLiteracyAndShapes1",quizLiteracyImageWithText:"quizLiteracyImageWithText",quizliteracyImageWord:"quizliteracyImageWord",quizMathBiggerAndSmaller:"quizMathBiggerAndSmaller",quizMathBiggestAndSmallest:"quizMathBiggestAndSmallest",quizmathCustomNumberMagnitude:"quizmathCustomNumberMagnitude",quizMathHowMany:"quizMathHowMany",quizmathMissingnumberDrag:"quizmathMissingnumberDrag",quizMathNumberIdentification:"quizMathNumberIdentification",quizMathOperationWithobjects:"quizMathOperationWithobjects",quizMathoperationWithoutObjects:"quizMathoperationWithoutObjects",quizMathRecognizeNumber:"quizMathRecognizeNumber",quizMathShapes:"quizMathShapes",reorder:"reorder",rocketGame:"rocketGame",rowBlock:"rowBlock",sequenceBox1:"sequenceBox1",shapeTractor:"shapeTractor",spellDoor:"spellDoor",storyMaking:"storyMaking",storyTale:"storyTale",sumTogether:"sumTogether",tag:"tag",total:"total",writeCard:"writeCard",writeLetter:"writeLetter",writeNumber:"writeNumber",writeSet:"writeSet",writeWord:"writeWord",numberIdentification:"numberIdentification",wordBuildingWithAndWithoutImage:"wordBuildingWithAndWithoutImage",subsWithAndWithoutImage:"subsWithAndWithoutImage",sentenceMatchTemplate:"sentenceMatch",pictureClues:"pictureClues",palEgmaCalculateSumAndSumTogether:"palEgmaCalculateSumAndSumTogether",palEgmaPatternMatching:"palEgmaPatternMatchingAudio",palEgmaWordProblem:"palEgmaWordProblem",palEgraArrangePictures:"palEgraArrangePicturesAudio",palEgraBuildWord:"palEgraBuildWordAudio",palEgraMCQWithImage:"palEgraMCQWithImage",palEgraOddOneOut:"palEgraOddOneOutAudio",palEgraOptionWithAudio:"palEgraOptionWithAudio",palEgraWordFormation:"palEgraWordFormationAudio",palEgraWordMatch:"palEgraWordMatch",substractionWithImage:"substractionWithImageAudio",substractionWithoutImage:"substractionWithoutImageAudio",numberIdentificationWithImage:"numberIdentificationWithImageAudio",numberIdentificationWithoutImage:"numberIdentificationWithoutImageAudio",wordBuildingWithImage:"wordBuildingWithImageAudio",wordBuildingWithoutImage:"wordBuildingWithoutImageAudio",pictureWordMatchMultipleImages:"pictureWordMatchMultipleImagesAudio",pictureWordMatchSingleImage:"pictureWordMatchSingleImageAudio",sentenceMatch:"sentenceMatchAudio",imageMatch:"imageMatchAudio",palStoryTale:"palStoryTaleAudio",palEgmaWordProblemDragnDrop:"palEgmaWordProblemDragnDropAudio",palEgmaWordProblemClick:"palEgmaWordProblemClickAudio",palInventedSpelling:"palInventedSpellingAudio",palLetterIdentification:"palLetterIdentificationAudio",palStoryMaking:"palStoryMakingAudio",palegmasumtogether:"palegmasumtogetherAudio",palegmamultioption:"palegmamultioptionAudio",palegraoptionaudio:"palegraoptionAudio",palegrawordmatch:"palegrawordmatchAudio",palegramcqimages:"palegramcqimagesAudio",drawShape:"drawshape",drawshape:"drawshape"}[this.templateId])&&void 0!==t?t:"";const e=document.querySelector("lido-home");if(!e)return;const i=e.getAttribute(o)||"";this.speakFlag=i.includes(this.templateId),this.speakFlag||e.setAttribute(o,[i,this.templateId].filter(Boolean).join(","))}resolveLanguage(){var t,e;const i=this.el.closest("lido-root"),a=(null==i?void 0:i.Lang)||"";if(null==a?void 0:a.trim())return a;if(null===(t=this.Lang)||void 0===t?void 0:t.trim())return this.Lang;const o=this.el.getAttribute("Lang");return(null==o?void 0:o.trim())?o:null===(e=this.el.textContent)||void 0===e?void 0:e.trim()}convertToPixels(t,e=document.body){if(!t)return 0;if(t.endsWith("px"))return parseFloat(t);const i=document.createElement("div");i.style.position="absolute",i.style.visibility="hidden",i.style.height=t,e.appendChild(i);const a=i.offsetHeight;return e.removeChild(i),a}scaleContainer(t){const e=this.getClosestParentWithWidth();let i=0;e&&(i=Math.min(e.clientWidth/1600,e.clientHeight/900)),t.style.transform=`translate(-50%, -50%) scale(${0!=i?i:n()})`,t.style.left="50%",t.style.top="50%",t.style.position="absolute",this.screenOrientation()}getClosestParentWithWidth(){let t=this.el.parentElement;for(;t;){if(t.offsetWidth>0)return t;t=t.parentElement}return null}screenOrientation(){window.innerHeight>window.innerWidth?(this.el.style.height="1600px",this.el.style.width="900px"):(this.el.style.height="900px",this.el.style.width="1600px")}updateChildTextLanguage(t){const e=t||m.language||"en";m.changeLanguage(e),this.el.querySelectorAll("lido-text").forEach((t=>{t.Lang=e,t.dispatchEvent(new CustomEvent("languageChanged",{bubbles:!0}))}))}componentDidLoad(){this.scaleContainer(this.el);const t=this.bgImage?r(this.bgImage):"",e=this.el.closest("lido-standalone"),i="true"===(null==e?void 0:e.getAttribute("bg-image"))?e:document.body;if(i.style.backgroundColor=this.bgColor,i.style.backgroundImage=t?`url(${t})`:"none",i.style.backgroundPosition=t?"bottom":"none",document.body.style.pointerEvents="auto",window.addEventListener("resize",this.handleWindowResize),window.addEventListener("load",this.handleWindowLoad),this.templateId?setTimeout((()=>{this.el.setAttribute("onEntry",`${this.templateId}.speak='${!this.speakFlag}'; `+this.el.getAttribute("onEntry")),s(this.el,this.type)}),100):s(this.el,this.type),this.customStyle){const t=document.createElement("style");t.innerHTML=this.customStyle,document.head.appendChild(t)}const a=this.resolveLanguage();this.updateChildTextLanguage(a),setTimeout((()=>{l()}),100),c(),u.getI().start()}disconnectedCallback(){this.cleanupInteractionHandlers(),window.removeEventListener("resize",this.handleWindowResize),window.removeEventListener("load",this.handleWindowLoad),document.body.style.backgroundColor="",document.body.style.backgroundImage="",c(),u.getI().stop()}render(){return h(d,{key:"d4e7e9d66565be9ca337f7ab432eef41f63551e1",id:"lido-container",Lang:this.Lang,"tab-index":0,class:"lido-container",objective:this.objective,baseUrl:this.baseUrl,style:{backgroundColor:this.bgColor,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",margin:this.margin,userSelect:"none"},"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,onTouch:this.onTouch,onInCorrect:this.onInCorrect,onCorrect:this.onCorrect,onEntry:this.onEntry,"show-check":`${this.showCheck}`,"is-continue-on-correct":`${this.isContinueOnCorrect}`,"is-allow-only-correct":`${this.isAllowOnlyCorrect}`,canplay:`${this.canplay}`,appendToDropOnCompletion:`${this.appendToDropOnCompletion}`,"show-prev-button":`${this.showPrevButton}`,"show-next-button":`${this.showNextButton}`,"show-drop-border":`${this.showDropBorder}`,"bg-image":this.bgImage,"exit-button-url":this.exitButtonUrl,"prev-button-url":this.prevButtonUrl,"next-button-url":this.nextButtonUrl,"speaker-button-url":this.speakerButtonUrl,"disable-speak":`${this.disableSpeak}`,"template-id":this.templateId,audio:this.audio,"highlight-word-by-word":`${this.highlightWordByWord}`},h("lido-text",{key:"2fd366bcd46aa9f4065e3a7a3207e643dce1dd6d",visible:"false",id:this.templateId,audio:"",string:this.instructName}),h("slot",{key:"6809b09d937605c0caa92bbad1ad4ffc4844b6cb"}))}get el(){return this}static get watchers(){return{Lang:[{languageChanged:0}]}}static get style(){return".lido-container{position:relative;height:100%;width:100%;background-color:var(--bgColor, transparent);display:flex;flex-direction:column;justify-content:center;align-items:center}"}},[260,"lido-container",{Lang:[1,"lang"],showDropBorder:[4,"show-drop-border"],appendToDropOnCompletion:[4,"append-to-drop-on-completion"],id:[1],objective:[1],customStyle:[1,"custom-style"],value:[1],height:[1],width:[1],ariaLabel:[1,"aria-label"],ariaHidden:[1,"aria-hidden"],x:[1],y:[1],z:[1],bgColor:[1,"bg-color"],bgImage:[1,"bg-image"],type:[1],tabIndex:[2,"tab-index"],visible:[4],audio:[1],onTouch:[1,"on-touch"],onInCorrect:[1,"on-in-correct"],onCorrect:[1,"on-correct"],onEntry:[1,"on-entry"],canplay:[4],showCheck:[4,"show-check"],isContinueOnCorrect:[4,"is-continue-on-correct"],isAllowOnlyCorrect:[4,"is-allow-only-correct"],baseUrl:[1,"base-url"],margin:[1],exitButtonUrl:[1,"exit-button-url"],prevButtonUrl:[1,"prev-button-url"],nextButtonUrl:[1,"next-button-url"],speakerButtonUrl:[1,"speaker-button-url"],showPrevButton:[1,"show-prev-button"],showNextButton:[1,"show-next-button"],delayVisible:[1,"delay-visible"],disableSpeak:[4,"disable-speak"],templateId:[1,"template-id"],highlightWordByWord:[4,"highlight-word-by-word"],instructName:[32],speakFlag:[32]},void 0,{Lang:[{languageChanged:0}]}]);function b(){"undefined"!=typeof customElements&&["lido-container","lido-text"].forEach((e=>{switch(e){case"lido-container":customElements.get(t(e))||customElements.define(t(e),p);break;case"lido-text":customElements.get(t(e))||g()}}))}b();export{p as L,b as d}
@@ -1,2 +0,0 @@
1
- const t=()=>{},e="@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400..800&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400..800&display=swap'); 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-image:url(\"https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/template/audioIcon.png\");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(\n 180deg,\n rgba(255, 235, 59, 0.95),\n rgba(255, 214, 0, 0.95)\n );border-radius:6px;box-shadow:0 2px 6px rgba(0, 0, 0, 0.18),\n inset 0 -1px 0 rgba(255, 255, 255, 0.25);transition:width 25ms ease-out,\n height 25ms ease-out,\n opacity 80ms ease-out;opacity:0.95;will-change:transform, width, height;contain:layout paint style}";function o(t,e,o){const n="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==n;){const n=Object.getOwnPropertyDescriptor(t,e);if(n&&(!o||n.get))return n;t=Object.getPrototypeOf(t)}}var n,i=(t,e)=>{var n;Object.entries(null!=(n=e.o.t)?n:{}).map((([n,[i]])=>{if(31&i||32&i){const i=t[n],l=o(Object.getPrototypeOf(t),n,!0)||Object.getOwnPropertyDescriptor(t,n);l&&Object.defineProperty(t,n,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),e.i.has(n)?t[n]=e.i.get(n):void 0!==i&&(t[n]=i)}}))},l=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},s=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.l=t,512&e.o.u&&i(t,e))},r=(t,e)=>e in t,a=(t,e)=>(0,console.error)(t,e),c=new Map,u=new Map,f="slot-fb{display:contents}slot-fb[hidden]{display:none}",d="http://www.w3.org/1999/xlink",p="undefined"!=typeof window?window:{},h={u:0,p:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,o,n)=>t.addEventListener(e,o,n),rel:(t,e,o,n)=>t.removeEventListener(e,o,n),ce:(t,e)=>new CustomEvent(t,e)},m=t=>Promise.resolve(t),b=(()=>{try{return!!p.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),g=!!b&&(()=>!!p.document&&Object.getOwnPropertyDescriptor(p.document.adoptedStyleSheets,"length").writable)(),v=!1,y=[],w=[],x=(t,e)=>o=>{t.push(o),v||(v=!0,e&&4&h.u?S($):h.raf($))},k=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){a(t)}t.length=0},$=()=>{k(y),k(w),(v=y.length>0)&&h.raf($)},S=t=>m().then(t),j=x(w,!0),O=t=>{const e=new URL(t,h.p);return e.origin!==p.location.origin?e.href:e.pathname};function z(){var t;const o=this.attachShadow({mode:"open"});if(void 0===n&&(n=null!=(t=function(t){if(!b)return;const e=new CSSStyleSheet;return e.replaceSync(t),e}(e))?t:null),n)g?o.adoptedStyleSheets.push(n):o.adoptedStyleSheets=[...o.adoptedStyleSheets,n];else if(!b){const t=document.createElement("style");t.innerHTML=e,o.prepend(t)}}var N=t=>{const e=T(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&C(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!E(t,F(t),!1).length)}));let o=0;for(o=0;o<e.length;o++){const t=e[o];1===t.nodeType&&T(t,"childNodes").length&&N(t)}};function C(t,e,o){let n,i=0,l=[];for(;i<t.length;i++){if(n=t[i],n["s-sr"]&&(!e||n["s-hn"]===e)&&(void 0===o||F(n)===o)&&(l.push(n),void 0!==o))return l;l=[...l,...C(n.childNodes,e,o)]}return l}var E=(t,e,o=!0)=>{const n=[];(o&&t["s-sr"]||!t["s-sr"])&&n.push(t);let i=t;for(;i=i.nextSibling;)F(i)!==e||!o&&i["s-sr"]||n.push(i);return n},M=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,F=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function T(t,e){if("__"+e in t){const o=t["__"+e];return"function"!=typeof o?o:o.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}function L(t){var e,o,n;return null!=(n=null==(o=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:o.getAttribute("content"))?n:void 0}var R,B,P=new WeakMap,A=t=>"sc-"+t.h,D=t=>"object"==(t=typeof t)||"function"===t,H=(t,e,...o)=>{let n=null,i=null,l=null,s=!1,r=!1;const a=[],c=e=>{for(let o=0;o<e.length;o++)n=e[o],Array.isArray(n)?c(n):null!=n&&"boolean"!=typeof n&&((s="function"!=typeof t&&!D(n))&&(n+=""),s&&r?a[a.length-1].m+=n:a.push(s?U(null,n):n),r=s)};if(c(o),e){e.key&&(i=e.key),e.name&&(l=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=U(t,null);return u.v=e,a.length>0&&(u.k=a),u.$=i,u.S=l,u},U=(t,e)=>({u:0,j:t,m:null!=e?e:null,O:null,k:null,v:null,$:null,S:null}),_={},I=t=>{if(!t)return;const e=Object.keys(t);if(0===e.length)return;let o=!1;for(const n of e){if(o)break;for(const e of t[n])if("string"==typeof e){o=!0;break}}if(!o)return t;const n={};for(const o of e)n[o]=t[o].map((t=>"string"==typeof t?{[t]:0}:t));return n},W=(t,e)=>null==t||D(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?"string"==typeof t?parseFloat(t):"number"==typeof t?t:NaN:1&e?t+"":t,Y=t=>{var e;return null==(e=l(t))?void 0:e.$hostElement$},V=(t,e)=>{const o=Y(t);return{emit:t=>q(o,e,{bubbles:!0,composed:!0,cancelable:!0,detail:t})}},q=(t,e,o)=>{const n=h.ce(e,o);return t.dispatchEvent(n),n},G=(t,e,o,n,i,s)=>{if(o===n)return;let a=r(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,i=J(o);let l=J(n);e.remove(...i.filter((t=>t&&!l.includes(t)))),e.add(...l.filter((t=>t&&!i.includes(t))))}else if("style"===e){for(const e in o)n&&null!=n[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in n)o&&n[e]===o[e]||(e.includes("-")?t.style.setProperty(e,n[e]):t.style[e]=n[e])}else if("key"===e);else if("ref"===e)n&&vt(n,t);else if(a||"o"!==e[0]||"n"!==e[1]){if("a"===e[0]&&e.startsWith("attr:")){const o=e.slice(5);let i;{const e=l(t);if(e&&e.o&&e.o.t){const t=e.o.t[o];t&&t[1]&&(i=t[1])}}return i||(i=o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==n||!1===n?!1===n&&""!==t.getAttribute(i)||t.removeAttribute(i):t.setAttribute(i,!0===n?"":n))}if("p"===e[0]&&e.startsWith("prop:")){const o=e.slice(5);try{t[o]=n}catch(t){}return}{const l=D(n);if((a||l&&null!==n)&&!i)try{if(t.tagName.includes("-"))t[e]!==n&&(t[e]=n);else{const i=null==n?"":n;"list"===e?a=!1:null!=o&&t[e]===i||("function"==typeof t.__lookupSetter__(e)?t[e]=i:t.setAttribute(e,i))}}catch(t){}let r=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,r=!0),null==n||!1===n?!1===n&&""!==t.getAttribute(e)||(r?t.removeAttributeNS(d,e):t.removeAttribute(e)):(!a||4&s||i)&&!l&&1===t.nodeType&&(n=!0===n?"":n,r?t.setAttributeNS(d,e,n):t.setAttribute(e,n))}}else if(e="-"===e[2]?e.slice(3):r(p,c)?c.slice(2):c[2]+e.slice(3),o||n){const i=e.endsWith(K);e=e.replace(Q,""),o&&h.rel(t,e,o,i),n&&h.ael(t,e,n,i)}},Z=/\s/,J=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(Z):[]),K="Capture",Q=RegExp(K+"$"),X=(t,e,o)=>{const n=11===e.O.nodeType&&e.O.host?e.O.host:e.O,i=t&&t.v||{},l=e.v||{};for(const t of tt(Object.keys(i)))t in l||G(n,t,i[t],void 0,o,e.u);for(const t of tt(Object.keys(l)))G(n,t,i[t],l[t],o,e.u)};function tt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var et=!1,ot=!1,nt=!1,it=!1,lt=[],st=[],rt=(t,e,o)=>{var n;const i=e.k[o];let l,s,r,a=0;if(et||(nt=!0,"slot"===i.j&&(i.u|=i.k?2:1)),null!=i.m)l=i.O=p.document.createTextNode(i.m);else if(1&i.u)l=i.O=p.document.createTextNode(""),X(null,i,it);else{if(!p.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=i.O=p.document.createElement(!et&&2&i.u?"slot-fb":i.j),X(null,i,it),i.k){const e="template"===i.j?l.content:l;for(a=0;a<i.k.length;++a)s=rt(t,i,a),s&&e.appendChild(s)}}return l["s-hn"]=B,3&i.u&&(l["s-sr"]=!0,l["s-cr"]=R,l["s-sn"]=i.S||"",l["s-rf"]=null==(n=i.v)?void 0:n.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const o=[],n=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const i=this["s-cr"].parentElement;return(i.__childNodes?i.childNodes:(t=>{const e=[];for(let o=0;o<t.length;o++){const n=t[o]["s-nr"]||void 0;n&&n.isConnected&&e.push(n)}return e})(i.childNodes)).forEach((t=>{n===F(t)&&o.push(t)})),e?o.filter((t=>1===t.nodeType)):o}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}(l),r=t&&t.k&&t.k[o],r&&r.j===i.j&&t.O&&at(t.O)),l},at=t=>{h.u|=1;const e=t.closest(B.toLowerCase());if(null!=e){const o=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),n=Array.from(t.__childNodes||t.childNodes);for(const t of o?n.reverse():n)null!=t["s-sh"]&&(yt(e,t,null!=o?o:null),t["s-sh"]=void 0,nt=!0)}h.u&=-2},ct=(t,e)=>{h.u|=1;const o=Array.from(t.__childNodes||t.childNodes);if(t["s-sr"]){let e=t;for(;e=e.nextSibling;)e&&e["s-sn"]===t["s-sn"]&&e["s-sh"]===B&&o.push(e)}for(let t=o.length-1;t>=0;t--){const n=o[t];n["s-hn"]!==B&&n["s-ol"]&&(yt(pt(n).parentNode,n,pt(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,nt=!0),e&&ct(n,e)}h.u&=-2},ut=(t,e,o,n,i,l)=>{let s,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===B&&(r=r.shadowRoot),"template"===o.j&&(r=r.content);i<=l;++i)n[i]&&(s=rt(null,o,i),s&&(n[i].O=s,yt(r,s,pt(e))))},ft=(t,e,o)=>{for(let n=e;n<=o;++n){const e=t[n];if(e){const t=e.O;gt(e),t&&(ot=!0,t["s-ol"]?t["s-ol"].remove():ct(t,!0),t.remove())}}},dt=(t,e,o=!1)=>t.j===e.j&&("slot"===t.j?t.S===e.S:o?(o&&!t.$&&e.$&&(t.$=e.$),!0):t.$===e.$),pt=t=>t&&t["s-ol"]||t,ht=(t,e,o=!1)=>{const n=e.O=t.O,i=t.k,l=e.k,s=e.m;let r;null==s?("slot"!==e.j||et||t.S!==e.S&&(e.O["s-sn"]=e.S||"",at(e.O.parentElement)),X(t,e,it),null!==i&&null!==l?((t,e,o,n,i=!1)=>{let l,s,r=0,a=0,c=0,u=0,f=e.length-1,d=e[0],p=e[f],h=n.length-1,m=n[0],b=n[h];const g="template"===o.j?t.content:t;for(;r<=f&&a<=h;)if(null==d)d=e[++r];else if(null==p)p=e[--f];else if(null==m)m=n[++a];else if(null==b)b=n[--h];else if(dt(d,m,i))ht(d,m,i),d=e[++r],m=n[++a];else if(dt(p,b,i))ht(p,b,i),p=e[--f],b=n[--h];else if(dt(d,b,i))"slot"!==d.j&&"slot"!==b.j||ct(d.O.parentNode,!1),ht(d,b,i),yt(g,d.O,p.O.nextSibling),d=e[++r],b=n[--h];else if(dt(p,m,i))"slot"!==d.j&&"slot"!==b.j||ct(p.O.parentNode,!1),ht(p,m,i),yt(g,p.O,d.O),p=e[--f],m=n[++a];else{for(c=-1,u=r;u<=f;++u)if(e[u]&&null!==e[u].$&&e[u].$===m.$){c=u;break}c>=0?(s=e[c],s.j!==m.j?l=rt(e&&e[a],o,c):(ht(s,m,i),e[c]=void 0,l=s.O),m=n[++a]):(l=rt(e&&e[a],o,a),m=n[++a]),l&&yt(pt(d.O).parentNode,l,pt(d.O))}r>f?ut(t,null==n[h+1]?null:n[h+1].O,o,n,a,h):a>h&&ft(e,r,f)})(n,i,e,l,o):null!==l?(null!==t.m&&(n.textContent=""),ut(n,null,e,l,0,l.length-1)):!o&&null!==i&&ft(i,0,i.length-1)):(r=n["s-cr"])?r.parentNode.textContent=s:t.m!==s&&(n.data=s)},mt=[],bt=t=>{let e,o,n;const i=t.__childNodes||t.childNodes;for(const t of i){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){o=e.parentNode.__childNodes||e.parentNode.childNodes;const i=t["s-sn"];for(n=o.length-1;n>=0;n--)if(e=o[n],!(e["s-cn"]||e["s-nr"]||e["s-hn"]===t["s-hn"]||e["s-sh"]&&e["s-sh"]===t["s-hn"]))if(M(e,i)){let o=mt.find((t=>t.N===e));ot=!0,e["s-sn"]=e["s-sn"]||i,o?(o.N["s-sh"]=t["s-hn"],o.C=t):(e["s-sh"]=t["s-hn"],mt.push({C:t,N:e})),e["s-sr"]&&mt.map((t=>{M(t.N,e["s-sn"])&&(o=mt.find((t=>t.N===e)),o&&!t.C&&(t.C=o.C))}))}else mt.some((t=>t.N===e))||mt.push({N:e})}1===t.nodeType&&bt(t)}},gt=t=>{t.v&&t.v.ref&&lt.push((()=>t.v.ref(null))),t.k&&t.k.map(gt)},vt=(t,e)=>{st.push((()=>t(e)))},yt=(t,e,o,n)=>{if("string"==typeof e["s-sn"]){t.insertBefore(e,o);const{slotNode:i}=function(t,e){var o;if(!(e=e||(null==(o=t["s-ol"])?void 0:o.parentElement)))return{slotNode:null,slotName:""};const n=t["s-sn"]=F(t)||"";return{slotNode:C(T(e,"childNodes"),e.tagName,n)[0],slotName:n}}(e);return i&&!n&&function(t){t.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1}))}(i),e}return t.__insertBefore?t.__insertBefore(e,o):null==t?void 0:t.insertBefore(e,o)},wt=(t,e)=>{if(e&&!t.M&&e["s-p"]){const o=e["s-p"].push(new Promise((n=>t.M=()=>{e["s-p"].splice(o-1,1),n()})))}},xt=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);wt(t,t.F);const o=()=>kt(t,e);if(!e)return j(o);queueMicrotask((()=>{o()}))},kt=(t,e)=>{const o=t.$hostElement$,n=t.l;if(!n)throw Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return e?(t.T&&(t.T=!1,Ct(n,"connectedCallback",void 0,o)),t.L.length&&t.L.forEach((t=>t(o))),i=Ct(n,"componentWillLoad",void 0,o)):i=Ct(n,"componentWillUpdate",void 0,o),i=$t(i,(()=>Ct(n,"componentWillRender",void 0,o))),$t(i,(()=>jt(t,n,e)))},$t=(t,e)=>St(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),St=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,jt=async(t,e,o)=>{var n;const i=t.$hostElement$,l=i["s-rc"];o&&(t=>{const e=t.o,o=t.$hostElement$,n=e.u,i=((t,e)=>{var o,n,i;const l=A(e),s=u.get(l);if(!p.document)return l;if(t=11===t.nodeType?t:p.document,s)if("string"==typeof s){let i,r=P.get(t=t.head||t);if(r||P.set(t,r=new Set),!r.has(l)){i=p.document.createElement("style"),i.textContent=s;const a=null!=(o=h.R)?o:L(p.document);if(null!=a&&i.setAttribute("nonce",a),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),o=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(i,(null==o?void 0:o.parentNode)===t?o:null)}else if("host"in t)if(b){const e=new(null!=(n=t.defaultView)?n:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(s),g?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=s+e.textContent:t.prepend(i)}else t.append(i);1&e.u&&t.insertBefore(i,null),4&e.u&&(i.textContent+=f),r&&r.add(l)}}else{let e=P.get(t);if(e||P.set(t,e=new Set),!e.has(l)){const o=null!=(i=t.defaultView)?i:t.ownerDocument.defaultView;let n;if(s.constructor===o.CSSStyleSheet)n=s;else{n=new o.CSSStyleSheet;for(let t=0;t<s.cssRules.length;t++)n.insertRule(s.cssRules[t].cssText,t)}g?t.adoptedStyleSheets.push(n):t.adoptedStyleSheets=[...t.adoptedStyleSheets,n],e.add(l)}}return l})(o.shadowRoot?o.shadowRoot:o.getRootNode(),e);10&n&&(o["s-sc"]=i,o.classList.add(i+"-h"))})(t);Ot(t,e,i,o),l&&(l.map((t=>t())),i["s-rc"]=void 0);{const e=null!=(n=i["s-p"])?n:[],o=()=>zt(t);0===e.length?o():(Promise.all(e).then(o).catch(o),t.u|=4,e.length=0)}},Ot=(t,e,o,n)=>{try{e=e.render(),t.u&=-17,t.u|=2,((t,e,o=!1)=>{var n,i,l,s,r;const a=t.$hostElement$,c=t.o,u=t.B||U(null,null),f=(t=>t&&t.j===_)(e)?e:H(null,null,e);if(B=a.tagName,c.P&&(f.v=f.v||{},c.P.forEach((([t,e])=>{f.v[e]=a[t]}))),o&&f.v)for(const t of Object.keys(f.v))a.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(f.v[t]=a[t]);if(f.j=null,f.u|=4,t.B=f,f.O=u.O=a.shadowRoot||a,et=!(!(1&c.u)||128&c.u),R=a["s-cr"],ot=!1,ht(u,f,o),h.u|=1,nt){bt(f.O);for(const t of mt){const e=t.N;if(!e["s-ol"]&&p.document){const t=p.document.createTextNode("");t["s-nr"]=e,yt(e.parentNode,e["s-ol"]=t,e,o)}}for(const t of mt){const e=t.N,r=t.C;if(1===e.nodeType&&o&&(e["s-ih"]=null!=(n=e.hidden)&&n),r){const t=r.parentNode;let n=r.nextSibling;if(n&&1===n.nodeType){let o=null==(i=e["s-ol"])?void 0:i.previousSibling;for(;o;){let i=null!=(l=o["s-nr"])?l:null;if(i&&i["s-sn"]===e["s-sn"]&&t===(i.__parentNode||i.parentNode)){for(i=i.nextSibling;i===e||(null==i?void 0:i["s-sr"]);)i=null==i?void 0:i.nextSibling;if(!i||!i["s-nr"]){n=i;break}}o=o.previousSibling}}if((!n&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==n)&&e!==n){if(yt(t,e,n,o),8===e.nodeType&&e.nodeValue.startsWith("s-nt-")){const t=p.document.createTextNode(e.nodeValue.replace(/^s-nt-/,""));t["s-hn"]=e["s-hn"],t["s-sn"]=e["s-sn"],t["s-sh"]=e["s-sh"],t["s-sr"]=e["s-sr"],t["s-ol"]=e["s-ol"],t["s-ol"]["s-nr"]=t,yt(e.parentNode,t,e,o),e.parentNode.removeChild(e)}1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(s=e["s-ih"])&&s)}e&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===e.nodeType&&(e.hidden=!0)}}if(ot&&N(f.O),h.u&=-2,mt.length=0,!et&&!(1&c.u)&&a["s-cr"]){const t=f.O.__childNodes||f.O.childNodes;for(const e of t)if(e["s-hn"]!==B&&!e["s-sh"])if(o&&null==e["s-ih"]&&(e["s-ih"]=null!=(r=e.hidden)&&r),1===e.nodeType)e.hidden=!0;else if(3===e.nodeType&&e.nodeValue.trim()){const t=p.document.createComment("s-nt-"+e.nodeValue);t["s-sn"]=e["s-sn"],yt(e.parentNode,t,e,o),e.parentNode.removeChild(e)}}R=void 0,lt.forEach((t=>t())),lt.length=0,st.forEach((t=>t())),st.length=0})(t,e,n)}catch(e){a(e,t.$hostElement$)}return null},zt=t=>{const e=t.$hostElement$,o=t.l,n=t.F;Ct(o,"componentDidRender",void 0,e),64&t.u?Ct(o,"componentDidUpdate",void 0,e):(t.u|=64,Et(e),Ct(o,"componentDidLoad",void 0,e),t.A(e),n||Nt()),t.D(e),t.M&&(t.M(),t.M=void 0),512&t.u&&S((()=>xt(t,!1))),t.u&=-517},Nt=()=>{S((()=>q(p,"appload",{detail:{namespace:"lido-player"}})))},Ct=(t,e,o,n)=>{if(t&&t[e])try{return t[e](o)}catch(t){a(t,n)}},Et=t=>t.classList.add("hydrated"),Mt=(t,e,o,n)=>{const i=l(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${n.h}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=i.$hostElement$,r=i.i.get(e),c=i.u,u=i.l;if(o=W(o,n.t[e][0]),!(8&c&&void 0!==r||o===r||Number.isNaN(r)&&Number.isNaN(o))){if(i.i.set(e,o),n.H){const t=n.H[e];t&&t.map((t=>{try{const[[n,l]]=Object.entries(t);(128&c||1&l)&&(u?u[n](o,r,e):i.L.push((()=>{i.l[n](o,r,e)})))}catch(t){a(t,s)}}))}if(2&c){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(o,r,e)&&!(16&c))return;16&c||xt(i,!1)}}},Ft=(t,e,n)=>{var i,s;const r=t.prototype;{t.watchers&&!e.H&&(e.H=I(t.watchers)),t.deserializers&&!e.U&&(e.U=t.deserializers),t.serializers&&!e._&&(e._=t.serializers);const a=Object.entries(null!=(i=e.t)?i:{});if(a.map((([t,[i]])=>{if(31&i||2&n&&32&i){const{get:s,set:a}=o(r,t)||{};s&&(e.t[t][0]|=2048),a&&(e.t[t][0]|=4096),(1&n||!s)&&Object.defineProperty(r,t,{get(){{if(!(2048&e.t[t][0]))return((t,e)=>l(this).i.get(e))(0,t);const o=l(this),n=o?o.l:r;if(!n)return;return n[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,t,{set(o){const s=l(this);if(s){if(a)return void 0===(32&i?this[t]:s.$hostElement$[t])&&s.i.get(t)&&(o=s.i.get(t)),a.call(this,W(o,i)),void Mt(this,t,o=32&i?this[t]:s.$hostElement$[t],e);{if(!(1&n&&4096&e.t[t][0]))return Mt(this,t,o,e),void(1&n&&!s.l&&s.L.push((()=>{4096&e.t[t][0]&&s.l[t]!==s.i.get(t)&&(s.l[t]=o)})));const l=()=>{const n=s.l[t];!s.i.get(t)&&n&&s.i.set(t,n),s.l[t]=W(o,i),Mt(this,t,s.l[t],e)};s.l?l():s.L.push((()=>{l()}))}}}})}else 1&n&&64&i&&Object.defineProperty(r,t,{value(...e){var o;const n=l(this);return null==(o=null==n?void 0:n.I)?void 0:o.then((()=>{var o;return null==(o=n.l)?void 0:o[t](...e)}))}})})),1&n){const o=new Map;r.attributeChangedCallback=function(t,n,i){h.jmp((()=>{var s;const c=o.get(t),u=l(this);if(this.hasOwnProperty(c)&&(i=this[c],delete this[c]),r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==i)return;if(null==c){const o=null==u?void 0:u.u;if(u&&o&&!(8&o)&&i!==n){const l=u.l,r=null==(s=e.H)?void 0:s[t];null==r||r.forEach((e=>{const[[s,r]]=Object.entries(e);null!=l[s]&&(128&o||1&r)&&l[s].call(l,i,n,t)}))}return}const f=a.find((([t])=>t===c)),d=f&&4&f[1][0],p=d&&null===i&&void 0===this[c];d&&(i=null!==i&&"false"!==i);const h=Object.getOwnPropertyDescriptor(r,c);p||i==this[c]||h.get&&!h.set||(this[c]=i)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.H)?s:{}),...a.filter((([t,e])=>31&e[0])).map((([t,n])=>{var i;const l=n[1]||t;return o.set(l,t),512&n[0]&&(null==(i=e.P)||i.push([t,l])),l}))]))}}return t},Tt=(t,e)=>{Ct(t,"connectedCallback",void 0,e)},Lt=(t,e)=>{Ct(t,"disconnectedCallback",void 0,e||t)},Rt=(t,e={})=>{var o;if(!p.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const n=[],i=e.exclude||[],s=p.customElements,r=p.document.head,d=r.querySelector("meta[charset]"),m=p.document.createElement("style"),g=[];let v,y=!0;Object.assign(h,e),h.p=new URL(e.resourcesUrl||"./",p.document.baseURI).href;let w=!1;if(t.map((t=>{t[1].map((e=>{var o,r;const f={u:e[0],h:e[1],t:e[2],W:e[3]};4&f.u&&(w=!0),f.t=e[2],f.P=[],f.H=I(e[4]),f._=null!=(o=e[5])?o:{},f.U=null!=(r=e[6])?r:{};const d=f.h,m=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,e)=>{const o={u:0,$hostElement$:t,o:e,i:new Map,Y:new Map};o.I=new Promise((t=>o.D=t)),o.V=new Promise((t=>o.A=t)),t["s-p"]=[],t["s-rc"]=[],o.L=[];const n=o;t.__stencil__getHostRef=()=>n})(t=this,f),1&f.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${f.h}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else z.call(t,f)}connectedCallback(){l(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),y?g.push(this):h.jmp((()=>(t=>{if(!(1&h.u)){const e=l(t);if(!e)return;const o=e.o,n=()=>{};if(1&e.u)(null==e?void 0:e.l)?Tt(e.l,t):(null==e?void 0:e.V)&&e.V.then((()=>Tt(e.l,t)));else{e.u|=1,12&o.u&&(t=>{if(!p.document)return;const e=t["s-cr"]=p.document.createComment("");e["s-cn"]=!0,yt(t,e,t.firstChild)})(t);{let o=t;for(;o=o.parentNode||o.host;)if(o["s-p"]){wt(e,e.F=o);break}}o.t&&Object.entries(o.t).map((([e,[o]])=>{if(31&o&&Object.prototype.hasOwnProperty.call(t,e)){const o=t[e];delete t[e],t[e]=o}})),(async(t,e,o)=>{let n;try{if(!(32&e.u)){if(e.u|=32,o.q){const i=((t,e)=>{const o=t.h.replace(/-/g,"_"),n=t.q;if(!n)return;const i=c.get(n);return i?i[o]:import(`./${n}.entry.js`).then((t=>(c.set(n,t),t[o])),(t=>{a(t,e.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(o,e);if(i&&"then"in i){const t=()=>{};n=await i,t()}else n=i;if(!n)throw Error(`Constructor for "${o.h}#${e.G}" was not found`);n.isProxied||(o.H=I(n.watchers),o._=n.serializers,o.U=n.deserializers,Ft(n,o,2),n.isProxied=!0);const l=()=>{};e.u|=8;try{new n(e)}catch(e){a(e,t)}e.u&=-9,e.u|=128,l(),4&o.u?e.T=!0:Tt(e.l,t)}else n=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(n&&n.style){let t;"string"==typeof n.style&&(t=n.style);const e=A(o);if(!u.has(e)){const n=()=>{};((t,e,o)=>{let n=u.get(t);b&&o?(n=n||new CSSStyleSheet,"string"==typeof n?n=e:n.replaceSync(e)):n=e,u.set(t,n)})(e,t,!!(1&o.u)),n()}}}const i=e.F,l=()=>xt(e,!0);i&&i["s-rc"]?i["s-rc"].push(l):l()}catch(o){a(o,t),e.M&&(e.M(),e.M=void 0),e.A&&e.A(t)}})(t,e,o)}n()}})(this))))}disconnectedCallback(){h.jmp((()=>(async t=>{if(!(1&h.u)){const e=l(t);(null==e?void 0:e.l)?Lt(e.l,t):(null==e?void 0:e.V)&&e.V.then((()=>Lt(e.l,t)))}P.has(t)&&P.delete(t),t.shadowRoot&&P.has(t.shadowRoot)&&P.delete(t.shadowRoot)})(this))),h.raf((()=>{var t;const e=l(this);if(!e)return;const o=g.findIndex((t=>t===this));o>-1&&g.splice(o,1),(null==(t=null==e?void 0:e.B)?void 0:t.O)instanceof Node&&!e.B.O.isConnected&&delete e.B.O}))}componentOnReady(){var t;return null==(t=l(this))?void 0:t.V}};f.q=t[0],i.includes(d)||s.get(d)||(n.push(d),s.define(d,Ft(m,f,1)))}))})),n.length>0&&(w&&(m.textContent+=f),m.textContent+=n.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",m.innerHTML.length)){m.setAttribute("data-styles","");const t=null!=(o=h.R)?o:L(p.document);null!=t&&m.setAttribute("nonce",t),r.insertBefore(m,d?d.nextSibling:r.firstChild)}y=!1,g.length?g.map((t=>t.connectedCallback())):h.jmp((()=>v=setTimeout(Nt,30)))},Bt=t=>h.R=t;export{_ as H,Y as a,Rt as b,V as c,O as d,t as g,H as h,m as p,s as r,Bt as s}