@stlite/desktop 0.42.5 → 0.44.0

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 (163) hide show
  1. package/bin/dump_artifacts.js +1 -1
  2. package/build/asset-manifest.json +79 -74
  3. package/build/index.html +1 -1
  4. package/build/static/css/8050.c24b25fa.chunk.css +1 -0
  5. package/build/static/css/9699.7ce51b75.chunk.css +1 -0
  6. package/build/static/css/main.fb5f4d99.css +1 -0
  7. package/build/static/js/1046.ea522608.chunk.js +1 -0
  8. package/build/static/js/1122.422f58fc.chunk.js +1 -0
  9. package/build/static/js/1189.71b89117.chunk.js +1 -0
  10. package/build/static/js/1261.242b7386.chunk.js +1 -0
  11. package/build/static/js/142.dbf9ec20.chunk.js +1 -0
  12. package/build/static/js/144.046792d9.chunk.js +1 -0
  13. package/build/static/js/1729.d59ed152.chunk.js +1 -0
  14. package/build/static/js/1740.2c71a97a.chunk.js +1 -0
  15. package/build/static/js/1839.0d0dcac8.chunk.js +1 -0
  16. package/build/static/js/2372.844b5190.chunk.js +2 -0
  17. package/build/static/js/2372.844b5190.chunk.js.LICENSE.txt +10 -0
  18. package/build/static/js/2385.2cbc4e3c.chunk.js +1 -0
  19. package/build/static/js/2448.e6f85eda.chunk.js +1 -0
  20. package/build/static/js/2753.c27b6faa.chunk.js +1 -0
  21. package/build/static/js/2873.f5c04f3b.chunk.js +1 -0
  22. package/build/static/js/2940.dd2240b9.chunk.js +1 -0
  23. package/build/static/js/3208.55e0b2fa.chunk.js +1 -0
  24. package/build/static/js/4021.ec2e87b0.chunk.js +1 -0
  25. package/build/static/js/4482.a9238ad0.chunk.js +1 -0
  26. package/build/static/js/4494.6bb6fb20.chunk.js +1 -0
  27. package/build/static/js/4694.aa16aaee.chunk.js +1 -0
  28. package/build/static/js/4721.2185bda3.chunk.js +1 -0
  29. package/build/static/js/4724.374578aa.chunk.js +1 -0
  30. package/build/static/js/4785.76a05d79.chunk.js +1 -0
  31. package/build/static/js/4831.391fe620.chunk.js +1 -0
  32. package/build/static/js/4949.391c96be.chunk.js +2 -0
  33. package/build/static/js/{2961.54b0c743.chunk.js.LICENSE.txt → 4949.391c96be.chunk.js.LICENSE.txt} +15 -15
  34. package/build/static/js/5299.beb80829.chunk.js +1 -0
  35. package/build/static/js/6093.209cd165.chunk.js +1 -0
  36. package/build/static/js/6134.b9e5b2db.chunk.js +1 -0
  37. package/build/static/js/6679.f4ee1d77.chunk.js +2 -0
  38. package/build/static/js/6679.f4ee1d77.chunk.js.LICENSE.txt +62 -0
  39. package/build/static/js/6802.df955c77.chunk.js +1 -0
  40. package/build/static/js/6865.12e417bf.chunk.js +1 -0
  41. package/build/static/js/698.116a166b.chunk.js +1 -0
  42. package/build/static/js/7125.afecc159.chunk.js +1 -0
  43. package/build/static/js/{7332.2f57919b.chunk.js → 7332.cb5400eb.chunk.js} +1 -1
  44. package/build/static/js/7579.ea965a43.chunk.js +1 -0
  45. package/build/static/js/7696.c9589682.chunk.js +1 -0
  46. package/build/static/js/790.4b5acd65.chunk.js +1 -0
  47. package/build/static/js/8050.029f3dc8.chunk.js +1 -0
  48. package/build/static/js/8097.4837946f.chunk.js +2 -0
  49. package/build/static/js/{3603.e3f6f11d.chunk.js → 8186.2f2e42e5.chunk.js} +2 -2
  50. package/build/static/js/865.143ae622.chunk.js +1 -0
  51. package/build/static/js/8801.77babe65.chunk.js +1 -0
  52. package/build/static/js/8850.6abc7336.chunk.js +1 -0
  53. package/build/static/js/9005.87bae37e.chunk.js +1 -0
  54. package/build/static/js/9166.f234f6b4.chunk.js +2 -0
  55. package/build/static/js/9166.f234f6b4.chunk.js.LICENSE.txt +13 -0
  56. package/build/static/js/9311.7c7348b0.chunk.js +1 -0
  57. package/build/static/js/9320.14465db9.chunk.js +1 -0
  58. package/build/static/js/9449.a2c361bb.chunk.js +2 -0
  59. package/build/static/js/9449.a2c361bb.chunk.js.LICENSE.txt +40 -0
  60. package/build/static/js/9699.df050cd6.chunk.js +1 -0
  61. package/build/static/js/9813.1821ef79.chunk.js +1 -0
  62. package/build/static/js/main.ca9c9d66.js +28 -0
  63. package/build/static/js/{main.52e22014.js.LICENSE.txt → main.ca9c9d66.js.LICENSE.txt} +23 -23
  64. package/build/static/media/SourceCodePro-Bold.17a68a0751a813474a0e.woff2 +0 -0
  65. package/build/static/media/SourceCodePro-BoldItalic.d45b7a3df103d441d78b.woff2 +0 -0
  66. package/build/static/media/SourceCodePro-Italic.ec122a420df4175e74f2.woff2 +0 -0
  67. package/build/static/media/SourceCodePro-Regular.84b900b88d09398d86b0.woff2 +0 -0
  68. package/build/static/media/SourceCodePro-SemiBold.17291d1c493cb25eb2c3.woff2 +0 -0
  69. package/build/static/media/SourceCodePro-SemiBoldItalic.f879ae27307c3926522b.woff2 +0 -0
  70. package/build/static/media/SourceSansPro-Bold.118dea98980e20a81ced.woff2 +0 -0
  71. package/build/static/media/SourceSansPro-BoldItalic.1d664be59d2eb5fef029.woff2 +0 -0
  72. package/build/static/media/SourceSansPro-Italic.8a9bfea74d43927d6eec.woff2 +0 -0
  73. package/build/static/media/SourceSansPro-Regular.0d69e5ff5e92ac64a0c9.woff2 +0 -0
  74. package/build/static/media/SourceSansPro-SemiBold.abed79cd0df1827e18cf.woff2 +0 -0
  75. package/build/static/media/SourceSansPro-SemiBoldItalic.befb0a2824eabc5ce36b.woff2 +0 -0
  76. package/build/static/media/SourceSerifPro-Bold.d7975b56594770699ae0.woff2 +0 -0
  77. package/build/static/media/SourceSerifPro-BoldItalic.913697a7178b128caa4c.woff2 +0 -0
  78. package/build/static/media/SourceSerifPro-Italic.d3529cb5797663ac5d88.woff2 +0 -0
  79. package/build/static/media/SourceSerifPro-Regular.e6c37aa3926474cc93e1.woff2 +0 -0
  80. package/build/static/media/SourceSerifPro-SemiBold.5c1d378dd5990ef334ca.woff2 +0 -0
  81. package/build/static/media/SourceSerifPro-SemiBoldItalic.249e948b885d0c7d30a8.woff2 +0 -0
  82. package/build/static/media/index.c05687ef19f5bac24939.cjs +1 -0
  83. package/build/static/media/index.cf5b321a6e04bf47c12e.cjs +1 -0
  84. package/build/static/media/index.db61103fb7fdd62b9c44.cjs +1 -0
  85. package/build/static/media/index.f29488c1099d5e3883ac.cjs +1 -0
  86. package/package.json +5 -5
  87. package/build/static/css/5099.60b7ada4.chunk.css +0 -1
  88. package/build/static/css/main.73ab603a.css +0 -1
  89. package/build/static/js/1318.57c335d2.chunk.js +0 -1
  90. package/build/static/js/142.3d0fb3e3.chunk.js +0 -1
  91. package/build/static/js/172.0ee3e7c6.chunk.js +0 -5
  92. package/build/static/js/1839.29b0ce99.chunk.js +0 -1
  93. package/build/static/js/2327.b8572a38.chunk.js +0 -1
  94. package/build/static/js/2775.c1ed54fa.chunk.js +0 -5
  95. package/build/static/js/291.aa03bc71.chunk.js +0 -1
  96. package/build/static/js/2961.54b0c743.chunk.js +0 -2
  97. package/build/static/js/3580.31cb6ce5.chunk.js +0 -1
  98. package/build/static/js/3744.6440bac0.chunk.js +0 -2
  99. package/build/static/js/3744.6440bac0.chunk.js.LICENSE.txt +0 -5
  100. package/build/static/js/3975.5538132d.chunk.js +0 -1
  101. package/build/static/js/4140.edb6c36a.chunk.js +0 -1
  102. package/build/static/js/4141.623ab362.chunk.js +0 -9
  103. package/build/static/js/4320.5977ee6b.chunk.js +0 -2
  104. package/build/static/js/4320.5977ee6b.chunk.js.LICENSE.txt +0 -20
  105. package/build/static/js/5093.304fcb1e.chunk.js +0 -1
  106. package/build/static/js/5099.51feed45.chunk.js +0 -1
  107. package/build/static/js/5177.21c4f353.chunk.js +0 -2
  108. package/build/static/js/5241.0326c97c.chunk.js +0 -1
  109. package/build/static/js/5440.c7134ed1.chunk.js +0 -1
  110. package/build/static/js/5617.837c33c0.chunk.js +0 -1
  111. package/build/static/js/6557.fd2f35c8.chunk.js +0 -1
  112. package/build/static/js/6679.a8b5d830.chunk.js +0 -2
  113. package/build/static/js/6679.a8b5d830.chunk.js.LICENSE.txt +0 -60
  114. package/build/static/js/6683.aab9fa01.chunk.js +0 -1
  115. package/build/static/js/6756.2cb6963c.chunk.js +0 -1
  116. package/build/static/js/6862.886eab8e.chunk.js +0 -1
  117. package/build/static/js/6865.b0803b6b.chunk.js +0 -1
  118. package/build/static/js/6913.30734208.chunk.js +0 -17
  119. package/build/static/js/6939.c09d92c1.chunk.js +0 -1
  120. package/build/static/js/787.a500c8a4.chunk.js +0 -1
  121. package/build/static/js/792.04aad606.chunk.js +0 -1
  122. package/build/static/js/8035.dc118cc9.chunk.js +0 -1
  123. package/build/static/js/8295.c3cd87de.chunk.js +0 -1
  124. package/build/static/js/8418.aed275df.chunk.js +0 -1
  125. package/build/static/js/8486.e56533d6.chunk.js +0 -1
  126. package/build/static/js/865.9e23130b.chunk.js +0 -1
  127. package/build/static/js/9004.6a66722a.chunk.js +0 -1
  128. package/build/static/js/9042.a6fcbc74.chunk.js +0 -5
  129. package/build/static/js/9107.b49ea9ea.chunk.js +0 -5
  130. package/build/static/js/9130.8e10440e.chunk.js +0 -1
  131. package/build/static/js/9166.1a468fb9.chunk.js +0 -2
  132. package/build/static/js/9166.1a468fb9.chunk.js.LICENSE.txt +0 -13
  133. package/build/static/js/9382.c417d448.chunk.js +0 -1
  134. package/build/static/js/9615.c725e9d2.chunk.js +0 -1
  135. package/build/static/js/9733.e3808291.chunk.js +0 -2
  136. package/build/static/js/9733.e3808291.chunk.js.LICENSE.txt +0 -8
  137. package/build/static/js/9915.fe11690a.chunk.js +0 -1
  138. package/build/static/js/main.52e22014.js +0 -28
  139. package/build/static/media/SourceCodePro-Bold.52ac8f3034507f1d9e53.ttf +0 -0
  140. package/build/static/media/SourceCodePro-BoldItalic.05b618077343fbbd92b7.ttf +0 -0
  141. package/build/static/media/SourceCodePro-Italic.454577c22304619db035.ttf +0 -0
  142. package/build/static/media/SourceCodePro-Regular.70cc7ff27245e82ad414.ttf +0 -0
  143. package/build/static/media/SourceCodePro-SemiBold.4d4c53c06b5bebed1cf3.ttf +0 -0
  144. package/build/static/media/SourceCodePro-SemiBoldItalic.2f5470bc8b2cd27a5c4b.ttf +0 -0
  145. package/build/static/media/SourceSansPro-Bold.12e6acd2589d00c9d0aa.ttf +0 -0
  146. package/build/static/media/SourceSansPro-BoldItalic.7c4f9b00300acb82f0f6.ttf +0 -0
  147. package/build/static/media/SourceSansPro-Italic.3c01996d38a55834ddcb.ttf +0 -0
  148. package/build/static/media/SourceSansPro-Regular.efa76f8326aa5cee3bdd.ttf +0 -0
  149. package/build/static/media/SourceSansPro-SemiBold.43cc81b496222dc9ce3c.ttf +0 -0
  150. package/build/static/media/SourceSansPro-SemiBoldItalic.c30987e28fc21daba1ae.ttf +0 -0
  151. package/build/static/media/SourceSerifPro-Bold.bada4fe17051c992f22f.ttf +0 -0
  152. package/build/static/media/SourceSerifPro-BoldItalic.9f9b1eb2d82e26bb2f4a.ttf +0 -0
  153. package/build/static/media/SourceSerifPro-Italic.90931d6ad253cd8de8e4.ttf +0 -0
  154. package/build/static/media/SourceSerifPro-Regular.6f22301c30206f4bad62.ttf +0 -0
  155. package/build/static/media/SourceSerifPro-SemiBold.b27cb117978bab2c80a3.ttf +0 -0
  156. package/build/static/media/SourceSerifPro-SemiBoldItalic.1266f2c17835efdcff7b.ttf +0 -0
  157. package/build/static/media/index.09797f5e19b3c0491904.cjs +0 -1
  158. package/build/static/media/index.1e3d64b0fcde879f0060.cjs +0 -1
  159. package/build/static/media/index.85823dd8655ed4119d0c.cjs +0 -1
  160. package/build/static/media/index.b599194a631d76b49328.cjs +0 -1
  161. /package/build/static/css/{4320.1edfa457.chunk.css → 9449.1edfa457.chunk.css} +0 -0
  162. /package/build/static/js/{5177.21c4f353.chunk.js.LICENSE.txt → 8097.4837946f.chunk.js.LICENSE.txt} +0 -0
  163. /package/build/static/js/{3603.e3f6f11d.chunk.js.LICENSE.txt → 8186.2f2e42e5.chunk.js.LICENSE.txt} +0 -0
