flowdeck 0.2.1__py3-none-any.whl

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. flowdeck/__init__.py +65 -0
  2. flowdeck/_version.py +1 -0
  3. flowdeck/api/__init__.py +216 -0
  4. flowdeck/api/routers/__init__.py +1 -0
  5. flowdeck/api/routers/dashboard.py +73 -0
  6. flowdeck/api/routers/health.py +26 -0
  7. flowdeck/api/routers/notifications.py +92 -0
  8. flowdeck/api/routers/pipelines.py +274 -0
  9. flowdeck/api/routers/runs.py +227 -0
  10. flowdeck/api/routers/schedule_exceptions.py +141 -0
  11. flowdeck/api/routers/system.py +386 -0
  12. flowdeck/api/routers/ui_pipelines.py +507 -0
  13. flowdeck/api/routers/ui_task_tools.py +275 -0
  14. flowdeck/api/routers/webhooks.py +115 -0
  15. flowdeck/auth/__init__.py +0 -0
  16. flowdeck/auth/basic.py +65 -0
  17. flowdeck/cli.py +40 -0
  18. flowdeck/config.py +240 -0
  19. flowdeck/database/__init__.py +0 -0
  20. flowdeck/database/base.py +91 -0
  21. flowdeck/database/models.py +218 -0
  22. flowdeck/database/repository.py +1231 -0
  23. flowdeck/logger/__init__.py +122 -0
  24. flowdeck/logger/formatter.py +112 -0
  25. flowdeck/logger/web_socket_handler.py +85 -0
  26. flowdeck/notifications/__init__.py +13 -0
  27. flowdeck/notifications/email_sender.py +79 -0
  28. flowdeck/notifications/engine.py +412 -0
  29. flowdeck/notifications/rules.py +22 -0
  30. flowdeck/notifications/table_image.py +273 -0
  31. flowdeck/notifications/task_result.py +478 -0
  32. flowdeck/notifications/templates.py +224 -0
  33. flowdeck/orchestrator/__init__.py +380 -0
  34. flowdeck/orchestrator/executor.py +661 -0
  35. flowdeck/pipeline/__init__.py +5 -0
  36. flowdeck/pipeline/_utils.py +11 -0
  37. flowdeck/pipeline/context.py +13 -0
  38. flowdeck/pipeline/pipeline.py +40 -0
  39. flowdeck/pipeline/schedule.py +125 -0
  40. flowdeck/pipeline/task.py +104 -0
  41. flowdeck/pipeline/trigger.py +22 -0
  42. flowdeck/schemas.py +11 -0
  43. flowdeck/static/assets/BackfillModal-BViyo-00.js +1 -0
  44. flowdeck/static/assets/BackfillModal-D6je7CRx.css +1 -0
  45. flowdeck/static/assets/Btn-B77BQZvQ.js +1 -0
  46. flowdeck/static/assets/Btn-D6G_tsbF.css +1 -0
  47. flowdeck/static/assets/DashboardView-BM-S5j64.js +1 -0
  48. flowdeck/static/assets/DashboardView-CBu0kYw6.css +1 -0
  49. flowdeck/static/assets/DatePickerField-IOKwxOwp.js +830 -0
  50. flowdeck/static/assets/Empty-B5kRTX_h.css +1 -0
  51. flowdeck/static/assets/Empty-ScitfHnD.js +1 -0
  52. flowdeck/static/assets/Modal-7xA4aZKG.js +1 -0
  53. flowdeck/static/assets/Modal-BNFhtIvK.css +1 -0
  54. flowdeck/static/assets/NotificationsView-BTkWFeLt.css +1 -0
  55. flowdeck/static/assets/NotificationsView-BkofWdjj.js +1 -0
  56. flowdeck/static/assets/NotifySettings-BFdtzy6K.js +1 -0
  57. flowdeck/static/assets/NotifySettings-D9Nn2RLl.css +1 -0
  58. flowdeck/static/assets/NumInput--MSEekvd.js +582 -0
  59. flowdeck/static/assets/NumInput-DfqPA-uG.css +1 -0
  60. flowdeck/static/assets/PageHeader-3D30Zbvm.js +1 -0
  61. flowdeck/static/assets/PageHeader-BULVGwbD.css +1 -0
  62. flowdeck/static/assets/PipelineDetailView-89815vAO.js +1 -0
  63. flowdeck/static/assets/PipelineDetailView-B_iVBCYT.css +1 -0
  64. flowdeck/static/assets/PipelinesView-CtDub3qu.js +1 -0
  65. flowdeck/static/assets/PipelinesView-DC9QO4Wr.css +1 -0
  66. flowdeck/static/assets/PrettyJson-DjAv38hk.css +1 -0
  67. flowdeck/static/assets/PrettyJson-_gjY71Cb.js +1 -0
  68. flowdeck/static/assets/RecentFailuresView-CruW_Dj8.js +1 -0
  69. flowdeck/static/assets/RecentFailuresView-DjQsiRv9.css +1 -0
  70. flowdeck/static/assets/RunDetailView--NojY8JX.css +1 -0
  71. flowdeck/static/assets/RunDetailView-2ZVPmVgW.js +5 -0
  72. flowdeck/static/assets/ScheduleExceptionsView-DdccyMcD.js +2 -0
  73. flowdeck/static/assets/ScheduleExceptionsView-pWTB9mSE.css +1 -0
  74. flowdeck/static/assets/SettingsView-BwlizulV.js +4 -0
  75. flowdeck/static/assets/SettingsView-D4ybFG31.css +1 -0
  76. flowdeck/static/assets/StatCard-CdPYF8jZ.js +1 -0
  77. flowdeck/static/assets/StatCard-D06FdLL9.css +1 -0
  78. flowdeck/static/assets/StatsView-88bkL-AN.css +1 -0
  79. flowdeck/static/assets/StatsView-DONGQHCc.js +18 -0
  80. flowdeck/static/assets/StatusBadge-BDBPRgRa.css +1 -0
  81. flowdeck/static/assets/StatusBadge-DzUDQ0X_.js +1 -0
  82. flowdeck/static/assets/ToggleSwitch-KMgLwPsM.js +1 -0
  83. flowdeck/static/assets/ToggleSwitch-UNHeNS9K.css +1 -0
  84. flowdeck/static/assets/UiPipelinesView-BgzBgUYR.css +1 -0
  85. flowdeck/static/assets/UiPipelinesView-WTYqKxB5.js +2 -0
  86. flowdeck/static/assets/UiTaskEditorView-BgYyqqgT.js +10 -0
  87. flowdeck/static/assets/UiTaskEditorView-Dl6zmLDP.css +1 -0
  88. flowdeck/static/assets/_plugin-vue_export-helper-OBKhRxFI.js +12 -0
  89. flowdeck/static/assets/chakra-petch-latin-400-normal-D7EtbySE.woff +0 -0
  90. flowdeck/static/assets/chakra-petch-latin-400-normal-SafcrIr2.woff2 +0 -0
  91. flowdeck/static/assets/chakra-petch-latin-500-normal-BR1ody1F.woff2 +0 -0
  92. flowdeck/static/assets/chakra-petch-latin-500-normal-CnUQnZ4D.woff +0 -0
  93. flowdeck/static/assets/chakra-petch-latin-600-normal-DQKfcdKo.woff +0 -0
  94. flowdeck/static/assets/chakra-petch-latin-600-normal-DVQm9bgb.woff2 +0 -0
  95. flowdeck/static/assets/chakra-petch-latin-700-normal-CnDBPjkL.woff2 +0 -0
  96. flowdeck/static/assets/chakra-petch-latin-700-normal-D1s_c2du.woff +0 -0
  97. flowdeck/static/assets/chakra-petch-latin-ext-400-normal-C8u6EFkq.woff2 +0 -0
  98. flowdeck/static/assets/chakra-petch-latin-ext-400-normal-MNNNbyh_.woff +0 -0
  99. flowdeck/static/assets/chakra-petch-latin-ext-500-normal-BCHeNDEx.woff +0 -0
  100. flowdeck/static/assets/chakra-petch-latin-ext-500-normal-gA6791b0.woff2 +0 -0
  101. flowdeck/static/assets/chakra-petch-latin-ext-600-normal-CdGvbdDU.woff2 +0 -0
  102. flowdeck/static/assets/chakra-petch-latin-ext-600-normal-nL80L4xU.woff +0 -0
  103. flowdeck/static/assets/chakra-petch-latin-ext-700-normal-BeviJPUl.woff +0 -0
  104. flowdeck/static/assets/chakra-petch-latin-ext-700-normal-DAkvJhej.woff2 +0 -0
  105. flowdeck/static/assets/chakra-petch-thai-400-normal-Bw1Q-fVY.woff2 +0 -0
  106. flowdeck/static/assets/chakra-petch-thai-400-normal-KdzBjiWs.woff +0 -0
  107. flowdeck/static/assets/chakra-petch-thai-500-normal-CJG_V2_m.woff +0 -0
  108. flowdeck/static/assets/chakra-petch-thai-500-normal-DeexCGiz.woff2 +0 -0
  109. flowdeck/static/assets/chakra-petch-thai-600-normal-BiM5MXH8.woff +0 -0
  110. flowdeck/static/assets/chakra-petch-thai-600-normal-C620THcd.woff2 +0 -0
  111. flowdeck/static/assets/chakra-petch-thai-700-normal-B7WL5pBr.woff2 +0 -0
  112. flowdeck/static/assets/chakra-petch-thai-700-normal-vZLZ_5L8.woff +0 -0
  113. flowdeck/static/assets/chakra-petch-vietnamese-400-normal-Cn7ya5On.woff +0 -0
  114. flowdeck/static/assets/chakra-petch-vietnamese-500-normal-BVzUBLGs.woff +0 -0
  115. flowdeck/static/assets/chakra-petch-vietnamese-600-normal-Pvj4qcw_.woff +0 -0
  116. flowdeck/static/assets/chakra-petch-vietnamese-700-normal-gQuUA8Wu.woff +0 -0
  117. flowdeck/static/assets/index-DpymzEZv.css +1 -0
  118. flowdeck/static/assets/index-DuXbXiXo.js +2 -0
  119. flowdeck/static/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
  120. flowdeck/static/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
  121. flowdeck/static/assets/jetbrains-mono-cyrillic-500-normal-DJqRU3vO.woff +0 -0
  122. flowdeck/static/assets/jetbrains-mono-cyrillic-500-normal-DmUKJPL_.woff2 +0 -0
  123. flowdeck/static/assets/jetbrains-mono-cyrillic-700-normal-BWTpRfYl.woff2 +0 -0
  124. flowdeck/static/assets/jetbrains-mono-cyrillic-700-normal-CEoEElIJ.woff +0 -0
  125. flowdeck/static/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
  126. flowdeck/static/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
  127. flowdeck/static/assets/jetbrains-mono-greek-500-normal-D7SFKleX.woff +0 -0
  128. flowdeck/static/assets/jetbrains-mono-greek-500-normal-JpySY46c.woff2 +0 -0
  129. flowdeck/static/assets/jetbrains-mono-greek-700-normal-C6CZE3T8.woff2 +0 -0
  130. flowdeck/static/assets/jetbrains-mono-greek-700-normal-DEigVDxa.woff +0 -0
  131. flowdeck/static/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
  132. flowdeck/static/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
  133. flowdeck/static/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
  134. flowdeck/static/assets/jetbrains-mono-latin-500-normal-CJOVTJB7.woff +0 -0
  135. flowdeck/static/assets/jetbrains-mono-latin-700-normal-BYuf6tUa.woff2 +0 -0
  136. flowdeck/static/assets/jetbrains-mono-latin-700-normal-D3wTyLJW.woff +0 -0
  137. flowdeck/static/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
  138. flowdeck/static/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
  139. flowdeck/static/assets/jetbrains-mono-latin-ext-500-normal-Cut-4mMH.woff2 +0 -0
  140. flowdeck/static/assets/jetbrains-mono-latin-ext-500-normal-ckzbgY84.woff +0 -0
  141. flowdeck/static/assets/jetbrains-mono-latin-ext-700-normal-CZipNAKV.woff2 +0 -0
  142. flowdeck/static/assets/jetbrains-mono-latin-ext-700-normal-CxPITLHs.woff +0 -0
  143. flowdeck/static/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
  144. flowdeck/static/assets/jetbrains-mono-vietnamese-500-normal-DNRqzVM1.woff +0 -0
  145. flowdeck/static/assets/jetbrains-mono-vietnamese-700-normal-BDLVIk2r.woff +0 -0
  146. flowdeck/static/assets/light-B0F-b5Z6.js +20 -0
  147. flowdeck/static/assets/runtime-dom.esm-bundler-DESsN8Jj.js +2 -0
  148. flowdeck/static/favicon.svg +13 -0
  149. flowdeck/static/index.html +18 -0
  150. flowdeck/storage.py +145 -0
  151. flowdeck/tasks/__init__.py +1 -0
  152. flowdeck/tasks/http_executor.py +985 -0
  153. flowdeck/tasks/paramdefs.py +170 -0
  154. flowdeck/tasks/paramextract.py +185 -0
  155. flowdeck/tasks/python_executor.py +234 -0
  156. flowdeck/tasks/sql_executor.py +683 -0
  157. flowdeck/tasks/timevars.py +125 -0
  158. flowdeck/tasks/ui_registry.py +394 -0
  159. flowdeck-0.2.1.dist-info/METADATA +228 -0
  160. flowdeck-0.2.1.dist-info/RECORD +163 -0
  161. flowdeck-0.2.1.dist-info/WHEEL +4 -0
  162. flowdeck-0.2.1.dist-info/entry_points.txt +2 -0
  163. flowdeck-0.2.1.dist-info/licenses/LICENSE +293 -0
