@gct-paas/core-web 0.1.6-dev.25 → 0.1.6-dev.26
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.
- package/dist/{JsBarcode-RmziLqPn.js → JsBarcode-C59VuLXw.js} +2 -2
- package/dist/{chunk-BV1b7Gcg.js → chunk-nnRweTwY.js} +1 -1
- package/dist/{cropper-YtgylQpM.js → cropper-DkC8Lj6t.js} +2 -2
- package/dist/{de_DE-B7VghOWp.js → de_DE-CCCBplzz.js} +2 -2
- package/dist/{defineProperty-BoHwIjK9.js → defineProperty-H7yj0Lwd.js} +1 -1
- package/dist/{diagram-config-item-Delw8qP1.js → diagram-config-item-DXaMeTTn.js} +2 -2
- package/dist/{diagram-config-item-reverse-BknT5-61.js → diagram-config-item-reverse-CiHkpN3T.js} +2 -2
- package/dist/{diagram-config-item-virtual-NbwruTtF.js → diagram-config-item-virtual-NIrT-XVh.js} +2 -2
- package/dist/{en_US-CTia-4oe.js → en_US-CQ4_Spda.js} +2 -2
- package/dist/{es_ES-BRhAvB-X.js → es_ES-DuPUUU-Q.js} +2 -2
- package/dist/{fr_FR-dksEfN4c.js → fr_FR-Cg_QXVJc.js} +2 -2
- package/dist/{hooks-B2qoSQu2.js → hooks-C7hT-7VW.js} +2 -2
- package/dist/{icon-next-picker-BOAWtvQN.js → icon-next-picker-Di7Ma1ct.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/{ja_JP-CRxTtjjH.js → ja_JP-Dvy3bEdd.js} +2 -2
- package/dist/loader.esm.min.js +2 -2
- package/dist/monaco-editor-CuAEOwme.js +2 -0
- package/dist/{objectSpread2-DhfQflfg.js → objectSpread2-CSFXrJkx.js} +1 -1
- package/dist/{overlayscrollbars-vue-9qLymEKl.js → overlayscrollbars-vue-BRqvuXoX.js} +1 -1
- package/dist/{pt_PT-BvN4P8ca.js → pt_PT-BRtm188V.js} +2 -2
- package/dist/{relationship-diagram-config-B-mpm0HT.js → relationship-diagram-config-DtXrLWdL.js} +2 -2
- package/dist/{rich-editor-dsA1-WIy.js → rich-editor-CIJ5pYsf.js} +2 -2
- package/dist/{ru_RU-BSXEG73J.js → ru_RU-nH7t68Ol.js} +2 -2
- package/dist/{tr_TR-DECvjWe_.js → tr_TR-Biu14RrZ.js} +2 -2
- package/dist/useMonacoEditor-DNR9Amfs.js +2 -0
- package/dist/{vi_VN-C3PnQkUI.js → vi_VN-U-5xTu3o.js} +2 -2
- package/dist/{zh_CN-BYB6ENS9.js → zh_CN-XeIwBgrs.js} +2 -2
- package/dist/{zh_TW-UQnQ2lJz.js → zh_TW-D0amRIJG.js} +2 -2
- package/es/components/index.mjs +2 -2
- package/es/components/label-design/designer.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/label-design/index.mjs +2 -2
- package/es/components/label-design/modal/index.mjs +4 -4
- package/es/components/label-design/modal/template.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/label-design/panels/panel.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/label-design/stage/stage.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/open-select-user-modal/component/org.vue.mjs +1 -1
- package/es/components/open-select-user-modal/component/role.vue.mjs +1 -1
- package/es/components/open-select-user-modal/component/user-group.vue.mjs +1 -1
- package/es/components/open-select-user-modal/component/user.vue.mjs +1 -1
- package/es/create-app-vue.mjs +1 -1
- package/es/index.mjs +6 -6
- package/es/locale/sys/appDesigner.d.ts +3 -3
- package/es/locale/sys/appDesigner.mjs +3 -3
- package/es/locale/sys/model.d.ts +1 -1
- package/es/locale/sys/model.mjs +1 -1
- package/es/locale/sys/pageDesigner.d.ts +10 -10
- package/es/locale/sys/pageDesigner.mjs +10 -10
- package/es/locale/sys/webRender.d.ts +1 -1
- package/es/locale/sys/webRender.mjs +1 -1
- package/es/locale/sys.d.ts +6 -5
- package/es/locale/sys.mjs +6 -5
- package/es/modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.mjs +3 -2
- package/es/modules/gct-form/controller/form-edit-item/form-edit-item.controller.d.ts +2 -0
- package/es/modules/gct-form/controller/form-edit-item/form-edit-item.controller.mjs +12 -4
- package/es/modules/gct-form/interface/i-controller/form-edit-item/form-edit-item.controller.d.ts +7 -0
- package/es/modules/global-modal/src/components/ModalClose.vue_vue_type_style_index_0_lang.css +1 -2
- package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_script_lang.mjs +1 -1
- package/package.json +9 -9
- package/dist/components-BS1B8OGh.js +0 -2
- package/dist/monaco-editor-AHJDDUGF.js +0 -2
- package/dist/template-UW8tPQsj.js +0 -2
- package/dist/useMonacoEditor-DsbpzDxc.js +0 -2
- package/dist/utils-C7b14k36.js +0 -2
- /package/es/components/open-select-user-modal/component/{user-group.vue_vue_type_style_index_0_lang.css → org.vue_vue_type_style_index_0_lang.css} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! @gct-paas/core-web v0.1.6-dev.26 */
|
|
2
|
+
import{N as e,r as t,z as o}from"./useMonacoEditor-DNR9Amfs.js";import{computed as n,createBlock as a,createCommentVNode as l,createElementBlock as i,createElementVNode as r,createTextVNode as u,createVNode as c,defineComponent as s,normalizeClass as d,normalizeStyle as f,onMounted as g,onUnmounted as m,openBlock as v,ref as p,renderSlot as w,resolveComponent as h,toDisplayString as M,unref as C,watch as b,withCtx as y}from"vue";import{ClearOutlined as k,CloudDownloadOutlined as x,DownCircleOutlined as E,FormatPainterOutlined as L,RobotOutlined as V,SearchOutlined as _,UpCircleOutlined as R}from"@ant-design/icons-vue";var B={class:"hex-monaco-editor m-e w-full h-full overflow-hidden"},S={class:"m-e-main"},N=/* @__PURE__ */o(/* @__PURE__ */s({__name:"monaco-editor",props:{value:{default:""},title:{default:""},language:{default:"typescript"},theme:{default:t.DARK},readonly:{type:Boolean,default:!1},direction:{default:"bottom"},gapVal:{default:20}},emits:["update:value","change","editor-mounted","blur","focus","chat-bot-click"],setup(o,{expose:s,emit:N}){const O=o,D=p(!1);let T=null;b(()=>O.language,async e=>{A&&A.getModel()&&T&&T.editor.setModelLanguage(A.getModel(),e)});const F=N,W=p();let A;const I=p(!0),j=p(!1),q=p(!1),U=p(!1),$=p(!1),z=n(()=>({color:q.value?"#000":"#fff",marginRight:O.gapVal+"px"}));O.theme===t.VS&&(q.value=!0);let K={value:O.value??"",language:O.language,automaticLayout:!0,theme:O.theme,readOnly:O.readonly,wordWrap:I.value?"on":"off",scrollBeyondLastLine:!1,minimap:{enabled:!0},tabSize:2,autoClosingBrackets:"always",autoClosingDelete:"always",autoClosingOvertype:"always",autoClosingQuotes:"always",comments:{ignoreEmptyLines:!0,insertSpace:!0},columnSelection:!1,folding:!0,fixedOverflowWidgets:!0,hover:{sticky:!0,above:!1}};function P(e){A.setValue(e),F("change",Q()),F("update:value",Q())}function Q(){return A.getValue()}function G(){if(T)try{A.focus(),A.setSelection(new T.Range(1,9999,1,1e4)),A.trigger("","actions.find",null)}catch(e){console.error(e)}else console.warn("[MonacoEditor] Monaco editor is not available for findByKeyword")}function H(){A.setScrollPosition({scrollTop:0})}function J(){A.revealLine(A.getModel().getLineCount())}function X(){!function(e,t){const o=window.URL||window.webkitURL||window,n=new Blob([t]),a=document.createEvent("MouseEvents");a.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null);const l=document.createElementNS("http://www.w3.org/1999/xhtml","a");l.href=o.createObjectURL(n),l.download=e,l.dispatchEvent(a)}(O.title,A.getValue())}async function Y(){if("sql"==O.language){const e=Q(),{format:t}=await import("sql-formatter"),o=t(e);A.setValue(o)}else A.getAction("editor.action.formatDocument").run();const e=Q();F("change",e),F("update:value",e)}function Z(){P("")}function ee(){U.value=!U.value,F("chat-bot-click")}function te(){A&&A.dispose()}return g(()=>{!async function(){T=await e.loadMonaco(),te(),T?(A=T.editor.create(W.value,K),"bottom"===O.direction?J():"top"===O.direction&&H(),A.onDidChangeModelContent(()=>{F("change",Q()),F("update:value",Q())}),A.onDidBlurEditorText(()=>{F("blur",Q()),F("update:value",Q())}),A.onDidFocusEditorText(()=>{F("focus")}),D.value=!0,F("editor-mounted",A)):console.warn("[MonacoEditor] Monaco editor is not available for initEditor"),O.value&&Y()}()}),m(()=>{te()}),async function(){1==await _api.apaas.basicConfig.getAiRagEnabled()?$.value=!0:$.value=!1}(),s({isMonacoReady:D,reload(e){null!=A?A.setValue(e||""):console.warn("[MonacoEditor] Monaco editor is not available for reload")},getMonacoEditor:function(){return A},setEditorContent:P,getEditorContent:Q,scrollToTop:H,scrollToBottom:J,setEditorWordWrap:function(){I.value=!I.value,I.value?A.updateOptions({wordWrap:"on"}):A.updateOptions({wordWrap:"off"})},setEditorTheme:function(){q.value=!q.value,q.value?A.updateOptions({theme:"vs"}):A.updateOptions({theme:"vs-dark"})},handleFullScreenClick:function(){W.value.fullscreenElement?(W.value.exitFullscreen(),j.value=!1):(W.value.requestFullscreen(),j.value=!0)},handleDownloadLogClick:X,getEditorMarkers:function(){if(!T)return console.warn("[MonacoEditor] Monaco editor is not available for getEditorMarkers"),[];const e=A.getModel();return e?T.editor.getModelMarkers({resource:e.uri}):[]},handleFormatCodeClick:Y,getValue:function(){return A.getValue()},setValue:function(e){const t=A.getModel();if(!t)return;const o=t.getFullModelRange();A.executeEdits("setValue",[{range:o,text:e,forceMoveMarkers:!1}]),F("change",Q()),F("update:value",Q())},getSelectCode:function(){const e=A.getSelection();if(e){var t;const o=null===(t=A.getModel())||void 0===t?void 0:t.getValueInRange(e),n=e.startLineNumber,a=e.startColumn,l=e.endLineNumber,i=e.endColumn,r={startLineNumber:1,startColumn:1,endLineNumber:n,endColumn:a},u=A.getModel().getValueInRange(r),c={startLineNumber:l,startColumn:i,endLineNumber:A.getModel().getLineCount(),endColumn:A.getModel().getLineMaxColumn(A.getModel().getLineCount())};return{text:o,textBefore:u,textAfter:A.getModel().getValueInRange(c)}}return{}},isChatBotActive:U,handleChatBotClick:ee}),(e,t)=>{const n=h("a-col"),s=h("a-row");return v(),i("div",B,[w(e.$slots,"header",{},void 0,!0),r("div",S,[c(s,{class:"m-e-main_toolbar w-full flex",type:"flex",justify:"space-between",style:f(q.value?"background-color: #fff; box-shadow: 0px 2px 5px #ddd;":"background-color: #1e1e1e; box-shadow: 0px 2px 5px #111;")},{default:y(()=>[c(n,{class:"m-e-main_toolbar_left flex-1",style:f(q.value?"color: #000":"color: #fff")},{default:y(()=>[r("span",null,[w(e.$slots,"title",{},()=>[u(M(o.title),1)],!0)])]),_:3},8,["style"]),c(n,{class:"m-e-main_toolbar_right",style:f(z.value)},{default:y(()=>[c(C(_),{class:"icon",onClick:G}),c(C(R),{class:"icon",onClick:H}),c(C(E),{class:"icon",onClick:J}),c(C(L),{class:"icon",onClick:Y}),c(C(x),{class:"icon",onClick:X}),c(C(k),{class:"icon",onClick:Z}),$.value?(v(),a(C(V),{key:0,title:"聊天机器人",class:d(["icon",{"icon-active":U.value}]),onClick:ee},null,8,["class"])):l("",!0)]),_:1},8,["style"])]),_:3},8,["style"]),r("div",{ref_key:"Editor",ref:W,class:"m-e-main_container"},null,512)]),w(e.$slots,"footer",{},void 0,!0)])}}}),[["__scopeId","data-v-ccf22884"]]);export{N as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @gct-paas/core-web v0.1.6-dev.
|
|
1
|
+
/*! @gct-paas/core-web v0.1.6-dev.26 */
|
|
2
2
|
function t(r){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(r)}function r(r,e,o){return(e=function(r){var e=function(r){if("object"!=t(r)||!r)return r;var e=r[Symbol.toPrimitive];if(void 0!==e){var o=e.call(r,"string");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(r);return"symbol"==t(e)?e:e+""}(e))in r?Object.defineProperty(r,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[e]=o,r}function e(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,o)}return e}function o(t){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?e(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}export{o as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @gct-paas/core-web v0.1.6-dev.
|
|
1
|
+
/*! @gct-paas/core-web v0.1.6-dev.26 */
|
|
2
2
|
import{createBlock as e,createElementBlock as t,defineComponent as l,onUnmounted as o,openBlock as r,ref as n,renderSlot as a,resolveDynamicComponent as s,shallowRef as i,toRefs as d,unref as u,watch as c,watchPostEffect as v,withCtx as p}from"vue";import{OverlayScrollbars as m}from"overlayscrollbars";var y=/* @__PURE__ */l({__name:"OverlayScrollbarsComponent",props:{element:{type:[String,Object],default:"div"},options:{type:Object},events:{type:Object},defer:{type:[Boolean,Object]}},emits:["osInitialized","osUpdated","osDestroyed","osScroll"],setup(l,{expose:y,emit:f}){const b=l,k={initialized:"osInitialized",updated:"osUpdated",destroyed:"osDestroyed",scroll:"osScroll"},{element:j,options:I,events:O,defer:w}=d(b),_=i(null),g=i(null),z=n(),[A,C]=(e=>{let t,l,r,n=null;const a=i(e||{}),[s,d]=(()=>{if(typeof window>"u"){const e=()=>{};return[e,e]}let e,t;const l=window,o="function"==typeof l.requestIdleCallback,r=l.requestAnimationFrame,n=l.cancelAnimationFrame,a=o?l.requestIdleCallback:r,s=o?l.cancelIdleCallback:n,i=()=>{s(e),n(t)};return[(l,n)=>{i(),e=a(o?()=>{i(),t=r(l)}:l,"object"==typeof n?n:{timeout:2233})},i]})();return c(()=>{var e;return u(null==(e=a.value)?void 0:e.defer)},e=>{r=e},{deep:!0,immediate:!0}),c(()=>{var e;return u(null==(e=a.value)?void 0:e.options)},e=>{t=e,m.valid(n)&&n.options(t||{},!0)},{deep:!0,immediate:!0}),c(()=>{var e;return u(null==(e=a.value)?void 0:e.events)},e=>{l=e,m.valid(n)&&n.on(l||{},!0)},{deep:!0,immediate:!0}),o(()=>{d(),null==n||n.destroy()}),[e=>{if(m.valid(n))return n;const o=()=>n=m(e,t||{},l||{});r?s(o,r):o()},()=>n]})({options:I,events:z,defer:w});return y({osInstance:C,getElement:()=>_.value}),v(e=>{const{value:t}=_,{value:l}=g;t&&(A("body"===j.value?{target:t,cancel:{body:null}}:{target:t,elements:{viewport:l,content:l}}),e(()=>{var e;return null==(e=C())?void 0:e.destroy()}))}),c(()=>u(O),e=>{const t=e||{};z.value=Object.keys(k).reduce((e,l)=>{const o=t[l];return e[l]=[(...e)=>f(k[l],...e),...(Array.isArray(o)?o:[o]).filter(Boolean)],e},{})},{deep:!0,immediate:!0}),(l,o)=>(r(),e(s(u(j)),{"data-overlayscrollbars-initialize":"",ref_key:"elementRef",ref:_},{default:p(()=>["body"===u(j)?a(l.$slots,"default",{key:0}):(r(),t("div",{key:1,"data-overlayscrollbars-contents":"",ref_key:"slotRef",ref:g},[a(l.$slots,"default")],512))]),_:3},512))}});export{y as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @gct-paas/core-web v0.1.6-dev.
|
|
2
|
-
import{t as e}from"./objectSpread2-
|
|
1
|
+
/*! @gct-paas/core-web v0.1.6-dev.26 */
|
|
2
|
+
import{t as e}from"./objectSpread2-CSFXrJkx.js";var a={placeholder:"Hora"},r={lang:e(e({},{locale:"pt_PT",today:"Hoje",now:"Agora",backToToday:"Hoje",ok:"Ok",clear:"Limpar",month:"Mês",year:"Ano",timeSelect:"Selecionar hora",dateSelect:"Selecionar data",monthSelect:"Selecionar mês",yearSelect:"Selecionar ano",decadeSelect:"Selecionar década",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Mês anterior (PageUp)",nextMonth:"Mês seguinte (PageDown)",previousYear:"Ano anterior (Control + left)",nextYear:"Ano seguinte (Control + right)",previousDecade:"Década anterior",nextDecade:"Década seguinte",previousCentury:"Século anterior",nextCentury:"Século seguinte",shortWeekDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]}),{},{placeholder:"Data",rangePlaceholder:["Data inicial","Data final"],today:"Hoje",now:"Agora",backToToday:"Hoje",ok:"OK",clear:"Limpar",month:"Mês",year:"Ano",timeSelect:"Hora",dateSelect:"Selecionar data",monthSelect:"Selecionar mês",yearSelect:"Selecionar ano",decadeSelect:"Selecionar década",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthFormat:"MMMM",monthBeforeYear:!1,previousMonth:"Mês anterior (PageUp)",nextMonth:"Mês seguinte (PageDown)",previousYear:"Ano anterior (Control + left)",nextYear:"Ano seguinte (Control + right)",previousDecade:"Última década",nextDecade:"Próxima década",previousCentury:"Último século",nextCentury:"Próximo século"}),timePickerLocale:e(e({},a),{},{placeholder:"Hora"})},o={locale:"pt",Pagination:{items_per_page:"/ página",jump_to:"Saltar",jump_to_confirm:"confirmar",page:"",prev_page:"Página Anterior",next_page:"Página Seguinte",prev_5:"Recuar 5 Páginas",next_5:"Avançar 5 Páginas",prev_3:"Recuar 3 Páginas",next_3:"Avançar 3 Páginas"},DatePicker:r,TimePicker:a,Calendar:r,Table:{filterTitle:"Filtro",filterConfirm:"Aplicar",filterReset:"Reiniciar",selectAll:"Selecionar página atual",selectInvert:"Inverter seleção",sortTitle:"Ordenação"},Modal:{okText:"OK",cancelText:"Cancelar",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancelar"},Transfer:{searchPlaceholder:"Procurar...",itemUnit:"item",itemsUnit:"itens"},Upload:{uploading:"A carregar...",removeFile:"Remover",uploadError:"Erro ao carregar",previewFile:"Pré-visualizar",downloadFile:"Baixar"},Empty:{description:"Sem resultados"}};export{o as default};
|
package/dist/{relationship-diagram-config-B-mpm0HT.js → relationship-diagram-config-DtXrLWdL.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @gct-paas/core-web v0.1.6-dev.
|
|
2
|
-
import{n as t}from"./chunk-
|
|
1
|
+
/*! @gct-paas/core-web v0.1.6-dev.26 */
|
|
2
|
+
import{n as t}from"./chunk-nnRweTwY.js";import{t as e}from"./defineProperty-H7yj0Lwd.js";import"./diagram-config-item-virtual-NIrT-XVh.js";import{a as i,n as s,r as o,s as n}from"./hooks-C7hT-7VW.js";import"./diagram-config-item-DXaMeTTn.js";import"./diagram-config-item-reverse-CiHkpN3T.js";import{useNamespace as r}from"@gct-paas/core";import{createVNode as a,defineComponent as d,h as m,onMounted as c,onUnmounted as p,provide as l,reactive as u,ref as f,resolveComponent as g,watch as h}from"vue";import{cloneDeep as y}from"lodash-es";import{EndpointFactory as v,EndpointRepresentation as x,registerEndpointRenderer as b,svg as j,uuid as N}from"@jsplumb/browser-ui";var k=class t extends x{constructor(i,s){super(i,s),e(this,"params",void 0),e(this,"type",t.type),this.params=s}};e(k,"type","Arrow");var I={type:k.type,cls:k,compute:(t,e,i,s)=>{const{direction:o}=t.params||{};return t.x=e.curX-("left"===o?0:4),t.y=e.curY-2.6,t.w=6,t.h=6,[e.curX,e.curY,0,0]},getParams:t=>({})},O=t=>"left"===t?"0,3 6,0 6,6":"0,0 6,3 0,6",w=/* @__PURE__ */d({name:"DiagramConfigItemContainer",props:{i:{type:Number,required:!0},id:{type:String,required:!0}},emits:["mounted","unmounted"],setup(t,{emit:e}){const i=r("diagram-config-item-container");return c(()=>{e("mounted")}),p(()=>{e("unmounted")}),{ns:i,calcPosStyle:()=>{const e=Math.floor(t.i/3),i=t.i%3;return e%2!=1?{top:24*(e+1)+84*e+"px",left:46*(i+1)+178*i-25+"px"}:{top:24*(e+1)+84*e+"px",left:46*(3-i)+178*(2-i)-25+"px"}}}},render(){var t,e;const i=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e);return a("div",{id:this.id,class:this.ns.b(),style:this.calcPosStyle()},[i])}}),A=/* @__PURE__ */t({RelationshipDiagramConfig:()=>C,default:()=>C}),C=/* @__PURE__ */d({name:"RelationshipDiagramConfig",components:{DiagramConfigItemContainer:w},props:{context:{type:Object,default:()=>({})},items:{type:Array,default:()=>[]},config:{type:Object}},emits:["update:items"],setup(t,{emit:e}){b(k.type,{makeNode:(t,e)=>{const{direction:i}=t.params||{};return j.node("polygon",{points:O(i),"stroke-width":1})},updateNode:(t,e)=>{const{direction:i}=t.params||{};j.attr(e,{points:O(i),"stroke-width":1})}}),v.registerHandler(I);const o=r("relationship-diagram-config"),n=f(),a=N(),{fieldModelKey:d}=t.context,m=new s;return m.state=u(m.state),t.config&&Object.assign(m.config,t.config),l(i.ROOT,m),h(()=>t.items,()=>{JSON.stringify(t.items)!==JSON.stringify(m.state.nodes)&&(m.clearAll(),t.items&&t.items.length>0&&m.node.setNodes(y(t.items)))},{immediate:!0}),h(()=>m.state.nodes,()=>{e("update:items",y(m.state.nodes))},{deep:!0}),c(()=>{m.initPlumb(n.value),m.connectAll()}),{ns:o,elRef:n,c:m,lastId:a,isEnd:(t,e)=>t.modelKey===d||m.config.max&&m.config.max===e+1||!0===t.reverse}},render(){const t=this.c.state.nodes[this.c.state.nodes.length-1],e=this.c.state.nodes.length-1,i=o.getNode(n.VIRTUAL);return a("div",{ref:"elRef",class:this.ns.b()},[this.c.state.nodes.map((t,e)=>{const i=o.getNode(t.type||n.DEFAULT);return a(w,{key:t.id,i:e,id:t.id,onMounted:()=>this.c.node.mounted(t.id),onUnmounted:()=>this.c.node.unmounted(t.id)},{default:()=>[i?m(g(i.component),{key:t.id,context:this.context,i:e,data:t,isEnd:this.isEnd(t,e)}):`为找到节点适配器类型:${t.type}`]})}),this.isEnd(t,e)?null:a(w,{key:t.id,i:e+1,id:this.lastId},{default:()=>[i?m(g(i.component),{beforeNodeId:t.id,i:e+1,id:this.lastId}):"为找到虚拟节点适配器"]})])}});export{A as n,k as r,C as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @gct-paas/core-web v0.1.6-dev.
|
|
2
|
-
import{t}from"./defineProperty-BoHwIjK9.js";import{createElementBlock as e,createVNode as o,defineComponent as n,onBeforeUnmount as r,onMounted as l,openBlock as i,ref as a,shallowRef as s,toRaw as u,unref as d,watch as c,watchEffect as f}from"vue";import{Boot as m,DomEditor as p,createEditor as g,createToolbar as h}from"@wangeditor/editor";var v=Object.defineProperty,y=Object.defineProperties,C=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,b=(t,e,o)=>e in t?v(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,w=(t,e)=>{for(var o in e||(e={}))H.call(e,o)&&b(t,o,e[o]);if(x)for(var o of x(e))S.call(e,o)&&b(t,o,e[o]);return t};function V(t){let e=`请使用 '@${t}' 事件,不要放在 props 中`;return e+=`\nPlease use '@${t}' event instead of props`,e}var A=(t,e)=>{for(const[o,n]of e)t[o]=n;return t},F=n({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(t,e){const o=a(null),n=s(null),r=a("");return l(()=>{(()=>{if(!o.value)return;const l=u(t.defaultContent);var i,a;g({selector:o.value,mode:t.mode,content:l||[],html:t.defaultHtml||t.modelValue||"",config:(i=w({},t.defaultConfig),a={onCreated(o){if(n.value=o,e.emit("onCreated",o),t.defaultConfig.onCreated){const t=V("onCreated");throw new Error(t)}},onChange(o){const n=o.getHtml();if(r.value=n,e.emit("update:modelValue",n),e.emit("onChange",o),t.defaultConfig.onChange){const t=V("onChange");throw new Error(t)}},onDestroyed(o){if(e.emit("onDestroyed",o),t.defaultConfig.onDestroyed){const t=V("onDestroyed");throw new Error(t)}},onMaxLength(o){if(e.emit("onMaxLength",o),t.defaultConfig.onMaxLength){const t=V("onMaxLength");throw new Error(t)}},onFocus(o){if(e.emit("onFocus",o),t.defaultConfig.onFocus){const t=V("onFocus");throw new Error(t)}},onBlur(o){if(e.emit("onBlur",o),t.defaultConfig.onBlur){const t=V("onBlur");throw new Error(t)}},customAlert(o,n){if(e.emit("customAlert",o,n),t.defaultConfig.customAlert){const t=V("customAlert");throw new Error(t)}},customPaste:(o,n)=>{if(t.defaultConfig.customPaste){const t=V("customPaste");throw new Error(t)}let r;return e.emit("customPaste",o,n,t=>{r=t}),r}},y(i,C(a)))})})()}),c(()=>t.modelValue,t=>{t!==r.value&&function(t){const e=n.value;null!=e&&e.setHtml(t)}(t)}),{box:o}}}),L={ref:"box",style:{height:"100%"}},M=/* @__PURE__ */A(F,[["render",function(t,o,n,r,l,a){return i(),e("div",L,null,512)}]]),O=n({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(t){const e=a(null);return f(()=>{const{editor:o}=t;null!=o&&(o=>{if(e.value){if(null==o)throw new Error("Not found instance of Editor when create <Toolbar/> component");p.getToolbar(o)||h({editor:o,selector:e.value||"<div></div>",mode:t.mode,config:t.defaultConfig})}})(o)}),{selector:e}}}),j={ref:"selector"},k=/* @__PURE__ */A(O,[["render",function(t,o,n,r,l,a){return i(),e("div",j,null,512)}]]),P=!1,E=class e{constructor(){t(this,"title",void 0),t(this,"iconSvg",void 0),t(this,"tag",void 0),t(this,"attrs",void 0),this.title="格式刷 双击可复用",this.iconSvg='<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M15.4119 14.3879L14.4655 8.9308H14.7852C15.0423 8.9308 15.2494 8.72366 15.2494 8.46652V5.03795C15.2494 4.7808 15.0423 4.57366 14.7852 4.57366H10.3923V1.32366C10.3923 1.06652 10.1852 0.859375 9.92801 0.859375H7.07087C6.81373 0.859375 6.60659 1.06652 6.60659 1.32366V4.57366H2.21373C1.95659 4.57366 1.74944 4.7808 1.74944 5.03795V8.46652C1.74944 8.72366 1.95659 8.9308 2.21373 8.9308H2.53337L1.58694 14.3879C1.57534 14.4546 1.57847 14.5229 1.59611 14.5882C1.61374 14.6535 1.64545 14.7142 1.68902 14.7659C1.73258 14.8176 1.78694 14.8592 1.84828 14.8877C1.90962 14.9162 1.97645 14.9309 2.04409 14.9308H14.9548C14.9816 14.9308 15.0084 14.929 15.0334 14.9237C15.0935 14.9136 15.151 14.8916 15.2027 14.8592C15.2543 14.8268 15.299 14.7844 15.3342 14.7346C15.3694 14.6848 15.3944 14.6286 15.4077 14.5691C15.4211 14.5096 15.4225 14.448 15.4119 14.3879ZM2.99944 5.82366H7.85659V2.10938H9.1423V5.82366H13.9994V7.6808H2.99944V5.82366ZM10.6938 13.6808H6.78516V10.8951C6.78516 10.8165 6.72087 10.7522 6.6423 10.7522H5.78516C5.70659 10.7522 5.6423 10.8165 5.6423 10.8951V13.6808H2.97801L3.78337 9.03795H13.2137L14.0191 13.6808H10.6938Z" fill="#797A7D"/>\n </svg>\n ',this.tag="button",this.attrs=e._sharedAttrs}getValue(t){return""}isActive(t){return this.attrs.isSelect}isDisabled(t){return!1}exec(t,e){var o;if(this.isDisabled(t))return;const n=t.getFragment(),r=null==n?void 0:n[0],l=null==r||null===(o=r.children)||void 0===o?void 0:o[0],i=String((null==l?void 0:l.text)??"");!this.attrs.isSelect&&i.length?(this.attrs.formatJson={...l},this.attrs.isSelect=!0):(t.getSelectionText(),this.attrs.isSelect=!1),t.blur(),t.focus()}setFormatHtml(t){this.attrs.formatedHtml.length&&(t.dangerouslyInsertHtml(this.attrs.formatedHtml),this.attrs.formatedHtml="",this.attrs.isSelect=!1)}};function T(t){const e=new E,o=t,{onChange:n}=o,r=o;return r.onChange=(...t)=>{if(n(),e.attrs.isSelect){e.attrs.formatJson.text=r.getSelectionText();const t=g({content:[e.attrs.formatJson]});e.attrs.formatedHtml=t.getHtml(),document.onmouseup||(document.onmouseup=()=>{e.attrs.formatedHtml.length&&(e.setFormatHtml(r),document.onmouseup=null)})}},r}t(E,"_sharedAttrs",{isSelect:!1,formatJson:{},formatedHtml:""});var z={key:"FormatPaintMenuConf",factory:()=>new E},q={style:{border:"1px solid #e8ebf0"}},D=/* @__PURE__ */n({name:"RichEditorWidget",__name:"index",props:{content:{}},emits:["created","blur","change","focus"],setup(t,{expose:n,emit:u}){P||(m.registerMenu(z),m.registerPlugin(T),P=!0);const c={toolbarKeys:["undo","redo","FormatPaintMenuConf","clearStyle","|","headerSelect","fontFamily","fontSize","fontFamily","fontSize","|","bold","italic","through","underline","color","bgColor","|",{key:"group-justify",title:"对齐方式",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyCenter","justifyRight","justifyJustify"],className:"force-click-menu"},{key:"indentDropdown",title:"缩进调整",iconSvg:'\n<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M15.0003 1.67969L1.00028 1.71117C0.921708 1.71117 0.857422 1.77545 0.857422 1.85403V2.85403C0.857422 2.9326 0.921708 2.99688 1.00028 2.99688L15.0003 2.9654C15.0789 2.9654 15.1431 2.90112 15.1431 2.82254V1.82254C15.1431 1.74397 15.0789 1.67969 15.0003 1.67969ZM15.0003 9.25112H6.00028C5.92171 9.25112 5.85742 9.3154 5.85742 9.39397V10.394C5.85742 10.4725 5.92171 10.5368 6.00028 10.5368H15.0003C15.0789 10.5368 15.1431 10.4725 15.1431 10.394V9.39397C15.1431 9.3154 15.0789 9.25112 15.0003 9.25112ZM15.0003 13.0368H1.00028C0.921708 13.0368 0.857422 13.1011 0.857422 13.1797V14.1797C0.857422 14.2583 0.921708 14.3225 1.00028 14.3225H15.0003C15.0789 14.3225 15.1431 14.2583 15.1431 14.1797V13.1797C15.1431 13.1011 15.0789 13.0368 15.0003 13.0368ZM15.0003 5.4654H6.00028C5.92171 5.4654 5.85742 5.52969 5.85742 5.60826V6.60826C5.85742 6.68683 5.92171 6.75112 6.00028 6.75112H15.0003C15.0789 6.75112 15.1431 6.68683 15.1431 6.60826V5.60826C15.1431 5.52969 15.0789 5.4654 15.0003 5.4654Z" fill="#666666"/>\n<path d="M0.857451 5.40115L0.857451 10.6011L3.85745 8.00115L0.857451 5.40115Z" fill="#666666"/>\n</svg>\n',menuKeys:["indent","delIndent"]},"lineHeight"],editorConfig:{lineHeight:{lineHeightList:["1","1.15","1.5","2","2.5","3"]},fontSize:{fontSizeList:["12px","14px","16px","18px","20px","22px","24px","28px","32px","36px","48px","56px","64px","72px","80px","88px","96px"]},fontFamily:{fontFamilyList:["微软雅黑","宋体","黑体","Arial","Times New Roman"]}}},f={placeholder:"请输入富文本",readOnly:!1,hoverbarKeys:{text:null,link:null,image:null},MENU_CONF:{fontSize:{fontSizeList:["12px","14px","16px","18px","20px","22px","24px","28px","32px","34px","36px","48px","56px","64px","72px","80px","88px","96px"]},fontFamily:{fontFamilyList:[{name:"宋体",value:"SimSun, 宋体, STSong, serif"},{name:"黑体",value:"SimHei, 黑体, STHeiti, sans-serif"},{name:"微软雅黑",value:"Microsoft Yahei, 微软雅黑, sans-serif"},{name:"Arial",value:"Arial, sans-serif"},{name:"Times New Roman",value:"Times New Roman, serif"}]}}},p=t,g=u,h=s(),v=a("");l(()=>{setTimeout(()=>{v.value=p.content},500)}),r(()=>{const t=h.value;null!=t&&t.destroy()});const y=t=>{h.value=Object.seal(t),t.focus(!0),setTimeout(()=>{const t=document.querySelector('[data-menu-key="bold"]');t&&t.setAttribute("data-tooltip","加粗");const e=document.querySelector('[data-menu-key="headerSelect"]');e&&e.setAttribute("data-tooltip","正文与标题");const o=document.querySelector('[data-menu-key="italic"]');o&&o.setAttribute("data-tooltip","倾斜");const n=document.querySelector('[data-menu-key="through"]');n&&n.setAttribute("data-tooltip","删除线");const r=document.querySelector('[data-menu-key="underline"]');r&&r.setAttribute("data-tooltip","下划线");const l=document.querySelector('[data-menu-key="color"]');l&&l.setAttribute("data-tooltip","字体颜色");const i=document.querySelector('[data-menu-key="bgColor"]');i&&i.setAttribute("data-tooltip","背景颜色");const a=document.querySelector('[data-menu-key="clearStyle"]');a&&a.setAttribute("data-tooltip","清除样式");const s=document.querySelector('[data-menu-key="lineHeight"]');s&&s.setAttribute("data-tooltip","行距调整")},100),g("created")},C=()=>{const t=h.value;if(null!=t)return t.getHtml()},x=()=>{g("change",C())},H=()=>{g("blur",C())},S=t=>{g("focus",t)};return n({getText:()=>{const t=h.value;if(null!=t)return t.getText()},getContent:C,setHtml:t=>{const e=h.value;if(null!=e)return e.setHtml(t)},dangerouslyInsertHtml:t=>{const e=h.value;if(null!=e)return e.dangerouslyInsertHtml(t)},restoreSelection:()=>{const t=h.value;if(null!=t)return t.restoreSelection()},isFocused:()=>{const t=h.value;if(null!=t)return t.isFocused()}}),(t,n)=>(i(),e("div",q,[o(d(k),{style:{"border-bottom":"1px solid #e8ebf0"},editor:h.value,"default-config":c},null,8,["editor"]),o(d(M),{modelValue:v.value,"onUpdate:modelValue":n[0]||(n[0]=t=>v.value=t),style:{height:"400px"},"default-config":f,onOnCreated:y,onOnChange:x,onOnBlur:H,onOnFocus:S},null,8,["modelValue"])]))}});export{D as default};
|
|
1
|
+
/*! @gct-paas/core-web v0.1.6-dev.26 */
|
|
2
|
+
import{t}from"./defineProperty-H7yj0Lwd.js";import{createElementBlock as e,createVNode as o,defineComponent as n,onBeforeUnmount as r,onMounted as l,openBlock as i,ref as a,shallowRef as s,toRaw as u,unref as d,watch as c,watchEffect as f}from"vue";import{Boot as m,DomEditor as p,createEditor as g,createToolbar as h}from"@wangeditor/editor";var v=Object.defineProperty,y=Object.defineProperties,C=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,b=(t,e,o)=>e in t?v(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,w=(t,e)=>{for(var o in e||(e={}))H.call(e,o)&&b(t,o,e[o]);if(x)for(var o of x(e))S.call(e,o)&&b(t,o,e[o]);return t};function V(t){let e=`请使用 '@${t}' 事件,不要放在 props 中`;return e+=`\nPlease use '@${t}' event instead of props`,e}var A=(t,e)=>{for(const[o,n]of e)t[o]=n;return t},F=n({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(t,e){const o=a(null),n=s(null),r=a("");return l(()=>{(()=>{if(!o.value)return;const l=u(t.defaultContent);var i,a;g({selector:o.value,mode:t.mode,content:l||[],html:t.defaultHtml||t.modelValue||"",config:(i=w({},t.defaultConfig),a={onCreated(o){if(n.value=o,e.emit("onCreated",o),t.defaultConfig.onCreated){const t=V("onCreated");throw new Error(t)}},onChange(o){const n=o.getHtml();if(r.value=n,e.emit("update:modelValue",n),e.emit("onChange",o),t.defaultConfig.onChange){const t=V("onChange");throw new Error(t)}},onDestroyed(o){if(e.emit("onDestroyed",o),t.defaultConfig.onDestroyed){const t=V("onDestroyed");throw new Error(t)}},onMaxLength(o){if(e.emit("onMaxLength",o),t.defaultConfig.onMaxLength){const t=V("onMaxLength");throw new Error(t)}},onFocus(o){if(e.emit("onFocus",o),t.defaultConfig.onFocus){const t=V("onFocus");throw new Error(t)}},onBlur(o){if(e.emit("onBlur",o),t.defaultConfig.onBlur){const t=V("onBlur");throw new Error(t)}},customAlert(o,n){if(e.emit("customAlert",o,n),t.defaultConfig.customAlert){const t=V("customAlert");throw new Error(t)}},customPaste:(o,n)=>{if(t.defaultConfig.customPaste){const t=V("customPaste");throw new Error(t)}let r;return e.emit("customPaste",o,n,t=>{r=t}),r}},y(i,C(a)))})})()}),c(()=>t.modelValue,t=>{t!==r.value&&function(t){const e=n.value;null!=e&&e.setHtml(t)}(t)}),{box:o}}}),L={ref:"box",style:{height:"100%"}},M=/* @__PURE__ */A(F,[["render",function(t,o,n,r,l,a){return i(),e("div",L,null,512)}]]),O=n({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(t){const e=a(null);return f(()=>{const{editor:o}=t;null!=o&&(o=>{if(e.value){if(null==o)throw new Error("Not found instance of Editor when create <Toolbar/> component");p.getToolbar(o)||h({editor:o,selector:e.value||"<div></div>",mode:t.mode,config:t.defaultConfig})}})(o)}),{selector:e}}}),j={ref:"selector"},k=/* @__PURE__ */A(O,[["render",function(t,o,n,r,l,a){return i(),e("div",j,null,512)}]]),P=!1,E=class e{constructor(){t(this,"title",void 0),t(this,"iconSvg",void 0),t(this,"tag",void 0),t(this,"attrs",void 0),this.title="格式刷 双击可复用",this.iconSvg='<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M15.4119 14.3879L14.4655 8.9308H14.7852C15.0423 8.9308 15.2494 8.72366 15.2494 8.46652V5.03795C15.2494 4.7808 15.0423 4.57366 14.7852 4.57366H10.3923V1.32366C10.3923 1.06652 10.1852 0.859375 9.92801 0.859375H7.07087C6.81373 0.859375 6.60659 1.06652 6.60659 1.32366V4.57366H2.21373C1.95659 4.57366 1.74944 4.7808 1.74944 5.03795V8.46652C1.74944 8.72366 1.95659 8.9308 2.21373 8.9308H2.53337L1.58694 14.3879C1.57534 14.4546 1.57847 14.5229 1.59611 14.5882C1.61374 14.6535 1.64545 14.7142 1.68902 14.7659C1.73258 14.8176 1.78694 14.8592 1.84828 14.8877C1.90962 14.9162 1.97645 14.9309 2.04409 14.9308H14.9548C14.9816 14.9308 15.0084 14.929 15.0334 14.9237C15.0935 14.9136 15.151 14.8916 15.2027 14.8592C15.2543 14.8268 15.299 14.7844 15.3342 14.7346C15.3694 14.6848 15.3944 14.6286 15.4077 14.5691C15.4211 14.5096 15.4225 14.448 15.4119 14.3879ZM2.99944 5.82366H7.85659V2.10938H9.1423V5.82366H13.9994V7.6808H2.99944V5.82366ZM10.6938 13.6808H6.78516V10.8951C6.78516 10.8165 6.72087 10.7522 6.6423 10.7522H5.78516C5.70659 10.7522 5.6423 10.8165 5.6423 10.8951V13.6808H2.97801L3.78337 9.03795H13.2137L14.0191 13.6808H10.6938Z" fill="#797A7D"/>\n </svg>\n ',this.tag="button",this.attrs=e._sharedAttrs}getValue(t){return""}isActive(t){return this.attrs.isSelect}isDisabled(t){return!1}exec(t,e){var o;if(this.isDisabled(t))return;const n=t.getFragment(),r=null==n?void 0:n[0],l=null==r||null===(o=r.children)||void 0===o?void 0:o[0],i=String((null==l?void 0:l.text)??"");!this.attrs.isSelect&&i.length?(this.attrs.formatJson={...l},this.attrs.isSelect=!0):(t.getSelectionText(),this.attrs.isSelect=!1),t.blur(),t.focus()}setFormatHtml(t){this.attrs.formatedHtml.length&&(t.dangerouslyInsertHtml(this.attrs.formatedHtml),this.attrs.formatedHtml="",this.attrs.isSelect=!1)}};function T(t){const e=new E,o=t,{onChange:n}=o,r=o;return r.onChange=(...t)=>{if(n(),e.attrs.isSelect){e.attrs.formatJson.text=r.getSelectionText();const t=g({content:[e.attrs.formatJson]});e.attrs.formatedHtml=t.getHtml(),document.onmouseup||(document.onmouseup=()=>{e.attrs.formatedHtml.length&&(e.setFormatHtml(r),document.onmouseup=null)})}},r}t(E,"_sharedAttrs",{isSelect:!1,formatJson:{},formatedHtml:""});var z={key:"FormatPaintMenuConf",factory:()=>new E},q={style:{border:"1px solid #e8ebf0"}},D=/* @__PURE__ */n({name:"RichEditorWidget",__name:"index",props:{content:{}},emits:["created","blur","change","focus"],setup(t,{expose:n,emit:u}){P||(m.registerMenu(z),m.registerPlugin(T),P=!0);const c={toolbarKeys:["undo","redo","FormatPaintMenuConf","clearStyle","|","headerSelect","fontFamily","fontSize","fontFamily","fontSize","|","bold","italic","through","underline","color","bgColor","|",{key:"group-justify",title:"对齐方式",iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyCenter","justifyRight","justifyJustify"],className:"force-click-menu"},{key:"indentDropdown",title:"缩进调整",iconSvg:'\n<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M15.0003 1.67969L1.00028 1.71117C0.921708 1.71117 0.857422 1.77545 0.857422 1.85403V2.85403C0.857422 2.9326 0.921708 2.99688 1.00028 2.99688L15.0003 2.9654C15.0789 2.9654 15.1431 2.90112 15.1431 2.82254V1.82254C15.1431 1.74397 15.0789 1.67969 15.0003 1.67969ZM15.0003 9.25112H6.00028C5.92171 9.25112 5.85742 9.3154 5.85742 9.39397V10.394C5.85742 10.4725 5.92171 10.5368 6.00028 10.5368H15.0003C15.0789 10.5368 15.1431 10.4725 15.1431 10.394V9.39397C15.1431 9.3154 15.0789 9.25112 15.0003 9.25112ZM15.0003 13.0368H1.00028C0.921708 13.0368 0.857422 13.1011 0.857422 13.1797V14.1797C0.857422 14.2583 0.921708 14.3225 1.00028 14.3225H15.0003C15.0789 14.3225 15.1431 14.2583 15.1431 14.1797V13.1797C15.1431 13.1011 15.0789 13.0368 15.0003 13.0368ZM15.0003 5.4654H6.00028C5.92171 5.4654 5.85742 5.52969 5.85742 5.60826V6.60826C5.85742 6.68683 5.92171 6.75112 6.00028 6.75112H15.0003C15.0789 6.75112 15.1431 6.68683 15.1431 6.60826V5.60826C15.1431 5.52969 15.0789 5.4654 15.0003 5.4654Z" fill="#666666"/>\n<path d="M0.857451 5.40115L0.857451 10.6011L3.85745 8.00115L0.857451 5.40115Z" fill="#666666"/>\n</svg>\n',menuKeys:["indent","delIndent"]},"lineHeight"],editorConfig:{lineHeight:{lineHeightList:["1","1.15","1.5","2","2.5","3"]},fontSize:{fontSizeList:["12px","14px","16px","18px","20px","22px","24px","28px","32px","36px","48px","56px","64px","72px","80px","88px","96px"]},fontFamily:{fontFamilyList:["微软雅黑","宋体","黑体","Arial","Times New Roman"]}}},f={placeholder:"请输入富文本",readOnly:!1,hoverbarKeys:{text:null,link:null,image:null},MENU_CONF:{fontSize:{fontSizeList:["12px","14px","16px","18px","20px","22px","24px","28px","32px","34px","36px","48px","56px","64px","72px","80px","88px","96px"]},fontFamily:{fontFamilyList:[{name:"宋体",value:"SimSun, 宋体, STSong, serif"},{name:"黑体",value:"SimHei, 黑体, STHeiti, sans-serif"},{name:"微软雅黑",value:"Microsoft Yahei, 微软雅黑, sans-serif"},{name:"Arial",value:"Arial, sans-serif"},{name:"Times New Roman",value:"Times New Roman, serif"}]}}},p=t,g=u,h=s(),v=a("");l(()=>{setTimeout(()=>{v.value=p.content},500)}),r(()=>{const t=h.value;null!=t&&t.destroy()});const y=t=>{h.value=Object.seal(t),t.focus(!0),setTimeout(()=>{const t=document.querySelector('[data-menu-key="bold"]');t&&t.setAttribute("data-tooltip","加粗");const e=document.querySelector('[data-menu-key="headerSelect"]');e&&e.setAttribute("data-tooltip","正文与标题");const o=document.querySelector('[data-menu-key="italic"]');o&&o.setAttribute("data-tooltip","倾斜");const n=document.querySelector('[data-menu-key="through"]');n&&n.setAttribute("data-tooltip","删除线");const r=document.querySelector('[data-menu-key="underline"]');r&&r.setAttribute("data-tooltip","下划线");const l=document.querySelector('[data-menu-key="color"]');l&&l.setAttribute("data-tooltip","字体颜色");const i=document.querySelector('[data-menu-key="bgColor"]');i&&i.setAttribute("data-tooltip","背景颜色");const a=document.querySelector('[data-menu-key="clearStyle"]');a&&a.setAttribute("data-tooltip","清除样式");const s=document.querySelector('[data-menu-key="lineHeight"]');s&&s.setAttribute("data-tooltip","行距调整")},100),g("created")},C=()=>{const t=h.value;if(null!=t)return t.getHtml()},x=()=>{g("change",C())},H=()=>{g("blur",C())},S=t=>{g("focus",t)};return n({getText:()=>{const t=h.value;if(null!=t)return t.getText()},getContent:C,setHtml:t=>{const e=h.value;if(null!=e)return e.setHtml(t)},dangerouslyInsertHtml:t=>{const e=h.value;if(null!=e)return e.dangerouslyInsertHtml(t)},restoreSelection:()=>{const t=h.value;if(null!=t)return t.restoreSelection()},isFocused:()=>{const t=h.value;if(null!=t)return t.isFocused()}}),(t,n)=>(i(),e("div",q,[o(d(k),{style:{"border-bottom":"1px solid #e8ebf0"},editor:h.value,"default-config":c},null,8,["editor"]),o(d(M),{modelValue:v.value,"onUpdate:modelValue":n[0]||(n[0]=t=>v.value=t),style:{height:"400px"},"default-config":f,onOnCreated:y,onOnChange:x,onOnBlur:H,onOnFocus:S},null,8,["modelValue"])]))}});export{D as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @gct-paas/core-web v0.1.6-dev.
|
|
2
|
-
import{t as e}from"./objectSpread2-
|
|
1
|
+
/*! @gct-paas/core-web v0.1.6-dev.26 */
|
|
2
|
+
import{t as e}from"./objectSpread2-CSFXrJkx.js";var l={placeholder:"Выберите время",rangePlaceholder:["Время начала","Время окончания"]},a={lang:e({placeholder:"Выберите дату",yearPlaceholder:"Выберите год",quarterPlaceholder:"Выберите квартал",monthPlaceholder:"Выберите месяц",weekPlaceholder:"Выберите неделю",rangePlaceholder:["Начальная дата","Конечная дата"],rangeYearPlaceholder:["Начальный год","Год окончания"],rangeMonthPlaceholder:["Начальный месяц","Конечный месяц"],rangeWeekPlaceholder:["Начальная неделя","Конечная неделя"]},{locale:"ru_RU",today:"Сегодня",now:"Сейчас",backToToday:"Текущая дата",ok:"ОК",clear:"Очистить",month:"Месяц",year:"Год",timeSelect:"Выбрать время",dateSelect:"Выбрать дату",monthSelect:"Выбрать месяц",yearSelect:"Выбрать год",decadeSelect:"Выбрать десятилетие",yearFormat:"YYYY",dateFormat:"D-M-YYYY",dayFormat:"D",dateTimeFormat:"D-M-YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Предыдущий месяц (PageUp)",nextMonth:"Следующий месяц (PageDown)",previousYear:"Предыдущий год (Control + left)",nextYear:"Следующий год (Control + right)",previousDecade:"Предыдущее десятилетие",nextDecade:"Следущее десятилетие",previousCentury:"Предыдущий век",nextCentury:"Следующий век"}),timePickerLocale:e({},l)},r="${label} не является типом ${type}",t={locale:"ru",Pagination:{items_per_page:"/ стр.",jump_to:"Перейти",jump_to_confirm:"подтвердить",page:"",prev_page:"Назад",next_page:"Вперед",prev_5:"Предыдущие 5",next_5:"Следующие 5",prev_3:"Предыдущие 3",next_3:"Следующие 3"},DatePicker:a,TimePicker:l,Calendar:a,global:{placeholder:"Пожалуйста выберите"},Table:{filterTitle:"Фильтр",filterConfirm:"OK",filterReset:"Сбросить",filterEmptyText:"Без фильтров",emptyText:"Нет данных",selectAll:"Выбрать всё",selectInvert:"Инвертировать выбор",selectNone:"Очистить все данные",selectionAll:"Выбрать все данные",sortTitle:"Сортировка",expand:"Развернуть строку",collapse:"Свернуть строку",triggerDesc:"Нажмите для сортировки по убыванию",triggerAsc:"Нажмите для сортировки по возрастанию",cancelSort:"Нажмите, чтобы отменить сортировку"},Modal:{okText:"OK",cancelText:"Отмена",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Отмена"},Transfer:{titles:["",""],searchPlaceholder:"Поиск",itemUnit:"элем.",itemsUnit:"элем.",remove:"Удалить",selectAll:"Выбрать все данные",selectCurrent:"Выбрать текущую страницу",selectInvert:"Показать в обратном порядке",removeAll:"Удалить все данные",removeCurrent:"Удалить текущую страницу"},Upload:{uploading:"Загрузка...",removeFile:"Удалить файл",uploadError:"При загрузке произошла ошибка",previewFile:"Предпросмотр файла",downloadFile:"Загрузить файл"},Empty:{description:"Нет данных"},Icon:{icon:"иконка"},Text:{edit:"Редактировать",copy:"Копировать",copied:"Скопировано",expand:"Раскрыть"},PageHeader:{back:"Назад"},Form:{defaultValidateMessages:{default:"Ошибка проверки поля ${label}",required:"Пожалуйста, введите ${label}",enum:"${label} должен быть одним из [${enum}]",whitespace:"${label} не может быть пустым",date:{format:"${label} не правильный формат даты",parse:"${label} не может быть преобразовано в дату",invalid:"${label} не является корректной датой"},types:{string:r,method:r,array:r,object:r,number:r,date:r,boolean:r,integer:r,float:r,regexp:r,email:r,url:r,hex:r},string:{len:"${label} должна быть ${len} символов",min:"${label} должна быть больше или равна ${min} символов",max:"${label} должна быть меньше или равна ${max} символов",range:"Длина ${label} должна быть между ${min}-${max} символами"},number:{len:"${label} должна быть равна ${len}",min:"${label} должна быть больше или равна ${min}",max:"${label} должна быть меньше или равна ${max}"},array:{len:"Количество элементов ${label} должно быть равно ${len}",min:"Количество элементов ${label} должно быть больше или равно ${min}",max:"Количество элементов ${label} должно быть меньше или равно ${max}",range:"Количество элементов ${label} должно быть между ${min} и ${max}"},pattern:{mismatch:"${label} не соответствует шаблону ${pattern}"}}},Image:{preview:"Предпросмотр"}};export{t as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @gct-paas/core-web v0.1.6-dev.
|
|
2
|
-
import{t as e}from"./objectSpread2-
|
|
1
|
+
/*! @gct-paas/core-web v0.1.6-dev.26 */
|
|
2
|
+
import{t as e}from"./objectSpread2-CSFXrJkx.js";var a={placeholder:"Zaman seç",rangePlaceholder:["Başlangıç zamanı","Bitiş zamanı"]},l={lang:e({placeholder:"Tarih seç",yearPlaceholder:"Yıl seç",quarterPlaceholder:"Çeyrek seç",monthPlaceholder:"Ay seç",weekPlaceholder:"Hafta seç",rangePlaceholder:["Başlangıç tarihi","Bitiş tarihi"],rangeYearPlaceholder:["Başlangıç yılı","Bitiş yılı"],rangeMonthPlaceholder:["Başlangıç ayı","Bitiş ayı"],rangeWeekPlaceholder:["Başlangıç haftası","Bitiş haftası"]},{locale:"tr_TR",today:"Bugün",now:"Şimdi",backToToday:"Bugüne Geri Dön",ok:"tamam",clear:"Temizle",month:"Ay",year:"Yıl",timeSelect:"Zaman Seç",dateSelect:"Tarih Seç",monthSelect:"Ay Seç",yearSelect:"Yıl Seç",decadeSelect:"On Yıl Seç",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Önceki Ay (PageUp)",nextMonth:"Sonraki Ay (PageDown)",previousYear:"Önceki Yıl (Control + Sol)",nextYear:"Sonraki Yıl (Control + Sağ)",previousDecade:"Önceki On Yıl",nextDecade:"Sonraki On Yıl",previousCentury:"Önceki Yüzyıl",nextCentury:"Sonraki Yüzyıl"}),timePickerLocale:e({},a)},r="${label} geçerli bir ${type} değil",n={locale:"tr",Pagination:{items_per_page:"/ sayfa",jump_to:"Git",jump_to_confirm:"onayla",page:"",prev_page:"Önceki Sayfa",next_page:"Sonraki Sayfa",prev_5:"Önceki 5 Sayfa",next_5:"Sonraki 5 Sayfa",prev_3:"Önceki 3 Sayfa",next_3:"Sonraki 3 Sayfa"},DatePicker:l,TimePicker:a,Calendar:l,global:{placeholder:"Lütfen seçiniz"},Table:{filterTitle:"Filtre menüsü",filterConfirm:"Tamam",filterReset:"Sıfırla",filterEmptyText:"Filtre yok",selectAll:"Tüm sayfayı seç",selectInvert:"Tersini seç",selectionAll:"Tümünü seç",sortTitle:"Sırala",expand:"Satırı genişlet",collapse:"Satırı daralt",triggerDesc:"Azalan düzende sırala",triggerAsc:"Artan düzende sırala",cancelSort:"Sıralamayı kaldır"},Modal:{okText:"Tamam",cancelText:"İptal",justOkText:"Tamam"},Popconfirm:{okText:"Tamam",cancelText:"İptal"},Transfer:{titles:["",""],searchPlaceholder:"Arama",itemUnit:"Öğe",itemsUnit:"Öğeler",remove:"Kaldır",selectCurrent:"Tüm sayfayı seç",removeCurrent:"Sayfayı kaldır",selectAll:"Tümünü seç",removeAll:"Tümünü kaldır",selectInvert:"Tersini seç"},Upload:{uploading:"Yükleniyor...",removeFile:"Dosyayı kaldır",uploadError:"Yükleme hatası",previewFile:"Dosyayı önizle",downloadFile:"Dosyayı indir"},Empty:{description:"Veri Yok"},Icon:{icon:"ikon"},Text:{edit:"Düzenle",copy:"Kopyala",copied:"Kopyalandı",expand:"Genişlet"},PageHeader:{back:"Geri"},Form:{optional:"(opsiyonel)",defaultValidateMessages:{default:"Alan doğrulama hatası ${label}",required:"${label} gerekli bir alan",enum:"${label} şunlardan biri olmalı: [${enum}]",whitespace:"${label} sadece boşluk olamaz",date:{format:"${label} tarih biçimi geçersiz",parse:"${label} bir tarihe dönüştürülemedi",invalid:"${label} geçersiz bir tarih"},types:{string:r,method:r,array:r,object:r,number:r,date:r,boolean:r,integer:r,float:r,regexp:r,email:r,url:r,hex:r},string:{len:"${label} ${len} karakter olmalı",min:"${label} en az ${min} karakter olmalı",max:"${label} en çok ${max} karakter olmalı",range:"${label} ${min}-${max} karakter arası olmalı"},number:{len:"${label} ${len} olmalı",min:"${label} en az ${min} olmalı",max:"${label} en çok ${max} olmalı",range:"${label} ${min}-${max} arası olmalı"},array:{len:"${label} sayısı ${len} olmalı",min:"${label} sayısı en az ${min} olmalı",max:"${label} sayısı en çok ${max} olmalı",range:"${label} sayısı ${min}-${max} arası olmalı"},pattern:{mismatch:"${label} şu kalıpla eşleşmeli: ${pattern}"}}},Image:{preview:"Önizleme"}};export{n as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! @gct-paas/core-web v0.1.6-dev.26 */
|
|
2
|
+
import{i as e,n as t,r as n,t as r}from"./chunk-nnRweTwY.js";import{t as o}from"./defineProperty-H7yj0Lwd.js";import{Modal as i,OverlayContainer as a,OverlayPopoverContainer as s,ProjectName as c,t as u,useNamespace as l}from"@gct-paas/core";import*as d from"vue";import{Fragment as f,computed as h,createVNode as g,customRef as p,defineComponent as v,getCurrentInstance as m,getCurrentScope as y,h as b,hasInjectionContext as w,inject as O,isRef as T,isVNode as S,nextTick as D,onBeforeMount as I,onBeforeUnmount as E,onMounted as x,onScopeDispose as C,onUnmounted as P,provide as j,reactive as R,ref as A,resolveComponent as N,shallowReadonly as k,shallowRef as M,toRaw as L,toRef as _,toRefs as F,toValue as H,unref as W,watch as U,watchEffect as $}from"vue";import{cloneDeep as z,isFunction as V,isNumber as B,isString as q,merge as Y}from"lodash-es";import{ConfigProvider as G,message as X}from"ant-design-vue";var K=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Z=class{info(e,t){return new Promise(n=>{X.info(e,null==t?void 0:t.duration,n)})}success(e,t){return new Promise(n=>{X.success(e,null==t?void 0:t.duration,n)})}warning(e,t){return new Promise(n=>{X.warning(e,null==t?void 0:t.duration,n)})}error(e,t){return new Promise(n=>{X.error(e,null==t?void 0:t.duration,n)})}};function J(e,t,n){const{minValue:r,maxValue:o}=n.specificConfig||{};return"number"==typeof r&&"number"==typeof o&&r>o?Promise.reject(/* @__PURE__ */new Error("MinValue cannot be greater than MaxValue")):Promise.resolve()}function Q(e,t,n,r){if(!t)return Promise.resolve();const{minValue:o,maxValue:i}=n.specificConfig||{},a=i??(null==r?void 0:r.end),s=t.length;return"number"==typeof o&&s<o?Promise.reject(`${u("sys.model.minLengthDefault")}${o}`):"number"==typeof a&&s>a?Promise.reject(`${u("sys.model.maxLengthDefault")}${a}`):Promise.resolve()}function ee(e,t,n,r){if(null==t||""===t)return Promise.resolve();const{minValue:o,maxValue:i}=n.specificConfig||{},a=i??(null==r?void 0:r.end),s=Number(t);return"number"==typeof o&&s<o?Promise.reject(`${u("sys.model.minNumDefault")}${o}`):"number"==typeof a&&s>a?Promise.reject(`${u("sys.model.maxNumDefault")}${a}`):Promise.resolve()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ne(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(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 oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach(function(t){ne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(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 se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach(function(t){ie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ce(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t.apply(n,[].concat(o,r))}}}function ue(e){return{}.toString.call(e).includes("Object")}function le(e){return"function"==typeof e}var de=ce(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),fe=function(e,t){return ue(t)||de("changeType"),Object.keys(t).some(function(t){return n=e,r=t,!Object.prototype.hasOwnProperty.call(n,r);var n,r})&&de("changeField"),t},he=function(e){le(e)||de("selectorType")},ge=function(e){le(e)||ue(e)||de("handlerType"),ue(e)&&Object.values(e).some(function(e){return!le(e)})&&de("handlersType")},pe=function(e){var t;e||de("initialIsRequired"),ue(e)||de("initialType"),t=e,Object.keys(t).length||de("initialContent")};function ve(e,t){return le(t)?t(e.current):t}function me(e,t){return e.current=se(se({},e.current),t),t}function ye(e,t,n){return le(t)?t(e.current):Object.keys(n).forEach(function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])}),n}var be,we=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pe(e),ge(t);var n={current:e},r=ce(ye)(n,t),o=ce(me)(n),i=ce(fe)(e),a=ce(ve)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return he(e),e(n.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(r,o,i,a)(e)}]},Oe={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},Te=(be=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return r.length>=be.length?be.apply(this,r):function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e.apply(t,[].concat(r,o))}})(Oe),Se=function(e){var t;return e||Te("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||Te("configType"),e.urls?(console.warn(Oe.deprecation),{paths:{vs:e.urls.monacoBase}}):e};function De(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],De(e[n],t[n]))}),oe(oe({},e),t)}var Ie={type:"cancelation",msg:"operation is manually canceled"};function Ee(e){var t=!1,n=new Promise(function(n,r){e.then(function(e){return t?r(Ie):n(e)}),e.catch(r)});return n.cancel=function(){return t=!0},n}var xe,Ce=["monaco"],Pe=function(e){if(Array.isArray(e))return e}(xe=we({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,r,o,i,a=[],s=!0,c=!1;try{for(o=(t=t.call(e)).next,!2;!(s=(n=o.call(t)).done)&&(a.push(n.value),2!==a.length);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw r}}return a}}(xe)||function(e){if(e){if("string"==typeof e)return te(e,2);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?te(e,2):void 0}}(xe)||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.")}(),je=Pe[0],Re=Pe[1];function Ae(e){return document.body.appendChild(e)}function Ne(e){var t,n,r=je(function(e){return{config:e.config,reject:e.reject}}),o=(t="".concat(r.config.paths.vs,"/loader.js"),n=document.createElement("script"),t&&(n.src=t),n);return o.onload=function(){return e()},o.onerror=r.reject,o}function ke(){var e=je(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){var n=t.m||t;Me(n),e.resolve(n)},function(t){e.reject(t)})}function Me(e){je().monaco||Re({monaco:e})}var Le=new Promise(function(e,t){return Re({resolve:e,reject:t})}),_e={config:function(e){var t=Se(e),n=t.monaco,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Ce);Re(function(e){return{config:De(e.config,r),monaco:n}})},init:function(){var e=je(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(Re({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Ee(Le);if(window.monaco&&window.monaco.editor)return Me(window.monaco),e.resolve(window.monaco),Ee(Le);!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(Ae,Ne)(ke)}return Ee(Le)},__getMonacoInstance:function(){return je(function(e){return e.monaco})}},Fe=new class{constructor(){o(this,"_monacoInstance",null),o(this,"_loadingPromise",null),this._configureLoader()}_configureLoader(){_e.config({paths:{vs:location.origin+"/extras/monaco-editor/0.55.1/min/vs"}})}async loadMonaco(){if(this._monacoInstance)return this._monacoInstance;if(this._loadingPromise)return this._loadingPromise;this._loadingPromise=_e.init();try{return this._monacoInstance=await this._loadingPromise,console.info("✓ Monaco Editor loaded successfully"),this._monacoInstance}catch(e){throw console.error("✗ Failed to load Monaco Editor:",e),this._loadingPromise=null,e}}getMonaco(){return this._monacoInstance}isMonacoLoaded(){return null!==this._monacoInstance}async createMonacoEditor(e,t){return(await this.loadMonaco()).editor.create(e,t)}async createMonacoDiffEditor(e,t){return(await this.loadMonaco()).editor.createDiffEditor(e,t)}async createMonacoModel(e,t,n){return(await this.loadMonaco()).editor.createModel(e,t,n)}},He=/* @__PURE__ */t({Vue:()=>d,Vue2:()=>{},del:()=>ze,install:()=>Ue,isVue2:()=>!1,isVue3:()=>!0,set:()=>$e});import*as We from"vue";function Ue(){}function $e(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function ze(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]}n(He,We);var Ve=Symbol.for("DndContextType");function Be(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var qe="function"==typeof Symbol&&Symbol.observable||"@@observable",Ye=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ge={INIT:"@@redux/INIT"+Ye(),REPLACE:"@@redux/REPLACE"+Ye(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ye()}};function Xe(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Be(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Be(1));return n(Xe)(e,t)}if("function"!=typeof e)throw new Error(Be(2));var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){if(c)throw new Error(Be(3));return i}function d(e){if("function"!=typeof e)throw new Error(Be(4));if(c)throw new Error(Be(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(Be(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),a=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Be(7));if(void 0===e.type)throw new Error(Be(8));if(c)throw new Error(Be(9));try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,n=0;n<t.length;n++)(0,t[n])();return e}return f({type:Ge.INIT}),(r={dispatch:f,subscribe:d,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Be(10));o=e,f({type:Ge.REPLACE})}})[qe]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Be(11));function n(){e.next&&e.next(l())}return n(),{unsubscribe:t(n)}}})[qe]=function(){return this},e},r}function Ke(e,t,...n){if("undefined"!=typeof process&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){let e;if(void 0===t)e=/* @__PURE__ */new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let r=0;e=new Error(t.replace(/%s/g,function(){return n[r++]})),e.name="Invariant Violation"}throw e.framesToPop=1,e}}function Ze(e){return"object"==typeof e}var Je="dnd-core/INIT_COORDS",Qe="dnd-core/BEGIN_DRAG",et="dnd-core/PUBLISH_DRAG_SOURCE",tt="dnd-core/HOVER",nt="dnd-core/DROP",rt="dnd-core/END_DRAG";function ot(e,t){return{type:Je,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var it={type:Je,payload:{clientOffset:null,sourceClientOffset:null}};function at(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:i}=n,a=e.getMonitor(),s=e.getRegistry();e.dispatch(ot(o)),function(e,t,n){Ke(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){Ke(n.getSource(e),"Expected sourceIds to be registered.")})}(t,a,s);const c=function(e,t){let n=null;for(let r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,a);if(null==c)return void e.dispatch(it);let u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){Ke("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(c)}e.dispatch(ot(o,u));const l=s.getSource(c).beginDrag(a,c);return null!=l?(function(e){Ke(Ze(e),"Item must be an object.")}(l),s.pinSource(c),{type:Qe,payload:{itemType:s.getSourceType(c),item:l,sourceId:c,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}):void 0}}function st(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){st(e,t,n[t])})}return e}function ut(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){Ke(e.isDragging(),"Cannot call drop while not dragging."),Ke(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n),function(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n).forEach((o,i)=>{const a={type:nt,payload:{dropResult:ct({},t,lt(o,i,r,n))}};e.dispatch(a)})}}function lt(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):void 0;return function(e){Ke(void 0===e||Ze(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:r.getDropResult()),i}function dt(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){Ke(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);const r=t.getSourceId();return null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:rt}}}function ft(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}function ht(e){return function(t,{clientOffset:n}={}){!function(e){Ke(Array.isArray(e),"Expected targetIds to be an array.")}(t);const r=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,n){for(let r=e.length-1;r>=0;r--){const o=e[r];ft(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){Ke(t.isDragging(),"Cannot call hover while not dragging."),Ke(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const t=e[r];Ke(e.lastIndexOf(t)===r,"Expected targetIds to be unique in the passed array."),Ke(n.getTarget(t),"Expected targetIds to be registered.")}}(r,o,i),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(r,o,i),{type:tt,payload:{targetIds:r,clientOffset:n||null}}}}function gt(e){return function(){if(e.getMonitor().isDragging())return{type:et}}}var pt=class{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:t}=this.store,n=function(e){return{beginDrag:at(e),publishDragSource:gt(e),hover:ht(e),drop:ut(e),endDrag:dt(e)}}(this);return Object.keys(n).reduce((r,o)=>{const i=n[o];var a;return r[o]=(a=i,(...n)=>{const r=a.apply(e,n);void 0!==r&&t(r)}),r},{})}dispatch(e){this.store.dispatch(e)}constructor(e,t){this.isSetUp=!1,this.handleRefCountChange=()=>{const e=this.store.getState().refCount>0;this.backend&&(e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=t,e.subscribe(this.handleRefCountChange)}};function vt(e,t){return{x:e.x-t.x,y:e.y-t.y}}var mt=[],yt=[];mt.__IS_NONE__=!0,yt.__IS_ALL__=!0;var bt=class{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;Ke("function"==typeof e,"listener must be a function."),Ke(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let r=this.store.getState().stateId;return this.store.subscribe(()=>{const t=this.store.getState(),o=t.stateId;try{o===r||o===r+1&&!function(e,t){return e!==mt&&(e===yt||void 0===t||(n=t,r=e,n.filter(e=>r.indexOf(e)>-1)).length>0);var n,r}(t.dirtyHandlerIds,n)||e()}finally{r=o}})}subscribeToOffsetChange(e){Ke("function"==typeof e,"listener must be a function.");let t=this.store.getState().dragOffset;return this.store.subscribe(()=>{const n=this.store.getState().dragOffset;n!==t&&(t=n,e())})}canDragSource(e){if(!e)return!1;const t=this.registry.getSource(e);return Ke(t,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()&&t.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const t=this.registry.getTarget(e);return Ke(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&ft(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}isDragging(){return Boolean(this.getItemType())}isDraggingSource(e){if(!e)return!1;const t=this.registry.getSource(e,!0);return Ke(t,`Expected to find a valid source. sourceId=${e}`),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}isOverTarget(e,t={shallow:!1}){if(!e)return!1;const{shallow:n}=t;if(!this.isDragging())return!1;const r=this.registry.getTargetType(e),o=this.getItemType();if(o&&!ft(r,o))return!1;const i=this.getTargetIds();if(!i.length)return!1;const a=i.indexOf(e);return n?a===i.length-1:a>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return function(e){const{clientOffset:t,initialClientOffset:n,initialSourceClientOffset:r}=e;return t&&n&&r?vt((i=r,{x:(o=t).x+i.x,y:o.y+i.y}),n):null;var o,i}(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return function(e){const{clientOffset:t,initialClientOffset:n}=e;return t&&n?vt(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},wt="undefined"!=typeof global?global:self,Ot=wt.MutationObserver||wt.WebKitMutationObserver;function Tt(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}var St,Dt="function"==typeof Ot?function(e){let t=1;const n=new Ot(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:Tt,It=class{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}},Et=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Dt(this.flush),this.requestErrorThrow=Tt(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},xt=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new It(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(Et.registerPendingError),Ct="dnd-core/ADD_SOURCE",Pt="dnd-core/ADD_TARGET",jt="dnd-core/REMOVE_SOURCE",Rt="dnd-core/REMOVE_TARGET";function At(e,t){t&&Array.isArray(e)?e.forEach(e=>At(e,!1)):Ke("string"==typeof e||"symbol"==typeof e,t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(St||(St={}));var Nt=0;function kt(e){switch(e[0]){case"S":return St.SOURCE;case"T":return St.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Mt(e,t){const n=e.entries();let r=!1;do{const{done:e,value:[,o]}=n.next();if(o===t)return!0;r=!!e}while(!r);return!1}var Lt=class{addSource(e,t){At(e),function(e){Ke("function"==typeof e.canDrag,"Expected canDrag to be a function."),Ke("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),Ke("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(St.SOURCE,e,t);return this.store.dispatch(function(e){return{type:Ct,payload:{sourceId:e}}}(n)),n}addTarget(e,t){At(e,!0),function(e){Ke("function"==typeof e.canDrop,"Expected canDrop to be a function."),Ke("function"==typeof e.hover,"Expected hover to be a function."),Ke("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(St.TARGET,e,t);return this.store.dispatch(function(e){return{type:Pt,payload:{targetId:e}}}(n)),n}containsHandler(e){return Mt(this.dragSources,e)||Mt(this.dropTargets,e)}getSource(e,t=!1){return Ke(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Ke(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Ke(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Ke(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return kt(e)===St.SOURCE}isTargetId(e){return kt(e)===St.TARGET}removeSource(e){var t;Ke(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:jt,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},Et.enqueueTask(xt.create(t))}removeTarget(e){Ke(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:Rt,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);Ke(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){Ke(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,t,n){const r=function(e){const t=(Nt++).toString();switch(e){case St.SOURCE:return`S${t}`;case St.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(r,t),e===St.SOURCE?this.dragSources.set(r,n):e===St.TARGET&&this.dropTargets.set(r,n),r}constructor(e){this.types=/* @__PURE__ */new Map,this.dragSources=/* @__PURE__ */new Map,this.dropTargets=/* @__PURE__ */new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}},_t=(e,t)=>e===t;function Ft(e=mt,t){switch(t.type){case tt:break;case Ct:case Pt:case Rt:case jt:return mt;default:return yt}const{targetIds:n=[],prevTargetIds:r=[]}=t.payload,o=function(e,t){const n=/* @__PURE__ */new Map,r=e=>{n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);const o=[];return n.forEach((e,t)=>{1===e&&o.push(t)}),o}(n,r);if(!(o.length>0)&&function(e,t,n=_t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(n,r))return mt;const i=r[r.length-1],a=n[n.length-1];return i!==a&&(i&&o.push(i),a&&o.push(a)),o}function Ht(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wt={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ut(e=Wt,t){const{payload:n}=t;switch(t.type){case Je:case Qe:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case tt:return r=e.clientOffset,o=n.clientOffset,!r&&!o||r&&o&&r.x===o.x&&r.y===o.y?e:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ht(e,t,n[t])})}return e}({},e,{clientOffset:n.clientOffset});case rt:case nt:return Wt;default:return e}var r,o}function $t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){$t(e,t,n[t])})}return e}var Vt={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Bt(e=Vt,t){const{payload:n}=t;switch(t.type){case Qe:return zt({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case et:return zt({},e,{isSourcePublic:!0});case tt:return zt({},e,{targetIds:n.targetIds});case Rt:return-1===e.targetIds.indexOf(n.targetId)?e:zt({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter(e=>e!==o))});case nt:return zt({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case rt:return zt({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function qt(e=0,t){switch(t.type){case Ct:case Pt:return e+1;case jt:case Rt:return e-1;default:return e}}function Yt(e=0){return e+1}function Gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Gt(e,t,n[t])})}return e}function Kt(e={},t){return{dirtyHandlerIds:Ft(e.dirtyHandlerIds,{type:t.type,payload:Xt({},t.payload,{prevTargetIds:(n=e,r=[],"dragOperation.targetIds".split(".").reduce((e,t)=>e&&e[t]?e[t]:r||null,n))})}),dragOffset:Ut(e.dragOffset,t),refCount:qt(e.refCount,t),dragOperation:Bt(e.dragOperation,t),stateId:Yt(e.stateId)};var n,r}function Zt(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 Jt=0,Qt=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function en(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tn(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=t;return o[Qt]||(o[Qt]=function(e,t,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return Xe(Kt,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),i=new pt(o,new bt(o,new Lt(o))),a=e(i,t,n);return i.receiveBackend(a),i}(e,t,n,r)),o[Qt]}function tn(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:window}var nn=(0,He.defineComponent)({name:"DndProvider",props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(e,t){var n,r,o,i,a=t.slots,s=(o=function(e){return function(e){return"manager"in e&&e.manager}(e)?[e.manager,!1]:[en(e.backend,e.context,e.options,e.debugMode),!e.context]}(e),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(o,i)||function(e,t){if(e){if("string"==typeof e)return Zt(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zt(e,t):void 0}}(o,i)||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.")}()),c=s[0],u=s[1];return u&&++Jt,(0,He.onUnmounted)(function(){if(u){var e=tn();0===--Jt&&(e[Qt]=null)}}),n=c,(0,He.provide)(Ve,n),function(){var e;return null!==(r=null===(e=a.default)||void 0===e?void 0:e.call(a))&&void 0!==r?r:null}}});(0,He.defineComponent)({props:{connect:{type:Function,required:!0},src:{type:String,required:!0}},setup:function(e){return(0,He.watchEffect)(function(){if("undefined"!=typeof Image){var t=!1,n=new Image;return n.src=e.src,n.onload=function(){e.connect(n),t=!0},function(){t&&e.connect(null)}}}),function(){return null}}});var rn=!1,on=!1,an=/* @__PURE__ */function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.sourceId=e},t.getHandlerId=function(){return this.sourceId},t.canDrag=function(){Ke(!rn,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return rn=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{rn=!1}},t.isDragging=function(){if(!this.sourceId)return!1;Ke(!on,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return on=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{on=!1}},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.isDraggingSource=function(e){return this.internalMonitor.isDraggingSource(e)},t.isOverTarget=function(e,t){return this.internalMonitor.isOverTarget(e,t)},t.getTargetIds=function(){return this.internalMonitor.getTargetIds()},t.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},t.getSourceId=function(){return this.internalMonitor.getSourceId()},t.subscribeToOffsetChange=function(e){return this.internalMonitor.subscribeToOffsetChange(e)},t.canDragSource=function(e){return this.internalMonitor.canDragSource(e)},t.canDropOnTarget=function(e){return this.internalMonitor.canDropOnTarget(e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}(),sn=!1,cn=/* @__PURE__ */function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.targetId=e},t.getHandlerId=function(){return this.targetId},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.canDrop=function(){if(!this.targetId)return!1;Ke(!sn,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return sn=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{sn=!1}},t.isOver=function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}();function un(e){return function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((t=n)&&t.__v_skip&&function(){throw new Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.")}(),!function(e){return!!(n=e)&&!0===n.__v_isVNode&&"symbol"!=((t=e.type)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t);var t,n}(n)){var o=n;return e(o,r),o}}}function ln(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var o=un(r);t[n]=function(){return o}}}),t}function dn(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let c=0;c<i.length;c++){const a=i[c];if(!s(a))return!1;const u=e[a],l=t[a];if(o=n?n.call(r,u,l,a):void 0,!1===o||void 0===o&&u!==l)return!1}return!0}function fn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var hn=/* @__PURE__ */function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=ln({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,n.dragPreviewNode=e,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,n,r=e.prototype;return r.receiveHandlerId=function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())},r.reconnect=function(){var e=this.reconnectDragSource();this.reconnectDragPreview(e)},r.reconnectDragSource=function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t},r.reconnectDragPreview=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();n&&this.disconnectDragPreview(),this.handlerId&&(t?n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},r.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},r.didDragSourceOptionsChange=function(){return!dn(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},r.didDragPreviewOptionsChange=function(){return!dn(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},r.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},r.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},r.clearDragSource=function(){this.dragSourceNode=null},r.clearDragPreview=function(){this.dragPreviewNode=null},t=e,(n=[{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode}},{key:"dragPreview",get:function(){return this.dragPreviewNode}}])&&fn(t.prototype,n),e}();function gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var pn=/* @__PURE__ */function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=ln({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,(0,He.isRef)(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,n,r=e.prototype;return r.reconnect=function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)},r.receiveHandlerId=function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},r.didOptionsChange=function(){return!dn(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},r.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},r.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},t=e,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}])&&gn(t.prototype,n),e}(),vn=/* @__PURE__ */function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=n,this.connector=r}var t=e.prototype;return t.beginDrag=function(){var e,t=this.spec,n=this.monitor;return null!=(e="object"==typeof t.item?t.item:"function"==typeof t.item?t.item(n):{})?e:null},t.canDrag=function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)},t.isDragging=function(e,t){var n=this.spec,r=this.monitor,o=n.isDragging;return o?o(r):t===e.getSourceId()},t.endDrag=function(){var e=this.spec,t=this.monitor,n=this.connector,r=e.end;r&&r(t.getItem(),t),n.reconnect()},e}();function mn(){var e=(0,He.inject)(Ve);return Ke(null!=e,"Expected drag drop context"),e}function yn(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 bn(e,t,n){var r=mn(),o=function(e,t,n){var r=(0,He.computed)(function(){return new vn((0,He.unref)(e),(0,He.unref)(t),(0,He.unref)(n))});return(0,He.watchEffect)(function(){r.value.spec=(0,He.unref)(e)}),r}(e,t,n),i=function(e){return(0,He.computed)(function(){var t=(0,He.unref)(e).type;return Ke(null!=t,"spec.type must be defined"),t})}(e);(0,He.watchEffect)(function(e){if(null!=(0,He.unref)(i)){var a=(u=function(e,t,n){var r=n.getRegistry(),o=r.addSource(e,t);return[o,function(){return r.removeSource(o)}]}((0,He.unref)(i),(0,He.unref)(o),(0,He.unref)(r)),l=2,function(e){if(Array.isArray(e))return e}(u)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(u,l)||function(e,t){if(e){if("string"==typeof e)return yn(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yn(e,t):void 0}}(u,l)||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.")}()),s=a[0],c=a[1];(0,He.unref)(t).receiveHandlerId(s),(0,He.unref)(n).receiveHandlerId(s),e(c)}var u,l})}function wn(e){return(0,He.computed)(function(){return"function"==typeof e?e():e})}var On=/* @__PURE__ */e(/* @__PURE__ */r((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}})());function Tn(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 Sn(e,t,n){var r,o,i=(r=function(e,t,n){var r=(0,He.ref)((0,He.unref)(t)((0,He.unref)(e))),o=function(){var o=(0,He.unref)(t)((0,He.unref)(e));(0,On.default)(r.value,o)||(r.value=o,n&&n())};return(0,He.watchEffect)(o),[r,o]}(e,t,n),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(r,o)||function(e,t){if(e){if("string"==typeof e)return Tn(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tn(e,t):void 0}}(r,o)||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.")}()),a=i[0],s=i[1];return(0,He.watchEffect)(function(t){var n=(0,He.unref)(e).getHandlerId();null!=n&&t((0,He.unref)(e).subscribeToStateChange(s,{handlerIds:[n]}))}),a}function Dn(e,t,n){return Sn(t,e||function(){return{}},function(){return(0,He.unref)(n).reconnect()})}function In(e,t){var n=(0,He.reactive)({el:null,options:(0,He.unref)(t)});return(0,He.watchEffect)(function(){e(n)},{flush:"post"}),function(e,r){$e(n,"el",e);var o=(0,He.unref)(t)||r;return(0,On.default)(n.options,o)||$e(n,"options",o),(0,He.unref)(e)}}function En(e,t){return In(function(t){(0,He.unref)(e).hooks.dragSource()(t.el,t.options)},(0,He.computed)(function(){return(0,He.unref)(t).options}))}function xn(e,t){return In(function(t){(0,He.unref)(e).hooks.dragPreview()(t.el,t.options)},(0,He.computed)(function(){return(0,He.unref)(t).previewOptions}))}function Cn(e){var t,n=wn(e),r=(t=mn(),(0,He.computed)(function(){return new an((0,He.unref)(t))})),o=function(e,t){var n=mn(),r=(0,He.computed)(function(){return new hn((0,He.unref)(n).getBackend())});return(0,He.watchEffect)(function(t){r.value.dragSourceOptions=(0,He.unref)(e)||null,(0,He.unref)(r).reconnect(),t(function(){r.value.disconnectDragSource()})}),(0,He.watchEffect)(function(e){r.value.dragPreviewOptions=(0,He.unref)(t)||null,(0,He.unref)(r).reconnect(),e(function(){r.value.disconnectDragPreview()})}),r}((0,He.computed)(function(){return(0,He.unref)(n).options}),(0,He.computed)(function(){return(0,He.unref)(n).previewOptions}));return bn(n,r,o),[Dn((0,He.computed)(function(){return(0,He.unref)(n).collect||function(){return{}}}),r,o),En(o,n),xn(o,n)]}var Pn=/* @__PURE__ */function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.spec=t,this.monitor=n}var t=e.prototype;return t.canDrop=function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)},t.hover=function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)},t.drop=function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)},e}();function jn(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 Rn(e,t,n){var r=mn(),o=function(e,t){var n=(0,He.computed)(function(){return new Pn((0,He.unref)(e),(0,He.unref)(t))});return(0,He.watchEffect)(function(){n.value.spec=(0,He.unref)(e)}),n}(e,t),i=function(e){return(0,He.computed)(function(){var t=(0,He.unref)(e).accept;return Ke(null!=t,"accept must be defined"),Array.isArray(t)?t:[t]})}(e);(0,He.watchEffect)(function(e){var a,s,c=(a=function(e,t,n){var r=(0,He.unref)(n).getRegistry(),o=r.addTarget((0,He.unref)(e),(0,He.unref)(t));return[o,function(){return r.removeTarget(o)}]}(i,o,r),s=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(a,s)||function(e,t){if(e){if("string"==typeof e)return jn(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jn(e,t):void 0}}(a,s)||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.")}()),u=c[0],l=c[1];(0,He.unref)(t).receiveHandlerId(u),(0,He.unref)(n).receiveHandlerId(u),e(l)})}function An(e,t){return In(function(t){(0,He.unref)(e).hooks.dropTarget()(t.el,t.options)},(0,He.computed)(function(){return(0,He.unref)(t).options}))}function Nn(e){var t,n=wn(e),r=(t=mn(),(0,He.computed)(function(){return new cn((0,He.unref)(t))})),o=function(e){var t=mn(),n=(0,He.computed)(function(){return new pn((0,He.unref)(t).getBackend())});return(0,He.watchEffect)(function(t){n.value.dropTargetOptions=(0,He.unref)(e)||null,n.value.reconnect(),t(function(){return n.value.disconnectDropTarget()})}),n}((0,He.computed)(function(){return(0,He.unref)(n).options}));return Rn(n,r,o),[Dn((0,He.computed)(function(){return(0,He.unref)(n).collect||function(){return{}}}),r,o),An(o,n)]}function kn(e){let t=null;return()=>(null==t&&(t=e()),t)}var Mn=class{enter(e){const t=this.entered.length;return this.entered=function(e,t){const n=/* @__PURE__ */new Set,r=e=>n.add(e);e.forEach(r),t.forEach(r);const o=[];return n.forEach(e=>o.push(e)),o}(this.entered.filter(t=>this.isNodeInDocument(t)&&(!t.contains||t.contains(e))),[e]),0===t&&this.entered.length>0}leave(e){const t=this.entered.length;var n,r;return this.entered=(n=this.entered.filter(this.isNodeInDocument),r=e,n.filter(e=>e!==r)),t>0&&0===this.entered.length}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}},Ln=class{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get:()=>(console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null)})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(n=>{const r=this.config.exposeProperties[n];null!=r&&(t[n]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}},_n=/* @__PURE__ */t({FILE:()=>Fn,HTML:()=>Un,TEXT:()=>Wn,URL:()=>Hn}),Fn="__NATIVE_FILE__",Hn="__NATIVE_URL__",Wn="__NATIVE_TEXT__",Un="__NATIVE_HTML__";function $n(e,t,n){const r=t.reduce((t,n)=>t||e.getData(n),"");return null!=r?r:n}var zn={[Fn]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Un]:{exposeProperties:{html:(e,t)=>$n(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Hn]:{exposeProperties:{urls:(e,t)=>$n(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Wn]:{exposeProperties:{text:(e,t)=>$n(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Vn(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(zn).filter(e=>{const n=zn[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}var Bn=kn(()=>/firefox/i.test(navigator.userAgent)),qn=kn(()=>Boolean(window.safari)),Yn=class{interpolate(e){const{xs:t,ys:n,c1s:r,c2s:o,c3s:i}=this;let a=t.length-1;if(e===t[a])return n[a];let s,c=0,u=i.length-1;for(;c<=u;){s=Math.floor(.5*(c+u));const r=t[s];if(r<e)c=s+1;else{if(!(r>e))return n[s];u=s-1}}a=Math.max(0,u);const l=e-t[a],d=l*l;return n[a]+r[a]*l+o[a]*d+i[a]*l*d}constructor(e,t){const{length:n}=e,r=[];for(let h=0;h<n;h++)r.push(h);r.sort((t,n)=>e[t]<e[n]?-1:1);const o=[],i=[],a=[];let s,c;for(let h=0;h<n-1;h++)s=e[h+1]-e[h],c=t[h+1]-t[h],i.push(s),o.push(c),a.push(c/s);const u=[a[0]];for(let h=0;h<i.length-1;h++){const e=a[h],t=a[h+1];if(e*t<=0)u.push(0);else{s=i[h];const n=i[h+1],r=s+n;u.push(3*r/((r+n)/e+(r+s)/t))}}u.push(a[a.length-1]);const l=[],d=[];let f;for(let h=0;h<u.length-1;h++){f=a[h];const e=u[h],t=1/i[h],n=e+u[h+1]-f-f;l.push((f-e-n)*t),d.push(n*t*t)}this.xs=e,this.ys=t,this.c1s=u,this.c2s=l,this.c3s=d}};function Gn(e){const t=1===e.nodeType?e:e.parentElement;if(!t)return null;const{top:n,left:r}=t.getBoundingClientRect();return{x:r,y:n}}function Xn(e){return{x:e.clientX,y:e.clientY}}var Kn=class{get window(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}get document(){var e;return(null===(e=this.globalContext)||void 0===e?void 0:e.document)?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}};function Zn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Zn(e,t,n[t])})}return e}var Qn=class{profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;var t;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}connectDragPreview(e,t,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,n){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);const r=t=>this.handleDragStart(t,e),o=e=>this.handleSelectStart(e);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const n=t=>this.handleDragEnter(t,e),r=t=>this.handleDragOver(t,e),o=t=>this.handleDrop(t,e);return t.addEventListener("dragenter",n),t.addEventListener("dragover",r),t.addEventListener("drop",o),()=>{t.removeEventListener("dragenter",n),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return Jn({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return Jn({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(_n).some(t=>_n[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=zn[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new Ln(n);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(()=>{var e;return null===(e=this.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}clearCurrentDragSourceNode(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,n){this.sourcePreviewNodes=/* @__PURE__ */new Map,this.sourcePreviewNodeOptions=/* @__PURE__ */new Map,this.sourceNodes=/* @__PURE__ */new Map,this.sourceNodeOptions=/* @__PURE__ */new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=e=>{const t=this.sourceNodes.get(e);return t&&Gn(t)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=e=>Boolean(e&&this.document&&this.document.body&&this.document.body.contains(e)),this.endDragIfSourceWasRemovedFromDOM=()=>{const e=this.currentDragSourceNode;null==e||this.isNodeInDocument(e)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=e=>{null===this.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(e||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{null!==this.hoverRafId&&"undefined"!=typeof cancelAnimationFrame&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=e=>{if(e.defaultPrevented)return;const{dragStartSourceIds:t}=this;this.dragStartSourceIds=null;const n=Xn(e);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:n});const{dataTransfer:r}=e,o=Vn(r);if(this.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){const e=this.monitor.getSourceId(),t=this.sourceNodes.get(e),o=this.sourcePreviewNodes.get(e)||t;if(o){const{anchorX:e,anchorY:i,offsetX:a,offsetY:s}=this.getCurrentSourcePreviewNodeOptions(),c=function(e,t,n,r,o){const i=function(e){var t;return"IMG"===e.nodeName&&(Bn()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=Gn(i?e:t),s={x:n.x-a.x,y:n.y-a.y},{offsetWidth:c,offsetHeight:u}=e,{anchorX:l,anchorY:d}=r,{dragPreviewWidth:f,dragPreviewHeight:h}=function(e,t,n,r){let o=e?t.width:n,i=e?t.height:r;return qn()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,t,c,u),{offsetX:g,offsetY:p}=o,v=0===p||p;return{x:0===g||g?g:new Yn([0,.5,1],[s.x,s.x/c*f,s.x+f-c]).interpolate(l),y:v?p:(()=>{let e=new Yn([0,.5,1],[s.y,s.y/u*h,s.y+h-u]).interpolate(d);return qn()&&i&&(e+=(window.devicePixelRatio-1)*h),e})()}}(t,o,n,{anchorX:e,anchorY:i},{offsetX:a,offsetY:s});r.setDragImage(o,c.x,c.y)}}try{null==r||r.setData("application/json",{})}catch(i){}this.setCurrentDragSourceNode(e.target);const{captureDraggingState:t}=this.getCurrentSourcePreviewNodeOptions();t?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(o)this.beginDragNativeItem(o);else{if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=e=>{var t;if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)),!this.enterLeaveCounter.enter(e.target)||this.monitor.isDragging())return;const{dataTransfer:n}=e,r=Vn(n);r&&this.beginDragNativeItem(r,n)},this.handleTopDragEnter=e=>{const{dragEnterTargetIds:t}=this;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,t.length>0&&this.actions.hover(t,{clientOffset:Xn(e)}),t.some(e=>this.monitor.canDropOnTarget(e))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())))},this.handleTopDragOverCapture=e=>{var t;this.dragOverTargetIds=[],this.isDraggingNativeItem()&&(null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer))},this.handleTopDragOver=e=>{const{dragOverTargetIds:t}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));this.altKeyPressed=e.altKey,this.lastClientOffset=Xn(e),this.scheduleHover(t),(t||[]).some(e=>this.monitor.canDropOnTarget(e))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=e=>{this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=e=>{var t;this.dropTargetIds=[],this.isDraggingNativeItem()?(e.preventDefault(),null===(t=this.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):Vn(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:Xn(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=e=>{const t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new Kn(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Mn(this.isNodeInDocument)}},er=function(e,t,n){return new Qn(e,t,n)},tr={"zh-CN":()=>import("./zh_CN-XeIwBgrs.js"),"en-US":()=>import("./en_US-CQ4_Spda.js"),"pt-PT":()=>import("./pt_PT-BRtm188V.js"),"tr-TR":()=>import("./tr_TR-Biu14RrZ.js"),"zh-TW":()=>import("./zh_TW-D0amRIJG.js"),"ja-JP":()=>import("./ja_JP-Dvy3bEdd.js"),"vi-VN":()=>import("./vi_VN-U-5xTu3o.js"),"de-GE":()=>import("./de_DE-CCCBplzz.js"),"fr-FR":()=>import("./fr_FR-Cg_QXVJc.js"),"es-ES":()=>import("./es_ES-DuPUUU-Q.js"),"ru-RU":()=>import("./ru_RU-nH7t68Ol.js")},nr=A({locale:""});function rr(){if(nr.value.locale!==_gct.i18n.global.locale.value){const e=tr[_gct.i18n.global.locale.value];e&&e().then(e=>{nr.value=e.default})}return{getAntdLocale:nr}}var or=R({});function ir(){return{themeVars:or,setPrimaryColor:function(e){or.primaryColor=e,G.config({theme:{primaryColor:e}})}}}function ar(e,t,n={}){const r=n.minValue??10,o=A(e),i=R({offset:"offsetWidth",client:"clientX",clientMove:0,rowType:t,offsetWidth:2e3});function a(e){const t=e-i.clientMove;o.value=s(s(o.value)+t),i.clientMove=e}function s(e){return"right"===i.rowType||"bottom"===i.rowType?i.offsetWidth-e:e}return{moveDomDown:function(e,t,n){const r=t,o=e;i.offsetWidth=r[i.offset]??0,i.clientMove=o[i.client]??0,e.preventDefault(),document.onmousemove=e=>{a(e[i.client]??0)},document.onmouseup=()=>{document.onmouseup=null,document.onmousemove=null,null==n||n()}},moveMobileDomDown:function(e,t,n){const r=t,o=e.touches[0];o&&(i.offsetWidth=r[i.offset]??0,i.clientMove=o[i.client]??0,e.preventDefault(),document.ontouchmove=e=>{a(e.touches[0][i.client]??0)},document.ontouchend=()=>{document.ontouchend=null,document.ontouchmove=null,null==n||n()})},start:h({get:()=>o.value<r?r:o.value>i.offsetWidth-r?i.offsetWidth-r:o.value,set(e){o.value=e}})}}var sr=/* @__PURE__ */function(e){return e.SELF_BUILT="SELF_BUILT",e.IMPORT="IMPORT",e}(sr||{});function cr(e,t){const n=A(!1),r=A(!1),o=A(""),i=A(""),a=_gct.store.context.bid||"";function s(){const s=W(e),u=W(t);s&&(n.value=s.startsWith("$"),r.value=/\$?[A-Z]+_/.test(s),o.value=(n.value?"$":"")+(_gct.store.appInfo.sourceType===sr.IMPORT?r.value?"I":"i":"")+(n.value?s.substring(1):s)+(s.endsWith("_")?"":"_"),i.value=""===u||_gct.store.projectName===c.WEB_RENDER?"":a?"_"+(r.value?a.toUpperCase():a):"")}return s(),T(e)&&U(e,()=>{s()}),T(t)&&U(t,()=>{s()}),{keyPrefix:o,keySuffix:i,keyReset:s,keyPad:function(e){if(e)return`${o.value}${e}${i.value}`},keyClip:function(n){const r=W(e).match(/\$?(([a-zA-Z]+_)*[a-zA-Z]+)_?/)[1],a=n.indexOf(r)+r.length,s=i.value&&""!==W(t)?n.lastIndexOf("_"):n.length;return o.value=n.substring(0,a+1),i.value=n.substring(s),n.substring(a+1,s)},keyPrePad:function(e){if(e)return`${o.value}${e}`},keyPreClip:function(t){const n=W(e).match(/\$?(([a-zA-Z]+_)*[a-zA-Z]+)_?/)[1],r=t.indexOf(n)+n.length;return o.value=t.substring(0,r+1),t.substring(r+1)}}}var ur=A(!1),lr=A(),dr=R({node:{}}),fr=A([]),hr=A([]),gr=A([]),pr=A(),vr=A();function mr(){const e={init:void 0,add:void 0,update:void 0,delete:void 0,search:void 0};async function t(t){hr.value=await t(),pr.value=r(),fr.value=o(hr.value,pr.value),e.init||(e.init=t),hr.value=hr.value.map(e=>({...e,userOrgName:i(e.id).join("/")}))}async function n(t,n){gr.value=await t(n),vr.value||(vr.value=n),e.search||(e.search=t)}function r(e){if([...new Set((e??hr.value).map(e=>e.parentId))].includes("ROOT"))return"ROOT";const t=(e??hr.value).find(e=>e.id===e.tenantId);return t?t.parentId:""}function o(e,t="ROOT",n=1){const r=[];for(const i of e)if(i.parentId===t){const t=o(e,i.id,n+1);t.length>0?i.children=t.map(e=>(e.indexDeep=n,e)):i.children=[],r.push(i)}return r}const i=e=>{const t=[],n=hr.value.find(t=>t.id===e);return n?(n.fullPath.split("/").forEach(e=>{const n=hr.value.find(t=>e==t.id);n&&t.push(n.name)}),t):t};return{initTree:t,addTreeNode:async function(r,o){await r(o),e.add||(e.add=r),e.init&&t(e.init),e.search&&n(e.search,vr.value)},updateTreeNode:async function(r,o,i){await r(i??o.id,o),e.update||(e.update=r),e.init&&t(e.init),e.search&&n(e.search,vr.value)},deleteTreeNode:async function(r,o){await r(o),e.delete||(e.delete=r),e.init&&t(e.init),e.search&&n(e.search,vr.value)},dragTreeNode:async function(n,r){await n(r),e.init&&t(e.init)},treeData:fr,treeOrignalData:hr,transformTreeData:o,setTreeSelect:function(e,t){lr.value=e,dr.node=t},selectedTreeKey:lr,selectTreeNode:dr,getTreeNamePathArr:i,getFilterTreeData:e=>{const t=z(W(hr.value)).filter(t=>t.tenantId===e.tenantId);return o(t,r(t))},isExistUser2SelectOrg:ur,setOrgsExistUser:e=>{ur.value=0!==e.length},searchTreeData:n,clearSearchTreeData:function(){gr.value=[],vr.value=void 0,e.search=void 0},searchTreeOrignalData:gr,restTree:()=>{ur.value=!1,lr.value=void 0,dr.node={},fr.value=[],hr.value=[],gr.value=[],pr.value=void 0,vr.value=void 0}}}function yr(){function e(e,t){e.send(t,void 0,function(){X.error(u("sys.printDesigner.printError"))})}return{printZPL:e,printLabelKey:async function(t,n={},{testVar:r,bizServiceKey:o}={}){const i=await _api.apaas.print.postGenerateZplCode({labelId:t,data:n,testVar:r,bizServiceKey:o});if(i&&"string"!=typeof i){const{code:e,printType:t,labelWidth:n,labelHeight:r}=i||{};if("png"===t){const t=window.open("","_blank","height=500,width=800");return t.document.write(`<img style="width: ${n}mm;height: ${r}mm;position: absolute;top: 0;left: 0;" src="data:image/png;base64,${e}">`),void setTimeout(()=>{t.document.close(),t.print(),t.close()},300)}}BrowserPrint.getDefaultDevice("printer",async function(n){n&&n.connection&&n.uid?t?e(n,i):X.error(u("sys.labelNotFound")):X.error(u("sys.printDeviceNotFound"))},function(){X.error(u("sys.printDesigner.getDeviceError"))})}}}var br=/* @__PURE__ */v({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const n=l("modal"),r=A(!1),o=A(!!e.opts.defaultFullscreen),a=()=>{o.value=!o.value},s=A({});e.opts&&Object.assign(s.value,e.opts);let c=null;const u=new i({dismiss:e=>{r.value=!1,c=e,t.emit("dismiss",c)},setOptions(e){Object.assign(s.value,e)}});j("modal",u);const d=e=>u.dismiss(e);t.expose({present:()=>{r.value=!0},dismiss:d});const f=A(!1),h=async()=>{if(u.ok)try{f.value=!0;const e=await u.ok();f.value=!1,!e||!0!==e.ok&&!0!==e.close||d(e)}finally{f.value=!1}else console.warn("打开模态未实现ok方法")},p=async()=>{u.cancel&&!1===await u.cancel()||d()},{getAntdLocale:v}=rr();return()=>{var e,i;let c;const l=null===(e=(i=t.slots).default)||void 0===e?void 0:e.call(i);return l&&l.length>0&&(l[0].props.modal=u),g(G,{locale:v.value},{default:()=>{return[g(nn,{backend:er},(e=c=b(N("a-modal"),{visible:r.value,class:[n.b(),s.value.placement&&n.m(s.value.placement),s.value.modalClass,n.is("hidden-footer",!1===s.value.showFooter),n.is("hidden-close-btn",!1===s.value.showCloseBtn),n.is("hidden-cancel-btn",!1===s.value.showCancelBtn),n.is("full-screen",o.value)],centered:!0,onOk:h,confirmLoading:f.value,onCancel:p,okText:"确认",okButtonProps:{disabled:u.state.okDisabled},...s.value},[!1!==s.value.canFullscreen?g("div",{class:n.e("full-screen"),onClick:a},[g("i",{class:"iconfont "+(o.value?"icon-tuichuquanping":"icon-quanping")},null)]):null,l]),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!S(e)?c:{default:()=>[c]}))];var e}})}}}),wr=/* @__PURE__ */v({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const n=l("drawer"),r=A(!1),o=A({});e.opts&&Object.assign(o.value,e.opts);let a=null;const s=new i({dismiss:e=>{r.value=!1,a=e,t.emit("dismiss",a)}});j("modal",s);const c=e=>s.dismiss(e),u=async()=>{if(s.ok){const e=await s.ok();e&&e.ok&&c(e)}else console.warn("打开模态未实现ok方法")};t.expose({present:()=>{r.value=!0},dismiss:c,ok:u});const{getAntdLocale:d}=rr();return()=>{{var e,i;let a;const l=null===(e=(i=t.slots).default)||void 0===e?void 0:e.call(i);l&&l.length>0&&(l[0].props.modal=s);const f={visible:r.value,class:[n.b(),o.value.placement&&n.m(o.value.placement),o.value.modalClass],style:{padding:0},onOk:u,onCancel:c,...o.value};return g(G,{locale:d.value},{default:()=>{return[g(nn,{backend:er},(e=a=b(N("basic-drawer"),f,[l]),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!S(e)?a:{default:()=>[a]}))];var e}})}}}}),Or=Math.min,Tr=Math.max,Sr=Math.round,Dr=Math.floor,Ir=e=>({x:e,y:e}),Er={left:"right",right:"left",bottom:"top",top:"bottom"};function xr(e,t,n){return Tr(e,Or(t,n))}function Cr(e,t){return"function"==typeof e?e(t):e}function Pr(e){return e.split("-")[0]}function jr(e){return e.split("-")[1]}function Rr(e){return"x"===e?"y":"x"}function Ar(e){return"y"===e?"height":"width"}function Nr(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function kr(e){return Rr(Nr(e))}function Mr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Lr=["left","right"],_r=["right","left"],Fr=["top","bottom"],Hr=["bottom","top"];function Wr(e){const t=Pr(e);return Er[t]+e.slice(t.length)}function Ur(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function $r(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function zr(e,t,n){let{reference:r,floating:o}=e;const i=Nr(t),a=kr(t),s=Ar(a),c=Pr(t),u="y"===i,l=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let h;switch(c){case"top":h={x:l,y:r.y-o.height};break;case"bottom":h={x:l,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-o.width,y:d};break;default:h={x:r.x,y:r.y}}switch(jr(t)){case"start":h[a]-=f*(n&&u?-1:1);break;case"end":h[a]+=f*(n&&u?-1:1)}return h}async function Vr(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=Cr(t,e),g=Ur(h),p=s[f?"floating"===d?"reference":"floating":d],v=$r(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(p)))||n?p:p.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:c})),m="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=$r(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:m,offsetParent:y,strategy:c}):m);return{top:(v.top-w.top+g.top)/b.y,bottom:(w.bottom-v.bottom+g.bottom)/b.y,left:(v.left-w.left+g.left)/b.x,right:(w.right-v.right+g.right)/b.x}}var Br=/* @__PURE__ */new Set(["left","top"]);function qr(){return"undefined"!=typeof window}function Yr(e){return Kr(e)?(e.nodeName||"").toLowerCase():"#document"}function Gr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Xr(e){var t;return null==(t=(Kr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Kr(e){return!!qr()&&(e instanceof Node||e instanceof Gr(e).Node)}function Zr(e){return!!qr()&&(e instanceof Element||e instanceof Gr(e).Element)}function Jr(e){return!!qr()&&(e instanceof HTMLElement||e instanceof Gr(e).HTMLElement)}function Qr(e){return!(!qr()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Gr(e).ShadowRoot)}function eo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=lo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function to(e){return/^(table|td|th)$/.test(Yr(e))}function no(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}var ro,oo=/transform|translate|scale|rotate|perspective|filter/,io=/paint|layout|strict|content/,ao=e=>!!e&&"none"!==e;function so(e){const t=Zr(e)?lo(e):e;return ao(t.transform)||ao(t.translate)||ao(t.scale)||ao(t.rotate)||ao(t.perspective)||!co()&&(ao(t.backdropFilter)||ao(t.filter))||oo.test(t.willChange||"")||io.test(t.contain||"")}function co(){return null==ro&&(ro="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ro}function uo(e){return/^(html|body|#document)$/.test(Yr(e))}function lo(e){return Gr(e).getComputedStyle(e)}function fo(e){return Zr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ho(e){if("html"===Yr(e))return e;const t=e.assignedSlot||e.parentNode||Qr(e)&&e.host||Xr(e);return Qr(t)?t.host:t}function go(e){const t=ho(e);return uo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jr(t)&&eo(t)?t:go(t)}function po(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=go(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Gr(o);if(i){const e=vo(a);return t.concat(a,a.visualViewport||[],eo(o)?o:[],e&&n?po(e):[])}return t.concat(o,po(o,[],n))}function vo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function mo(e){const t=lo(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Jr(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Sr(n)!==i||Sr(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function yo(e){return Zr(e)?e:e.contextElement}function bo(e){const t=yo(e);if(!Jr(t))return Ir(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=mo(t);let a=(i?Sr(n.width):n.width)/r,s=(i?Sr(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}var wo=/* @__PURE__ */Ir(0);function Oo(e){const t=Gr(e);return co()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:wo}function To(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=yo(e);let a=Ir(1);t&&(r?Zr(r)&&(a=bo(r)):a=bo(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Gr(e))&&t}(i,n,r)?Oo(i):Ir(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,l=o.width/a.x,d=o.height/a.y;if(i){const e=Gr(i),t=r&&Zr(r)?Gr(r):r;let n=e,o=vo(n);for(;o&&r&&t!==n;){const e=bo(o),t=o.getBoundingClientRect(),r=lo(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,l*=e.x,d*=e.y,c+=i,u+=a,n=Gr(o),o=vo(n)}}return $r({width:l,height:d,x:c,y:u})}function So(e,t){const n=fo(e).scrollLeft;return t?t.left+n:To(Xr(e)).left+n}function Do(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-So(e,n),y:n.top+t.scrollTop}}function Io(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Gr(e),r=Xr(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=co();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}const u=So(r);if(u<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else u<=25&&(i+=u);return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=Xr(e),n=fo(e),r=e.ownerDocument.body,o=Tr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Tr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+So(e);const s=-n.scrollTop;return"rtl"===lo(r).direction&&(a+=Tr(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Xr(e));else if(Zr(t))r=function(e,t){const n=To(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Jr(e)?bo(e):Ir(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Oo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return $r(r)}function Eo(e,t){const n=ho(e);return!(n===t||!Zr(n)||uo(n))&&("fixed"===lo(n).position||Eo(n,t))}function xo(e,t){const n=t.get(e);if(n)return n;let r=po(e,[],!1).filter(e=>Zr(e)&&"body"!==Yr(e)),o=null;const i="fixed"===lo(e).position;let a=i?ho(e):e;for(;Zr(a)&&!uo(a);){const t=lo(a),n=so(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||eo(a)&&!n&&Eo(e,a))?r=r.filter(e=>e!==a):o=t,a=ho(a)}return t.set(e,r),r}function Co(e,t,n){const r=Jr(t),o=Xr(t),i="fixed"===n,a=To(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=Ir(0);function u(){c.x=So(o)}if(r||!r&&!i)if(("body"!==Yr(t)||eo(o))&&(s=fo(t)),r){const e=To(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&u();i&&!r&&o&&u();const l=!o||r||i?Ir(0):Do(o,s);return{x:a.left+s.scrollLeft-c.x-l.x,y:a.top+s.scrollTop-c.y-l.y,width:a.width,height:a.height}}function Po(e){return"static"===lo(e).position}function jo(e,t){if(!Jr(e)||"fixed"===lo(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Xr(e)===n&&(n=n.ownerDocument.body),n}function Ro(e,t){const n=Gr(e);if(no(e))return n;if(!Jr(e)){let t=ho(e);for(;t&&!uo(t);){if(Zr(t)&&!Po(t))return t;t=ho(t)}return n}let r=jo(e,t);for(;r&&to(r)&&Po(r);)r=jo(r,t);return r&&uo(r)&&Po(r)&&!so(r)?n:r||function(e){let t=ho(e);for(;Jr(t)&&!uo(t);){if(so(t))return t;if(no(t))return null;t=ho(t)}return null}(e)||n}var Ao={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Xr(r),s=!!t&&no(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=Ir(1);const l=Ir(0),d=Jr(r);if((d||!d&&!i)&&(("body"!==Yr(r)||eo(a))&&(c=fo(r)),d)){const e=To(r);u=bo(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}const f=!a||d||i?Ir(0):Do(a,c);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+l.x+f.x,y:n.y*u.y-c.scrollTop*u.y+l.y+f.y}},getDocumentElement:Xr,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?no(t)?[]:xo(t,this._c):[].concat(n),r],a=Io(t,i[0],o);let s=a.top,c=a.right,u=a.bottom,l=a.left;for(let d=1;d<i.length;d++){const e=Io(t,i[d],o);s=Tr(e.top,s),c=Or(e.right,c),u=Or(e.bottom,u),l=Tr(e.left,l)}return{width:c-l,height:u-s,x:l,y:s}},getOffsetParent:Ro,getElementRects:async function(e){const t=this.getOffsetParent||Ro,n=this.getDimensions,r=await n(e.floating);return{reference:Co(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=mo(e);return{width:t,height:n}},getScale:bo,isElement:Zr,isRTL:function(e){return"rtl"===lo(e).direction}};function No(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var ko=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Pr(n),s=jr(n),c="y"===Nr(n),u=Br.has(a)?-1:1,l=i&&c?-1:1,d=Cr(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof g&&(h="end"===s?-1*g:g),c?{x:h*l,y:f*u}:{x:f*u,y:h*l}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},Mo=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=Cr(e,t),l={x:n,y:r},d=await i.detectOverflow(t,u),f=Nr(Pr(o)),h=Rr(f);let g=l[h],p=l[f];if(a){const e="y"===h?"bottom":"right";g=xr(g+d["y"===h?"top":"left"],g,g-d[e])}if(s){const e="y"===f?"bottom":"right";p=xr(p+d["y"===f?"top":"left"],p,p-d[e])}const v=c.fn({...t,[h]:g,[f]:p});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[h]:a,[f]:s}}}}}},Lo=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...v}=Cr(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const m=Pr(o),y=Nr(s),b=Pr(s)===s,w=await(null==c.isRTL?void 0:c.isRTL(u.floating)),O=f||(b||!p?[Wr(s)]:function(e){const t=Wr(e);return[Mr(e),t,Mr(t)]}(s)),T="none"!==g;!f&&T&&O.push(...function(e,t,n,r){const o=jr(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?_r:Lr:t?Lr:_r;case"left":case"right":return t?Fr:Hr;default:return[]}}(Pr(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(Mr)))),i}(s,p,g,w));const S=[s,...O],D=await c.detectOverflow(t,v),I=[];let E=(null==(r=i.flip)?void 0:r.overflows)||[];if(l&&I.push(D[m]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=jr(e),o=kr(e),i=Ar(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Wr(a)),[a,Wr(a)]}(o,a,w);I.push(D[e[0]],D[e[1]])}if(E=[...E,{placement:o,overflows:I}],!I.every(e=>e<=0)){var x,C;const e=((null==(x=i.flip)?void 0:x.index)||0)+1,t=S[e];if(t&&("alignment"!==d||y===Nr(t)||E.every(e=>Nr(e.placement)!==y||e.overflows[0]>0)))return{data:{index:e,overflows:E},reset:{placement:t}};let n=null==(C=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:C.placement;if(!n)switch(h){case"bestFit":{var P;const e=null==(P=E.filter(e=>{if(T){const t=Nr(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:P[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}};function _o(e,t){return!!y()&&(C(e,t),!0)}var Fo=/* @__PURE__ */new WeakMap,Ho="undefined"!=typeof window&&"undefined"!=typeof document,Wo=("undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),e=>null!=e),Uo=Object.prototype.toString,$o=()=>{},zo=/* @__PURE__ */Vo();function Vo(){var e,t,n;return Ho&&!!(null===(e=window)||void 0===e||null===(e=e.navigator)||void 0===e?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||(null===(t=window)||void 0===t||null===(t=t.navigator)||void 0===t?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(null===(n=window)||void 0===n?void 0:n.navigator.userAgent))}function Bo(e,t){return function(...n){return new Promise((r,o)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(o)})}}var qo=e=>e();function Yo(e,t={}){let n,r,o=$o;const i=e=>{clearTimeout(e),o(),o=$o};let a;return s=>{const c=H(e),u=H(t.maxWait);return n&&i(n),c<=0||void 0!==u&&u<=0?(r&&(i(r),r=void 0),Promise.resolve(s())):new Promise((e,l)=>{o=t.rejectOnCancel?l:e,a=s,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=void 0,e(a())},u)),n=setTimeout(()=>{r&&i(r),r=void 0,e(s())},c)})}}function Go(e){return e.endsWith("rem")?16*Number.parseFloat(e):Number.parseFloat(e)}function Xo(e){return Array.isArray(e)?e:[e]}function Ko(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}var Zo=/\B([A-Z])/g,Jo=(Ko(e=>e.replace(Zo,"-$1").toLowerCase()),/-(\w)/g);function Qo(e){return e||m()}function ei(e,t=200,n={}){return Bo(Yo(t,n),e)}function ti(e,t={}){if(!T(e))return F(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const r in e.value)n[r]=p(()=>({get:()=>e.value[r],set(n){var o;if(null===(o=H(t.replaceRef))||void 0===o||o)if(Array.isArray(e.value)){const t=[...e.value];t[r]=n,e.value=t}else{const t={...e.value,[r]:n};Object.setPrototypeOf(t,Object.getPrototypeOf(e.value)),e.value=t}else e.value[r]=n}}));return n}function ni(e,t=!0,n){Qo(n)?x(e,n):t?e():D(e)}function ri(e,t){Qo(t)&&P(e,t)}function oi(e,t,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n,i=M(!1);let a;function s(){a&&(clearTimeout(a),a=void 0)}function c(){i.value=!1,s()}function u(...n){o&&e(),s(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=void 0,e(...n)},H(t))}return r&&(i.value=!0,Ho&&u()),_o(c),{isPending:k(i),start:u,stop:c}}function ii(e,t,n={}){const{debounce:r=0,maxWait:o,...i}=n;return function(e,t,n={}){const{eventFilter:r=qo,...o}=n;return U(e,Bo(r,t),o)}(e,t,{...i,eventFilter:Yo(r,{maxWait:o})})}Ko(e=>e.replace(Jo,(e,t)=>t?t.toUpperCase():""));var ai=Ho?window:void 0,si=Ho?window.document:void 0;function ci(e){var t;const n=H(e);return null!==(t=null==n?void 0:n.$el)&&void 0!==t?t:n}function ui(...e){const t=h(()=>{const t=Xo(H(e[0])).filter(e=>null!=e);return t.every(e=>"string"!=typeof e)?t:void 0});return n=()=>{var n,r;return[null!==(n=null===(r=t.value)||void 0===r?void 0:r.map(e=>ci(e)))&&void 0!==n?n:[ai].filter(e=>null!=e),Xo(H(t.value?e[1]:e[0])),Xo(W(t.value?e[2]:e[1])),H(t.value?e[3]:e[2])]},r=([e,t,n,r],o,i)=>{if(!(null==e?void 0:e.length)||!(null==t?void 0:t.length)||!(null==n?void 0:n.length))return;const a=(s=r,"[object Object]"===Uo.call(s)?{...r}:r);var s;const c=e.flatMap(e=>t.flatMap(t=>n.map(n=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(e,t,n,a))));i(()=>{c.forEach(e=>e())})},o={flush:"post"},U(n,r,{...o,immediate:!0});var n,r,o}Ho&&window.navigator,Ho&&window.location;var li=!1;function di(e,t,n={}){const{window:r=ai,ignore:o=[],capture:i=!0,detectIframe:a=!1,controls:s=!1}=n;if(!r)return s?{stop:$o,cancel:$o,trigger:$o}:$o;if(zo&&!li){li=!0;const e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener("click",$o,e)),r.document.documentElement.addEventListener("click",$o,e)}let c=!0;const u=e=>H(o).some(t=>{if("string"==typeof t)return Array.from(r.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{const n=ci(t);return n&&(e.target===n||e.composedPath().includes(n))}}),l=n=>{const r=ci(e);null!=n.target&&(r instanceof Element||!function(e){const t=H(e);return t&&16===t.$.subTree.shapeFlag}(e)||!function(e,t){const n=H(e),r=n.$.subTree&&n.$.subTree.children;return!(null==r||!Array.isArray(r))&&r.some(e=>e.el===t.target||t.composedPath().includes(e.el))}(e,n))&&r&&r!==n.target&&!n.composedPath().includes(r)&&("detail"in n&&0===n.detail&&(c=!u(n)),c?t(n):c=!0)};let d=!1;const f=[ui(r,"click",e=>{d||(d=!0,setTimeout(()=>{d=!1},0),l(e))},{passive:!0,capture:i}),ui(r,"pointerdown",t=>{const n=ci(e);c=!u(t)&&!(!n||t.composedPath().includes(n))},{passive:!0}),a&&ui(r,"blur",n=>{setTimeout(()=>{var o;const i=ci(e);"IFRAME"!==(null===(o=r.document.activeElement)||void 0===o?void 0:o.tagName)||(null==i?void 0:i.contains(r.document.activeElement))||t(n)},0)},{passive:!0})].filter(Boolean),h=()=>f.forEach(e=>e());return s?{stop:h,cancel:()=>{c=!1},trigger:e=>{c=!0,l(e),c=!1}}:h}function fi(e){const t=function(){const e=M(!1),t=m();return t&&x(()=>{e.value=!0},t),e}();return h(()=>(t.value,Boolean(e())))}function hi(e,t,n={}){const{window:r=ai,...o}=n;let i;const a=/* @__PURE__ */fi(()=>r&&"MutationObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},c=U(h(()=>{const t=Xo(H(e)).map(ci).filter(Wo);return new Set(t)}),e=>{s(),a.value&&e.size&&(i=new MutationObserver(t),e.forEach(e=>i.observe(e,o)))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return _o(u),{isSupported:a,stop:u,takeRecords:()=>null==i?void 0:i.takeRecords()}}var gi=Symbol("vueuse-ssr-width");function pi(){const e=w()?((...e)=>{var t;const n=e[0],r=null===(t=m())||void 0===t?void 0:t.proxy,o=null!=r?r:y();if(null==o&&!w())throw new Error("injectLocal must be called in setup");return o&&Fo.has(o)&&n in Fo.get(o)?Fo.get(o)[n]:O(...e)})(gi,null):null;return"number"==typeof e?e:void 0}function vi(e,t,n={}){const{window:r=ai,...o}=n;let i;const a=/* @__PURE__ */fi(()=>r&&"ResizeObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},c=U(h(()=>{const t=H(e);return Array.isArray(t)?t.map(e=>ci(e)):[ci(t)]}),e=>{if(s(),a.value&&r){i=new ResizeObserver(t);for(const t of e)t&&i.observe(t,o)}},{immediate:!0,flush:"post"}),u=()=>{s(),c()};return _o(u),{isSupported:a,stop:u}}function mi(e,t,n={}){const{root:r,rootMargin:o,threshold:i=0,window:a=ai,immediate:s=!0}=n,c=/* @__PURE__ */fi(()=>a&&"IntersectionObserver"in a),u=h(()=>Xo(H(e)).map(ci).filter(Wo));let l=$o;const d=M(s),f=c.value?U(()=>[u.value,ci(r),H(o),d.value],([e,n,r])=>{if(l(),!d.value)return;if(!e.length)return;const o=new IntersectionObserver(t,{root:ci(n),rootMargin:r,threshold:i});e.forEach(e=>e&&o.observe(e)),l=()=>{o.disconnect(),l=$o}},{immediate:s,flush:"post"}):$o,g=()=>{l(),f(),d.value=!1};return _o(g),{isSupported:c,isActive:d,pause(){l(),d.value=!1},resume(){d.value=!0},stop:g}}function yi(e,t={}){const{window:n=ai,scrollTarget:r,threshold:o=0,rootMargin:i,once:a=!1,initialValue:s=!1}=t,c=M(s),{stop:u}=mi(e,e=>{let t=c.value,n=0;for(const r of e)r.time>=n&&(n=r.time,t=r.isIntersecting);c.value=t,a&&U(c,()=>{u()},{once:!0})},{root:r,window:n,threshold:o,rootMargin:i});return c}var bi=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function wi(e,t={}){const{document:n=si,autoExit:r=!1}=t,o=h(()=>{var t;return null!==(t=ci(e))&&void 0!==t?t:null==n?void 0:n.documentElement}),i=M(!1),a=h(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(e=>n&&e in n||o.value&&e in o.value)),s=h(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(e=>n&&e in n||o.value&&e in o.value)),c=h(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(e=>n&&e in n||o.value&&e in o.value)),u=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(e=>n&&e in n),l=/* @__PURE__ */fi(()=>o.value&&n&&void 0!==a.value&&void 0!==s.value&&void 0!==c.value),d=()=>{if(c.value){if(n&&null!=n[c.value])return n[c.value];{const e=o.value;if(null!=(null==e?void 0:e[c.value]))return Boolean(e[c.value])}}return!1};async function f(){if(l.value&&i.value){if(s.value)if(null!=(null==n?void 0:n[s.value]))await n[s.value]();else{const e=o.value;null!=(null==e?void 0:e[s.value])&&await e[s.value]()}i.value=!1}}async function g(){if(!l.value||i.value)return;d()&&await f();const e=o.value;a.value&&null!=(null==e?void 0:e[a.value])&&(await e[a.value](),i.value=!0)}const p=()=>{const e=d();(!e||e&&u&&(null==n?void 0:n[u])===o.value)&&(i.value=e)},v={capture:!1,passive:!0};return ui(n,bi,p,v),ui(()=>ci(o),bi,p,v),ni(p,!1),r&&_o(f),{isSupported:l,isFullscreen:i,enter:g,exit:f,toggle:async function(){await(i.value?f():g())}}}function Oi(e,t,n={}){var r;const{direction:o="bottom",interval:i=100,canLoadMore:a=()=>!0}=n,s=R(function(e,t={}){const{throttle:n=0,idle:r=200,onStop:o=$o,onScroll:i=$o,offset:a={left:0,right:0,top:0,bottom:0},observe:s={mutation:!1},eventListenerOptions:c={capture:!1,passive:!0},behavior:u="auto",window:l=ai,onError:d=e=>{console.error(e)}}=t,f="boolean"==typeof s?{mutation:s}:s,g=M(0),p=M(0),v=h({get:()=>g.value,set(e){y(e,void 0)}}),m=h({get:()=>p.value,set(e){y(void 0,e)}});function y(t,n){var r,o,i,a;if(!l)return;const s=H(e);if(!s)return;null===(r=s instanceof Document?l.document.body:s)||void 0===r||r.scrollTo({top:null!==(o=H(n))&&void 0!==o?o:m.value,left:null!==(i=H(t))&&void 0!==i?i:v.value,behavior:H(u)});const c=(null==s||null===(a=s.document)||void 0===a?void 0:a.documentElement)||(null==s?void 0:s.documentElement)||s;null!=v&&(g.value=c.scrollLeft),null!=m&&(p.value=c.scrollTop)}const b=M(!1),w=R({left:!0,right:!1,top:!0,bottom:!1}),O=R({left:!1,right:!1,top:!1,bottom:!1}),S=e=>{b.value&&(b.value=!1,O.left=!1,O.right=!1,O.top=!1,O.bottom=!1,o(e))},D=ei(S,n+r),I=e=>{var t;if(!l)return;const n=(null==e||null===(t=e.document)||void 0===t?void 0:t.documentElement)||(null==e?void 0:e.documentElement)||ci(e),{display:r,flexDirection:o,direction:i}=l.getComputedStyle(n),s="rtl"===i?-1:1,c=n.scrollLeft;O.left=c<g.value,O.right=c>g.value;const u=Math.abs(c*s)<=(a.left||0),d=Math.abs(c*s)+n.clientWidth>=n.scrollWidth-(a.right||0)-1;"flex"===r&&"row-reverse"===o?(w.left=d,w.right=u):(w.left=u,w.right=d),g.value=c;let f=n.scrollTop;e!==l.document||f||(f=l.document.body.scrollTop),O.top=f<p.value,O.bottom=f>p.value;const h=Math.abs(f)<=(a.top||0),v=Math.abs(f)+n.clientHeight>=n.scrollHeight-(a.bottom||0)-1;"flex"===r&&"column-reverse"===o?(w.top=v,w.bottom=h):(w.top=h,w.bottom=v),p.value=f},E=e=>{var t;l&&(I(null!==(t=e.target.documentElement)&&void 0!==t?t:e.target),b.value=!0,D(e),i(e))};return ui(e,"scroll",n?function(e,t=200,n=!1,r=!0,o=!1){return Bo(function(...e){let t,n,r,o,i,a,s=0,c=!0,u=$o;T(e[0])||"object"!=typeof e[0]?[r,o=!0,i=!0,a=!1]=e:({delay:r,trailing:o=!0,leading:i=!0,rejectOnCancel:a=!1}=e[0]);const l=()=>{t&&(clearTimeout(t),t=void 0,u(),u=$o)};return e=>{const d=H(r),f=Date.now()-s,h=()=>n=e();return l(),d<=0?(s=Date.now(),h()):(f>d?(s=Date.now(),!i&&c||h()):o&&(n=new Promise((e,n)=>{u=a?n:e,t=setTimeout(()=>{s=Date.now(),c=!0,e(h()),l()},Math.max(0,d-f))})),i||t||(t=setTimeout(()=>c=!0,d)),c=!1,n)}}(t,n,r,o),e)}(E,n,!0,!1):E,c),ni(()=>{try{const t=H(e);if(!t)return;I(t)}catch(t){d(t)}}),(null==f?void 0:f.mutation)&&null!=e&&e!==l&&e!==document&&hi(e,()=>{const t=H(e);t&&I(t)},{attributes:!0,childList:!0,subtree:!0}),ui(e,"scrollend",S,c),{x:v,y:m,isScrolling:b,arrivedState:w,directions:O,measure(){const t=H(e);l&&t&&I(t)}}}(e,{...n,offset:{[o]:null!==(r=n.distance)&&void 0!==r?r:0,...n.offset}})),c=A(),u=h(()=>!!c.value),l=h(()=>{return t=H(e),"undefined"!=typeof Window&&t instanceof Window?t.document.documentElement:"undefined"!=typeof Document&&t instanceof Document?t.documentElement:t;var t}),d=yi(l),f=h(()=>!!l.value&&a(l.value));function g(){if(s.measure(),!l.value||!d.value||!f.value||c.value)return;const{scrollHeight:e,clientHeight:n,scrollWidth:r,clientWidth:a}=l.value,u="bottom"===o||"top"===o?e<=n:r<=a;(s.arrivedState[o]||u)&&(c.value=Promise.all([t(s),new Promise(e=>setTimeout(e,i))]).finally(()=>{c.value=null,D(()=>g())}))}return ri(U(()=>[s.arrivedState[o],d.value,f.value],g,{immediate:!0,flush:"post"})),{isLoading:u,reset(){D(()=>g())}}}function Ti(e,t){const{containerStyle:n,wrapperProps:r,scrollTo:o,calculateRange:i,currentList:a,containerRef:s}="itemHeight"in t?function(e,t){const n=Si(t),{state:r,source:o,currentList:i,size:a,containerRef:s}=n,{itemHeight:c,overscan:u=5}=e,l=Di(r,o,c),d=Ei("vertical",u,Ii(o,c),l,n),f=xi(c,o),g=h(()=>f(r.value.start)),p=Pi(c,o);return Ci(a,t,s,d),{calculateRange:d,scrollTo:Ri("vertical",d,f,s),containerStyle:{overflowY:"auto"},wrapperProps:h(()=>({style:{width:"100%",height:p.value-g.value+"px",marginTop:`${g.value}px`}})),currentList:i,containerRef:s}}(t,e):function(e,t){const n=Si(t),{state:r,source:o,currentList:i,size:a,containerRef:s}=n,{itemWidth:c,overscan:u=5}=e,l=Di(r,o,c),d=Ei("horizontal",u,Ii(o,c),l,n),f=xi(c,o),g=h(()=>f(r.value.start)),p=Pi(c,o);return Ci(a,t,s,d),{scrollTo:Ri("horizontal",d,f,s),calculateRange:d,wrapperProps:h(()=>({style:{height:"100%",width:p.value-g.value+"px",marginLeft:`${g.value}px`,display:"flex"}})),containerStyle:{overflowX:"auto"},currentList:i,containerRef:s}}(t,e);return{list:a,scrollTo:o,containerProps:{ref:s,onScroll:()=>{i()},style:n},wrapperProps:r}}function Si(e){const t=M(null),n=function(e,t={width:0,height:0},n={}){const{window:r=ai,box:o="content-box"}=n,i=h(()=>{var t;return null===(t=ci(e))||void 0===t||null===(t=t.namespaceURI)||void 0===t?void 0:t.includes("svg")}),a=M(t.width),s=M(t.height),{stop:c}=vi(e,([t])=>{const n="border-box"===o?t.borderBoxSize:"content-box"===o?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&i.value){const t=ci(e);if(t){const e=t.getBoundingClientRect();a.value=e.width,s.value=e.height}}else if(n){const e=Xo(n);a.value=e.reduce((e,{inlineSize:t})=>e+t,0),s.value=e.reduce((e,{blockSize:t})=>e+t,0)}else a.value=t.contentRect.width,s.value=t.contentRect.height},n);ni(()=>{const n=ci(e);n&&(a.value="offsetWidth"in n?n.offsetWidth:t.width,s.value="offsetHeight"in n?n.offsetHeight:t.height)});const u=U(()=>ci(e),e=>{a.value=e?t.width:0,s.value=e?t.height:0});return{width:a,height:s,stop:function(){c(),u()}}}(t),r=A([]),o=M(e);return{state:A({start:0,end:10}),source:o,currentList:r,size:n,containerRef:t}}function Di(e,t,n){return r=>{if("number"==typeof n)return Math.ceil(r/n);const{start:o=0}=e.value;let i=0,a=0;for(let e=o;e<t.value.length&&(i+=n(e),a=e,!(i>r));e++);return a-o}}function Ii(e,t){return n=>{if("number"==typeof t)return Math.floor(n/t)+1;let r=0,o=0;for(let i=0;i<e.value.length;i++)if(r+=t(i),r>=n){o=i;break}return o+1}}function Ei(e,t,n,r,{containerRef:o,state:i,currentList:a,source:s}){return()=>{const c=o.value;if(c){const o=n("vertical"===e?c.scrollTop:c.scrollLeft),u=r("vertical"===e?c.clientHeight:c.clientWidth),l=o-t,d=o+u+t;i.value={start:l<0?0:l,end:d>s.value.length?s.value.length:d},a.value=s.value.slice(i.value.start,i.value.end).map((e,t)=>({data:e,index:t+i.value.start}))}}}function xi(e,t){return n=>"number"==typeof e?n*e:t.value.slice(0,n).reduce((t,n,r)=>t+e(r),0)}function Ci(e,t,n,r){U([e.width,e.height,()=>H(t),n],()=>{r()})}function Pi(e,t){return h(()=>"number"==typeof e?t.value.length*e:t.value.reduce((t,n,r)=>t+e(r),0))}Number.POSITIVE_INFINITY;var ji={horizontal:"scrollLeft",vertical:"scrollTop"};function Ri(e,t,n,r){return o=>{r.value&&(r.value[ji[e]]=n(o),t())}}function Ai(e={}){const{window:t=ai,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:i=!0,type:a="inner"}=e,s=M(n),c=M(r),u=()=>{if(t)if("outer"===a)s.value=t.outerWidth,c.value=t.outerHeight;else if("visual"===a&&t.visualViewport){const{width:e,height:n,scale:r}=t.visualViewport;s.value=Math.round(e*r),c.value=Math.round(n*r)}else i?(s.value=t.innerWidth,c.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,c.value=t.document.documentElement.clientHeight)};u(),ni(u);const l={passive:!0};return ui("resize",u,l),t&&"visual"===a&&t.visualViewport&&ui(t.visualViewport,"resize",u,l),o&&U(function(e,t={}){const{window:n=ai,ssrWidth:r=/* @__PURE__ */pi()}=t,o=/* @__PURE__ */fi(()=>n&&"matchMedia"in n&&"function"==typeof n.matchMedia),i=M("number"==typeof r),a=M(),s=M(!1);return $(()=>{if(i.value)return i.value=!o.value,void(s.value=H(e).split(",").some(e=>{const t=e.includes("not all"),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),o=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let i=Boolean(n||o);return n&&i&&(i=r>=Go(n[1])),o&&i&&(i=r<=Go(o[1])),t?!i:i}));o.value&&(a.value=n.matchMedia(H(e)),s.value=a.value.matches)}),ui(a,"change",e=>{s.value=e.matches},{passive:!0}),h(()=>s.value)}("(orientation: portrait)"),()=>u()),{width:s,height:c}}var Ni=/* @__PURE__ */v({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const n=l("popover"),r=A(!1),o=A(),a=A(),s=R({}),{width:c,height:u,maxHeight:d}=e.opts;c&&(B(c)?s.width=`${c}px`:s.width=c),u&&(B(u)?s.height=`${u}px`:s.height=u),d&&(B(d)?s.maxHeight=`${d}px`:s.maxHeight=d);const f=new i({dismiss:e=>{t.emit("dismiss",e)}});function h(e){return f.dismiss(e)}let p=()=>{};P(()=>{p()}),di(o,()=>{h({ok:!1})}),t.expose({present:async function(t){r.value=!0,p=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=yo(e),l=o||i?[...u?po(u):[],...t?po(t):[]]:[];l.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=u&&s?function(e,t){let n,r=null;const o=Xr(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const u=e.getBoundingClientRect(),{left:l,top:d,width:f,height:h}=u;if(s||t(),!f||!h)return;const g={rootMargin:-Dr(d)+"px "+-Dr(o.clientWidth-(l+f))+"px "+-Dr(o.clientHeight-(d+h))+"px "+-Dr(l)+"px",threshold:Tr(0,Or(1,c))||1};let p=!0;function v(t){const r=t[0].intersectionRatio;if(r!==c){if(!p)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||No(u,e.getBoundingClientRect())||a(),p=!1}try{r=new IntersectionObserver(v,{...g,root:o.ownerDocument})}catch(m){r=new IntersectionObserver(v,g)}r.observe(e)}(!0),i}(u,n):null;let f,h=-1,g=null;a&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&g&&t&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),u&&!c&&g.observe(u),t&&g.observe(t));let p=c?To(e):null;return c&&function t(){const r=To(e);p&&!No(p,r)&&n(),p=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=g)||e.disconnect(),g=null,c&&cancelAnimationFrame(f)}}(t,o.value,()=>async function(e,t,n,r){const o=[ko(r.offsetOpts||6),Lo(),Mo()];r.noArrow||o.push((e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:u,padding:l=0}=Cr(e,t)||{};if(null==u)return{};const d=Ur(l),f={x:n,y:r},h=kr(o),g=Ar(h),p=await a.getDimensions(u),v="y"===h,m=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",w=i.reference[g]+i.reference[h]-f[h]-i.floating[g],O=f[h]-i.reference[h],T=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let S=T?T[b]:0;S&&await(null==a.isElement?void 0:a.isElement(T))||(S=s.floating[b]||i.floating[g]);const D=w/2-O/2,I=S/2-p[g]/2-1,E=Or(d[m],I),x=Or(d[y],I),C=E,P=S-p[g]-x,j=S/2-p[g]/2+D,R=xr(C,j,P),A=!c.arrow&&null!=jr(o)&&j!==R&&i.reference[g]/2-(j<C?E:x)-p[g]/2<0,N=A?j<C?j-C:j-P:0;return{[h]:f[h]+N,data:{[h]:R,centerOffset:j-R-N,...A&&{alignmentOffset:N}},reset:A}}}))({element:n}));const i={placement:r.placement,strategy:"absolute",middleware:o};r.options&&Object.assign(i,r.options);const a=await((e,t,n)=>{const r=/* @__PURE__ */new Map,o={platform:Ao,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:Vr},c=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:d}=zr(u,r,c),f=r,h=0;const g={};for(let p=0;p<i.length;p++){const n=i[p];if(!n)continue;const{name:v,fn:m}=n,{x:y,y:b,data:w,reset:O}=await m({x:l,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:t}});l=null!=y?y:l,d=null!=b?b:d,g[v]={...g[v],...w},O&&h<50&&(h++,"object"==typeof O&&(O.placement&&(f=O.placement),O.rects&&(u=!0===O.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):O.rects),({x:l,y:d}=zr(u,f,c))),p=-1)}return{x:l,y:d,placement:f,strategy:o,middlewareData:g}})(e,t,{...o,platform:i})})(e,t,i);{const{x:e,y:o,placement:i,middlewareData:s}=a,{style:c}=t;if(c.left=`${e}px`,c.top=`${o}px`,!r.noArrow){const{x:e,y:t}=s.arrow,r={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];Object.assign(n.style,{left:null!=e?`${e}px`:"",top:null!=t?`${t}px`:"",right:"",bottom:"",[r]:"-4px"})}}}(t,o.value,a.value,e.opts))},dismiss:h});const{getAntdLocale:v}=rr();return()=>{var i,c;const u=null===(i=(c=t.slots).default)||void 0===i?void 0:i.call(c);u&&u.length>0&&u[0].props&&(u[0].props.modal=f);const l=g("div",{class:[n.b(),n.is("show",r.value),e.opts.className],ref:o,style:s,onClick:e=>{e.stopPropagation()}},[!e.opts.noArrow&&g("div",{class:[n.e("arrow")],ref:a},null),u]);return!0===e.opts.autoClose?g("div",{class:[n.e("overlay")],onClick:()=>{!0===e.opts.autoClose&&h()}},[l]):g(G,{locale:v.value},{default:()=>{return[g(nn,{backend:er},(e=l,"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!S(e)?l:{default:()=>[l]}))];var e}})}}}),ki=/* @__PURE__ */v({name:"AppFullScreenContainer",props:{opts:{type:Object,default:()=>({})}},setup(e,t){const n=l("app-full-screen-container"),r=A(!1),o=A({});e.opts&&Object.assign(o.value,e.opts);let a=null;const s=new i({dismiss:e=>{r.value=!1,a=e,t.emit("dismiss",a)}});j("modal",s);const c=e=>s.dismiss(e);t.expose({present:()=>{r.value=!0},dismiss:c,ok:async()=>{if(s.ok){const e=await s.ok();e&&e.ok&&c(e)}else console.warn("打开模态未实现ok方法")},cancel:()=>s.cancel?s.cancel():c()});const{getAntdLocale:u}=rr();return()=>{var e,i;let a;const c=null===(e=(i=t.slots).default)||void 0===e?void 0:e.call(i);return c&&c.length>0&&c[0].props&&(c[0].props.modal=s),g(G,{locale:u.value},{default:()=>{return[g(nn,{backend:er},(e=a=b("div",{class:[n.b(),n.is("is-hidden",!0!==r.value),o.value.containerClass],...o.value},[c]),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!S(e)?a:{default:()=>[a]}))];var e}})}}});function Mi(e){return q(e)?N(e):e}var Li=class{async modal(e,t,n){const r=this.createModal(e,t,n);return r.present(),r.onWillDismiss()}createModal(e,t,n){return function(e,t){return new a(br,e,t)}(V(e)?e:()=>b(Mi(e),{...t}),n)}drawer(e,t,n){const r=this.createDrawer(e,t,n);return r.present(),r.onWillDismiss()}createDrawer(e,t,n){return function(e,t){return new a(wr,e,t)}(V(e)?e:()=>b(Mi(e),{...t}),n)}popover(e,t,n,r){const o=this.createPopover(t,n,r);return o.present(e),o.onWillDismiss()}createPopover(e,t,n){return function(e,t){return new s(Ni,e,t)}(V(e)?e:()=>b(Mi(e),{...t}),n)}fullScreen(e,t,n){const r=this.createFullScreen(e,t,n);return r.present(),r.onWillDismiss()}createFullScreen(e,t,n){return function(e,t){return new a(ki,e,t)}(V(e)?e:()=>b(Mi(e),{...t}),n)}},_i=new Li,Fi=(e,t)=>(e.install=n=>{const r=e.name||e.displayName||e.__name;r&&(n.component(r,e),t&&(n.config.globalProperties[t]=e))},e),Hi={childrenFields:["children"]},Wi=/* @__PURE__ */new Error("中断操作");function Ui(e,t){for(const n of t){const t=e[n];if(Array.isArray(t)&&t.length>0)return t}}function $i(e,t,n,r){const{childrenFields:o}=Y({},Hi,r||{});if(null==t?void 0:t.length)for(let i=0;i<t.length;i++){const a=t[i];if(n({item:a,index:i,parent:e}))throw Wi;const s=Ui(a,o);(null==s?void 0:s.length)&&$i(a,s,n,r)}}function zi(e,t,n){const{childrenFields:r}=Y({},Hi,n||{});try{const o=Array.isArray(e)?void 0:e,i=Array.isArray(e)?e:Ui(e,r);(null==i?void 0:i.length)?$i(o,i,t,n):console.warn("没有可遍历的数组",e,n)}catch(o){if(o!==Wi)throw o}}var Vi={...Hi,compareField:"id",compareCallback:({item:e,key:t,compareField:n})=>e[n]===t};function Bi(e,t,n){const{compareField:r,compareCallback:o}=Y({},Vi,n||{});let i,a;return zi(e,e=>{if(o({...e,key:t,compareField:r}))return i=e.item,a=e.parent,!0},n),i?{child:i,parent:a}:void 0}function qi(e,t){const n=e=>qi(e,t);return e.map(e=>t(e,n))}function Yi(e,t,n){const{childrenFields:r}=Y({},Hi,n||{});return function e(n,o){return n.filter(n=>{console.log("item",n.title);const i=Ui(n,r);let a=[];return(null==i?void 0:i.length)&&(a=e(i,n)),n[r[0]]=a,!!a.length||t(n,o)})}(e)}var Gi={VS:"vs",BLACK:"hc-black",DARK:"vs-dark"},Xi={JS:"javascript",SQL:"sql",PWSH:"powershell",JAVA:"java",C_SHARP:"csharp",JSON:"json"},Ki=class{constructor(){o(this,"value",void 0),o(this,"title",void 0),o(this,"language",void 0),o(this,"theme",void 0),o(this,"readonly",void 0)}};export{rr as A,oi as C,cr as D,mr as E,Q as F,ee as I,J as L,Cn as M,Fe as N,ar as O,_e as P,Z as R,ei as S,yr as T,vi as _,Bi as a,ti as b,Fi as c,di as d,ui as f,hi as g,mi as h,Yi as i,Nn as j,ir as k,Li as l,Oi as m,Ki as n,zi as o,wi as p,Gi as r,qi as s,Xi as t,_i as u,Ti as v,ii as w,ri as x,Ai as y,K as z};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @gct-paas/core-web v0.1.6-dev.
|
|
2
|
-
import{t as e}from"./objectSpread2-
|
|
1
|
+
/*! @gct-paas/core-web v0.1.6-dev.26 */
|
|
2
|
+
import{t as e}from"./objectSpread2-CSFXrJkx.js";var t={placeholder:"Chọn thời gian"},n={lang:e({placeholder:"Chọn thời điểm",rangePlaceholder:["Ngày bắt đầu","Ngày kết thúc"]},{locale:"vi_VN",today:"Hôm nay",now:"Bây giờ",backToToday:"Trở về hôm nay",ok:"Ok",clear:"Xóa",month:"Tháng",year:"Năm",timeSelect:"Chọn thời gian",dateSelect:"Chọn ngày",weekSelect:"Chọn tuần",monthSelect:"Chọn tháng",yearSelect:"Chọn năm",decadeSelect:"Chọn thập kỷ",yearFormat:"YYYY",dateFormat:"D/M/YYYY",dayFormat:"D",dateTimeFormat:"D/M/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Tháng trước (PageUp)",nextMonth:"Tháng sau (PageDown)",previousYear:"Năm trước (Control + left)",nextYear:"Năm sau (Control + right)",previousDecade:"Thập kỷ trước",nextDecade:"Thập kỷ sau",previousCentury:"Thế kỷ trước",nextCentury:"Thế kỷ sau"}),timePickerLocale:e({},t)},a={locale:"vi",Pagination:{items_per_page:"/ trang",jump_to:"Đến",jump_to_confirm:"xác nhận",page:"",prev_page:"Trang Trước",next_page:"Trang Kế",prev_5:"Về 5 Trang Trước",next_5:"Đến 5 Trang Kế",prev_3:"Về 3 Trang Trước",next_3:"Đến 3 Trang Kế"},DatePicker:n,TimePicker:t,Calendar:n,Table:{filterTitle:"Bộ ",filterConfirm:"OK",filterReset:"Tạo Lại",selectAll:"Chọn Tất Cả",selectInvert:"Chọn Ngược Lại"},Modal:{okText:"OK",cancelText:"Huỷ",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Huỷ"},Transfer:{searchPlaceholder:"Tìm ở đây",itemUnit:"mục",itemsUnit:"mục"},Upload:{uploading:"Đang tải lên...",removeFile:"Gỡ bỏ tập tin",uploadError:"Lỗi tải lên",previewFile:"Xem thử tập tin",downloadFile:"Tải tập tin"},Empty:{description:"Trống"}};export{a as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @gct-paas/core-web v0.1.6-dev.
|
|
2
|
-
import{t as e}from"./objectSpread2-
|
|
1
|
+
/*! @gct-paas/core-web v0.1.6-dev.26 */
|
|
2
|
+
import{t as e}from"./objectSpread2-CSFXrJkx.js";var l={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},a={lang:e({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"}),timePickerLocale:e({},l)};a.lang.ok="确定";var r="${label}不是一个有效的${type}",t={locale:"zh-cn",Pagination:{items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"},DatePicker:a,TimePicker:l,Calendar:a,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:r,method:r,array:r,object:r,number:r,date:r,boolean:r,integer:r,float:r,regexp:r,email:r,url:r,hex:r},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"}};export{t as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! @gct-paas/core-web v0.1.6-dev.
|
|
2
|
-
import{t as e}from"./objectSpread2-
|
|
1
|
+
/*! @gct-paas/core-web v0.1.6-dev.26 */
|
|
2
|
+
import{t as e}from"./objectSpread2-CSFXrJkx.js";var l={placeholder:"請選擇時間"},a={lang:e({placeholder:"請選擇日期",yearPlaceholder:"請選擇年份",quarterPlaceholder:"請選擇季度",monthPlaceholder:"請選擇月份",weekPlaceholder:"請選擇周",rangePlaceholder:["開始日期","結束日期"],rangeYearPlaceholder:["開始年份","結束年份"],rangeMonthPlaceholder:["開始月份","結束月份"],rangeQuarterPlaceholder:["開始季度","結束季度"],rangeWeekPlaceholder:["開始周","結束周"]},{locale:"zh_TW",today:"今天",now:"此刻",backToToday:"返回今天",ok:"確定",timeSelect:"選擇時間",dateSelect:"選擇日期",weekSelect:"選擇周",clear:"清除",month:"月",year:"年",previousMonth:"上個月 (翻頁上鍵)",nextMonth:"下個月 (翻頁下鍵)",monthSelect:"選擇月份",yearSelect:"選擇年份",decadeSelect:"選擇年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH時mm分ss秒",previousYear:"上一年 (Control鍵加左方向鍵)",nextYear:"下一年 (Control鍵加右方向鍵)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世紀",nextCentury:"下一世紀"}),timePickerLocale:e({},l)};a.lang.ok="確 定";var r="${label}不是一個有效的${type}",t={locale:"zh-tw",Pagination:{items_per_page:"條/頁",jump_to:"跳至",jump_to_confirm:"確定",page:"頁",prev_page:"上一頁",next_page:"下一頁",prev_5:"向前 5 頁",next_5:"向後 5 頁",prev_3:"向前 3 頁",next_3:"向後 3 頁"},DatePicker:a,TimePicker:l,Calendar:a,global:{placeholder:"請選擇"},Table:{filterTitle:"篩選器",filterConfirm:"確定",filterReset:"重置",filterEmptyText:"無篩選項",selectAll:"全部選取",selectInvert:"反向選取",selectNone:"清空所有",selectionAll:"全選所有",sortTitle:"排序",expand:"展開行",collapse:"關閉行",triggerDesc:"點擊降序",triggerAsc:"點擊升序",cancelSort:"取消排序"},Modal:{okText:"確定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{okText:"確定",cancelText:"取消"},Transfer:{searchPlaceholder:"搜尋資料",itemUnit:"項目",itemsUnit:"項目",remove:"删除",selectCurrent:"全選當頁",removeCurrent:"删除當頁",selectAll:"全選所有",removeAll:"删除全部",selectInvert:"反選當頁"},Upload:{uploading:"正在上傳...",removeFile:"刪除檔案",uploadError:"上傳失敗",previewFile:"檔案預覽",downloadFile:"下载文件"},Empty:{description:"無此資料"},Icon:{icon:"圖標"},Text:{edit:"編輯",copy:"複製",copied:"複製成功",expand:"展開"},PageHeader:{back:"返回"},Form:{optional:"(可選)",defaultValidateMessages:{default:"字段驗證錯誤${label}",required:"請輸入${label}",enum:"${label}必須是其中一個[${enum}]",whitespace:"${label}不能為空字符",date:{format:"${label}日期格式無效",parse:"${label}不能轉換為日期",invalid:"${label}是一個無效日期"},types:{string:r,method:r,array:r,object:r,number:r,date:r,boolean:r,integer:r,float:r,regexp:r,email:r,url:r,hex:r},string:{len:"${label}須為${len}個字符",min:"${label}最少${min}個字符",max:"${label}最多${max}個字符",range:"${label}須在${min}-${max}字符之間"},number:{len:"${label}必須等於${len}",min:"${label}最小值為${min}",max:"${label}最大值為${max}",range:"${label}須在${min}-${max}之間"},array:{len:"須為${len}個${label}",min:"最少${min}個${label}",max:"最多${max}個${label}",range:"${label}數量須在${min}-${max}之間"},pattern:{mismatch:"${label}與模式不匹配${pattern}"}}},Image:{preview:"預覽"}};export{t as default};
|