@@ -1,5 +0,0 @@
1
- /*!
2
- Copyright (c) 2018 Jed Watson.
3
- Licensed under the MIT License (MIT), see
4
- http://jedwatson.github.io/classnames
5
- */
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[3975],{75427:(e,t,n)=>{n.d(t,{s:()=>a});var r=n(34785),o=n(5057),i=n(95421),a=o.forwardRef((function(e,t){return o.createElement(i.D,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),o.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),o.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"}))}));a.displayName="ChevronLeft"},13324:(e,t,n)=>{n.d(t,{U:()=>a});var r=n(34785),o=n(5057),i=n(95421),a=o.forwardRef((function(e,t){return o.createElement(i.D,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),o.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}))}));a.displayName="Clear"},44071:(e,t,n)=>{n.d(t,{n:()=>a});var r=n(34785),o=n(5057),i=n(95421),a=o.forwardRef((function(e,t){return o.createElement(i.D,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),o.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),o.createElement("path",{d:"M19.35 10.04A7.49 7.49 0 0012 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 000 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95A5.469 5.469 0 0112 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11A2.98 2.98 0 0122 15c0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z"}))}));a.displayName="CloudUpload"},15766:(e,t,n)=>{n.d(t,{j:()=>a});var r=n(34785),o=n(5057),i=n(95421),a=o.forwardRef((function(e,t){return o.createElement(i.D,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))}));a.displayName="Error"},31906:(e,t,n)=>{n.d(t,{h:()=>a});var r=n(34785),o=n(5057),i=n(95421),a=o.forwardRef((function(e,t){return o.createElement(i.D,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),o.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),o.createElement("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}));a.displayName="InsertDriveFile"},25963:(e,t)=>{t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0}},71096:(e,t,n)=>{n.d(t,{ZP:()=>ae});var r=n(5057),o=n(55898),i=n.n(o);function a(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function c(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,c)}l((r=r.apply(e,t||[])).next())}))}function c(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}Object.create;function l(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(c){o={error:c}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}Object.create;var u=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function s(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=u.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!==typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"===typeof t?t:"string"===typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var f=[".DS_Store","Thumbs.db"];function p(e){return"object"===typeof e&&null!==e}function d(e){return y(e.target.files).map((function(e){return s(e)}))}function v(e){return a(this,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return s(e)}))]}}))}))}function m(e,t){return a(this,void 0,void 0,(function(){var n;return c(this,(function(r){switch(r.label){case 0:return null===e?[2,[]]:e.items?(n=y(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(b))]):[3,2];case 1:return[2,g(h(r.sent()))];case 2:return[2,g(y(e.files).map((function(e){return s(e)})))]}}))}))}function g(e){return e.filter((function(e){return-1===f.indexOf(e.name)}))}function y(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function b(e){if("function"!==typeof e.webkitGetAsEntry)return w(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?x(t):w(e)}function h(e){return e.reduce((function(e,t){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}(e,Array.isArray(t)?h(t):[t])}),[])}function w(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=s(t);return Promise.resolve(n)}function D(e){return a(this,void 0,void 0,(function(){return c(this,(function(t){return[2,e.isDirectory?x(e):O(e)]}))}))}function x(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return a(i,void 0,void 0,(function(){var i,a,l;return c(this,(function(c){switch(c.label){case 0:if(t.length)return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=c.sent(),e(i),[3,4];case 3:return a=c.sent(),n(a),[3,4];case 4:return[3,6];case 5:l=Promise.all(t.map(D)),r.push(l),o(),c.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function O(e){return a(this,void 0,void 0,(function(){return c(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=s(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var A=n(25963);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var z="file-invalid-type",P="file-too-large",S="file-too-small",R="too-many-files",M=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:z,message:"File type must be ".concat(t)}},T=function(e){return{code:P,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},L=function(e){return{code:S,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},I={code:R,message:"Too many files"};function V(e,t){var n="application/x-moz-file"===e.type||(0,A.Z)(e,t);return[n,n?null:M(t)]}function B(e,t,n){if(H(e.size))if(H(t)&&H(n)){if(e.size>n)return[!1,T(n)];if(e.size<t)return[!1,L(t)]}else{if(H(t)&&e.size<t)return[!1,L(t)];if(H(n)&&e.size>n)return[!1,T(n)]}return[!0,null]}function H(e){return void 0!==e&&null!==e}function K(e){return"function"===typeof e.isPropagationStopped?e.isPropagationStopped():"undefined"!==typeof e.cancelBubble&&e.cancelBubble}function Z(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function N(e){e.preventDefault()}function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!K(e)&&t&&t.apply(void 0,[e].concat(r)),K(e)}))}}function U(e){return e="string"===typeof e?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter((function(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)})).reduce((function(e,t){return E(E({},e),{},F({},t,[]))}),{}):{}}]}var $=["children"],G=["open"],q=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],W=["refKey","onChange","onClick"];function Y(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||Q(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){if(e){if("string"===typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var oe=(0,r.forwardRef)((function(e,t){var n=e.children,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=te(te({},ie),e),n=t.accept,o=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,c=t.minSize,l=t.multiple,u=t.maxFiles,s=t.onDragEnter,f=t.onDragLeave,p=t.onDragOver,d=t.onDrop,v=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,y=t.onFileDialogOpen,b=t.useFsAccessApi,h=t.preventDropOnDocument,w=t.noClick,D=t.noKeyboard,x=t.noDrag,O=t.noDragEventsBubbling,A=t.validator,j=(0,r.useMemo)((function(){return"function"===typeof y?y:ue}),[y]),E=(0,r.useMemo)((function(){return"function"===typeof g?g:ue}),[g]),F=(0,r.useRef)(null),C=(0,r.useRef)(null),z=J((0,r.useReducer)(le,ce),2),P=z[0],S=z[1],R=P.isFocused,M=P.isFileDialogActive,T=P.draggedFiles,L=(0,r.useRef)("undefined"!==typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),H=function(){!L.current&&M&&setTimeout((function(){C.current&&(C.current.files.length||(S({type:"closeDialog"}),E()))}),300)};(0,r.useEffect)((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[C,M,E,L]);var $=(0,r.useRef)([]),G=function(e){F.current&&F.current.contains(e.target)||(e.preventDefault(),$.current=[])};(0,r.useEffect)((function(){return h&&(document.addEventListener("dragover",N,!1),document.addEventListener("drop",G,!1)),function(){h&&(document.removeEventListener("dragover",N),document.removeEventListener("drop",G))}}),[F,h]);var Q=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),be(e),$.current=[].concat(Y($.current),[e.target]),Z(e)&&Promise.resolve(i(e)).then((function(t){K(e)&&!O||(S({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),s&&s(e))}))}),[i,s,O]),X=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),be(e);var t=Z(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(n){}return t&&p&&p(e),!1}),[p,O]),ee=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),be(e);var t=$.current.filter((function(e){return F.current&&F.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),$.current=t,t.length>0||(S({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Z(e)&&f&&f(e))}),[F,f,O]),oe=(0,r.useCallback)((function(e,t){var r=[],o=[];e.forEach((function(e){var t=J(V(e,n),2),i=t[0],l=t[1],u=J(B(e,c,a),2),s=u[0],f=u[1],p=A?A(e):null;if(i&&s&&!p)r.push(e);else{var d=[l,f];p&&(d=d.concat(p)),o.push({file:e,errors:d.filter((function(e){return e}))})}})),(!l&&r.length>1||l&&u>=1&&r.length>u)&&(r.forEach((function(e){o.push({file:e,errors:[I]})})),r.splice(0)),S({acceptedFiles:r,fileRejections:o,type:"setFiles"}),d&&d(r,o,t),o.length>0&&m&&m(o,t),r.length>0&&v&&v(r,t)}),[S,l,n,c,a,u,d,v,m,A]),ae=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),be(e),$.current=[],Z(e)&&Promise.resolve(i(e)).then((function(t){K(e)&&!O||oe(t,e)})),S({type:"reset"})}),[i,oe,O]),se=(0,r.useCallback)((function(){if(L.current){S({type:"openDialog"}),j();var e={multiple:l,types:U(n)};window.showOpenFilePicker(e).then((function(e){return i(e)})).then((function(e){oe(e,null),S({type:"closeDialog"})})).catch((function(e){var t;(t=e)instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)?(E(e),S({type:"closeDialog"})):function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)&&(L.current=!1,C.current&&(C.current.value=null,C.current.click()))}))}else C.current&&(S({type:"openDialog"}),j(),C.current.value=null,C.current.click())}),[S,j,E,b,oe,n,l]),fe=(0,r.useCallback)((function(e){F.current&&F.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),se()))}),[F,se]),pe=(0,r.useCallback)((function(){S({type:"focus"})}),[]),de=(0,r.useCallback)((function(){S({type:"blur"})}),[]),ve=(0,r.useCallback)((function(){w||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?se():setTimeout(se,0))}),[w,se]),me=function(e){return o?null:e},ge=function(e){return D?null:me(e)},ye=function(e){return x?null:me(e)},be=function(e){O&&e.stopPropagation()},he=(0,r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,i=e.onKeyDown,a=e.onFocus,c=e.onBlur,l=e.onClick,u=e.onDragEnter,s=e.onDragOver,f=e.onDragLeave,p=e.onDrop,d=re(e,q);return te(te(ne({onKeyDown:ge(_(i,fe)),onFocus:ge(_(a,pe)),onBlur:ge(_(c,de)),onClick:me(_(l,ve)),onDragEnter:ye(_(u,Q)),onDragOver:ye(_(s,X)),onDragLeave:ye(_(f,ee)),onDrop:ye(_(p,ae)),role:"string"===typeof r&&""!==r?r:"button"},n,F),o||D?{}:{tabIndex:0}),d)}}),[F,fe,pe,de,ve,Q,X,ee,ae,D,x,o]),we=(0,r.useCallback)((function(e){e.stopPropagation()}),[]),De=(0,r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,o=e.onChange,i=e.onClick,a=re(e,W);return te(te({},ne({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:me(_(o,ae)),onClick:me(_(i,we)),tabIndex:-1},r,C)),a)}}),[C,n,l,ae,o]),xe=T.length,Oe=xe>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=k(V(e,n),1)[0],i=k(B(e,r,o),1)[0];return t&&i}))}({files:T,accept:n,minSize:c,maxSize:a,multiple:l,maxFiles:u}),Ae=xe>0&&!Oe;return te(te({},P),{},{isDragAccept:Oe,isDragReject:Ae,isFocused:R&&!o,getRootProps:he,getInputProps:De,rootRef:F,inputRef:C,open:me(se)})}(re(e,$)),i=o.open,a=re(o,G);return(0,r.useImperativeHandle)(t,(function(){return{open:i}}),[i]),r.createElement(r.Fragment,null,n(te(te({},a),{},{open:i})))}));oe.displayName="Dropzone";var ie={disabled:!1,getFilesFromEvent:function(e){return a(this,void 0,void 0,(function(){return c(this,(function(t){return p(e)&&p(e.dataTransfer)?[2,m(e.dataTransfer,e.type)]:function(e){return p(e)&&p(e.target)}(e)?[2,d(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"===typeof e.getFile}))?[2,v(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};oe.defaultProps=ie,oe.propTypes={children:i().func,accept:i().oneOfType([i().string,i().arrayOf(i().string)]),multiple:i().bool,preventDropOnDocument:i().bool,noClick:i().bool,noKeyboard:i().bool,noDrag:i().bool,noDragEventsBubbling:i().bool,minSize:i().number,maxSize:i().number,maxFiles:i().number,disabled:i().bool,getFilesFromEvent:i().func,onFileDialogCancel:i().func,onFileDialogOpen:i().func,useFsAccessApi:i().bool,onDragEnter:i().func,onDragLeave:i().func,onDragOver:i().func,onDrop:i().func,onDropAccepted:i().func,onDropRejected:i().func,validator:i().func};const ae=oe;var ce={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function le(e,t){switch(t.type){case"focus":return te(te({},e),{},{isFocused:!0});case"blur":return te(te({},e),{},{isFocused:!1});case"openDialog":return te(te({},ce),{},{isFileDialogActive:!0});case"closeDialog":return te(te({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return te(te({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return te(te({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return te({},ce);default:return e}}function ue(){}}}]);
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[4140],{64140:(e,t,o)=>{o.r(t),o.d(t,{default:()=>W});var r=o(5057),i=o(31476),n=o(46434),l=o(80099),a=o(53381);function s(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function c(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?s(Object(o),!0).forEach((function(t){d(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function d(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function u(e){var t=e.$disabled,o=e.$checked,r=e.$isIndeterminate,i=e.$error,n=e.$isHovered,l=e.$isActive,a=e.$theme.colors;return t?o||r?a.tickFillDisabled:a.tickFill:i&&(r||o)?l?a.tickFillErrorSelectedHoverActive:n?a.tickFillErrorSelectedHover:a.tickFillErrorSelected:i?l?a.tickFillErrorHoverActive:n?a.tickFillErrorHover:a.tickFillError:r||o?l?a.tickFillSelectedHoverActive:n?a.tickFillSelectedHover:a.tickFillSelected:l?a.tickFillActive:n?a.tickFillHover:a.tickFill}function p(e){var t=e.$disabled,o=e.$theme.colors;return t?o.contentSecondary:o.contentPrimary}var h=(0,a.zo)("label",(function(e){var t=e.$disabled,o=e.$labelPlacement;return{flexDirection:"top"===o||"bottom"===o?"column":"row",display:"flex",alignItems:"top"===o||"bottom"===o?"center":"flex-start",cursor:t?"not-allowed":"pointer",userSelect:"none"}}));h.displayName="Root",h.displayName="Root";var m=(0,a.zo)("span",(function(e){var t=e.$checked,o=e.$disabled,r=e.$error,i=e.$isIndeterminate,n=e.$theme,l=e.$isFocusVisible,a=n.sizing,s=n.animation,c=o?n.colors.tickMarkFillDisabled:r?n.colors.tickMarkFillError:n.colors.tickMarkFill,d=encodeURIComponent('\n <svg width="14" height="4" viewBox="0 0 14 4" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M14 0.5H0V3.5H14V0.5Z" fill="'.concat(c,'"/>\n </svg>\n ')),p=encodeURIComponent('\n <svg width="17" height="13" viewBox="0 0 17 13" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.50002 12.6L0.400024 6.60002L2.60002 4.40002L6.50002 8.40002L13.9 0.900024L16.1 3.10002L6.50002 12.6Z" fill="'.concat(c,'"/>\n </svg>\n ')),h=n.borders.checkboxBorderRadius,m=function(e){var t=e.$disabled,o=e.$checked,r=e.$error,i=e.$isIndeterminate,n=e.$theme,l=e.$isFocusVisible,a=n.colors;return t?a.tickFillDisabled:o||i?"transparent":r?a.borderNegative:l?a.borderSelected:a.tickBorder}(e);return{flex:"0 0 auto",transitionDuration:s.timing200,transitionTimingFunction:s.easeOutCurve,transitionProperty:"background-image, border-color, background-color",width:a.scale700,height:a.scale700,left:"4px",top:"4px",boxSizing:"border-box",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftWidth:"3px",borderRightWidth:"3px",borderTopWidth:"3px",borderBottomWidth:"3px",borderLeftColor:m,borderRightColor:m,borderTopColor:m,borderBottomColor:m,borderTopLeftRadius:h,borderTopRightRadius:h,borderBottomRightRadius:h,borderBottomLeftRadius:h,outline:l&&t?"3px solid ".concat(n.colors.accent):"none",display:"inline-block",verticalAlign:"middle",backgroundImage:i?"url('data:image/svg+xml,".concat(d,"');"):t?"url('data:image/svg+xml,".concat(p,"');"):null,backgroundColor:u(e),backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"contain",marginTop:n.sizing.scale0,marginBottom:n.sizing.scale0,marginLeft:n.sizing.scale0,marginRight:n.sizing.scale0}}));m.displayName="Checkmark",m.displayName="Checkmark";var b=(0,a.zo)("div",(function(e){var t=e.$theme.typography;return c(c(c({verticalAlign:"middle"},function(e){var t,o=e.$labelPlacement,r=void 0===o?"":o,i=e.$theme,n=i.sizing.scale300;switch(r){case"top":t="Bottom";break;case"bottom":t="Top";break;case"left":t="Right";break;default:t="Left"}return"rtl"===i.direction&&"Left"===t?t="Right":"rtl"===i.direction&&"Right"===t&&(t="Left"),d({},"padding".concat(t),n)}(e)),{},{color:p(e)},t.LabelMedium),{},{lineHeight:"24px"})}));b.displayName="Label",b.displayName="Label";var g=(0,a.zo)("input",{opacity:0,width:0,height:0,overflow:"hidden",margin:0,padding:0,position:"absolute"});g.displayName="Input",g.displayName="Input";var f=(0,a.zo)("div",(function(e){var t=e.$theme.colors.toggleFill;return e.$disabled?t=e.$theme.colors.toggleFillDisabled:e.$checked&&e.$error?t=e.$theme.colors.tickFillErrorSelected:e.$checked&&(t=e.$theme.colors.toggleFillChecked),{backgroundColor:t,borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(e.$theme.colors.accent):e.$isHovered&&!e.$disabled?e.$theme.lighting.shadow500:e.$theme.lighting.shadow400,outline:"none",height:e.$theme.sizing.scale700,width:e.$theme.sizing.scale700,transform:e.$checked?"translateX(".concat("rtl"===e.$theme.direction?"-100%":"100%",")"):null,transition:"transform ".concat(e.$theme.animation.timing200)}}));f.displayName="Toggle",f.displayName="Toggle";var v=(0,a.zo)("div",(function(e){var t=e.$theme.colors.toggleTrackFill;return e.$disabled?t=e.$theme.colors.toggleTrackFillDisabled:e.$error&&e.$checked&&(t=e.$theme.colors.tickFillError),{alignItems:"center",backgroundColor:t,borderTopLeftRadius:"7px",borderTopRightRadius:"7px",borderBottomRightRadius:"7px",borderBottomLeftRadius:"7px",display:"flex",height:e.$theme.sizing.scale550,marginTop:e.$theme.sizing.scale200,marginBottom:e.$theme.sizing.scale100,marginLeft:e.$theme.sizing.scale200,marginRight:e.$theme.sizing.scale100,width:e.$theme.sizing.scale1000}}));v.displayName="ToggleTrack",v.displayName="ToggleTrack";var y=Object.freeze({default:"default",toggle:"toggle",toggle_round:"toggle"}),k=(Object.freeze({top:"top",right:"right",bottom:"bottom",left:"left"}),o(94253));function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},w.apply(this,arguments)}function F(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},x(e,t)}function R(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,r=C(e);if(t){var i=C(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return function(e,t){if(t&&("object"===$(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return T(e)}(this,o)}}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function O(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var P=function(e){return e.stopPropagation()},S=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(a,e);var t,o,i,n=R(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return O(T(e=n.call.apply(n,[this].concat(o))),"state",{isFocused:e.props.autoFocus||!1,isFocusVisible:!1,isHovered:!1,isActive:!1}),O(T(e),"onMouseEnter",(function(t){e.setState({isHovered:!0}),e.props.onMouseEnter(t)})),O(T(e),"onMouseLeave",(function(t){e.setState({isHovered:!1,isActive:!1}),e.props.onMouseLeave(t)})),O(T(e),"onMouseDown",(function(t){e.setState({isActive:!0}),e.props.onMouseDown(t)})),O(T(e),"onMouseUp",(function(t){e.setState({isActive:!1}),e.props.onMouseUp(t)})),O(T(e),"onFocus",(function(t){e.setState({isFocused:!0}),e.props.onFocus(t),(0,k.E)(t)&&e.setState({isFocusVisible:!0})})),O(T(e),"onBlur",(function(t){e.setState({isFocused:!1}),e.props.onBlur(t),!1!==e.state.isFocusVisible&&e.setState({isFocusVisible:!1})})),e}return t=a,(o=[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoFocus,o=e.inputRef;t&&o.current&&o.current.focus()}},{key:"render",value:function(){var e=this.props,t=e.overrides,o=void 0===t?{}:t,i=e.onChange,n=e.labelPlacement,a=void 0===n?this.props.checkmarkType===y.toggle?"left":"right":n,s=e.inputRef,c=e.isIndeterminate,d=e.error,u=e.disabled,p=e.value,k=e.name,$=e.type,F=e.checked,x=e.children,R=e.required,T=e.title,C=o.Root,O=o.Checkmark,S=o.Label,L=o.Input,j=o.Toggle,M=o.ToggleTrack,E=(0,l.XG)(C)||h,B=(0,l.XG)(O)||m,V=(0,l.XG)(S)||b,z=(0,l.XG)(L)||g,H=(0,l.XG)(j)||f,D=(0,l.XG)(M)||v,I={onChange:i,onFocus:this.onFocus,onBlur:this.onBlur},W={onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},A={$isFocused:this.state.isFocused,$isFocusVisible:this.state.isFocusVisible,$isHovered:this.state.isHovered,$isActive:this.state.isActive,$error:d,$checked:F,$isIndeterminate:c,$required:R,$disabled:u,$value:p},U=x&&r.createElement(V,w({$labelPlacement:a},A,(0,l.ch)(S)),this.props.containsInteractiveElement?r.createElement("div",{onClick:function(e){return e.preventDefault()}},x):x);return r.createElement(E,w({"data-baseweb":"checkbox",title:T||null,$labelPlacement:a},A,W,(0,l.ch)(C)),("top"===a||"left"===a)&&U,this.props.checkmarkType===y.toggle?r.createElement(D,w({},A,(0,l.ch)(M)),r.createElement(H,w({},A,(0,l.ch)(j)))):r.createElement(B,w({},A,(0,l.ch)(O))),r.createElement(z,w({value:p,name:k,checked:F,required:R,"aria-label":this.props["aria-label"]||this.props.ariaLabel,"aria-checked":c?"mixed":F,"aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":d||null,"aria-required":R||null,disabled:u,type:$,ref:s,onClick:P},A,I,(0,l.ch)(L))),("bottom"===a||"right"===a)&&U)}}])&&F(t.prototype,o),i&&F(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.Component);O(S,"defaultProps",{overrides:{},checked:!1,containsInteractiveElement:!1,disabled:!1,autoFocus:!1,isIndeterminate:!1,inputRef:r.createRef(),error:!1,type:"checkbox",checkmarkType:y.default,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onMouseDown:function(){},onMouseUp:function(){},onFocus:function(){},onBlur:function(){}});const L=S;var j=o(59990),M=o(98209),E=o(4337),B=o(89401),V=o(18950),z=o(21807);const H=(0,o(45490).Z)("div",{target:"e16v3svg0"})((({visibility:e})=>({display:e===n.Ws.Collapsed?"none":"flex",visibility:e===n.Ws.Hidden?"hidden":"visible",verticalAlign:"middle",flexDirection:"row",alignItems:"center"})),"");var D=o(96266);class I extends r.PureComponent{constructor(...e){super(...e),this.formClearHelper=new M.Kz,this.state={value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setBoolValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState(((e,t)=>({value:t.element.default})),(()=>this.commitWidgetValue({fromUi:!0})))},this.onChange=e=>{const t=e.target.checked;this.setState({value:t},(()=>this.commitWidgetValue({fromUi:!0})))}}get initialValue(){const e=this.props.widgetMgr.getBoolValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){var e;const{theme:t,width:o,element:r,disabled:i,widgetMgr:l}=this.props,{colors:a,spacing:s}=t,c={width:o},d=i?a.fadedText40:a.bodyText;return this.formClearHelper.manageFormClearListener(l,r.formId,this.onFormCleared),(0,D.jsx)("div",{className:"row-widget stCheckbox",style:c,children:(0,D.jsx)(L,{checked:this.state.value,disabled:i,onChange:this.onChange,"aria-label":r.label,overrides:{Root:{style:({$isFocusVisible:e})=>({marginBottom:0,marginTop:0,paddingRight:s.twoThirdsSmFont,backgroundColor:e?a.darkenedBgMix25:"",display:"flex",alignItems:"start"})},Checkmark:{style:({$isFocusVisible:e,$checked:t})=>{const o=t&&!i?a.primary:a.fadedText40;return{outline:0,width:"1rem",height:"1rem",marginTop:"0.30rem",boxShadow:e&&t?`0 0 0 0.2rem ${(0,j.DZ)(a.primary,.5)}`:"",borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px",borderLeftColor:o,borderRightColor:o,borderTopColor:o,borderBottomColor:o}}},Label:{style:{position:"relative",top:"1px",color:d}}},children:(0,D.jsxs)(H,{visibility:(0,n.iF)(null===(e=r.labelVisibility)||void 0===e?void 0:e.value),children:[(0,D.jsx)(z.Z,{source:r.label,allowHTML:!1,isLabel:!0,isCheckbox:!0}),r.help&&(0,D.jsx)(V.Hp,{color:d,children:(0,D.jsx)(E.ZP,{content:r.help,placement:B.ug.TOP_RIGHT})})]})})})}}const W=(0,i.b)(I)}}]);
@@ -1,9 +0,0 @@
1
- (globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[4141],{5617:(t,a,e)=>{"use strict";e.r(a),e.d(a,{NUM_BALLOONS:()=>b,default:()=>N});var n=e(5057);const r=e.p+"static/media/balloon-0.0e6e96ece0ea0719d6b6.png",i=e.p+"static/media/balloon-1.a503c271109e9a0fdd2d.png",o=e.p+"static/media/balloon-2.872250f3bf3a8965d655.png",s=e.p+"static/media/balloon-3.e772fafd3bfc55fb439b.png",c=e.p+"static/media/balloon-4.1a74162473d81c9cb9ee.png",p=e.p+"static/media/balloon-5.edb75c74c54165b29856.png";var l=e(81397),m=e(45490),u=e(21371);const d=u.F4`
2
- from {
3
- transform: translateY(calc(100vh + ${300}px));
4
- }
5
-
6
- to {
7
- transform: translateY(0);
8
- }
9
- `,f=(0,m.Z)("img",{target:"ejk04o70"})((({theme:t})=>({position:"fixed",top:"-300px",marginLeft:"-60.5px",zIndex:t.zIndices.balloons,left:60*Math.random()+20+"vw",animationDelay:1e3*Math.random()+"ms",height:"300px",width:"121px",pointerEvents:"none",animationDuration:"750ms",animationName:d,animationTimingFunction:"ease-in",animationDirection:"normal",animationIterationCount:1,opacity:1})),"");var v=e(96266);const b=30,h=[r,i,o,s,c,p],x=h.length,g=({particleType:t})=>(0,v.jsx)(f,{src:h[t]}),y=({scriptRunId:t})=>(0,v.jsx)(l.Z,{className:"balloons",scriptRunId:t,numParticleTypes:x,numParticles:b,ParticleComponent:g}),N=(0,n.memo)(y)},81397:(t,a,e)=>{"use strict";e.d(a,{Z:()=>l});var n=e(5057),r=e(66904),i=e.n(r),o=e(52277),s=e.n(o),c=e(96266);const p=({className:t,scriptRunId:a,numParticles:e,numParticleTypes:n,ParticleComponent:r})=>(0,c.jsx)("div",{className:s()(t,"stHidden"),children:i()(e).map((t=>{const e=Math.floor(Math.random()*n);return(0,c.jsx)(r,{particleType:e},a+t)}))}),l=(0,n.memo)(p)},99980:t=>{var a=Math.ceil,e=Math.max;t.exports=function(t,n,r,i){for(var o=-1,s=e(a((n-t)/(r||1)),0),c=Array(s);s--;)c[i?s:++o]=t,t+=r;return c}},39594:(t,a,e)=>{var n=e(36418),r=/^\s+/;t.exports=function(t){return t?t.slice(0,n(t)+1).replace(r,""):t}},9186:(t,a,e)=>{var n=e(99980),r=e(27396),i=e(17046);t.exports=function(t){return function(a,e,o){return o&&"number"!=typeof o&&r(a,e,o)&&(e=o=void 0),a=i(a),void 0===e?(e=a,a=0):e=i(e),o=void 0===o?a<e?1:-1:i(o),n(a,e,o,t)}}},36418:t=>{var a=/\s/;t.exports=function(t){for(var e=t.length;e--&&a.test(t.charAt(e)););return e}},66904:(t,a,e)=>{var n=e(9186)();t.exports=n},17046:(t,a,e)=>{var n=e(81692),r=1/0;t.exports=function(t){return t?(t=n(t))===r||t===-1/0?17976931348623157e292*(t<0?-1:1):t===t?t:0:0===t?t:0}},81692:(t,a,e)=>{var n=e(39594),r=e(26271),i=e(71490),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,p=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(r(t)){var a="function"==typeof t.valueOf?t.valueOf():t;t=r(a)?a+"":a}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var e=s.test(t);return e||c.test(t)?p(t.slice(2),e?2:8):o.test(t)?NaN:+t}}}]);