@@ -0,0 +1,20 @@
1
+ import{Dt as e,Nt as t,Yt as n,mt as r,nn as i}from"./_plugin-vue_export-helper-OBKhRxFI.js";function a(e){let t=`.`,n=`__`,r=`--`,i;if(e){let i=e.blockPrefix;i&&(t=i),i=e.elementPrefix,i&&(n=i),i=e.modifierPrefix,i&&(r=i)}let a={install(e){i=e.c;let t=e.context;t.bem={},t.bem.b=null,t.bem.els=null}};function o(e){let n,r;return{before(e){n=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=n,e.bem.els=r},$({context:n,props:r}){return e=typeof e==`string`?e:e({context:n,props:r}),n.bem.b=e,`${r?.bPrefix||t}${n.bem.b}`}}}function s(e){let r;return{before(e){r=e.bem.els},after(e){e.bem.els=r},$({context:r,props:i}){return e=typeof e==`string`?e:e({context:r,props:i}),r.bem.els=e.split(`,`).map(e=>e.trim()),r.bem.els.map(e=>`${i?.bPrefix||t}${r.bem.b}${n}${e}`).join(`, `)}}}function c(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=e.split(`,`).map(e=>e.trim());function s(e){return o.map(o=>`&${a?.bPrefix||t}${i.bem.b}${e===void 0?``:`${n}${e}`}${r}${o}`).join(`, `)}let c=i.bem.els;return c===null?s():s(c[0])}}}function l(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=i.bem.els;return`&:not(${a?.bPrefix||t}${i.bem.b}${o!==null&&o.length>0?`${n}${o[0]}`:``}${r}${e})`}}}return Object.assign(a,{cB:((...e)=>i(o(e[0]),e[1],e[2])),cE:((...e)=>i(s(e[0]),e[1],e[2])),cM:((...e)=>i(c(e[0]),e[1],e[2])),cNotM:((...e)=>i(l(e[0]),e[1],e[2]))}),a}function o(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var s=/\s*,(?![^(]*\))\s*/g,c=/\s+/g;function l(e,t){let n=[];return t.split(s).forEach(t=>{let r=o(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function u(e,t){let n=[];return t.split(s).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function d(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?l(t,e):u(t,e))}),t.join(`, `).replace(c,` `)}function f(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function p(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function m(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}function h(e){return e?/^\s*@(s|m)/.test(e):!1}var g=/[A-Z]/g;function _(e){return e.replace(g,e=>`-`+e.toLowerCase())}function v(e,t=` `){return typeof e==`object`&&e?` {
2
+ `+Object.entries(e).map(e=>t+` ${_(e[0])}: ${e[1]};`).join(`
3
+ `)+`
4
+ `+t+`}`:`: ${e};`}function y(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function b(e,t,n,r){if(!t)return``;let i=y(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` {
5
+ }`:``;let o=e?[e+` {`]:[];return a.forEach(e=>{let t=i[e];e===`raw`?o.push(`
6
+ `+t+`
7
+ `):(e=_(e),t!=null&&o.push(` ${e}${v(t)}`))}),e&&o.push(`}`),o.join(`
8
+ `)}function x(e,t,n){e&&e.forEach(e=>{if(Array.isArray(e))x(e,t,n);else if(typeof e==`function`){let r=e(t);Array.isArray(r)?x(r,t,n):r&&n(r)}else e&&n(e)})}function S(e,t,n,r,i){let a=e.$,o=``;if(!a||typeof a==`string`)h(a)?o=a:t.push(a);else if(typeof a==`function`){let e=a({context:r.context,props:i});h(e)?o=e:t.push(e)}else if(a.before&&a.before(r.context),!a.$||typeof a.$==`string`)h(a.$)?o=a.$:t.push(a.$);else if(a.$){let e=a.$({context:r.context,props:i});h(e)?o=e:t.push(e)}let s=d(t),c=b(s,e.props,r,i);o?n.push(`${o} {`):c.length&&n.push(c),e.children&&x(e.children,{context:r.context,props:i},e=>{if(typeof e==`string`){let t=b(s,{raw:e},r,i);n.push(t)}else S(e,t,n,r,i)}),t.pop(),o&&n.push(`}`),a&&a.after&&a.after(r.context)}function ee(e,t,n){let r=[];return S(e,[],r,t,n),r.join(`
9
+
10
+ `)}function C(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<`u`&&(window.__cssrContext={});function w(e,t,n,r){let{els:i}=t;if(n===void 0)i.forEach(f),t.els=[];else{let e=p(n,r);e&&i.includes(e)&&(f(e),t.els=i.filter(t=>t!==e))}}function T(e,t){e.push(t)}function E(e,t,n,r,i,a,o,s,c){let l;if(n===void 0&&(l=t.render(r),n=C(l)),c){c.adapter(n,l??t.render(r));return}s===void 0&&(s=document.head);let u=p(n,s);if(u!==null&&!a)return u;let d=u??m(n);if(l===void 0&&(l=t.render(r)),d.textContent=l,u!==null)return u;if(o){let e=s.querySelector(`meta[name="${o}"]`);if(e)return s.insertBefore(d,e),T(t.els,d),d}return i?s.insertBefore(d,s.querySelector(`style, link`)):s.appendChild(d),T(t.els,d),d}function D(e){return ee(this,this.instance,e)}function O(e={}){let{id:t,ssr:n,props:r,head:i=!1,force:a=!1,anchorMetaName:o,parent:s}=e;return E(this.instance,this,t,r,i,a,o,s,n)}function te(e={}){let{id:t,parent:n}=e;w(this.instance,this,t,n)}var k=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:D,mount:O,unmount:te}},ne=function(e,t,n,r){return Array.isArray(t)?k(e,{$:null},null,t):Array.isArray(n)?k(e,t,null,n):Array.isArray(r)?k(e,t,n,r):k(e,t,n,null)};function A(e={}){let t={c:((...e)=>ne(t,...e)),use:(e,...n)=>e.install(t,...n),find:p,context:{},config:e};return t}var re=`__`,ie=`--`,ae=A(),oe=a({blockPrefix:`.n-`,elementPrefix:re,modifierPrefix:ie});ae.use(oe);var{c:se,find:ce}=ae,{cB:le,cE:ue,cM:de,cNotM:fe}=oe,pe=(...e)=>se(`>`,[le(...e)]);function me(e,t){return e+(t==="default"?``:t.replace(/^[a-z]/,e=>e.toUpperCase()))}var he={name:`en-US`,global:{undo:`Undo`,redo:`Redo`,confirm:`Confirm`,clear:`Clear`},Popconfirm:{positiveText:`Confirm`,negativeText:`Cancel`},Cascader:{placeholder:`Please Select`,loading:`Loading`,loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`},DatePicker:{yearFormat:`yyyy`,monthFormat:`MMM`,dayFormat:`eeeeee`,yearTypeFormat:`yyyy`,monthTypeFormat:`yyyy-MM`,dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`,quarterFormat:`yyyy-qqq`,weekFormat:`YYYY-w`,clear:`Clear`,now:`Now`,confirm:`Confirm`,selectTime:`Select Time`,selectDate:`Select Date`,datePlaceholder:`Select Date`,datetimePlaceholder:`Select Date and Time`,monthPlaceholder:`Select Month`,yearPlaceholder:`Select Year`,quarterPlaceholder:`Select Quarter`,weekPlaceholder:`Select Week`,startDatePlaceholder:`Start Date`,endDatePlaceholder:`End Date`,startDatetimePlaceholder:`Start Date and Time`,endDatetimePlaceholder:`End Date and Time`,startMonthPlaceholder:`Start Month`,endMonthPlaceholder:`End Month`,monthBeforeYear:!0,firstDayOfWeek:6,today:`Today`},DataTable:{checkTableAll:`Select all in the table`,uncheckTableAll:`Unselect all in the table`,confirm:`Confirm`,clear:`Clear`},LegacyTransfer:{sourceTitle:`Source`,targetTitle:`Target`},Transfer:{selectAll:`Select all`,unselectAll:`Unselect all`,clearAll:`Clear`,total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:`No Data`},Select:{placeholder:`Please Select`},TimePicker:{placeholder:`Select Time`,positiveText:`OK`,negativeText:`Cancel`,now:`Now`,clear:`Clear`},Pagination:{goto:`Goto`,selectionSuffix:`page`},DynamicTags:{add:`Add`},Log:{loading:`Loading`},Input:{placeholder:`Please Input`},InputNumber:{placeholder:`Please Input`},DynamicInput:{create:`Create`},ThemeEditor:{title:`Theme Editor`,clearAllVars:`Clear All Variables`,clearSearch:`Clear Search`,filterCompName:`Filter Component Name`,filterVarName:`Filter Variable Name`,import:`Import`,export:`Export`,restore:`Reset to Default`},Image:{tipPrevious:`Previous picture (←)`,tipNext:`Next picture (→)`,tipCounterclockwise:`Counterclockwise`,tipClockwise:`Clockwise`,tipZoomOut:`Zoom out`,tipZoomIn:`Zoom in`,tipDownload:`Download`,tipClose:`Close (Esc)`,tipOriginalSize:`Zoom to original size`},Heatmap:{less:`less`,more:`more`,monthFormat:`MMM`,weekdayFormat:`eee`}};function ge(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function j(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}function M(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?ve(s,e=>e.test(o)):_e(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function _e(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function ve(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function ye(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var be=6048e5,xe=864e5,Se=6e4,Ce=36e5,we=1e3,Te=Symbol.for(`constructDateFrom`);function Ee(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Te in e?e[Te](t):e instanceof Date?new e.constructor(t):new Date(t)}function De(e,...t){let n=Ee.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}var Oe={};function ke(){return Oe}function Ae(e,t){return Ee(t||e,e)}function je(e,t){let n=ke(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Ae(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Me(e,t,n){let[r,i]=De(n?.in,e,t);return+je(r,n)==+je(i,n)}var Ne={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},Pe=(e,t,n)=>{let r,i=Ne[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r},Fe={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},Ie=(e,t,n,r)=>Fe[e],Le={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:j({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:j({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:j({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:j({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:j({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})},Re={ordinalNumber:ye({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:M({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:M({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:M({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:M({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:M({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},ze={code:`en-US`,formatDistance:Pe,formatLong:{date:ge({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:ge({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:ge({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:Ie,localize:Le,match:Re,options:{weekStartsOn:0,firstWeekContainsDate:1}},Be={name:`en-US`,locale:ze},Ve=typeof global==`object`&&global&&global.Object===Object&&global,He=typeof self==`object`&&self&&self.Object===Object&&self,N=Ve||He||Function(`return this`)(),Ue=N.Symbol,We=Object.prototype,Ge=We.hasOwnProperty,Ke=We.toString,qe=Ue?Ue.toStringTag:void 0;function Je(e){var t=Ge.call(e,qe),n=e[qe];try{e[qe]=void 0;var r=!0}catch{}var i=Ke.call(e);return r&&(t?e[qe]=n:delete e[qe]),i}var Ye=Object.prototype.toString;function Xe(e){return Ye.call(e)}var Ze=`[object Null]`,Qe=`[object Undefined]`,$e=Ue?Ue.toStringTag:void 0;function et(e){return e==null?e===void 0?Qe:Ze:$e&&$e in Object(e)?Je(e):Xe(e)}function P(e){return typeof e==`object`&&!!e}var tt=Array.isArray;function F(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function nt(e){return e}var rt=`[object AsyncFunction]`,it=`[object Function]`,at=`[object GeneratorFunction]`,ot=`[object Proxy]`;function st(e){if(!F(e))return!1;var t=et(e);return t==it||t==at||t==rt||t==ot}var ct=N[`__core-js_shared__`],lt=function(){var e=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function ut(e){return!!lt&&lt in e}var dt=Function.prototype.toString;function ft(e){if(e!=null){try{return dt.call(e)}catch{}try{return e+``}catch{}}return``}var pt=/[\\^$.*+?()[\]{}|]/g,mt=/^\[object .+?Constructor\]$/,ht=Function.prototype,gt=Object.prototype,_t=ht.toString,vt=gt.hasOwnProperty,yt=RegExp(`^`+_t.call(vt).replace(pt,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function bt(e){return!F(e)||ut(e)?!1:(st(e)?yt:mt).test(ft(e))}function xt(e,t){return e?.[t]}function St(e,t){var n=xt(e,t);return bt(n)?n:void 0}var Ct=Object.create,wt=function(){function e(){}return function(t){if(!F(t))return{};if(Ct)return Ct(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Tt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Et(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var Dt=800,Ot=16,kt=Date.now;function At(e){var t=0,n=0;return function(){var r=kt(),i=Ot-(r-n);if(n=r,i>0){if(++t>=Dt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function jt(e){return function(){return e}}var Mt=function(){try{var e=St(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),Nt=At(Mt?function(e,t){return Mt(e,`toString`,{configurable:!0,enumerable:!1,value:jt(t),writable:!0})}:nt),Pt=9007199254740991,Ft=/^(?:0|[1-9]\d*)$/;function It(e,t){var n=typeof e;return t??=Pt,!!t&&(n==`number`||n!=`symbol`&&Ft.test(e))&&e>-1&&e%1==0&&e<t}function Lt(e,t,n){t==`__proto__`&&Mt?Mt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Rt(e,t){return e===t||e!==e&&t!==t}var zt=Object.prototype.hasOwnProperty;function Bt(e,t,n){var r=e[t];(!(zt.call(e,t)&&Rt(r,n))||n===void 0&&!(t in e))&&Lt(e,t,n)}function Vt(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],c=r?r(n[s],e[s],s,n,e):void 0;c===void 0&&(c=e[s]),i?Lt(n,s,c):Bt(n,s,c)}return n}var Ht=Math.max;function Ut(e,t,n){return t=Ht(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Ht(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Tt(e,this,s)}}function Wt(e,t){return Nt(Ut(e,t,nt),e+``)}var Gt=9007199254740991;function Kt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=Gt}function qt(e){return e!=null&&Kt(e.length)&&!st(e)}function Jt(e,t,n){if(!F(n))return!1;var r=typeof t;return(r==`number`?qt(n)&&It(t,n.length):r==`string`&&t in n)?Rt(n[t],e):!1}function Yt(e){return Wt(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Jt(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var Xt=Object.prototype;function Zt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Xt)}function Qt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var $t=`[object Arguments]`;function en(e){return P(e)&&et(e)==$t}var tn=Object.prototype,nn=tn.hasOwnProperty,rn=tn.propertyIsEnumerable,an=en(function(){return arguments}())?en:function(e){return P(e)&&nn.call(e,`callee`)&&!rn.call(e,`callee`)};function on(){return!1}var sn=typeof exports==`object`&&exports&&!exports.nodeType&&exports,cn=sn&&typeof module==`object`&&module&&!module.nodeType&&module,ln=cn&&cn.exports===sn?N.Buffer:void 0,un=(ln?ln.isBuffer:void 0)||on,dn=`[object Arguments]`,fn=`[object Array]`,pn=`[object Boolean]`,mn=`[object Date]`,hn=`[object Error]`,gn=`[object Function]`,_n=`[object Map]`,vn=`[object Number]`,yn=`[object Object]`,bn=`[object RegExp]`,xn=`[object Set]`,Sn=`[object String]`,Cn=`[object WeakMap]`,wn=`[object ArrayBuffer]`,Tn=`[object DataView]`,En=`[object Float32Array]`,Dn=`[object Float64Array]`,On=`[object Int8Array]`,kn=`[object Int16Array]`,An=`[object Int32Array]`,jn=`[object Uint8Array]`,Mn=`[object Uint8ClampedArray]`,Nn=`[object Uint16Array]`,Pn=`[object Uint32Array]`,I={};I[En]=I[Dn]=I[On]=I[kn]=I[An]=I[jn]=I[Mn]=I[Nn]=I[Pn]=!0,I[dn]=I[fn]=I[wn]=I[pn]=I[Tn]=I[mn]=I[hn]=I[gn]=I[_n]=I[vn]=I[yn]=I[bn]=I[xn]=I[Sn]=I[Cn]=!1;function Fn(e){return P(e)&&Kt(e.length)&&!!I[et(e)]}function In(e){return function(t){return e(t)}}var Ln=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Rn=Ln&&typeof module==`object`&&module&&!module.nodeType&&module,zn=Rn&&Rn.exports===Ln&&Ve.process,Bn=function(){try{return Rn&&Rn.require&&Rn.require(`util`).types||zn&&zn.binding&&zn.binding(`util`)}catch{}}(),Vn=Bn&&Bn.isTypedArray,Hn=Vn?In(Vn):Fn,Un=Object.prototype.hasOwnProperty;function Wn(e,t){var n=tt(e),r=!n&&an(e),i=!n&&!r&&un(e),a=!n&&!r&&!i&&Hn(e),o=n||r||i||a,s=o?Qt(e.length,String):[],c=s.length;for(var l in e)(t||Un.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||It(l,c)))&&s.push(l);return s}function Gn(e,t){return function(n){return e(t(n))}}function Kn(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var qn=Object.prototype.hasOwnProperty;function Jn(e){if(!F(e))return Kn(e);var t=Zt(e),n=[];for(var r in e)(r!=`constructor`||!t&&qn.call(e,r))&&n.push(r);return n}function Yn(e){return qt(e)?Wn(e,!0):Jn(e)}var Xn=St(Object,`create`);function Zn(){this.__data__=Xn?Xn(null):{},this.size=0}function Qn(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var $n=`__lodash_hash_undefined__`,er=Object.prototype.hasOwnProperty;function tr(e){var t=this.__data__;if(Xn){var n=t[e];return n===$n?void 0:n}return er.call(t,e)?t[e]:void 0}var nr=Object.prototype.hasOwnProperty;function rr(e){var t=this.__data__;return Xn?t[e]!==void 0:nr.call(t,e)}var ir=`__lodash_hash_undefined__`;function ar(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=Xn&&t===void 0?ir:t,this}function L(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}L.prototype.clear=Zn,L.prototype.delete=Qn,L.prototype.get=tr,L.prototype.has=rr,L.prototype.set=ar;function or(){this.__data__=[],this.size=0}function sr(e,t){for(var n=e.length;n--;)if(Rt(e[n][0],t))return n;return-1}var cr=Array.prototype.splice;function lr(e){var t=this.__data__,n=sr(t,e);return n<0?!1:(n==t.length-1?t.pop():cr.call(t,n,1),--this.size,!0)}function ur(e){var t=this.__data__,n=sr(t,e);return n<0?void 0:t[n][1]}function dr(e){return sr(this.__data__,e)>-1}function fr(e,t){var n=this.__data__,r=sr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function R(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}R.prototype.clear=or,R.prototype.delete=lr,R.prototype.get=ur,R.prototype.has=dr,R.prototype.set=fr;var pr=St(N,`Map`);function mr(){this.size=0,this.__data__={hash:new L,map:new(pr||R),string:new L}}function hr(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function gr(e,t){var n=e.__data__;return hr(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function _r(e){var t=gr(this,e).delete(e);return this.size-=+!!t,t}function vr(e){return gr(this,e).get(e)}function yr(e){return gr(this,e).has(e)}function br(e,t){var n=gr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function z(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}z.prototype.clear=mr,z.prototype.delete=_r,z.prototype.get=vr,z.prototype.has=yr,z.prototype.set=br;var xr=Gn(Object.getPrototypeOf,Object),Sr=`[object Object]`,Cr=Function.prototype,wr=Object.prototype,Tr=Cr.toString,Er=wr.hasOwnProperty,Dr=Tr.call(Object);function Or(e){if(!P(e)||et(e)!=Sr)return!1;var t=xr(e);if(t===null)return!0;var n=Er.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Tr.call(n)==Dr}function kr(){this.__data__=new R,this.size=0}function Ar(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function jr(e){return this.__data__.get(e)}function Mr(e){return this.__data__.has(e)}var Nr=200;function Pr(e,t){var n=this.__data__;if(n instanceof R){var r=n.__data__;if(!pr||r.length<Nr-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new z(r)}return n.set(e,t),this.size=n.size,this}function B(e){var t=this.__data__=new R(e);this.size=t.size}B.prototype.clear=kr,B.prototype.delete=Ar,B.prototype.get=jr,B.prototype.has=Mr,B.prototype.set=Pr;var Fr=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Ir=Fr&&typeof module==`object`&&module&&!module.nodeType&&module,Lr=Ir&&Ir.exports===Fr?N.Buffer:void 0,Rr=Lr?Lr.allocUnsafe:void 0;function zr(e,t){if(t)return e.slice();var n=e.length,r=Rr?Rr(n):new e.constructor(n);return e.copy(r),r}var Br=N.Uint8Array;function Vr(e){var t=new e.constructor(e.byteLength);return new Br(t).set(new Br(e)),t}function Hr(e,t){var n=t?Vr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ur(e){return typeof e.constructor==`function`&&!Zt(e)?wt(xr(e)):{}}function Wr(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}var Gr=Wr();function Kr(e,t,n){(n!==void 0&&!Rt(e[t],n)||n===void 0&&!(t in e))&&Lt(e,t,n)}function qr(e){return P(e)&&qt(e)}function Jr(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}function Yr(e){return Vt(e,Yn(e))}function Xr(e,t,n,r,i,a,o){var s=Jr(e,n),c=Jr(t,n),l=o.get(c);if(l)Kr(e,n,l);else{var u=a?a(s,c,n+``,e,t,o):void 0,d=u===void 0;if(d){var f=tt(c),p=!f&&un(c),m=!f&&!p&&Hn(c);u=c,f||p||m?tt(s)?u=s:qr(s)?u=Et(s):p?(d=!1,u=zr(c,!0)):m?(d=!1,u=Hr(c,!0)):u=[]:Or(c)||an(c)?(u=s,an(s)?u=Yr(s):(!F(s)||st(s))&&(u=Ur(c))):d=!1}d&&(o.set(c,u),i(u,c,r,a,o),o.delete(c)),Kr(e,n,u)}}function Zr(e,t,n,r,i){e!==t&&Gr(t,function(a,o){if(i||=new B,F(a))Xr(e,t,o,n,Zr,r,i);else{var s=r?r(Jr(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),Kr(e,o,s)}},Yn)}var Qr=Yt(function(e,t,n){Zr(e,t,n)});function $r(e,t){console.error(`[naive/${e}]: ${t}`)}function ei(e,t){throw Error(`[naive/${e}]: ${t}`)}function ti(e){return e}var ni=ti(`n-config-provider`),ri=`naive-ui-style`,ii={fontFamily:`v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"`,fontFamilyMono:`v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace`,fontWeight:`400`,fontWeightStrong:`500`,cubicBezierEaseInOut:`cubic-bezier(.4, 0, .2, 1)`,cubicBezierEaseOut:`cubic-bezier(0, 0, .2, 1)`,cubicBezierEaseIn:`cubic-bezier(.4, 0, 1, 1)`,borderRadius:`3px`,borderRadiusSmall:`2px`,fontSize:`14px`,fontSizeMini:`12px`,fontSizeTiny:`12px`,fontSizeSmall:`14px`,fontSizeMedium:`14px`,fontSizeLarge:`15px`,fontSizeHuge:`16px`,lineHeight:`1.6`,heightMini:`16px`,heightTiny:`22px`,heightSmall:`28px`,heightMedium:`34px`,heightLarge:`40px`,heightHuge:`46px`},{fontSize:ai,fontFamily:oi,lineHeight:si}=ii,ci=se(`body`,`
11
+ margin: 0;
12
+ font-size: ${ai};
13
+ font-family: ${oi};
14
+ line-height: ${si};
15
+ -webkit-text-size-adjust: 100%;
16
+ -webkit-tap-highlight-color: transparent;
17
+ `,[se(`input`,`
18
+ font-family: inherit;
19
+ font-size: inherit;
20
+ `)]),li=`@css-render/vue3-ssr`;function ui(e,t){return`<style cssr-id="${e}">\n${t}\n</style>`}function di(e,t,n){let{styles:r,ids:i}=n;i.has(e)||r!==null&&(i.add(e),r.push(ui(e,t)))}var fi=typeof document<`u`;function pi(){if(fi)return;let t=e(li,null);if(t!==null)return{adapter:(e,n)=>di(e,n,t),context:t}}var mi={aliceblue:`#F0F8FF`,antiquewhite:`#FAEBD7`,aqua:`#0FF`,aquamarine:`#7FFFD4`,azure:`#F0FFFF`,beige:`#F5F5DC`,bisque:`#FFE4C4`,black:`#000`,blanchedalmond:`#FFEBCD`,blue:`#00F`,blueviolet:`#8A2BE2`,brown:`#A52A2A`,burlywood:`#DEB887`,cadetblue:`#5F9EA0`,chartreuse:`#7FFF00`,chocolate:`#D2691E`,coral:`#FF7F50`,cornflowerblue:`#6495ED`,cornsilk:`#FFF8DC`,crimson:`#DC143C`,cyan:`#0FF`,darkblue:`#00008B`,darkcyan:`#008B8B`,darkgoldenrod:`#B8860B`,darkgray:`#A9A9A9`,darkgrey:`#A9A9A9`,darkgreen:`#006400`,darkkhaki:`#BDB76B`,darkmagenta:`#8B008B`,darkolivegreen:`#556B2F`,darkorange:`#FF8C00`,darkorchid:`#9932CC`,darkred:`#8B0000`,darksalmon:`#E9967A`,darkseagreen:`#8FBC8F`,darkslateblue:`#483D8B`,darkslategray:`#2F4F4F`,darkslategrey:`#2F4F4F`,darkturquoise:`#00CED1`,darkviolet:`#9400D3`,deeppink:`#FF1493`,deepskyblue:`#00BFFF`,dimgray:`#696969`,dimgrey:`#696969`,dodgerblue:`#1E90FF`,firebrick:`#B22222`,floralwhite:`#FFFAF0`,forestgreen:`#228B22`,fuchsia:`#F0F`,gainsboro:`#DCDCDC`,ghostwhite:`#F8F8FF`,gold:`#FFD700`,goldenrod:`#DAA520`,gray:`#808080`,grey:`#808080`,green:`#008000`,greenyellow:`#ADFF2F`,honeydew:`#F0FFF0`,hotpink:`#FF69B4`,indianred:`#CD5C5C`,indigo:`#4B0082`,ivory:`#FFFFF0`,khaki:`#F0E68C`,lavender:`#E6E6FA`,lavenderblush:`#FFF0F5`,lawngreen:`#7CFC00`,lemonchiffon:`#FFFACD`,lightblue:`#ADD8E6`,lightcoral:`#F08080`,lightcyan:`#E0FFFF`,lightgoldenrodyellow:`#FAFAD2`,lightgray:`#D3D3D3`,lightgrey:`#D3D3D3`,lightgreen:`#90EE90`,lightpink:`#FFB6C1`,lightsalmon:`#FFA07A`,lightseagreen:`#20B2AA`,lightskyblue:`#87CEFA`,lightslategray:`#778899`,lightslategrey:`#778899`,lightsteelblue:`#B0C4DE`,lightyellow:`#FFFFE0`,lime:`#0F0`,limegreen:`#32CD32`,linen:`#FAF0E6`,magenta:`#F0F`,maroon:`#800000`,mediumaquamarine:`#66CDAA`,mediumblue:`#0000CD`,mediumorchid:`#BA55D3`,mediumpurple:`#9370DB`,mediumseagreen:`#3CB371`,mediumslateblue:`#7B68EE`,mediumspringgreen:`#00FA9A`,mediumturquoise:`#48D1CC`,mediumvioletred:`#C71585`,midnightblue:`#191970`,mintcream:`#F5FFFA`,mistyrose:`#FFE4E1`,moccasin:`#FFE4B5`,navajowhite:`#FFDEAD`,navy:`#000080`,oldlace:`#FDF5E6`,olive:`#808000`,olivedrab:`#6B8E23`,orange:`#FFA500`,orangered:`#FF4500`,orchid:`#DA70D6`,palegoldenrod:`#EEE8AA`,palegreen:`#98FB98`,paleturquoise:`#AFEEEE`,palevioletred:`#DB7093`,papayawhip:`#FFEFD5`,peachpuff:`#FFDAB9`,peru:`#CD853F`,pink:`#FFC0CB`,plum:`#DDA0DD`,powderblue:`#B0E0E6`,purple:`#800080`,rebeccapurple:`#663399`,red:`#F00`,rosybrown:`#BC8F8F`,royalblue:`#4169E1`,saddlebrown:`#8B4513`,salmon:`#FA8072`,sandybrown:`#F4A460`,seagreen:`#2E8B57`,seashell:`#FFF5EE`,sienna:`#A0522D`,silver:`#C0C0C0`,skyblue:`#87CEEB`,slateblue:`#6A5ACD`,slategray:`#708090`,slategrey:`#708090`,snow:`#FFFAFA`,springgreen:`#00FF7F`,steelblue:`#4682B4`,tan:`#D2B48C`,teal:`#008080`,thistle:`#D8BFD8`,tomato:`#FF6347`,turquoise:`#40E0D0`,violet:`#EE82EE`,wheat:`#F5DEB3`,white:`#FFF`,whitesmoke:`#F5F5F5`,yellow:`#FF0`,yellowgreen:`#9ACD32`,transparent:`#0000`};function hi(e,t,n){t/=100,n/=100;let r=(r,i=(r+e/60)%6)=>n-n*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function gi(e,t,n){t/=100,n/=100;let r=t*Math.min(n,1-n),i=(t,i=(t+e/30)%12)=>n-r*Math.max(Math.min(i-3,9-i,1),-1);return[i(0)*255,i(8)*255,i(4)*255]}var V=`^\\s*`,H=`\\s*$`,U=`\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*`,W=`\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*`,G=`([0-9A-Fa-f])`,K=`([0-9A-Fa-f]{2})`,_i=RegExp(`${V}hsl\\s*\\(${W},${U},${U}\\)${H}`),vi=RegExp(`${V}hsv\\s*\\(${W},${U},${U}\\)${H}`),yi=RegExp(`${V}hsla\\s*\\(${W},${U},${U},${W}\\)${H}`),bi=RegExp(`${V}hsva\\s*\\(${W},${U},${U},${W}\\)${H}`),xi=RegExp(`${V}rgb\\s*\\(${W},${W},${W}\\)${H}`),Si=RegExp(`${V}rgba\\s*\\(${W},${W},${W},${W}\\)${H}`),Ci=RegExp(`${V}#${G}${G}${G}${H}`),wi=RegExp(`${V}#${K}${K}${K}${H}`),Ti=RegExp(`${V}#${G}${G}${G}${G}${H}`),Ei=RegExp(`${V}#${K}${K}${K}${K}${H}`);function q(e){return parseInt(e,16)}function Di(e){try{let t;if(t=yi.exec(e))return[Fi(t[1]),Z(t[5]),Z(t[9]),Y(t[13])];if(t=_i.exec(e))return[Fi(t[1]),Z(t[5]),Z(t[9]),1];throw Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(e){throw e}}function Oi(e){try{let t;if(t=bi.exec(e))return[Fi(t[1]),Z(t[5]),Z(t[9]),Y(t[13])];if(t=vi.exec(e))return[Fi(t[1]),Z(t[5]),Z(t[9]),1];throw Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(e){throw e}}function J(e){try{let t;if(t=wi.exec(e))return[q(t[1]),q(t[2]),q(t[3]),1];if(t=xi.exec(e))return[X(t[1]),X(t[5]),X(t[9]),1];if(t=Si.exec(e))return[X(t[1]),X(t[5]),X(t[9]),Y(t[13])];if(t=Ci.exec(e))return[q(t[1]+t[1]),q(t[2]+t[2]),q(t[3]+t[3]),1];if(t=Ei.exec(e))return[q(t[1]),q(t[2]),q(t[3]),Y(q(t[4])/255)];if(t=Ti.exec(e))return[q(t[1]+t[1]),q(t[2]+t[2]),q(t[3]+t[3]),Y(q(t[4]+t[4])/255)];if(e in mi)return J(mi[e]);if(_i.test(e)||yi.test(e)){let[t,n,r,i]=Di(e);return[...gi(t,n,r),i]}if(vi.test(e)||bi.test(e)){let[t,n,r,i]=Oi(e);return[...hi(t,n,r),i]}throw Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(e){throw e}}function ki(e){return e>1?1:e<0?0:e}function Ai(e,t,n,r){return`rgba(${X(e)}, ${X(t)}, ${X(n)}, ${ki(r)})`}function ji(e,t,n,r,i){return X((e*t*(1-r)+n*r)/i)}function Mi(e,t){Array.isArray(e)||(e=J(e)),Array.isArray(t)||(t=J(t));let n=e[3],r=t[3],i=Y(n+r-n*r);return Ai(ji(e[0],n,t[0],r,i),ji(e[1],n,t[1],r,i),ji(e[2],n,t[2],r,i),i)}function Ni(e,t){let[n,r,i,a=1]=Array.isArray(e)?e:J(e);return typeof t.alpha==`number`?Ai(n,r,i,t.alpha):Ai(n,r,i,a)}function Pi(e,t){let[n,r,i,a=1]=Array.isArray(e)?e:J(e),{lightness:o=1,alpha:s=1}=t;return Ii([n*o,r*o,i*o,a*s])}function Y(e){let t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Fi(e){let t=Math.round(Number(e));return t>=360||t<0?0:t}function X(e){let t=Math.round(Number(e));return t>255?255:t<0?0:t}function Z(e){let t=Math.round(Number(e));return t>100?100:t<0?0:t}function Ii(e){let[t,n,r]=e;return 3 in e?`rgba(${X(t)}, ${X(n)}, ${X(r)}, ${Y(e[3])})`:`rgba(${X(t)}, ${X(n)}, ${X(r)}, 1)`}var Q={neutralBase:`#FFF`,neutralInvertBase:`#000`,neutralTextBase:`#000`,neutralPopover:`#fff`,neutralCard:`#fff`,neutralModal:`#fff`,neutralBody:`#fff`,alpha1:`0.82`,alpha2:`0.72`,alpha3:`0.38`,alpha4:`0.24`,alpha5:`0.18`,alphaClose:`0.6`,alphaDisabled:`0.5`,alphaDisabledInput:`0.02`,alphaPending:`0.05`,alphaTablePending:`0.02`,alphaPressed:`0.07`,alphaAvatar:`0.2`,alphaRail:`0.14`,alphaProgressRail:`.08`,alphaBorder:`0.12`,alphaDivider:`0.06`,alphaInput:`0`,alphaAction:`0.02`,alphaTab:`0.04`,alphaScrollbar:`0.25`,alphaScrollbarHover:`0.4`,alphaCode:`0.05`,alphaTag:`0.02`,primaryHover:`#36ad6a`,primaryDefault:`#18a058`,primaryActive:`#0c7a43`,primarySuppl:`#36ad6a`,infoHover:`#4098fc`,infoDefault:`#2080f0`,infoActive:`#1060c9`,infoSuppl:`#4098fc`,errorHover:`#de576d`,errorDefault:`#d03050`,errorActive:`#ab1f3f`,errorSuppl:`#de576d`,warningHover:`#fcb040`,warningDefault:`#f0a020`,warningActive:`#c97c10`,warningSuppl:`#fcb040`,successHover:`#36ad6a`,successDefault:`#18a058`,successActive:`#0c7a43`,successSuppl:`#36ad6a`},Li=J(Q.neutralBase),Ri=J(Q.neutralInvertBase),zi=`rgba(${Ri.slice(0,3).join(`, `)}, `;function Bi(e){return`${zi+String(e)})`}function $(e){let t=Array.from(Ri);return t[3]=Number(e),Mi(Li,t)}var Vi={name:`common`,...ii,baseColor:Q.neutralBase,primaryColor:Q.primaryDefault,primaryColorHover:Q.primaryHover,primaryColorPressed:Q.primaryActive,primaryColorSuppl:Q.primarySuppl,infoColor:Q.infoDefault,infoColorHover:Q.infoHover,infoColorPressed:Q.infoActive,infoColorSuppl:Q.infoSuppl,successColor:Q.successDefault,successColorHover:Q.successHover,successColorPressed:Q.successActive,successColorSuppl:Q.successSuppl,warningColor:Q.warningDefault,warningColorHover:Q.warningHover,warningColorPressed:Q.warningActive,warningColorSuppl:Q.warningSuppl,errorColor:Q.errorDefault,errorColorHover:Q.errorHover,errorColorPressed:Q.errorActive,errorColorSuppl:Q.errorSuppl,textColorBase:Q.neutralTextBase,textColor1:`rgb(31, 34, 37)`,textColor2:`rgb(51, 54, 57)`,textColor3:`rgb(118, 124, 130)`,textColorDisabled:$(Q.alpha4),placeholderColor:$(Q.alpha4),placeholderColorDisabled:$(Q.alpha5),iconColor:$(Q.alpha4),iconColorHover:Pi($(Q.alpha4),{lightness:.75}),iconColorPressed:Pi($(Q.alpha4),{lightness:.9}),iconColorDisabled:$(Q.alpha5),opacity1:Q.alpha1,opacity2:Q.alpha2,opacity3:Q.alpha3,opacity4:Q.alpha4,opacity5:Q.alpha5,dividerColor:`rgb(239, 239, 245)`,borderColor:`rgb(224, 224, 230)`,closeIconColor:$(Number(Q.alphaClose)),closeIconColorHover:$(Number(Q.alphaClose)),closeIconColorPressed:$(Number(Q.alphaClose)),closeColorHover:`rgba(0, 0, 0, .09)`,closeColorPressed:`rgba(0, 0, 0, .13)`,clearColor:$(Q.alpha4),clearColorHover:Pi($(Q.alpha4),{lightness:.75}),clearColorPressed:Pi($(Q.alpha4),{lightness:.9}),scrollbarColor:Bi(Q.alphaScrollbar),scrollbarColorHover:Bi(Q.alphaScrollbarHover),scrollbarWidth:`5px`,scrollbarHeight:`5px`,scrollbarBorderRadius:`5px`,progressRailColor:$(Q.alphaProgressRail),railColor:`rgb(219, 219, 223)`,popoverColor:Q.neutralPopover,tableColor:Q.neutralCard,cardColor:Q.neutralCard,modalColor:Q.neutralModal,bodyColor:Q.neutralBody,tagColor:`#eee`,avatarColor:$(Q.alphaAvatar),invertedColor:`rgb(0, 20, 40)`,inputColor:$(Q.alphaInput),codeColor:`rgb(244, 244, 248)`,tabColor:`rgb(247, 247, 250)`,actionColor:`rgb(250, 250, 252)`,tableHeaderColor:`rgb(250, 250, 252)`,hoverColor:`rgb(243, 243, 245)`,tableColorHover:`rgba(0, 0, 100, 0.03)`,tableColorStriped:`rgba(0, 0, 100, 0.02)`,pressedColor:`rgb(237, 237, 239)`,opacityDisabled:Q.alphaDisabled,inputColorDisabled:`rgb(250, 250, 252)`,buttonColor2:`rgba(46, 51, 56, .05)`,buttonColor2Hover:`rgba(46, 51, 56, .09)`,buttonColor2Pressed:`rgba(46, 51, 56, .13)`,boxShadow1:`0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)`,boxShadow2:`0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)`,boxShadow3:`0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)`},Hi={railInsetHorizontalBottom:`auto 2px 4px 2px`,railInsetHorizontalTop:`4px 2px auto 2px`,railInsetVerticalRight:`2px 4px 2px auto`,railInsetVerticalLeft:`2px auto 2px 4px`,railColor:`transparent`};function Ui(e){let{scrollbarColor:t,scrollbarColorHover:n,scrollbarHeight:r,scrollbarWidth:i,scrollbarBorderRadius:a}=e;return{...Hi,height:r,width:i,borderRadius:a,color:t,colorHover:n}}var Wi={name:`Scrollbar`,common:Vi,self:Ui};function Gi(e){return e}function Ki(n,i,a,o,s,c){let l=pi(),u=e(ni,null);if(a){let e=()=>{let e=c?.value;a.mount({id:e===void 0?i:e+i,head:!0,props:{bPrefix:e?`.${e}-`:void 0},anchorMetaName:ri,ssr:l,parent:u?.styleMountTarget}),u?.preflightStyleDisabled||ci.mount({id:`n-global`,head:!0,anchorMetaName:ri,ssr:l,parent:u?.styleMountTarget})};l?e():t(e)}return r(()=>{let{theme:{common:e,self:t,peers:r={}}={},themeOverrides:i={},builtinThemeOverrides:a={}}=s,{common:c,peers:l}=i,{common:d=void 0,[n]:{common:f=void 0,self:p=void 0,peers:m={}}={}}=u?.mergedThemeRef.value||{},{common:h=void 0,[n]:g={}}=u?.mergedThemeOverridesRef.value||{},{common:_,peers:v={}}=g,y=Qr({},e||f||d||o.common,h,_,c);return{common:y,self:Qr((t||p||o.self)?.(y),a,g,i),peers:Qr({},o.peers,m,r),peerOverrides:Qr({},a.peers,v,l)}})}Ki.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};function qi(e){let t=r(e),a=i(t.value);return n(t,e=>{a.value=e}),typeof e==`function`?a:{__v_isRef:!0,get value(){return a.value},set value(t){e.set(t)}}}var Ji={paddingTiny:`0 8px`,paddingSmall:`0 10px`,paddingMedium:`0 12px`,paddingLarge:`0 14px`,clearSize:`16px`};function Yi(e){let{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:i,primaryColorHover:a,inputColor:o,inputColorDisabled:s,borderColor:c,warningColor:l,warningColorHover:u,errorColor:d,errorColorHover:f,borderRadius:p,lineHeight:m,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:_,fontSizeLarge:v,heightTiny:y,heightSmall:b,heightMedium:x,heightLarge:S,actionColor:ee,clearColor:C,clearColorHover:w,clearColorPressed:T,placeholderColor:E,placeholderColorDisabled:D,iconColor:O,iconColorDisabled:te,iconColorHover:k,iconColorPressed:ne,fontWeight:A}=e;return{...Ji,fontWeight:A,countTextColorDisabled:r,countTextColor:n,heightTiny:y,heightSmall:b,heightMedium:x,heightLarge:S,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:_,fontSizeLarge:v,lineHeight:m,lineHeightTextarea:m,borderRadius:p,iconSize:`16px`,groupLabelColor:ee,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:i,placeholderColor:E,placeholderColorDisabled:D,color:o,colorHover:o,colorDisabled:s,colorFocus:o,groupLabelBorder:`1px solid ${c}`,border:`1px solid ${c}`,borderHover:`1px solid ${a}`,borderDisabled:`1px solid ${c}`,borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 0 2px ${Ni(i,{alpha:.2})}`,loadingColor:i,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:o,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${Ni(l,{alpha:.2})}`,caretColorWarning:l,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,colorFocusError:o,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${Ni(d,{alpha:.2})}`,caretColorError:d,clearColor:C,clearColorHover:w,clearColorPressed:T,iconColor:O,iconColorDisabled:te,iconColorHover:k,iconColorPressed:ne,suffixTextColor:t}}var Xi=Gi({name:`Input`,common:Vi,peers:{Scrollbar:Wi},self:Yi}),Zi={paddingTiny:`0 6px`,paddingSmall:`0 10px`,paddingMedium:`0 14px`,paddingLarge:`0 18px`,paddingRoundTiny:`0 10px`,paddingRoundSmall:`0 14px`,paddingRoundMedium:`0 18px`,paddingRoundLarge:`0 22px`,iconMarginTiny:`6px`,iconMarginSmall:`6px`,iconMarginMedium:`6px`,iconMarginLarge:`6px`,iconSizeTiny:`14px`,iconSizeSmall:`18px`,iconSizeMedium:`18px`,iconSizeLarge:`20px`,rippleDuration:`.6s`};function Qi(e){let{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:i,borderRadius:a,fontSizeTiny:o,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:l,opacityDisabled:u,textColor2:d,textColor3:f,primaryColorHover:p,primaryColorPressed:m,borderColor:h,primaryColor:g,baseColor:_,infoColor:v,infoColorHover:y,infoColorPressed:b,successColor:x,successColorHover:S,successColorPressed:ee,warningColor:C,warningColorHover:w,warningColorPressed:T,errorColor:E,errorColorHover:D,errorColorPressed:O,fontWeight:te,buttonColor2:k,buttonColor2Hover:ne,buttonColor2Pressed:A,fontWeightStrong:re}=e;return{...Zi,heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:i,borderRadiusTiny:a,borderRadiusSmall:a,borderRadiusMedium:a,borderRadiusLarge:a,fontSizeTiny:o,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:l,opacityDisabled:u,colorOpacitySecondary:`0.16`,colorOpacitySecondaryHover:`0.22`,colorOpacitySecondaryPressed:`0.28`,colorSecondary:k,colorSecondaryHover:ne,colorSecondaryPressed:A,colorTertiary:k,colorTertiaryHover:ne,colorTertiaryPressed:A,colorQuaternary:`#0000`,colorQuaternaryHover:ne,colorQuaternaryPressed:A,color:`#0000`,colorHover:`#0000`,colorPressed:`#0000`,colorFocus:`#0000`,colorDisabled:`#0000`,textColor:d,textColorTertiary:f,textColorHover:p,textColorPressed:m,textColorFocus:p,textColorDisabled:d,textColorText:d,textColorTextHover:p,textColorTextPressed:m,textColorTextFocus:p,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:p,textColorGhostPressed:m,textColorGhostFocus:p,textColorGhostDisabled:d,border:`1px solid ${h}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${m}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${h}`,rippleColor:g,colorPrimary:g,colorHoverPrimary:p,colorPressedPrimary:m,colorFocusPrimary:p,colorDisabledPrimary:g,textColorPrimary:_,textColorHoverPrimary:_,textColorPressedPrimary:_,textColorFocusPrimary:_,textColorDisabledPrimary:_,textColorTextPrimary:g,textColorTextHoverPrimary:p,textColorTextPressedPrimary:m,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:d,textColorGhostPrimary:g,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:m,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:g,borderPrimary:`1px solid ${g}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${m}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${g}`,rippleColorPrimary:g,colorInfo:v,colorHoverInfo:y,colorPressedInfo:b,colorFocusInfo:y,colorDisabledInfo:v,textColorInfo:_,textColorHoverInfo:_,textColorPressedInfo:_,textColorFocusInfo:_,textColorDisabledInfo:_,textColorTextInfo:v,textColorTextHoverInfo:y,textColorTextPressedInfo:b,textColorTextFocusInfo:y,textColorTextDisabledInfo:d,textColorGhostInfo:v,textColorGhostHoverInfo:y,textColorGhostPressedInfo:b,textColorGhostFocusInfo:y,textColorGhostDisabledInfo:v,borderInfo:`1px solid ${v}`,borderHoverInfo:`1px solid ${y}`,borderPressedInfo:`1px solid ${b}`,borderFocusInfo:`1px solid ${y}`,borderDisabledInfo:`1px solid ${v}`,rippleColorInfo:v,colorSuccess:x,colorHoverSuccess:S,colorPressedSuccess:ee,colorFocusSuccess:S,colorDisabledSuccess:x,textColorSuccess:_,textColorHoverSuccess:_,textColorPressedSuccess:_,textColorFocusSuccess:_,textColorDisabledSuccess:_,textColorTextSuccess:x,textColorTextHoverSuccess:S,textColorTextPressedSuccess:ee,textColorTextFocusSuccess:S,textColorTextDisabledSuccess:d,textColorGhostSuccess:x,textColorGhostHoverSuccess:S,textColorGhostPressedSuccess:ee,textColorGhostFocusSuccess:S,textColorGhostDisabledSuccess:x,borderSuccess:`1px solid ${x}`,borderHoverSuccess:`1px solid ${S}`,borderPressedSuccess:`1px solid ${ee}`,borderFocusSuccess:`1px solid ${S}`,borderDisabledSuccess:`1px solid ${x}`,rippleColorSuccess:x,colorWarning:C,colorHoverWarning:w,colorPressedWarning:T,colorFocusWarning:w,colorDisabledWarning:C,textColorWarning:_,textColorHoverWarning:_,textColorPressedWarning:_,textColorFocusWarning:_,textColorDisabledWarning:_,textColorTextWarning:C,textColorTextHoverWarning:w,textColorTextPressedWarning:T,textColorTextFocusWarning:w,textColorTextDisabledWarning:d,textColorGhostWarning:C,textColorGhostHoverWarning:w,textColorGhostPressedWarning:T,textColorGhostFocusWarning:w,textColorGhostDisabledWarning:C,borderWarning:`1px solid ${C}`,borderHoverWarning:`1px solid ${w}`,borderPressedWarning:`1px solid ${T}`,borderFocusWarning:`1px solid ${w}`,borderDisabledWarning:`1px solid ${C}`,rippleColorWarning:C,colorError:E,colorHoverError:D,colorPressedError:O,colorFocusError:D,colorDisabledError:E,textColorError:_,textColorHoverError:_,textColorPressedError:_,textColorFocusError:_,textColorDisabledError:_,textColorTextError:E,textColorTextHoverError:D,textColorTextPressedError:O,textColorTextFocusError:D,textColorTextDisabledError:d,textColorGhostError:E,textColorGhostHoverError:D,textColorGhostPressedError:O,textColorGhostFocusError:D,textColorGhostDisabledError:E,borderError:`1px solid ${E}`,borderHoverError:`1px solid ${D}`,borderPressedError:`1px solid ${O}`,borderFocusError:`1px solid ${D}`,borderDisabledError:`1px solid ${E}`,rippleColorError:E,waveOpacity:`0.6`,fontWeight:te,fontWeightStrong:re}}var $i={name:`Button`,common:Vi,self:Qi},ea={itemFontSize:`12px`,itemHeight:`36px`,itemWidth:`52px`,panelActionPadding:`8px 0`};function ta(e){let{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:i,dividerColor:a,opacityDisabled:o,boxShadow2:s,borderRadius:c,iconColor:l,iconColorDisabled:u}=e;return{...ea,panelColor:t,panelBoxShadow:s,panelDividerColor:a,itemTextColor:n,itemTextColorActive:r,itemColorHover:i,itemOpacityDisabled:o,itemBorderRadius:c,borderRadius:c,iconColor:l,iconColorDisabled:u}}var na=Gi({name:`TimePicker`,common:Vi,peers:{Scrollbar:Wi,Button:$i,Input:Xi},self:ta}),ra={itemSize:`24px`,itemCellWidth:`38px`,itemCellHeight:`32px`,scrollItemWidth:`80px`,scrollItemHeight:`40px`,panelExtraFooterPadding:`8px 12px`,panelActionPadding:`8px 12px`,calendarTitlePadding:`0`,calendarTitleHeight:`28px`,arrowSize:`14px`,panelHeaderPadding:`8px 12px`,calendarDaysHeight:`32px`,calendarTitleGridTempateColumns:`28px 28px 1fr 28px 28px`,calendarLeftPaddingDate:`6px 12px 4px 12px`,calendarLeftPaddingDatetime:`4px 12px`,calendarLeftPaddingDaterange:`6px 12px 4px 12px`,calendarLeftPaddingDatetimerange:`4px 12px`,calendarLeftPaddingMonth:`0`,calendarLeftPaddingYear:`0`,calendarLeftPaddingQuarter:`0`,calendarLeftPaddingMonthrange:`0`,calendarLeftPaddingQuarterrange:`0`,calendarLeftPaddingYearrange:`0`,calendarLeftPaddingWeek:`6px 12px 4px 12px`,calendarRightPaddingDate:`6px 12px 4px 12px`,calendarRightPaddingDatetime:`4px 12px`,calendarRightPaddingDaterange:`6px 12px 4px 12px`,calendarRightPaddingDatetimerange:`4px 12px`,calendarRightPaddingMonth:`0`,calendarRightPaddingYear:`0`,calendarRightPaddingQuarter:`0`,calendarRightPaddingMonthrange:`0`,calendarRightPaddingQuarterrange:`0`,calendarRightPaddingYearrange:`0`,calendarRightPaddingWeek:`0`};function ia(e){let{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:i,popoverColor:a,primaryColor:o,borderRadiusSmall:s,iconColor:c,iconColorDisabled:l,textColor1:u,dividerColor:d,boxShadow2:f,borderRadius:p,fontWeightStrong:m}=e;return{...ra,itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:i,itemTextColorActive:a,itemTextColorCurrent:o,itemColorIncluded:Ni(o,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:o,itemBorderRadius:s,panelColor:a,panelTextColor:r,arrowColor:c,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:d,calendarDaysDividerColor:d,calendarDividerColor:d,panelActionDividerColor:d,panelBoxShadow:f,panelBorderRadius:p,calendarTitleFontWeight:m,scrollItemBorderRadius:p,iconColor:c,iconColorDisabled:l}}var aa=Gi({name:`DatePicker`,common:Vi,peers:{Input:Xi,Button:$i,TimePicker:na,Scrollbar:Wi},self:ia});export{ze as $,B as A,Kt as B,ni as C,A as Ct,Qr as D,$r as E,Hn as F,nt as G,It as H,un as I,P as J,F as K,an as L,pr as M,Gn as N,Gr as O,Wn as P,Be as Q,Zt as R,ri as S,me as St,ei as T,p as Tt,St as U,Rt as V,ft as W,Ue as X,et as Y,N as Z,J as _,le as _t,$i as a,Ee as at,ci as b,de as bt,Ji as c,Se as ct,Ki as d,ye as dt,Me as et,Wi as f,M as ft,Mi as g,se as gt,Ni as h,he as ht,na as i,De as it,z as j,Br as k,qi as l,we as lt,Vi as m,ge as mt,ia as n,Ae as nt,Qi as o,xe as ot,Ui as p,j as pt,tt as q,ta as r,ke as rt,Xi as s,Ce as st,aa as t,je as tt,Gi as u,be as ut,Pi as v,pe as vt,ti as w,C as wt,ii as x,fe as xt,pi as y,ue as yt,qt as z};
@@ -0,0 +1,2 @@
1
+ import{Cn as e,Et as t,Gt as n,Jt as r,Kt as i,Rt as a,Sn as o,St as s,Tn as c,Tt as l,_n as u,an as d,bn as f,cn as p,dn as m,fn as h,ft as g,gn as _,hn as v,jt as y,kn as b,ln as ee,lt as te,mn as x,ot as ne,pn as S,st as C,un as w,vn as T,wn as E,wt as re,xn as D,yn as O,yt as ie}from"./_plugin-vue_export-helper-OBKhRxFI.js";var k=void 0,ae=typeof window<`u`&&window.trustedTypes;if(ae)try{k=ae.createPolicy(`vue`,{createHTML:e=>e})}catch{}var oe=k?e=>k.createHTML(e):e=>e,se=`http://www.w3.org/2000/svg`,ce=`http://www.w3.org/1998/Math/MathML`,A=typeof document<`u`?document:null,le=A&&A.createElement(`template`),ue={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?A.createElementNS(se,e):t===`mathml`?A.createElementNS(ce,e):n?A.createElement(e,{is:n}):A.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>A.createTextNode(e),createComment:e=>A.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>A.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{le.innerHTML=oe(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=le.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},j=`transition`,M=`animation`,N=Symbol(`_vtc`),de={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},fe=w({},C,de),pe=(e=>(e.displayName=`Transition`,e.props=fe,e))((e,{slots:n})=>t(ne,he(e),n)),P=(e,t=[])=>{x(e)?e.forEach(e=>e(...t)):e&&e(...t)},me=e=>e?x(e)?e.some(e=>e.length>1):e.length>1:!1;function he(e){let t={};for(let n in e)n in de||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=ge(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:b,onLeaveCancelled:ee,onBeforeAppear:te=_,onAppear:x=v,onAppearCancelled:ne=y}=t,S=(e,t,n,r)=>{e._enterCancelled=r,L(e,t?u:s),L(e,t?l:o),n&&n()},C=(e,t)=>{e._isLeaving=!1,L(e,d),L(e,p),L(e,f),t&&t()},T=e=>(t,n)=>{let i=e?x:v,o=()=>S(t,e,n);P(i,[t,o]),_e(()=>{L(t,e?c:a),I(t,e?u:s),me(i)||ye(t,r,h,o)})};return w(t,{onBeforeEnter(e){P(_,[e]),I(e,a),I(e,o)},onBeforeAppear(e){P(te,[e]),I(e,c),I(e,l)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>C(e,t);I(e,d),e._enterCancelled?(I(e,f),R(e)):(R(e),I(e,f)),_e(()=>{e._isLeaving&&(L(e,d),I(e,p),me(b)||ye(e,r,g,n))}),P(b,[e,n])},onEnterCancelled(e){S(e,!1,void 0,!0),P(y,[e])},onAppearCancelled(e){S(e,!0,void 0,!0),P(ne,[e])},onLeaveCancelled(e){C(e),P(ee,[e])}})}function ge(e){if(e==null)return null;if(u(e))return[F(e.enter),F(e.leave)];{let t=F(e);return[t,t]}}function F(e){return b(e)}function I(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[N]||(e[N]=new Set)).add(t)}function L(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[N];n&&(n.delete(t),n.size||(e[N]=void 0))}function _e(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var ve=0;function ye(e,t,n,r){let i=e._endId=++ve,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=be(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function be(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${j}Delay`),a=r(`${j}Duration`),o=xe(i,a),s=r(`${M}Delay`),c=r(`${M}Duration`),l=xe(s,c),u=null,d=0,f=0;t===j?o>0&&(u=j,d=o,f=a.length):t===M?l>0&&(u=M,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?j:M:null,f=u?u===j?a.length:c.length:0);let p=u===j&&/\b(?:transform|all)(?:,|$)/.test(r(`${j}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function xe(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Se(t)+Se(e[n])))}function Se(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function R(e){return(e?e.ownerDocument:document).body.offsetHeight}function Ce(e,t,n){let r=e[N];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var z=Symbol(`_vod`),B=Symbol(`_vsh`),we={name:`show`,beforeMount(e,{value:t},{transition:n}){e[z]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):V(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),V(e,!0),r.enter(e)):r.leave(e,()=>{V(e,!1)}):V(e,t))},beforeUnmount(e,{value:t}){V(e,t)}};function V(e,t){e.style.display=t?e[z]:`none`,e[B]=!t}var Te=Symbol(``),Ee=/(?:^|;)\s*display\s*:/;function De(e,t,n){let r=e.style,i=D(n),a=!1;if(n&&!i){if(t){if(D(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??U(r,t,``)}else for(let e in t)n[e]??U(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?U(r,i,``):Ae(e,i,!D(t)&&t?t[i]:void 0,o)||U(r,i,o)}}else if(i){if(t!==n){let e=r[Te];e&&(n+=`;`+e),r.cssText=n,a=Ee.test(n)}}else t&&e.removeAttribute(`style`);z in e&&((!i||t!==n)&&(e[z]=a?r.display:``),e[B]&&(r.display=`none`))}var H=/\s*!important$/;function U(e,t,n){if(x(n))n.forEach(n=>U(e,t,n));else if(n??=``,t.startsWith(`--`))H.test(n)?e.setProperty(t,n.replace(H,``),`important`):e.setProperty(t,n);else{let r=ke(e,t);H.test(n)?e.setProperty(m(r),n.replace(H,``),`important`):e[r]=n}}var Oe=[`Webkit`,`Moz`,`ms`],W={};function ke(e,t){let n=W[t];if(n)return n;let r=p(t);if(r!==`filter`&&r in e)return W[t]=r;r=ee(r);for(let n=0;n<Oe.length;n++){let i=Oe[n]+r;if(i in e)return W[t]=i}return t}function Ae(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&D(r)&&n===r}var je=`http://www.w3.org/1999/xlink`;function Me(e,t,n,r,i,a=f(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(je,t.slice(6,t.length)):e.setAttributeNS(je,t,n):n==null||a&&!h(n)?e.removeAttribute(t):e.setAttribute(t,a?``:o(n)?String(n):n)}function Ne(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?oe(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=h(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function G(e,t,n,r){e.addEventListener(t,n,r)}function Pe(e,t,n,r){e.removeEventListener(t,n,r)}var Fe=Symbol(`_vei`);function Ie(e,t,n,r,i=null){let a=e[Fe]||(e[Fe]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=ze(t);r?G(e,n,a[t]=Ue(r,i),s):o&&(Pe(e,n,o,s),a[t]=void 0)}}var Le=/(Once|Passive|Capture)$/,Re=/^on:?(?:Once|Passive|Capture)$/;function ze(e){let t,n;for(;(n=e.match(Le))&&!Re.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):m(e.slice(2)),t]}var Be=0,Ve=Promise.resolve(),He=()=>Be||=(Ve.then(()=>Be=0),Date.now());function Ue(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(x(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&g(e,t,5,a)}}else g(r,t,5,[e])};return n.value=e,n.attached=He(),n}var We=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ge=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Ce(e,r,o):t===`style`?De(e,n,r):T(t)?_(t)||Ie(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):Ke(e,t,r,o))?(Ne(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Me(e,t,r,o,a,t!==`value`)):e._isVueCE&&(qe(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!D(r)))?Ne(e,p(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Me(e,t,r,o))};function Ke(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&We(t)&&v(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return We(t)&&D(n)?!1:t in e}function qe(e,t){let n=e._def.props;if(!n)return!1;let r=p(t);return Array.isArray(n)?n.some(e=>p(e)===r):Object.keys(n).some(e=>p(e)===r)}var Je=new WeakMap,Ye=new WeakMap,K=Symbol(`_moveCb`),Xe=Symbol(`_enterCb`),q=new WeakMap,Ze=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:w({},fe,{tag:String,moveClass:String}),setup(e,{slots:t}){let o=re(),c=r(),u,f,p,m,h=()=>(m===void 0&&(m=u.length>0&&at(u[0].el,o.vnode.el,$e(e))),m);return a(()=>{if(q.delete(o),!h()){u=[],p=void 0;return}let t=$e(e);u.forEach(Qe);let n=p&&it(p,o.vnode.el);p=void 0,u.forEach(e=>et(e,n));let r=u.filter(tt);R(o.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;I(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[K]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[K]=null,L(n,t))};n.addEventListener(`transitionend`,i)}),u=[]}),()=>{let r=d(e),a=he(r),g=r.tag||te;if(u=[],m=void 0,f)for(let e=0;e<f.length;e++){let t=f[e];t.el&&t.el instanceof Element&&!t.el[B]&&(u.push(t),i(t,n(t,a,c,o)),Je.set(t,J(t.el)))}f=t.default?l(t.default()):[];for(let e=0;e<f.length;e++){let t=f[e];t.key!=null&&i(t,n(t,a,c,o))}return u.length&&(p=nt(o),q.set(o,h)),s(g,null,f)}}});function Qe(e){let t=e.el;t[K]&&t[K](),t[Xe]&&t[Xe]()}function $e(e){return e.moveClass||`${e.name||`v`}-move`}function et(e,t){Ye.set(e,J(e.el,t))}function tt(e){let t=Je.get(e),n=Ye.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function J(e,t){let n=e.getBoundingClientRect();return{left:n.left-(t?t.left:0),top:n.top-(t?t.top:0)}}function nt(e){let t;for(let n=e.parent;n;n=n.parent){let r=q.get(n);if(r){let i=rt(n.vnode.el,e.vnode.el);i&&(t||=[]).push(w(J(i),{item:i,willMove:r}))}}return t}function rt(e,t){let n=e.nodeType===1?e:e.parentNode;for(;t&&t.parentNode!==n;)t=t.parentNode;if(t&&t.nodeType===1)return t}function it(e,t){let n=e.find(e=>e.willMove()&&e.item.contains(t));return n&&J(n.item,n)}function at(e,t,n){let r=e.cloneNode(),i=e[N];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=be(r);return a.removeChild(r),o}var Y=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return x(t)?e=>S(t,e):t};function ot(e){e.target.composing=!0}function st(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var X=Symbol(`_assign`),Z=Symbol(`_initialValue`);function Q(e,t,n){return t&&(e=e.trim()),n&&(e=c(e)),e}var ct={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[Z]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[Z]=e.defaultValue.replace(/\r\n?/g,`
2
+ `))),e[X]=Y(i);let a=r||i.props&&i.props.type===`number`;G(e,t?`change`:`input`,t=>{t.target.composing||e[X](Q(e.value,n,a))}),(n||a)&&G(e,`change`,()=>{e.value=Q(e.value,n,a)}),t||(G(e,`compositionstart`,ot),G(e,`compositionend`,st),G(e,`change`,st))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[Z];delete e[Z],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[X](Q(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[X]=Y(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?c(e.value):e.value,l=t??``;if(s===l)return;let u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l)}},lt={deep:!0,created(e,t,n){e[X]=Y(n),G(e,`change`,()=>{let t=e._modelValue,n=$(e),r=e.checked,i=e[X];if(x(t)){let e=E(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(O(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(ht(e,r))})},mounted:ut,beforeUpdate(e,t,n){e[X]=Y(n),ut(e,t,n)}};function ut(t,{value:n,oldValue:r},i){t._modelValue=n;let a;if(x(n))a=E(n,i.props.value)>-1;else if(O(n))a=n.has(i.props.value);else{if(n===r)return;a=e(n,ht(t,!0))}t.checked!==a&&(t.checked=a)}var dt={created(t,{value:n},r){t.checked=e(n,r.props.value),t[X]=Y(r),G(t,`change`,()=>{t[X]($(t))})},beforeUpdate(t,{value:n,oldValue:r},i){t[X]=Y(i),n!==r&&(t.checked=e(n,i.props.value))}},ft={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,G(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?c($(e)):$(e)),r=e.multiple,i=r?O(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?x(i)?t.slice():t:i];try{e[X](i)}finally{y(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[X]=Y(r)},mounted(e,{value:t}){mt(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[X]=Y(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!pt(t,n[1],n[0]))&&mt(e,t)}};function pt(t,n,r){if(!r||x(t))return e(t,n);if(O(t)){if(t.size!==n.length)return!1;for(let e of n)if(!t.has(e))return!1;return!0}return!1}function mt(t,n){let r=t.multiple,i=x(n);if(!r||i||O(n)){for(let a=0,o=t.options.length;a<o;a++){let o=t.options[a],s=$(o);if(r){if(i){let e=typeof s;o.selected=e===`string`||e===`number`?n.some(e=>String(e)===String(s)):E(n,s)>-1}else o.selected=n.has(s)}else if(e($(o),n)){t.selectedIndex!==a&&(t.selectedIndex=a);return}}!r&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function $(e){return`_value`in e?e._value:e.value}function ht(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var gt=[`ctrl`,`shift`,`alt`,`meta`],_t={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>gt.some(n=>e[`${n}Key`]&&!t.includes(n))},vt=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=_t[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},yt=w({patchProp:Ge},ue),bt;function xt(){return bt||=ie(yt)}var St=((...e)=>{let t=xt().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=wt(e);if(!r)return;let i=t._component;!v(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Ct(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Ct(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function wt(e){return D(e)?document.querySelector(e):e}export{dt as a,we as c,lt as i,vt as l,Ze as n,ft as o,St as r,ct as s,pe as t};
@@ -0,0 +1,13 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36" fill="none">
2
+ <defs>
3
+ <linearGradient id="a" x1="4" y1="4" x2="32" y2="32" gradientUnits="userSpaceOnUse">
4
+ <stop offset="0" stop-color="#F5A524"/>
5
+ <stop offset="1" stop-color="#FFC24D"/>
6
+ </linearGradient>
7
+ </defs>
8
+ <rect x="1.5" y="1.5" width="33" height="33" rx="9" stroke="url(#a)" stroke-width="2"/>
9
+ <path d="M9 12.5h9" stroke="url(#a)" stroke-width="2.6" stroke-linecap="round"/>
10
+ <path d="M13 18h13" stroke="#38D1E6" stroke-width="2.6" stroke-linecap="round" opacity="0.9"/>
11
+ <path d="M9 23.5h7" stroke="url(#a)" stroke-width="2.6" stroke-linecap="round" opacity="0.55"/>
12
+ <circle cx="27.5" cy="23.5" r="1.6" fill="#F5A524"/>
13
+ </svg>
@@ -0,0 +1,18 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN" data-theme="dark">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <meta name="theme-color" content="#0A0E16" />
8
+ <title>FlowDeck · 流水调度控制台</title>
9
+ <script type="module" crossorigin src="/assets/index-DuXbXiXo.js"></script>
10
+ <link rel="modulepreload" crossorigin href="/assets/_plugin-vue_export-helper-OBKhRxFI.js">
11
+ <link rel="modulepreload" crossorigin href="/assets/runtime-dom.esm-bundler-DESsN8Jj.js">
12
+ <link rel="modulepreload" crossorigin href="/assets/light-B0F-b5Z6.js">
13
+ <link rel="stylesheet" crossorigin href="/assets/index-DpymzEZv.css">
14
+ </head>
15
+ <body>
16
+ <div id="app"></div>
17
+ </body>
18
+ </html>
flowdeck/storage.py ADDED
@@ -0,0 +1,145 @@
1
+ """基于 settings.storage_dir 的运行产物文件存储(日志 JSONL / 任务输出 JSON)。"""
2
+
3
+ import json
4
+ import shutil
5
+ from datetime import datetime
6
+ from pathlib import Path
7
+ from typing import Any, Dict, Optional
8
+
9
+ from flowdeck.config import settings
10
+
11
+
12
+ def _base_dir() -> Path:
13
+ return Path(settings.storage_dir)
14
+
15
+
16
+ def _validate_path(path: Path) -> Path:
17
+ """确保路径不会逃逸出存储目录(防目录穿越,如 task_id 带路径分隔符)。"""
18
+ base = _base_dir().resolve()
19
+ resolved = path.resolve()
20
+
21
+ if resolved != base and base not in resolved.parents:
22
+ raise ValueError(f"非法的存储路径: {path}")
23
+
24
+ return path
25
+
26
+
27
+ def ensure_dirs() -> None:
28
+ """创建存储目录骨架(logs/ 与 data/)。"""
29
+ _base_dir().joinpath("logs").mkdir(parents=True, exist_ok=True)
30
+ _base_dir().joinpath("data").mkdir(parents=True, exist_ok=True)
31
+
32
+
33
+ def get_logs_filename(run_id: int) -> Path:
34
+ """run 的日志文件路径:{storage_dir}/logs/run_{id}.jsonl(确保父目录存在)。"""
35
+ path = _base_dir() / "logs" / f"run_{run_id}.jsonl"
36
+ path.parent.mkdir(parents=True, exist_ok=True)
37
+ return path
38
+
39
+
40
+ def get_data_dir(run_id: int) -> Path:
41
+ """run 的数据目录:{storage_dir}/data/run_{id}。"""
42
+ return _base_dir() / "data" / f"run_{run_id}"
43
+
44
+
45
+ def _task_data_file(run_id: int, task_id: str) -> Path:
46
+ # task id 是标识符(函数名),不允许携带路径成分,防止越出本 run 的数据目录
47
+ if not task_id or Path(task_id).name != task_id:
48
+ raise ValueError(f"非法的 task id: {task_id!r}")
49
+
50
+ return _validate_path(get_data_dir(run_id) / f"{task_id}.json")
51
+
52
+
53
+ def write_task_data(run_id: int, task_id: str, data: Any) -> Path:
54
+ """任务输出以 JSON 落盘,返回文件路径。"""
55
+ path = _task_data_file(run_id, task_id)
56
+ path.parent.mkdir(parents=True, exist_ok=True)
57
+
58
+ with path.open(mode="w", encoding="utf-8") as f:
59
+ json.dump(data, f, default=str, ensure_ascii=False)
60
+
61
+ return path
62
+
63
+
64
+ def read_task_data(run_id: int, task_id: str) -> Optional[Any]:
65
+ """读取任务输出 JSON,文件不存在时返回 None。"""
66
+ path = _task_data_file(run_id, task_id)
67
+
68
+ if not path.is_file():
69
+ return None
70
+
71
+ with path.open(mode="r", encoding="utf-8") as f:
72
+ return json.load(f)
73
+
74
+
75
+ def has_task_data(run_id: int, task_id: str) -> bool:
76
+ """任务输出文件是否存在(断点续跑前校验上游产物可用)。"""
77
+ return _task_data_file(run_id, task_id).is_file()
78
+
79
+
80
+ def delete_run_artifacts(run_id: int) -> None:
81
+ """删除单个 run 的全部文件产物(日志文件 + 数据目录)。"""
82
+ get_logs_filename(run_id).unlink(missing_ok=True)
83
+
84
+ data_dir = get_data_dir(run_id)
85
+ if data_dir.is_dir():
86
+ shutil.rmtree(data_dir)
87
+
88
+
89
+ def cleanup_files_before(cutoff: datetime) -> int:
90
+ """清理 mtime 早于 cutoff 的过期 run 产物,返回清理数量。
91
+
92
+ - 日志文件:按文件 mtime 判断;
93
+ - run 数据目录:按目录 mtime(最后一次写入任务输出的时间)判断。
94
+ """
95
+ removed = 0
96
+ base = _base_dir()
97
+
98
+ logs_dir = base / "logs"
99
+ if logs_dir.is_dir():
100
+ for file in logs_dir.glob("run_*.jsonl"):
101
+ if datetime.fromtimestamp(file.stat().st_mtime) < cutoff:
102
+ file.unlink()
103
+ removed += 1
104
+
105
+ data_dir = base / "data"
106
+ if data_dir.is_dir():
107
+ for run_dir in data_dir.iterdir():
108
+ if run_dir.is_dir() and run_dir.name.startswith("run_"):
109
+ if datetime.fromtimestamp(run_dir.stat().st_mtime) < cutoff:
110
+ shutil.rmtree(run_dir)
111
+ removed += 1
112
+
113
+ return removed
114
+
115
+
116
+ def _dir_stats(path: Path) -> Dict[str, int]:
117
+ """递归统计目录占用的字节数与文件数;目录不存在返回全零。"""
118
+ total_bytes = 0
119
+ total_files = 0
120
+
121
+ if path.is_dir():
122
+ for file in path.rglob("*"):
123
+ if file.is_file():
124
+ try:
125
+ total_bytes += file.stat().st_size
126
+ total_files += 1
127
+ except OSError:
128
+ continue
129
+
130
+ return {"bytes": total_bytes, "files": total_files}
131
+
132
+
133
+ def get_storage_stats() -> Dict[str, Dict[str, int]]:
134
+ """logs/ 与 data/ 目录的占用统计(字节 + 文件数),设置页数据管理用。"""
135
+ base = _base_dir()
136
+ logs = _dir_stats(base / "logs")
137
+ data = _dir_stats(base / "data")
138
+ return {
139
+ "logs": logs,
140
+ "data": data,
141
+ "total": {
142
+ "bytes": logs["bytes"] + data["bytes"],
143
+ "files": logs["files"] + data["files"],
144
+ },
145
+ }
@@ -0,0 +1 @@
1
+ """内置任务能力包:时间变量引擎、SQL/存储过程执行器、UI 任务动态注册。"""