@gct-paas/core-web 0.1.6-dev.1 → 0.1.6-dev.3
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-DlXSdlvD.js +1 -0
- package/dist/_plugin-vue_export-helper-59SbqtUR.js +1 -0
- package/dist/chunk-DPOkwzLC.js +1 -0
- package/dist/components-4-8OfvJi.js +1 -0
- package/dist/{cropper-DPh9NaIi.js → cropper-tw7tUDDe.js} +1 -1
- package/dist/{de_DE-BY1He8Sf.js → de_DE-BnwOalCV.js} +1 -1
- package/dist/defineProperty-Co6UJKQ3.js +1 -0
- package/dist/{en_US-CuX-vrWy.js → en_US-6Hw6WWah.js} +1 -1
- package/dist/{es_ES-BqHRjpc9.js → es_ES-tAqXFGrR.js} +1 -1
- package/dist/{fr_FR-C4TFcMTv.js → fr_FR-BkDgVS_P.js} +1 -1
- package/dist/icon-next-picker-B_S_yInJ.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/{ja_JP-CgXnA74i.js → ja_JP-AsmV92nC.js} +1 -1
- package/dist/loader.esm.min.js +1 -1
- package/dist/monaco-editor-CgESUPw_.js +1 -0
- package/dist/{pt_PT-C0ALlHDr.js → pt_PT-CCVWOJzE.js} +1 -1
- package/dist/rich-editor-K2Pv0Uja.js +1 -0
- package/dist/{ru_RU-D39vUeFW.js → ru_RU-w4sUgbzL.js} +1 -1
- package/dist/template-Cf-wq8-9.js +1 -0
- package/dist/{tr_TR-Cm3P61iH.js → tr_TR-CGZch3eB.js} +1 -1
- package/dist/useMonacoEditor-BO2ALW-7.js +1 -0
- package/dist/{vi_VN-BZ_iPKuE.js → vi_VN-DONxIDR7.js} +1 -1
- package/dist/{zh_CN-DY_wA21D.js → zh_CN-BxdD8hqG.js} +1 -1
- package/dist/{zh_TW-A1Y7MG2g.js → zh_TW-D5Y8j-oG.js} +1 -1
- package/es/components/I18nSelect/src/i18n-select-btn.vue.mjs +2 -2
- package/es/components/I18nSelect/src/i18n-select-btn.vue_vue_type_script_setup_true_name_i18n-select-btn_lang.mjs +4 -1
- package/es/components/I18nSelect/src/{i18n-select-btn.vue_vue_type_style_index_0_scoped_b86f4068_lang.css → i18n-select-btn.vue_vue_type_style_index_0_scoped_ab917ea8_lang.css} +18 -13
- package/es/components/TreeEx/tree-ex.mjs +3 -0
- package/es/components/copy-module-key/copy-module-key.vue_vue_type_script_setup_true_name_copy-module-key_lang.mjs +3 -0
- package/es/components/field-tree-select/field-sort-popover.vue_vue_type_script_setup_true_lang.mjs +2 -0
- package/es/components/field-tree-select/field-tree-select.vue_vue_type_script_setup_true_lang.mjs +3 -0
- package/es/components/icon-next-picker/icon-next-picker.vue_vue_type_script_setup_true_name_IconNextPicker_lang.mjs +6 -3
- package/es/components/icon-next-picker/icon-next-picker.vue_vue_type_style_index_0_lang.css +3 -0
- package/es/components/index.mjs +1 -1
- package/es/components/label-design/components/rich-editor/index.d.ts +22 -1
- package/es/components/label-design/components/rich-editor/index.mjs +5 -1
- package/es/components/label-design/components/rich-editor/index.vue.d.ts +4 -4
- package/es/components/label-design/components/rich-editor/index.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/label-design/components/widgets/BarCode.vue.mjs +2 -2
- package/es/components/label-design/components/widgets/BarCode.vue_vue_type_script_setup_true_name_BAR_CODE_lang.mjs +28 -18
- package/es/components/label-design/components/widgets/{BarCode.vue_vue_type_style_index_0_scoped_492a6f00_lang.css → BarCode.vue_vue_type_style_index_0_scoped_abb7a450_lang.css} +3 -3
- package/es/components/label-design/index.mjs +1 -1
- package/es/components/label-design/modal/index.mjs +3 -3
- package/es/components/label-design/modal/rich-editor-modal.vue.d.ts +60 -0
- package/es/components/label-design/modal/rich-editor-modal.vue.mjs +2 -2
- package/es/components/label-design/modal/rich-editor-modal.vue_vue_type_script_setup_true_lang.mjs +5 -6
- package/es/components/label-design/modal/rich-editor-modal.vue_vue_type_style_index_0_scoped_8a4eda15_lang.css +3 -0
- package/es/components/label-design/panels/widget/components/label-params-select.vue_vue_type_script_setup_true_lang.mjs +7 -0
- package/es/components/label-design/panels/widget/controls/LabelParamsSelect.vue_vue_type_script_setup_true_name_label-params-select_lang.mjs +7 -0
- package/es/components/label-design/panels/widget/controls/VariableSelect.vue_vue_type_script_setup_true_name_variable-select_lang.mjs +1 -1
- package/es/components/label-design/stage/stage.vue.mjs +2 -2
- package/es/components/label-design/stage/stage.vue_vue_type_script_setup_true_lang.mjs +3 -3
- package/es/components/label-design/stage/{stage.vue_vue_type_style_index_0_scoped_142d3d35_lang.css → stage.vue_vue_type_style_index_0_scoped_53b1f897_lang.css} +8 -8
- package/es/components/overlay-scrollbars/gct-overlay-scrollbars.mjs +16 -0
- package/es/index.mjs +2 -1
- package/es/modules/gct-dnd/constants/index.mjs +12 -0
- package/es/modules/global-modal/src/props.mjs +6 -0
- package/es/styles/index.css +94 -0
- package/es/utils/recursive.mjs +5 -1
- package/package.json +11 -7
- package/dist/_plugin-vue_export-helper-DUzSxwNW.js +0 -1
- package/dist/chunk-lEgNpoW5.js +0 -1
- package/dist/icon-next-picker-y8hJhkCi.js +0 -1
- package/dist/monaco-editor-g5z1cRaz.js +0 -1
- package/es/components/label-design/modal/rich-editor-modal.vue_vue_type_style_index_0_scoped_8c23f0af_lang.css +0 -3
- /package/dist/{objectSpread2-Cr8AaZiL.js → objectSpread2-DxfE1S3_.js} +0 -0
- /package/dist/{overlayscrollbars-vue-B2LfyB-V.js → overlayscrollbars-vue-DtKFrHnA.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t}from"./chunk-DPOkwzLC.js";var e=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=e,this.text=n.text||e,this.options=n}}),n=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CODE39=void 0;var n,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t=t.toUpperCase(),n.mod43&&(t+=function(t){return i[t]}(function(t){for(var e=0,n=0;n<t.length;n++)e+=f(t[n]);return e%43}(t))),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"encode",value:function(){for(var t=u("*"),e=0;e<this.data.length;e++)t+=u(this.data[e])+"0";return{data:t+=u("*"),text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)}}]),e}(((n=e())&&n.__esModule?n:{default:n}).default),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],a=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function u(t){return function(t){return a[t].toString(2)}(f(t))}function f(t){return i.indexOf(t)}t.CODE39=o}),r=/* @__PURE__ */t(t=>{var e;function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(t,"__esModule",{value:!0});var r=t.SET_A=0,o=t.SET_B=1,i=t.SET_C=2;t.SHIFT=98;var a=t.START_A=103,u=t.START_B=104,f=t.START_C=105;t.MODULO=103,t.STOP=106,t.FNC1=207,t.SET_BY_CODE=(n(e={},a,r),n(e,u,o),n(e,f,i),e),t.SWAP={101:r,100:o,99:i},t.A_START_CHAR=String.fromCharCode(208),t.B_START_CHAR=String.fromCharCode(209),t.C_START_CHAR=String.fromCharCode(210),t.A_CHARS="[\0-_È-Ï]",t.B_CHARS="[ -È-Ï]",t.C_CHARS="(Ï*[0-9]{2}Ï*)",t.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011]}),o=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=(n=e())&&n.__esModule?n:{default:n},a=r(),u=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.substring(1),n));return r.bytes=t.split("").map(function(t){return t.charCodeAt(0)}),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var t=this.bytes,n=t.shift()-105,r=a.SET_BY_CODE[n];if(void 0===r)throw new RangeError("The encoding does not start with a start character.");!0===this.shouldEncodeAsEan128()&&t.unshift(a.FNC1);var o=e.next(t,1,r);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:e.getBar(n)+o.result+e.getBar((o.checksum+n)%a.MODULO)+e.getBar(a.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var t=this.options.ean128||!1;return"string"==typeof t&&(t="true"===t.toLowerCase()),t}}],[{key:"getBar",value:function(t){return a.BARS[t]?a.BARS[t].toString():""}},{key:"correctIndex",value:function(t,e){if(e===a.SET_A){var n=t.shift();return n<32?n+64:n-32}return e===a.SET_B?t.shift()-32:10*(t.shift()-48)+t.shift()-48}},{key:"next",value:function(t,n,r){if(!t.length)return{result:"",checksum:0};var o=void 0,i=void 0;if(t[0]>=200){i=t.shift()-105;var u=a.SWAP[i];void 0!==u?o=e.next(t,n+1,u):(r!==a.SET_A&&r!==a.SET_B||i!==a.SHIFT||(t[0]=r===a.SET_A?t[0]>95?t[0]-96:t[0]:t[0]<32?t[0]+96:t[0]),o=e.next(t,n+1,r))}else i=e.correctIndex(t,r),o=e.next(t,n+1,r);var f=i*n;return{result:e.getBar(i)+o.result,checksum:f+o.checksum}}}]),e}(i.default);t.default=u}),i=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=r(),n=function(t){return t.match(new RegExp("^"+e.A_CHARS+"*"))[0].length},o=function(t){return t.match(new RegExp("^"+e.B_CHARS+"*"))[0].length},i=function(t){return t.match(new RegExp("^"+e.C_CHARS+"*"))[0]};function a(t,n){var r=n?e.A_CHARS:e.B_CHARS,o=t.match(new RegExp("^("+r+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(o)return o[1]+String.fromCharCode(204)+u(t.substring(o[1].length));var i=t.match(new RegExp("^"+r+"+"))[0];return i.length===t.length?t:i+String.fromCharCode(n?205:206)+a(t.substring(i.length),!n)}function u(t){var e=i(t),r=e.length;if(r===t.length)return t;t=t.substring(r);var u=n(t)>=o(t);return e+String.fromCharCode(u?206:205)+a(t,u)}t.default=function(t){var r=void 0;if(i(t).length>=2)r=e.C_START_CHAR+u(t);else{var f=n(t)>o(t);r=(f?e.A_START_CHAR:e.B_START_CHAR)+a(t,f)}return r.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(t,e){return String.fromCharCode(203)+e})}}),a=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=r(o()),n=r(i());function r(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var u=function(t){function e(t,r){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),/^[\x00-\x7F\xC8-\xD3]+$/.test(t))var o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,(0,n.default)(t),r));else o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return a(o)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(e.default);t.default=u}),u=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e,n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=(e=o())&&e.__esModule?e:{default:e},a=r(),u=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,a.A_START_CHAR+t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"valid",value:function(){return new RegExp("^"+a.A_CHARS+"+$").test(this.data)}}]),e}(i.default);t.default=u}),f=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e,n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=(e=o())&&e.__esModule?e:{default:e},a=r(),u=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,a.B_START_CHAR+t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"valid",value:function(){return new RegExp("^"+a.B_CHARS+"+$").test(this.data)}}]),e}(i.default);t.default=u}),l=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e,n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=(e=o())&&e.__esModule?e:{default:e},a=r(),u=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,a.C_START_CHAR+t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"valid",value:function(){return new RegExp("^"+a.C_CHARS+"+$").test(this.data)}}]),e}(i.default);t.default=u}),c=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CODE128C=t.CODE128B=t.CODE128A=t.CODE128=void 0;var e=i(a()),n=i(u()),r=i(f()),o=i(l());function i(t){return t&&t.__esModule?t:{default:t}}t.CODE128=e.default,t.CODE128A=n.default,t.CODE128B=r.default,t.CODE128C=o.default}),s=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SIDE_BIN="101",t.MIDDLE_BIN="01010",t.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},t.EAN2_STRUCTURE=["LL","LG","GL","GG"],t.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],t.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]}),p=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=s();t.default=function(t,n,r){var o=t.split("").map(function(t,r){return e.BINARIES[n[r]]}).map(function(e,n){return e?e[t[n]]:""});if(r){var i=t.length-1;o=o.map(function(t,e){return e<i?t+r:t})}return o.join("")}}),d=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),r=s(),o=i(p());function i(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.fontSize=!n.flat&&n.fontSize>10*n.width?10*n.width:n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(t,e){return this.text.substr(t,e)}},{key:"leftEncode",value:function(t,e){return(0,o.default)(t,e)}},{key:"rightText",value:function(t,e){return this.text.substr(t,e)}},{key:"rightEncode",value:function(t,e){return(0,o.default)(t,e)}},{key:"encodeGuarded",value:function(){var t={fontSize:this.fontSize},e={height:this.guardHeight};return[{data:r.SIDE_BIN,options:e},{data:this.leftEncode(),text:this.leftText(),options:t},{data:r.MIDDLE_BIN,options:e},{data:this.rightEncode(),text:this.rightText(),options:t},{data:r.SIDE_BIN,options:e}]}},{key:"encodeFlat",value:function(){return{data:[r.SIDE_BIN,this.leftEncode(),r.MIDDLE_BIN,this.rightEncode(),r.SIDE_BIN].join(""),text:this.text}}}]),e}(i(e()).default);t.default=a}),h=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e,n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),r=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},o=s(),i=(e=d())&&e.__esModule?e:{default:e},a=function(t){return(10-t.substr(0,12).split("").map(function(t){return+t}).reduce(function(t,e,n){return n%2?t+3*e:t+e},0)%10)%10},u=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{12}$/)&&(t+=a(t));var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastChar=n.lastChar,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{13}$/)&&+this.data[12]===a(this.data)}},{key:"leftText",value:function(){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var t=this.data.substr(1,6),n=o.EAN13_STRUCTURE[this.data[0]];return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,t,n)}},{key:"rightText",value:function(){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var t=this.data.substr(7,6);return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,t,"RRRRRR")}},{key:"encodeGuarded",value:function(){var t=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(t.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(t.push({data:"00"}),t.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),t}}]),e}(i.default);t.default=u}),y=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e,n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),r=function t(e,n,r){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},o=(e=d())&&e.__esModule?e:{default:e},i=function(t){return(10-t.substr(0,7).split("").map(function(t){return+t}).reduce(function(t,e,n){return n%2?t+e:t+3*e},0)%10)%10},a=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{7}$/)&&(t+=i(t)),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{8}$/)&&+this.data[7]===i(this.data)}},{key:"leftText",value:function(){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var t=this.data.substr(0,4);return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"leftEncode",this).call(this,t,"LLLL")}},{key:"rightText",value:function(){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var t=this.data.substr(4,4);return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"rightEncode",this).call(this,t,"RRRR")}}]),e}(o.default);t.default=a}),b=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),r=s(),o=i(p());function i(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{5}$/)}},{key:"encode",value:function(){var t,e=r.EAN5_STRUCTURE[t=this.data,t.split("").map(function(t){return+t}).reduce(function(t,e,n){return n%2?t+9*e:t+3*e},0)%10];return{data:"1011"+(0,o.default)(this.data,e,"01"),text:this.text}}}]),e}(i(e()).default);t.default=a}),v=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),r=s(),o=i(p());function i(t){return t&&t.__esModule?t:{default:t}}var a=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{2}$/)}},{key:"encode",value:function(){var t=r.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,o.default)(this.data,t,"01"),text:this.text}}}]),e}(i(e()).default);t.default=a}),_=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();t.checksum=a;var r=o(p());function o(t){return t&&t.__esModule?t:{default:t}}var i=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{11}$/)&&(t+=a(t));var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.displayValue=n.displayValue,n.fontSize>10*n.width?r.fontSize=10*n.width:r.fontSize=n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{12}$/)&&this.data[11]==a(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=(0,r.default)(this.data.substr(0,6),"LLLLLL"),t+="01010",t+=(0,r.default)(this.data.substr(6,6),"RRRRRR"),{data:t+="101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101"+(0,r.default)(this.data[0],"L"),options:{height:this.guardHeight}}),t.push({data:(0,r.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),t.push({data:"01010",options:{height:this.guardHeight}}),t.push({data:(0,r.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),t.push({data:(0,r.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),t}}]),e}(o(e()).default);function a(t){var e,n=0;for(e=1;e<11;e+=2)n+=parseInt(t[e]);for(e=0;e<11;e+=2)n+=3*parseInt(t[e]);return(10-n%10)%10}t.default=i}),g=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),r=a(p()),o=a(e()),i=_();function a(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var f=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],l=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],c=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(r.isValid=!1,-1!==t.search(/^[0-9]{6}$/))r.middleDigits=t,r.upcA=s(t,"0"),r.text=n.text||""+r.upcA[0]+t+r.upcA[r.upcA.length-1],r.isValid=!0;else{if(-1===t.search(/^[01][0-9]{7}$/))return u(r);if(r.middleDigits=t.substring(1,t.length-1),r.upcA=s(r.middleDigits,t[0]),r.upcA[r.upcA.length-1]!==t[t.length-1])return u(r);r.isValid=!0}return r.displayValue=n.displayValue,n.fontSize>10*n.width?r.fontSize=10*n.width:r.fontSize=n.fontSize,r.guardHeight=n.height+r.fontSize/2+n.textMargin,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var t="";return t+="101",t+=this.encodeMiddleDigits(),{data:t+="010101",text:this.text}}},{key:"guardedEncoding",value:function(){var t=[];return this.displayValue&&t.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),t.push({data:"101",options:{height:this.guardHeight}}),t.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),t.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&t.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),t}},{key:"encodeMiddleDigits",value:function(){var t=this.upcA[0],e=this.upcA[this.upcA.length-1],n=l[parseInt(e)][parseInt(t)];return(0,r.default)(this.middleDigits,n)}}]),e}(o.default);function s(t,e){for(var n=f[parseInt(t[t.length-1])],r="",o=0,a=0;a<n.length;a++){var u=n[a];r+="X"===u?t[o++]:u}return(r=""+e+r)+(0,i.checksum)(r)}t.default=c}),O=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UPCE=t.UPC=t.EAN2=t.EAN5=t.EAN8=t.EAN13=void 0;var e=u(h()),n=u(y()),r=u(b()),o=u(v()),i=u(_()),a=u(g());function u(t){return t&&t.__esModule?t:{default:t}}t.EAN13=e.default,t.EAN8=n.default,t.EAN5=r.default,t.EAN2=o.default,t.UPC=i.default,t.UPCE=a.default}),E=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.START_BIN="1010",t.END_BIN="11101",t.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]}),w=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=E(),i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return-1!==this.data.search(/^([0-9]{2})+$/)}},{key:"encode",value:function(){var t=this,e=this.data.match(/.{2}/g).map(function(e){return t.encodePair(e)}).join("");return{data:o.START_BIN+e+o.END_BIN,text:this.text}}},{key:"encodePair",value:function(t){var e=o.BINARIES[t[1]];return o.BINARIES[t[0]].split("").map(function(t,n){return("1"===t?"111":"1")+("1"===e[n]?"000":"0")}).join("")}}]),e}(((n=e())&&n.__esModule?n:{default:n}).default);t.default=i}),m=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e,n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),r=(e=w())&&e.__esModule?e:{default:e},o=function(t){var e=t.substr(0,13).split("").map(function(t){return parseInt(t,10)}).reduce(function(t,e,n){return t+e*(3-n%2*2)},0);return 10*Math.ceil(e/10)-e},i=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),-1!==t.search(/^[0-9]{13}$/)&&(t+=o(t)),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]{14}$/)&&+this.data[13]===o(this.data)}}]),e}(r.default);t.default=i}),j=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ITF14=t.ITF=void 0;var e=r(w()),n=r(m());function r(t){return t&&t.__esModule?t:{default:t}}t.ITF=e.default,t.ITF14=n.default}),x=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"encode",value:function(){for(var t="110",e=0;e<this.data.length;e++){var n=parseInt(this.data[e]).toString(2);n=i(n,4-n.length);for(var r=0;r<n.length;r++)t+="0"==n[r]?"100":"110"}return{data:t+="1001",text:this.text}}},{key:"valid",value:function(){return-1!==this.data.search(/^[0-9]+$/)}}]),e}(((n=e())&&n.__esModule?n:{default:n}).default);function i(t,e){for(var n=0;n<e;n++)t="0"+t;return t}t.default=o}),P=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.mod10=function(t){for(var e=0,n=0;n<t.length;n++){var r=parseInt(t[n]);(n+t.length)%2==0?e+=r:e+=2*r%10+Math.floor(2*r/10)}return(10-e%10)%10},t.mod11=function(t){for(var e=0,n=[2,3,4,5,6,7],r=0;r<t.length;r++){var o=parseInt(t[t.length-1-r]);e+=n[r%n.length]*o}return(11-e%11)%11}}),S=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e,n=(e=x())&&e.__esModule?e:{default:e},r=P(),o=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,r.mod10)(t),n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(n.default);t.default=o}),C=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e,n=(e=x())&&e.__esModule?e:{default:e},r=P(),o=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t+(0,r.mod11)(t),n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(n.default);t.default=o}),A=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e,n=(e=x())&&e.__esModule?e:{default:e},r=P(),o=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t+=(0,r.mod10)(t),t+=(0,r.mod10)(t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(n.default);t.default=o}),T=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e,n=(e=x())&&e.__esModule?e:{default:e},r=P(),o=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t+=(0,r.mod11)(t),t+=(0,r.mod10)(t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(n.default);t.default=o}),M=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MSI1110=t.MSI1010=t.MSI11=t.MSI10=t.MSI=void 0;var e=a(x()),n=a(S()),r=a(C()),o=a(A()),i=a(T());function a(t){return t&&t.__esModule?t:{default:t}}t.MSI=e.default,t.MSI10=n.default,t.MSI11=r.default,t.MSI1010=o.default,t.MSI1110=i.default}),R=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.pharmacode=void 0;var n,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.number=parseInt(t,10),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"encode",value:function(){for(var t=this.number,e="";!isNaN(t)&&0!=t;)t%2==0?(e="11100"+e,t=(t-2)/2):(e="100"+e,t=(t-1)/2);return{data:e=e.slice(0,-2),text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),e}(((n=e())&&n.__esModule?n:{default:n}).default);t.pharmacode=o}),L=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.codabar=void 0;var n,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),0===t.search(/^[0-9\-\$\:\.\+\/]+$/)&&(t="A"+t+"A");var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t.toUpperCase(),n));return r.text=r.options.text||r.text.replace(/[A-D]/g,""),r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return-1!==this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)}},{key:"encode",value:function(){for(var t=[],e=this.getEncodings(),n=0;n<this.data.length;n++)t.push(e[this.data.charAt(n)]),n!==this.data.length-1&&t.push("0");return{text:this.text,data:t.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),e}(((n=e())&&n.__esModule?n:{default:n}).default);t.codabar=o}),k=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SYMBOLS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","ÿ"],t.BINARIES=["100010100","101001000","101000100","101000010","100101000","100100100","100100010","101010000","100010010","100001010","110101000","110100100","110100010","110010100","110010010","110001010","101101000","101100100","101100010","100110100","100011010","101011000","101001100","101000110","100101100","100010110","110110100","110110010","110101100","110100110","110010110","110011010","101101100","101100110","100110110","100111010","100101110","111010100","111010010","111001010","101101110","101110110","110101110","100100110","111011010","111010110","100110010","101011110"],t.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"":["($)","G"],"\b":["($)","H"],"\t":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"":["(%)","A"],"":["(%)","B"],"":["(%)","C"],"":["(%)","D"],"":["(%)","E"],"!":["(/)","A"],'"':["(/)","B"],"#":["(/)","C"],"&":["(/)","F"],"'":["(/)","G"],"(":["(/)","H"],")":["(/)","I"],"*":["(/)","J"],",":["(/)","L"],":":["(/)","Z"],";":["(%)","F"],"<":["(%)","G"],"=":["(%)","H"],">":["(%)","I"],"?":["(%)","J"],"@":["(%)","V"],"[":["(%)","K"],"\\":["(%)","L"],"]":["(%)","M"],"^":["(%)","N"],_:["(%)","O"],"`":["(%)","W"],a:["(+)","A"],b:["(+)","B"],c:["(+)","C"],d:["(+)","D"],e:["(+)","E"],f:["(+)","F"],g:["(+)","G"],h:["(+)","H"],i:["(+)","I"],j:["(+)","J"],k:["(+)","K"],l:["(+)","L"],m:["(+)","M"],n:["(+)","N"],o:["(+)","O"],p:["(+)","P"],q:["(+)","Q"],r:["(+)","R"],s:["(+)","S"],t:["(+)","T"],u:["(+)","U"],v:["(+)","V"],w:["(+)","W"],x:["(+)","X"],y:["(+)","Y"],z:["(+)","Z"],"{":["(%)","P"],"|":["(%)","Q"],"}":["(%)","R"],"~":["(%)","S"],"":["(%)","T"]}}),I=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var n,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=k(),i=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var t=this.data.split("").flatMap(function(t){return o.MULTI_SYMBOLS[t]||t}),n=t.map(function(t){return e.getEncoding(t)}).join(""),r=e.checksum(t,20),i=e.checksum(t.concat(r),15);return{text:this.text,data:e.getEncoding("ÿ")+n+e.getEncoding(r)+e.getEncoding(i)+e.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(t){return o.BINARIES[e.symbolValue(t)]}},{key:"getSymbol",value:function(t){return o.SYMBOLS[t]}},{key:"symbolValue",value:function(t){return o.SYMBOLS.indexOf(t)}},{key:"checksum",value:function(t,n){var r=t.slice().reverse().reduce(function(t,r,o){var i=o%n+1;return t+e.symbolValue(r)*i},0);return e.getSymbol(r%47)}}]),e}(((n=e())&&n.__esModule?n:{default:n}).default);t.default=i}),G=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e,n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),r=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),e}(((e=I())&&e.__esModule?e:{default:e}).default);t.default=r}),B=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CODE93FullASCII=t.CODE93=void 0;var e=r(I()),n=r(G());function r(t){return t&&t.__esModule?t:{default:t}}t.CODE93=e.default,t.CODE93FullASCII=n.default}),D=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GenericBarcode=void 0;var n,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(t){function e(t,n){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),e}(((n=e())&&n.__esModule?n:{default:n}).default);t.GenericBarcode=o}),N=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=n(),r=c(),o=O(),i=j(),a=M(),u=R(),f=L(),l=B(),s=D();t.default={CODE39:e.CODE39,CODE128:r.CODE128,CODE128A:r.CODE128A,CODE128B:r.CODE128B,CODE128C:r.CODE128C,EAN13:o.EAN13,EAN8:o.EAN8,EAN5:o.EAN5,EAN2:o.EAN2,UPC:o.UPC,UPCE:o.UPCE,ITF14:i.ITF14,ITF:i.ITF,MSI:a.MSI,MSI10:a.MSI10,MSI11:a.MSI11,MSI1010:a.MSI1010,MSI1110:a.MSI1110,pharmacode:u.pharmacode,codabar:f.codabar,CODE93:l.CODE93,CODE93FullASCII:l.CODE93FullASCII,GenericBarcode:s.GenericBarcode}}),$=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};t.default=function(t,n){return e({},t,n)}}),X=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var e=[];return function t(n){if(Array.isArray(n))for(var r=0;r<n.length;r++)t(n[r]);else n.text=n.text||"",n.data=n.data||"",e.push(n)}(t),e}}),H=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}}),z=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var e=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var n in e)e.hasOwnProperty(n)&&"string"==typeof t[n=e[n]]&&(t[n]=parseInt(t[n],10));return"string"==typeof t.displayValue&&(t.displayValue="false"!=t.displayValue),t}}),V=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}}}),U=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=r(z()),n=r(V());function r(t){return t&&t.__esModule?t:{default:t}}t.default=function(t){var r={};for(var o in n.default)n.default.hasOwnProperty(o)&&(t.hasAttribute("jsbarcode-"+o.toLowerCase())&&(r[o]=t.getAttribute("jsbarcode-"+o.toLowerCase())),t.hasAttribute("data-"+o.toLowerCase())&&(r[o]=t.getAttribute("data-"+o.toLowerCase())));return r.value=t.getAttribute("jsbarcode-value")||t.getAttribute("data-value"),(0,e.default)(r)}}),F=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTotalWidthOfEncodings=t.calculateEncodingAttributes=t.getBarcodePadding=t.getEncodingHeight=t.getMaximumHeightOfEncodings=void 0;var e,n=(e=$())&&e.__esModule?e:{default:e};function r(t,e){return e.height+(e.displayValue&&t.text.length>0?e.fontSize+e.textMargin:0)+e.marginTop+e.marginBottom}function o(t,e,n){if(n.displayValue&&e<t){if("center"==n.textAlign)return Math.floor((t-e)/2);if("left"==n.textAlign)return 0;if("right"==n.textAlign)return Math.floor(t-e)}return 0}function i(t,e,n){var r;if(n)r=n;else{if("undefined"==typeof document)return 0;r=document.createElement("canvas").getContext("2d")}r.font=e.fontOptions+" "+e.fontSize+"px "+e.font;var o=r.measureText(t);return o?o.width:0}t.getMaximumHeightOfEncodings=function(t){for(var e=0,n=0;n<t.length;n++)t[n].height>e&&(e=t[n].height);return e},t.getEncodingHeight=r,t.getBarcodePadding=o,t.calculateEncodingAttributes=function(t,e,a){for(var u=0;u<t.length;u++){var f,l=t[u],c=(0,n.default)(e,l.options);f=c.displayValue?i(l.text,c,a):0;var s=l.data.length*c.width;l.width=Math.ceil(Math.max(f,s)),l.height=r(l,c),l.barcodePadding=o(f,s,c)}},t.getTotalWidthOfEncodings=function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n].width;return e}}),W=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e,n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),r=(e=$())&&e.__esModule?e:{default:e},o=F(),i=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.canvas=e,this.encodings=n,this.options=r}return n(t,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var t=0;t<this.encodings.length;t++){var e=(0,r.default)(this.options,this.encodings[t].options);this.drawCanvasBarcode(e,this.encodings[t]),this.drawCanvasText(e,this.encodings[t]),this.moveCanvasDrawing(this.encodings[t])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var t=this.canvas.getContext("2d");t.save(),(0,o.calculateEncodingAttributes)(this.encodings,this.options,t);var e=(0,o.getTotalWidthOfEncodings)(this.encodings),n=(0,o.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=e+this.options.marginLeft+this.options.marginRight,this.canvas.height=n,t.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(t.fillStyle=this.options.background,t.fillRect(0,0,this.canvas.width,this.canvas.height)),t.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(t,e){var n,r=this.canvas.getContext("2d"),o=e.data;n="top"==t.textPosition?t.marginTop+t.fontSize+t.textMargin:t.marginTop,r.fillStyle=t.lineColor;for(var i=0;i<o.length;i++){var a=i*t.width+e.barcodePadding;"1"===o[i]?r.fillRect(a,n,t.width,t.height):o[i]&&r.fillRect(a,n,t.width,t.height*o[i])}}},{key:"drawCanvasText",value:function(t,e){var n,r,o=this.canvas.getContext("2d"),i=t.fontOptions+" "+t.fontSize+"px "+t.font;t.displayValue&&(r="top"==t.textPosition?t.marginTop+t.fontSize-t.textMargin:t.height+t.textMargin+t.marginTop+t.fontSize,o.font=i,"left"==t.textAlign||e.barcodePadding>0?(n=0,o.textAlign="left"):"right"==t.textAlign?(n=e.width-1,o.textAlign="right"):(n=e.width/2,o.textAlign="center"),o.fillText(e.text,n,r))}},{key:"moveCanvasDrawing",value:function(t){this.canvas.getContext("2d").translate(t.width,0)}},{key:"restoreCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),t}();t.default=i}),Y=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e,n=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),r=(e=$())&&e.__esModule?e:{default:e},o=F(),i="http://www.w3.org/2000/svg",a=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.svg=e,this.encodings=n,this.options=r,this.document=r.xmlDocument||document}return n(t,[{key:"render",value:function(){var t=this.options.marginLeft;this.prepareSVG();for(var e=0;e<this.encodings.length;e++){var n=this.encodings[e],o=(0,r.default)(this.options,n.options),i=this.createGroup(t,o.marginTop,this.svg);this.setGroupOptions(i,o),this.drawSvgBarcode(i,o,n),this.drawSVGText(i,o,n),t+=n.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,o.calculateEncodingAttributes)(this.encodings,this.options);var t=(0,o.getTotalWidthOfEncodings)(this.encodings),e=(0,o.getMaximumHeightOfEncodings)(this.encodings),n=t+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,e),this.options.background&&this.drawRect(0,0,n,e,this.svg).setAttribute("fill",this.options.background)}},{key:"drawSvgBarcode",value:function(t,e,n){var r,o=n.data;r="top"==e.textPosition?e.fontSize+e.textMargin:0;for(var i=0,a=0,u=0;u<o.length;u++)a=u*e.width+n.barcodePadding,"1"===o[u]?i++:i>0&&(this.drawRect(a-e.width*i,r,e.width*i,e.height,t),i=0);i>0&&this.drawRect(a-e.width*(i-1),r,e.width*i,e.height,t)}},{key:"drawSVGText",value:function(t,e,n){var r,o,a=this.document.createElementNS(i,"text");e.displayValue&&(a.setAttribute("font-family",e.font),a.setAttribute("font-size",e.fontSize),e.fontOptions.includes("bold")&&a.setAttribute("font-weight","bold"),e.fontOptions.includes("italic")&&a.setAttribute("font-style","italic"),o="top"==e.textPosition?e.fontSize-e.textMargin:e.height+e.textMargin+e.fontSize,"left"==e.textAlign||n.barcodePadding>0?(r=0,a.setAttribute("text-anchor","start")):"right"==e.textAlign?(r=n.width-1,a.setAttribute("text-anchor","end")):(r=n.width/2,a.setAttribute("text-anchor","middle")),a.setAttribute("x",r),a.setAttribute("y",o),a.appendChild(this.document.createTextNode(n.text)),t.appendChild(a))}},{key:"setSvgAttributes",value:function(t,e){var n=this.svg;n.setAttribute("width",t+"px"),n.setAttribute("height",e+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+t+" "+e),n.setAttribute("xmlns",i),n.setAttribute("version","1.1")}},{key:"createGroup",value:function(t,e,n){var r=this.document.createElementNS(i,"g");return r.setAttribute("transform","translate("+t+", "+e+")"),n.appendChild(r),r}},{key:"setGroupOptions",value:function(t,e){t.setAttribute("fill",e.lineColor)}},{key:"drawRect",value:function(t,e,n,r,o){var a=this.document.createElementNS(i,"rect");return a.setAttribute("x",t),a.setAttribute("y",e),a.setAttribute("width",n),a.setAttribute("height",r),o.appendChild(a),a}}]),t}();t.default=a}),J=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),n=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.object=e,this.encodings=n,this.options=r}return e(t,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),t}();t.default=n}),Q=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=o(W()),n=o(Y()),r=o(J());function o(t){return t&&t.__esModule?t:{default:t}}t.default={CanvasRenderer:e.default,SVGRenderer:n.default,ObjectRenderer:r.default}}),Z=/* @__PURE__ */t(t=>{function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function t(r,o){e(this,t);var i=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.name="InvalidInputException",i.symbology=r,i.input=o,i.message='"'+i.input+'" is not a valid input for '+i.symbology,i}return r(t,Error),t}(),i=function(){function t(){e(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.name="InvalidElementException",r.message="Not supported type to render on",r}return r(t,Error),t}(),a=function(){function t(){e(this,t);var r=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.name="NoElementException",r.message="No element to render on.",r}return r(t,Error),t}();t.InvalidInputException=o,t.InvalidElementException=i,t.NoElementException=a}),K=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e="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},n=i(U()),r=i(Q()),o=Z();function i(t){return t&&t.__esModule?t:{default:t}}t.default=function t(i){if("string"==typeof i)return function(e){var n=document.querySelectorAll(e);if(0!==n.length){for(var r=[],o=0;o<n.length;o++)r.push(t(n[o]));return r}}(i);if(Array.isArray(i)){for(var a=[],u=0;u<i.length;u++)a.push(t(i[u]));return a}if("undefined"!=typeof HTMLCanvasElement&&i instanceof HTMLImageElement)return f=i,{element:l=document.createElement("canvas"),options:(0,n.default)(f),renderer:r.default.CanvasRenderer,afterRender:function(){f.setAttribute("src",l.toDataURL())}};if(i&&i.nodeName&&"svg"===i.nodeName.toLowerCase()||"undefined"!=typeof SVGElement&&i instanceof SVGElement)return{element:i,options:(0,n.default)(i),renderer:r.default.SVGRenderer};if("undefined"!=typeof HTMLCanvasElement&&i instanceof HTMLCanvasElement)return{element:i,options:(0,n.default)(i),renderer:r.default.CanvasRenderer};if(i&&i.getContext)return{element:i,renderer:r.default.CanvasRenderer};if(i&&"object"===(void 0===i?"undefined":e(i))&&!i.nodeName)return{element:i,renderer:r.default.ObjectRenderer};throw new o.InvalidElementException;var f,l}}),q=/* @__PURE__ */t(t=>{Object.defineProperty(t,"__esModule",{value:!0});var e=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),n=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.api=e}return e(t,[{key:"handleCatch",value:function(t){if("InvalidInputException"!==t.name)throw t;if(this.api._options.valid===this.api._defaults.valid)throw t.message;this.api._options.valid(!1),this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(t){try{var e=t.apply(void 0,arguments);return this.api._options.valid(!0),e}catch(n){return this.handleCatch(n),this.api}}}]),t}();t.default=n}),tt=/* @__PURE__ */t((t,e)=>{var n=s(N()),r=s($()),o=s(X()),i=s(H()),a=s(K()),u=s(z()),f=s(q()),l=Z(),c=s(V());function s(t){return t&&t.__esModule?t:{default:t}}var p=function(){},d=function(t,e,n){var r=new p;if(void 0===t)throw Error("No element to render on was provided.");return r._renderProperties=(0,a.default)(t),r._encodings=[],r._options=c.default,r._errorHandler=new f.default(r),void 0!==e&&((n=n||{}).format||(n.format=v()),r.options(n)[n.format](e,n).render()),r};for(var h in d.getModule=function(t){return n.default[t]},n.default)n.default.hasOwnProperty(h)&&y(n.default,h);function y(t,e){p.prototype[e]=p.prototype[e.toUpperCase()]=p.prototype[e.toLowerCase()]=function(n,o){var i=this;return i._errorHandler.wrapBarcodeCall(function(){o.text=void 0===o.text?void 0:""+o.text;var a=(0,r.default)(i._options,o);a=(0,u.default)(a);var f=t[e],l=b(n,f,a);return i._encodings.push(l),i})}}function b(t,e,n){var i=new e(t=""+t,n);if(!i.valid())throw new l.InvalidInputException(i.constructor.name,t);var a=i.encode();a=(0,o.default)(a);for(var u=0;u<a.length;u++)a[u].options=(0,r.default)(n,a[u].options);return a}function v(){return n.default.CODE128?"CODE128":Object.keys(n.default)[0]}function _(t,e,n){e=(0,o.default)(e);for(var a=0;a<e.length;a++)e[a].options=(0,r.default)(n,e[a].options),(0,i.default)(e[a].options);(0,i.default)(n),new(0,t.renderer)(t.element,e,n).render(),t.afterRender&&t.afterRender()}p.prototype.options=function(t){return this._options=(0,r.default)(this._options,t),this},p.prototype.blank=function(t){var e=new Array(t+1).join("0");return this._encodings.push({data:e}),this},p.prototype.init=function(){var t;if(this._renderProperties)for(var e in Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]),this._renderProperties){t=this._renderProperties[e];var o=(0,r.default)(this._options,t.options);"auto"==o.format&&(o.format=v()),this._errorHandler.wrapBarcodeCall(function(){var e=b(o.value,n.default[o.format.toUpperCase()],o);_(t,e,o)})}},p.prototype.render=function(){if(!this._renderProperties)throw new l.NoElementException;if(Array.isArray(this._renderProperties))for(var t=0;t<this._renderProperties.length;t++)_(this._renderProperties[t],this._encodings,this._options);else _(this._renderProperties,this._encodings,this._options);return this},p.prototype._defaults=c.default,"undefined"!=typeof window&&(window.JsBarcode=d),"undefined"!=typeof jQuery&&(jQuery.fn.JsBarcode=function(t,e){var n=[];return jQuery(this).each(function(){n.push(this)}),d(n,t,e)}),e.exports=d});export default tt();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,n as t,r as n,t as r}from"./chunk-DPOkwzLC.js";import{t as o}from"./defineProperty-Co6UJKQ3.js";import{Modal as i,OverlayContainer as a,OverlayPopoverContainer as s,t as c,useNamespace as u}from"@gct-paas/core";import*as l from"vue";import{Fragment as f,computed as d,createVNode as h,defineComponent as g,getCurrentInstance as p,getCurrentScope as v,h as m,hasInjectionContext as y,inject as b,isRef as w,isVNode as O,nextTick as S,onBeforeUnmount as D,onMounted as T,onScopeDispose as I,onUnmounted as E,provide as x,reactive as C,ref as P,resolveComponent as j,shallowReadonly as R,shallowRef as A,toRaw as N,toRef as M,toRefs as k,toValue as L,unref as _,watch as F,watchEffect as H}from"vue";import{isFunction as W,isNumber as U,isString as V,merge as z}from"lodash-es";import{ConfigProvider as B,message as $}from"ant-design-vue";function q(e,t){return!!v()&&(I(e,t),!0)}var Y=/* @__PURE__ */new WeakMap,X="undefined"!=typeof window&&"undefined"!=typeof document,G=("undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),e=>null!=e),K=Object.prototype.toString,J=()=>{},Z=/* @__PURE__ */Q();function Q(){var e,t,n;return X&&!!(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 ee(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 te=e=>e();function ne(e,t={}){let n,r,o=J;const i=e=>{clearTimeout(e),o(),o=J};let a;return s=>{const c=L(e),u=L(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 re(e){return e.endsWith("rem")?16*Number.parseFloat(e):Number.parseFloat(e)}function oe(e){return Array.isArray(e)?e:[e]}function ie(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}var ae=/\B([A-Z])/g,se=(ie(e=>e.replace(ae,"-$1").toLowerCase()),/-(\w)/g);function ce(e){return e||p()}function ue(e,t=200,n={}){return ee(ne(t,n),e)}function le(e,t=!0,n){ce(n)?T(e,n):t?e():S(e)}function fe(e,t){ce(t)&&E(e,t)}function de(e,t,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n,i=A(!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)},L(t))}return r&&(i.value=!0,X&&u()),q(c),{isPending:R(i),start:u,stop:c}}function he(e,t,n={}){const{debounce:r=0,maxWait:o,...i}=n;return function(e,t,n={}){const{eventFilter:r=te,...o}=n;return F(e,ee(r,t),o)}(e,t,{...i,eventFilter:ne(r,{maxWait:o})})}ie(e=>e.replace(se,(e,t)=>t?t.toUpperCase():""));var ge=X?window:void 0,pe=X?window.document:void 0;function ve(e){var t;const n=L(e);return null!==(t=null==n?void 0:n.$el)&&void 0!==t?t:n}function me(...e){const t=d(()=>{const t=oe(L(e[0])).filter(e=>null!=e);return t.every(e=>"string"!=typeof e)?t:void 0});return n=([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]"===K.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())})},r={flush:"post"},F(()=>{var n,r;return[null!==(n=null===(r=t.value)||void 0===r?void 0:r.map(e=>ve(e)))&&void 0!==n?n:[ge].filter(e=>null!=e),oe(L(t.value?e[1]:e[0])),oe(_(t.value?e[2]:e[1])),L(t.value?e[3]:e[2])]},n,{...r,immediate:!0});var n,r}X&&window.navigator,X&&window.location;var ye=!1;function be(e,t,n={}){const{window:r=ge,ignore:o=[],capture:i=!0,detectIframe:a=!1,controls:s=!1}=n;if(!r)return s?{stop:J,cancel:J,trigger:J}:J;if(Z&&!ye){ye=!0;const e={passive:!0};Array.from(r.document.body.children).forEach(t=>t.addEventListener("click",J,e)),r.document.documentElement.addEventListener("click",J,e)}let c=!0;const u=e=>L(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=ve(t);return n&&(e.target===n||e.composedPath().includes(n))}}),l=n=>{const r=ve(e);null!=n.target&&(r instanceof Element||!function(e){const t=L(e);return t&&16===t.$.subTree.shapeFlag}(e)||!function(e,t){const n=L(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 f=!1;const d=[me(r,"click",e=>{f||(f=!0,setTimeout(()=>{f=!1},0),l(e))},{passive:!0,capture:i}),me(r,"pointerdown",t=>{const n=ve(e);c=!u(t)&&!(!n||t.composedPath().includes(n))},{passive:!0}),a&&me(r,"blur",n=>{setTimeout(()=>{var o;const i=ve(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=()=>d.forEach(e=>e());return s?{stop:h,cancel:()=>{c=!1},trigger:e=>{c=!0,l(e),c=!1}}:h}function we(e){const t=function(){const e=A(!1),t=p();return t&&T(()=>{e.value=!0},t),e}();return d(()=>(t.value,Boolean(e())))}function Oe(e,t,n={}){const{window:r=ge,...o}=n;let i;const a=/* @__PURE__ */we(()=>r&&"MutationObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},c=F(d(()=>{const t=oe(L(e)).map(ve).filter(G);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 q(u),{isSupported:a,stop:u,takeRecords:()=>null==i?void 0:i.takeRecords()}}var Se=Symbol("vueuse-ssr-width");function De(){const e=y()?((...e)=>{var t;const n=e[0],r=null===(t=p())||void 0===t?void 0:t.proxy,o=null!=r?r:v();if(null==o&&!y())throw new Error("injectLocal must be called in setup");return o&&Y.has(o)&&n in Y.get(o)?Y.get(o)[n]:b(...e)})(Se,null):null;return"number"==typeof e?e:void 0}function Te(e,t,n={}){const{window:r=ge,...o}=n;let i;const a=/* @__PURE__ */we(()=>r&&"ResizeObserver"in r),s=()=>{i&&(i.disconnect(),i=void 0)},c=F(d(()=>{const t=L(e);return Array.isArray(t)?t.map(e=>ve(e)):[ve(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 q(u),{isSupported:a,stop:u}}function Ie(e,t={}){const{window:n=ge,scrollTarget:r,threshold:o=0,rootMargin:i,once:a=!1,initialValue:s=!1}=t,c=A(s),{stop:u}=function(e,t,n={}){const{root:r,rootMargin:o,threshold:i=0,window:a=ge,immediate:s=!0}=n,c=/* @__PURE__ */we(()=>a&&"IntersectionObserver"in a),u=d(()=>oe(L(e)).map(ve).filter(G));let l=J;const f=A(s),h=c.value?F(()=>[u.value,ve(r),L(o),f.value],([e,n,r])=>{if(l(),!f.value)return;if(!e.length)return;const o=new IntersectionObserver(t,{root:ve(n),rootMargin:r,threshold:i});e.forEach(e=>e&&o.observe(e)),l=()=>{o.disconnect(),l=J}},{immediate:s,flush:"post"}):J,g=()=>{l(),h(),f.value=!1};return q(g),{isSupported:c,isActive:f,pause(){l(),f.value=!1},resume(){f.value=!0},stop:g}}(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&&F(c,()=>{u()},{once:!0})},{root:r,window:n,threshold:o,rootMargin:i});return c}var Ee=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function xe(e,t={}){const{document:n=pe,autoExit:r=!1}=t,o=d(()=>{var t;return null!==(t=ve(e))&&void 0!==t?t:null==n?void 0:n.documentElement}),i=A(!1),a=d(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(e=>n&&e in n||o.value&&e in o.value)),s=d(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(e=>n&&e in n||o.value&&e in o.value)),c=d(()=>["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__ */we(()=>o.value&&n&&void 0!==a.value&&void 0!==s.value&&void 0!==c.value),f=()=>{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 h(){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;f()&&await h();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=f();(!e||e&&u&&(null==n?void 0:n[u])===o.value)&&(i.value=e)},v={capture:!1,passive:!0};return me(n,Ee,p,v),me(()=>ve(o),Ee,p,v),le(p,!1),r&&q(h),{isSupported:l,isFullscreen:i,enter:g,exit:h,toggle:async function(){await(i.value?h():g())}}}function Ce(e,t,n={}){var r;const{direction:o="bottom",interval:i=100,canLoadMore:a=()=>!0}=n,s=C(function(e,t={}){const{throttle:n=0,idle:r=200,onStop:o=J,onScroll:i=J,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=ge,onError:f=e=>{console.error(e)}}=t,h="boolean"==typeof s?{mutation:s}:s,g=A(0),p=A(0),v=d({get:()=>g.value,set(e){y(e,void 0)}}),m=d({get:()=>p.value,set(e){y(void 0,e)}});function y(t,n){var r,o,i,a;if(!l)return;const s=L(e);if(!s)return;null===(r=s instanceof Document?l.document.body:s)||void 0===r||r.scrollTo({top:null!==(o=L(n))&&void 0!==o?o:m.value,left:null!==(i=L(t))&&void 0!==i?i:v.value,behavior:L(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=A(!1),O=C({left:!0,right:!1,top:!0,bottom:!1}),S=C({left:!1,right:!1,top:!1,bottom:!1}),D=e=>{b.value&&(b.value=!1,S.left=!1,S.right=!1,S.top=!1,S.bottom=!1,o(e))},T=ue(D,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)||ve(e),{display:r,flexDirection:o,direction:i}=l.getComputedStyle(n),s="rtl"===i?-1:1,c=n.scrollLeft;S.left=c<g.value,S.right=c>g.value;const u=Math.abs(c*s)<=(a.left||0),f=Math.abs(c*s)+n.clientWidth>=n.scrollWidth-(a.right||0)-1;"flex"===r&&"row-reverse"===o?(O.left=f,O.right=u):(O.left=u,O.right=f),g.value=c;let d=n.scrollTop;e!==l.document||d||(d=l.document.body.scrollTop),S.top=d<p.value,S.bottom=d>p.value;const h=Math.abs(d)<=(a.top||0),v=Math.abs(d)+n.clientHeight>=n.scrollHeight-(a.bottom||0)-1;"flex"===r&&"column-reverse"===o?(O.top=v,O.bottom=h):(O.top=h,O.bottom=v),p.value=d},E=e=>{var t;l&&(I(null!==(t=e.target.documentElement)&&void 0!==t?t:e.target),b.value=!0,T(e),i(e))};return me(e,"scroll",n?function(e,t=200,n=!1,r=!0,o=!1){return ee(function(...e){let t,n,r,o,i,a,s=0,c=!0,u=J;w(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=J)};return e=>{const f=L(r),d=Date.now()-s,h=()=>n=e();return l(),f<=0?(s=Date.now(),h()):(d>f?(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,f-d))})),i||t||(t=setTimeout(()=>c=!0,f)),c=!1,n)}}(t,n,r,o),e)}(E,n,!0,!1):E,c),le(()=>{try{const t=L(e);if(!t)return;I(t)}catch(t){f(t)}}),(null==h?void 0:h.mutation)&&null!=e&&e!==l&&e!==document&&Oe(e,()=>{const t=L(e);t&&I(t)},{attributes:!0,childList:!0,subtree:!0}),me(e,"scrollend",D,c),{x:v,y:m,isScrolling:b,arrivedState:O,directions:S,measure(){const t=L(e);l&&t&&I(t)}}}(e,{...n,offset:{[o]:null!==(r=n.distance)&&void 0!==r?r:0,...n.offset}})),c=P(),u=d(()=>!!c.value),l=d(()=>{return t=L(e),"undefined"!=typeof Window&&t instanceof Window?t.document.documentElement:"undefined"!=typeof Document&&t instanceof Document?t.documentElement:t;var t}),f=Ie(l),h=d(()=>!!l.value&&a(l.value));function g(){if(s.measure(),!l.value||!f.value||!h.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,S(()=>g())}))}return fe(F(()=>[s.arrivedState[o],f.value,h.value],g,{immediate:!0,flush:"post"})),{isLoading:u,reset(){S(()=>g())}}}function Pe(e,t){const{containerStyle:n,wrapperProps:r,scrollTo:o,calculateRange:i,currentList:a,containerRef:s}="itemHeight"in t?function(e,t){const n=je(t),{state:r,source:o,currentList:i,size:a,containerRef:s}=n,{itemHeight:c,overscan:u=5}=e,l=Re(r,o,c),f=Ne("vertical",u,Ae(o,c),l,n),h=Me(c,o),g=d(()=>h(r.value.start)),p=Le(c,o);return ke(a,t,s,f),{calculateRange:f,scrollTo:Fe("vertical",f,h,s),containerStyle:{overflowY:"auto"},wrapperProps:d(()=>({style:{width:"100%",height:p.value-g.value+"px",marginTop:`${g.value}px`}})),currentList:i,containerRef:s}}(t,e):function(e,t){const n=je(t),{state:r,source:o,currentList:i,size:a,containerRef:s}=n,{itemWidth:c,overscan:u=5}=e,l=Re(r,o,c),f=Ne("horizontal",u,Ae(o,c),l,n),h=Me(c,o),g=d(()=>h(r.value.start)),p=Le(c,o);return ke(a,t,s,f),{scrollTo:Fe("horizontal",f,h,s),calculateRange:f,wrapperProps:d(()=>({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 je(e){const t=A(null),n=function(e,t={width:0,height:0},n={}){const{window:r=ge,box:o="content-box"}=n,i=d(()=>{var t;return null===(t=ve(e))||void 0===t||null===(t=t.namespaceURI)||void 0===t?void 0:t.includes("svg")}),a=A(t.width),s=A(t.height),{stop:c}=Te(e,([t])=>{const n="border-box"===o?t.borderBoxSize:"content-box"===o?t.contentBoxSize:t.devicePixelContentBoxSize;if(r&&i.value){const t=ve(e);if(t){const e=t.getBoundingClientRect();a.value=e.width,s.value=e.height}}else if(n){const e=oe(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);le(()=>{const n=ve(e);n&&(a.value="offsetWidth"in n?n.offsetWidth:t.width,s.value="offsetHeight"in n?n.offsetHeight:t.height)});const u=F(()=>ve(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=P([]),o=A(e);return{state:P({start:0,end:10}),source:o,currentList:r,size:n,containerRef:t}}function Re(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 Ae(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 Ne(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,f=o+u+t;i.value={start:l<0?0:l,end:f>s.value.length?s.value.length:f},a.value=s.value.slice(i.value.start,i.value.end).map((e,t)=>({data:e,index:t+i.value.start}))}}}function Me(e,t){return n=>"number"==typeof e?n*e:t.value.slice(0,n).reduce((t,n,r)=>t+e(r),0)}function ke(e,t,n,r){F([e.width,e.height,()=>L(t),n],()=>{r()})}function Le(e,t){return d(()=>"number"==typeof e?t.value.length*e:t.value.reduce((t,n,r)=>t+e(r),0))}Number.POSITIVE_INFINITY;var _e={horizontal:"scrollLeft",vertical:"scrollTop"};function Fe(e,t,n,r){return o=>{r.value&&(r.value[_e[e]]=n(o),t())}}function He(e={}){const{window:t=ge,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:i=!0,type:a="inner"}=e,s=A(n),c=A(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(),le(u);const l={passive:!0};return me("resize",u,l),t&&"visual"===a&&t.visualViewport&&me(t.visualViewport,"resize",u,l),o&&F(function(e,t={}){const{window:n=ge,ssrWidth:r=/* @__PURE__ */De()}=t,o=/* @__PURE__ */we(()=>n&&"matchMedia"in n&&"function"==typeof n.matchMedia),i=A("number"==typeof r),a=A(),s=A(!1);return H(()=>{if(i.value)return i.value=!o.value,void(s.value=L(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>=re(n[1])),o&&i&&(i=r<=re(o[1])),t?!i:i}));o.value&&(a.value=n.matchMedia(L(e)),s.value=a.value.matches)}),me(a,"change",e=>{s.value=e.matches},{passive:!0}),d(()=>s.value)}("(orientation: portrait)"),()=>u()),{width:s,height:c}}var We=class{info(e,t){return new Promise(n=>{$.info(e,null==t?void 0:t.duration,n)})}success(e,t){return new Promise(n=>{$.success(e,null==t?void 0:t.duration,n)})}warning(e,t){return new Promise(n=>{$.warning(e,null==t?void 0:t.duration,n)})}error(e,t){return new Promise(n=>{$.error(e,null==t?void 0:t.duration,n)})}};function Ue(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 Ve(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(`${c("sys.model.minLengthDefault")}${o}`):"number"==typeof a&&s>a?Promise.reject(`${c("sys.model.maxLengthDefault")}${a}`):Promise.resolve()}function ze(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(`${c("sys.model.minNumDefault")}${o}`):"number"==typeof a&&s>a?Promise.reject(`${c("sys.model.maxNumDefault")}${a}`):Promise.resolve()}function Be(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 $e(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 qe(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 Ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qe(Object(n),!0).forEach(function(t){$e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ge(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 Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach(function(t){Xe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Je(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 Ze(e){return{}.toString.call(e).includes("Object")}function Qe(e){return"function"==typeof e}var et=Je(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"}),tt=function(e,t){return Ze(t)||et("changeType"),Object.keys(t).some(function(t){return n=e,r=t,!Object.prototype.hasOwnProperty.call(n,r);var n,r})&&et("changeField"),t},nt=function(e){Qe(e)||et("selectorType")},rt=function(e){Qe(e)||Ze(e)||et("handlerType"),Ze(e)&&Object.values(e).some(function(e){return!Qe(e)})&&et("handlersType")},ot=function(e){var t;e||et("initialIsRequired"),Ze(e)||et("initialType"),t=e,Object.keys(t).length||et("initialContent")};function it(e,t){return Qe(t)?t(e.current):t}function at(e,t){return e.current=Ke(Ke({},e.current),t),t}function st(e,t,n){return Qe(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 ct,ut=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ot(e),rt(t);var n={current:e},r=Je(st)(n,t),o=Je(at)(n),i=Je(tt)(e),a=Je(it)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return nt(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)}]},lt={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 "},ft=(ct=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>=ct.length?ct.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))}})(lt),dt=function(e){var t;return e||ft("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||ft("configType"),e.urls?(console.warn(lt.deprecation),{paths:{vs:e.urls.monacoBase}}):e};function ht(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],ht(e[n],t[n]))}),Ye(Ye({},e),t)}var gt={type:"cancelation",msg:"operation is manually canceled"};function pt(e){var t=!1,n=new Promise(function(n,r){e.then(function(e){return t?r(gt):n(e)}),e.catch(r)});return n.cancel=function(){return t=!0},n}var vt,mt=["monaco"],yt=function(e){if(Array.isArray(e))return e}(vt=ut({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}}(vt)||function(e){if(e){if("string"==typeof e)return Be(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)?Be(e,2):void 0}}(vt)||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.")}(),bt=yt[0],wt=yt[1];function Ot(e){return document.body.appendChild(e)}function St(e){var t,n,r=bt(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 Dt(){var e=bt(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;Tt(n),e.resolve(n)},function(t){e.reject(t)})}function Tt(e){bt().monaco||wt({monaco:e})}var It=new Promise(function(e,t){return wt({resolve:e,reject:t})}),Et={config:function(e){var t=dt(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,mt);wt(function(e){return{config:ht(e.config,r),monaco:n}})},init:function(){var e=bt(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(wt({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),pt(It);if(window.monaco&&window.monaco.editor)return Tt(window.monaco),e.resolve(window.monaco),pt(It);!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)}}(Ot,St)(Dt)}return pt(It)},__getMonacoInstance:function(){return bt(function(e){return e.monaco})}},xt=new class{constructor(){o(this,"_monacoInstance",null),o(this,"_loadingPromise",null),this._configureLoader()}_configureLoader(){Et.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=Et.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)}},Ct=/* @__PURE__ */t({Vue:()=>l,Vue2:()=>{},del:()=>At,install:()=>jt,isVue2:()=>!1,isVue3:()=>!0,set:()=>Rt});import*as Pt from"vue";function jt(){}function Rt(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 At(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]}n(Ct,Pt);var Nt=Symbol.for("DndContextType");function Mt(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 kt="function"==typeof Symbol&&Symbol.observable||"@@observable",Lt=function(){return Math.random().toString(36).substring(7).split("").join(".")},_t={INIT:"@@redux/INIT"+Lt(),REPLACE:"@@redux/REPLACE"+Lt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Lt()}};function Ft(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Mt(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Mt(1));return n(Ft)(e,t)}if("function"!=typeof e)throw new Error(Mt(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(Mt(3));return i}function f(e){if("function"!=typeof e)throw new Error(Mt(4));if(c)throw new Error(Mt(5));var t=!0;return u(),s.push(e),function(){if(t){if(c)throw new Error(Mt(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),a=null}}}function d(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(Mt(7));if(void 0===e.type)throw new Error(Mt(8));if(c)throw new Error(Mt(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 d({type:_t.INIT}),(r={dispatch:d,subscribe:f,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Mt(10));o=e,d({type:_t.REPLACE})}})[kt]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Mt(11));function n(){e.next&&e.next(l())}return n(),{unsubscribe:t(n)}}})[kt]=function(){return this},e},r}function Ht(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 Wt(e){return"object"==typeof e}var Ut="dnd-core/INIT_COORDS",Vt="dnd-core/BEGIN_DRAG",zt="dnd-core/PUBLISH_DRAG_SOURCE",Bt="dnd-core/HOVER",$t="dnd-core/DROP",qt="dnd-core/END_DRAG";function Yt(e,t){return{type:Ut,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var Xt={type:Ut,payload:{clientOffset:null,sourceClientOffset:null}};function Gt(e){return function(t=[],n={publishSource:!0}){const{publishSource:r=!0,clientOffset:o,getSourceClientOffset:i}=n,a=e.getMonitor(),s=e.getRegistry();e.dispatch(Yt(o)),function(e,t,n){Ht(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){Ht(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(Xt);let u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){Ht("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(c)}e.dispatch(Yt(o,u));const l=s.getSource(c).beginDrag(a,c);return null!=l?(function(e){Ht(Wt(e),"Item must be an object.")}(l),s.pinSource(c),{type:Vt,payload:{itemType:s.getSourceType(c),item:l,sourceId:c,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}):void 0}}function Kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jt(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){Kt(e,t,n[t])})}return e}function Zt(e){return function(t={}){const n=e.getMonitor(),r=e.getRegistry();!function(e){Ht(e.isDragging(),"Cannot call drop while not dragging."),Ht(!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:$t,payload:{dropResult:Jt({},t,Qt(o,i,r,n))}};e.dispatch(a)})}}function Qt(e,t,n,r){const o=n.getTarget(e);let i=o?o.drop(r,e):void 0;return function(e){Ht(void 0===e||Wt(e),"Drop result must either be an object or undefined.")}(i),void 0===i&&(i=0===t?{}:r.getDropResult()),i}function en(e){return function(){const t=e.getMonitor(),n=e.getRegistry();!function(e){Ht(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:qt}}}function tn(e,t){return null===t?null===e:Array.isArray(e)?e.some(e=>e===t):e===t}function nn(e){return function(t,{clientOffset:n}={}){!function(e){Ht(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];tn(t.getTargetType(o),n)||e.splice(r,1)}}(r,i,o.getItemType()),function(e,t,n){Ht(t.isDragging(),"Cannot call hover while not dragging."),Ht(!t.didDrop(),"Cannot call hover after drop.");for(let r=0;r<e.length;r++){const t=e[r];Ht(e.lastIndexOf(t)===r,"Expected targetIds to be unique in the passed array."),Ht(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:Bt,payload:{targetIds:r,clientOffset:n||null}}}}function rn(e){return function(){if(e.getMonitor().isDragging())return{type:zt}}}var on=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:Gt(e),publishDragSource:rn(e),hover:nn(e),drop:Zt(e),endDrag:en(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 an(e,t){return{x:e.x-t.x,y:e.y-t.y}}var sn=[],cn=[];sn.__IS_NONE__=!0,cn.__IS_ALL__=!0;var un=class{subscribeToStateChange(e,t={}){const{handlerIds:n}=t;Ht("function"==typeof e,"listener must be a function."),Ht(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!==sn&&(e===cn||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){Ht("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 Ht(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 Ht(t,`Expected to find a valid target. targetId=${e}`),!(!this.isDragging()||this.didDrop())&&tn(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 Ht(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&&!tn(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?an((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?an(t,n):null}(this.store.getState().dragOffset)}constructor(e,t){this.store=e,this.registry=t}},ln="undefined"!=typeof global?global:self,fn=ln.MutationObserver||ln.WebKitMutationObserver;function dn(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}var hn,gn="function"==typeof fn?function(e){let t=1;const n=new fn(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:dn,pn=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}},vn=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=gn(this.flush),this.requestErrorThrow=dn(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},mn=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new pn(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(vn.registerPendingError),yn="dnd-core/ADD_SOURCE",bn="dnd-core/ADD_TARGET",wn="dnd-core/REMOVE_SOURCE",On="dnd-core/REMOVE_TARGET";function Sn(e,t){t&&Array.isArray(e)?e.forEach(e=>Sn(e,!1)):Ht("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"}(hn||(hn={}));var Dn=0;function Tn(e){switch(e[0]){case"S":return hn.SOURCE;case"T":return hn.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function In(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 En=class{addSource(e,t){Sn(e),function(e){Ht("function"==typeof e.canDrag,"Expected canDrag to be a function."),Ht("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),Ht("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);const n=this.addHandler(hn.SOURCE,e,t);return this.store.dispatch(function(e){return{type:yn,payload:{sourceId:e}}}(n)),n}addTarget(e,t){Sn(e,!0),function(e){Ht("function"==typeof e.canDrop,"Expected canDrop to be a function."),Ht("function"==typeof e.hover,"Expected hover to be a function."),Ht("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);const n=this.addHandler(hn.TARGET,e,t);return this.store.dispatch(function(e){return{type:bn,payload:{targetId:e}}}(n)),n}containsHandler(e){return In(this.dragSources,e)||In(this.dropTargets,e)}getSource(e,t=!1){return Ht(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Ht(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Ht(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Ht(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Tn(e)===hn.SOURCE}isTargetId(e){return Tn(e)===hn.TARGET}removeSource(e){var t;Ht(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:wn,payload:{sourceId:e}}}(e)),t=()=>{this.dragSources.delete(e),this.types.delete(e)},vn.enqueueTask(mn.create(t))}removeTarget(e){Ht(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:On,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const t=this.getSource(e);Ht(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}unpinSource(){Ht(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=(Dn++).toString();switch(e){case hn.SOURCE:return`S${t}`;case hn.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}(e);return this.types.set(r,t),e===hn.SOURCE?this.dragSources.set(r,n):e===hn.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}},xn=(e,t)=>e===t;function Cn(e=sn,t){switch(t.type){case Bt:break;case yn:case bn:case On:case wn:return sn;default:return cn}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=xn){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 sn;const i=r[r.length-1],a=n[n.length-1];return i!==a&&(i&&o.push(i),a&&o.push(a)),o}function Pn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jn={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Rn(e=jn,t){const{payload:n}=t;switch(t.type){case Ut:case Vt:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Bt: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){Pn(e,t,n[t])})}return e}({},e,{clientOffset:n.clientOffset});case qt:case $t:return jn;default:return e}var r,o}function An(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nn(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){An(e,t,n[t])})}return e}var Mn={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function kn(e=Mn,t){const{payload:n}=t;switch(t.type){case Vt:return Nn({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case zt:return Nn({},e,{isSourcePublic:!0});case Bt:return Nn({},e,{targetIds:n.targetIds});case On:return-1===e.targetIds.indexOf(n.targetId)?e:Nn({},e,{targetIds:(r=e.targetIds,o=n.targetId,r.filter(e=>e!==o))});case $t:return Nn({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case qt:return Nn({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}var r,o}function Ln(e=0,t){switch(t.type){case yn:case bn:return e+1;case wn:case On:return e-1;default:return e}}function _n(e=0){return e+1}function Fn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hn(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){Fn(e,t,n[t])})}return e}function Wn(e={},t){return{dirtyHandlerIds:Cn(e.dirtyHandlerIds,{type:t.type,payload:Hn({},t.payload,{prevTargetIds:(n=e,r=[],"dragOperation.targetIds".split(".").reduce((e,t)=>e&&e[t]?e[t]:r||null,n))})}),dragOffset:Rn(e.dragOffset,t),refCount:Ln(e.refCount,t),dragOperation:kn(e.dragOperation,t),stateId:_n(e.stateId)};var n,r}function Un(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 Vn=0,zn=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function Bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$n(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=t;return o[zn]||(o[zn]=function(e,t,n={},r=!1){const o=function(e){const t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return Ft(Wn,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r),i=new on(o,new un(o,new En(o))),a=e(i,t,n);return i.receiveBackend(a),i}(e,t,n,r)),o[zn]}function $n(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:window}var qn=(0,Ct.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]:[Bn(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 Un(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)?Un(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&&++Vn,(0,Ct.onUnmounted)(function(){if(u){var e=$n();0===--Vn&&(e[zn]=null)}}),n=c,(0,Ct.provide)(Nt,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,Ct.defineComponent)({props:{connect:{type:Function,required:!0},src:{type:String,required:!0}},setup:function(e){return(0,Ct.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 Yn=!1,Xn=!1,Gn=/* @__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(){Ht(!Yn,"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 Yn=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Yn=!1}},t.isDragging=function(){if(!this.sourceId)return!1;Ht(!Xn,"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 Xn=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Xn=!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}(),Kn=!1,Jn=/* @__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;Ht(!Kn,"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 Kn=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Kn=!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 Zn(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 Qn(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=Zn(r);t[n]=function(){return o}}}),t}function er(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 tr(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 nr=/* @__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=Qn({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!er(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},r.didDragPreviewOptionsChange=function(){return!er(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}}])&&tr(t.prototype,n),e}();function rr(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 or=/* @__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=Qn({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,(0,Ct.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!er(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}}])&&rr(t.prototype,n),e}(),ir=/* @__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 ar(){var e=(0,Ct.inject)(Nt);return Ht(null!=e,"Expected drag drop context"),e}function sr(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 cr(e,t,n){var r=ar(),o=function(e,t,n){var r=(0,Ct.computed)(function(){return new ir((0,Ct.unref)(e),(0,Ct.unref)(t),(0,Ct.unref)(n))});return(0,Ct.watchEffect)(function(){r.value.spec=(0,Ct.unref)(e)}),r}(e,t,n),i=function(e){return(0,Ct.computed)(function(){var t=(0,Ct.unref)(e).type;return Ht(null!=t,"spec.type must be defined"),t})}(e);(0,Ct.watchEffect)(function(e){if(null!=(0,Ct.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,Ct.unref)(i),(0,Ct.unref)(o),(0,Ct.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 sr(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)?sr(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,Ct.unref)(t).receiveHandlerId(s),(0,Ct.unref)(n).receiveHandlerId(s),e(c)}var u,l})}function ur(e){return(0,Ct.computed)(function(){return"function"==typeof e?e():e})}var lr=/* @__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 fr(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 dr(e,t,n){var r,o,i=(r=function(e,t,n){var r=(0,Ct.ref)((0,Ct.unref)(t)((0,Ct.unref)(e))),o=function(){var o=(0,Ct.unref)(t)((0,Ct.unref)(e));(0,lr.default)(r.value,o)||(r.value=o,n&&n())};return(0,Ct.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 fr(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)?fr(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,Ct.watchEffect)(function(t){var n=(0,Ct.unref)(e).getHandlerId();null!=n&&t((0,Ct.unref)(e).subscribeToStateChange(s,{handlerIds:[n]}))}),a}function hr(e,t,n){return dr(t,e||function(){return{}},function(){return(0,Ct.unref)(n).reconnect()})}function gr(e,t){var n=(0,Ct.reactive)({el:null,options:(0,Ct.unref)(t)});return(0,Ct.watchEffect)(function(){e(n)},{flush:"post"}),function(e,r){Rt(n,"el",e);var o=(0,Ct.unref)(t)||r;return(0,lr.default)(n.options,o)||Rt(n,"options",o),(0,Ct.unref)(e)}}function pr(e,t){return gr(function(t){(0,Ct.unref)(e).hooks.dragSource()(t.el,t.options)},(0,Ct.computed)(function(){return(0,Ct.unref)(t).options}))}function vr(e,t){return gr(function(t){(0,Ct.unref)(e).hooks.dragPreview()(t.el,t.options)},(0,Ct.computed)(function(){return(0,Ct.unref)(t).previewOptions}))}function mr(e){var t,n=ur(e),r=(t=ar(),(0,Ct.computed)(function(){return new Gn((0,Ct.unref)(t))})),o=function(e,t){var n=ar(),r=(0,Ct.computed)(function(){return new nr((0,Ct.unref)(n).getBackend())});return(0,Ct.watchEffect)(function(t){r.value.dragSourceOptions=(0,Ct.unref)(e)||null,(0,Ct.unref)(r).reconnect(),t(function(){r.value.disconnectDragSource()})}),(0,Ct.watchEffect)(function(e){r.value.dragPreviewOptions=(0,Ct.unref)(t)||null,(0,Ct.unref)(r).reconnect(),e(function(){r.value.disconnectDragPreview()})}),r}((0,Ct.computed)(function(){return(0,Ct.unref)(n).options}),(0,Ct.computed)(function(){return(0,Ct.unref)(n).previewOptions}));return cr(n,r,o),[hr((0,Ct.computed)(function(){return(0,Ct.unref)(n).collect||function(){return{}}}),r,o),pr(o,n),vr(o,n)]}var yr=/* @__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 br(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 wr(e,t,n){var r=ar(),o=function(e,t){var n=(0,Ct.computed)(function(){return new yr((0,Ct.unref)(e),(0,Ct.unref)(t))});return(0,Ct.watchEffect)(function(){n.value.spec=(0,Ct.unref)(e)}),n}(e,t),i=function(e){return(0,Ct.computed)(function(){var t=(0,Ct.unref)(e).accept;return Ht(null!=t,"accept must be defined"),Array.isArray(t)?t:[t]})}(e);(0,Ct.watchEffect)(function(e){var a,s,c=(a=function(e,t,n){var r=(0,Ct.unref)(n).getRegistry(),o=r.addTarget((0,Ct.unref)(e),(0,Ct.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 br(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)?br(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,Ct.unref)(t).receiveHandlerId(u),(0,Ct.unref)(n).receiveHandlerId(u),e(l)})}function Or(e,t){return gr(function(t){(0,Ct.unref)(e).hooks.dropTarget()(t.el,t.options)},(0,Ct.computed)(function(){return(0,Ct.unref)(t).options}))}function Sr(e){var t,n=ur(e),r=(t=ar(),(0,Ct.computed)(function(){return new Jn((0,Ct.unref)(t))})),o=function(e){var t=ar(),n=(0,Ct.computed)(function(){return new or((0,Ct.unref)(t).getBackend())});return(0,Ct.watchEffect)(function(t){n.value.dropTargetOptions=(0,Ct.unref)(e)||null,n.value.reconnect(),t(function(){return n.value.disconnectDropTarget()})}),n}((0,Ct.computed)(function(){return(0,Ct.unref)(n).options}));return wr(n,r,o),[hr((0,Ct.computed)(function(){return(0,Ct.unref)(n).collect||function(){return{}}}),r,o),Or(o,n)]}function Dr(e){let t=null;return()=>(null==t&&(t=e()),t)}var Tr=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}},Ir=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()}},Er=/* @__PURE__ */t({FILE:()=>xr,HTML:()=>jr,TEXT:()=>Pr,URL:()=>Cr}),xr="__NATIVE_FILE__",Cr="__NATIVE_URL__",Pr="__NATIVE_TEXT__",jr="__NATIVE_HTML__";function Rr(e,t,n){const r=t.reduce((t,n)=>t||e.getData(n),"");return null!=r?r:n}var Ar={[xr]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[jr]:{exposeProperties:{html:(e,t)=>Rr(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Cr]:{exposeProperties:{urls:(e,t)=>Rr(e,t,"").split("\n"),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Pr]:{exposeProperties:{text:(e,t)=>Rr(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Nr(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Ar).filter(e=>{const n=Ar[e];return!!(null==n?void 0:n.matchesTypes)&&n.matchesTypes.some(e=>t.indexOf(e)>-1)})[0]||null}var Mr=Dr(()=>/firefox/i.test(navigator.userAgent)),kr=Dr(()=>Boolean(window.safari)),Lr=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],f=l*l;return n[a]+r[a]*l+o[a]*f+i[a]*l*f}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=[],f=[];let d;for(let h=0;h<u.length-1;h++){d=a[h];const e=u[h],t=1/i[h],n=e+u[h+1]-d-d;l.push((d-e-n)*t),f.push(n*t*t)}this.xs=e,this.ys=t,this.c1s=u,this.c2s=l,this.c3s=f}};function _r(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 Fr(e){return{x:e.clientX,y:e.clientY}}var Hr=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 Wr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ur(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){Wr(e,t,n[t])})}return e}var Vr=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 Ur({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId();return Ur({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(Er).some(t=>Er[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){const n=Ar[e];if(!n)throw new Error(`native type ${e} has no configuration`);const r=new Ir(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&&_r(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=Fr(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=Nr(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&&(Mr()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=_r(i?e:t),s={x:n.x-a.x,y:n.y-a.y},{offsetWidth:c,offsetHeight:u}=e,{anchorX:l,anchorY:f}=r,{dragPreviewWidth:d,dragPreviewHeight:h}=function(e,t,n,r){let o=e?t.width:n,i=e?t.height:r;return kr()&&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 Lr([0,.5,1],[s.x,s.x/c*d,s.x+d-c]).interpolate(l),y:v?p:(()=>{let e=new Lr([0,.5,1],[s.y,s.y/u*h,s.y+h-u]).interpolate(f);return kr()&&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=Nr(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:Fr(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=Fr(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)):Nr(e.dataTransfer)&&e.preventDefault(),this.enterLeaveCounter.reset()},this.handleTopDrop=e=>{const{dropTargetIds:t}=this;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:Fr(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 Hr(t,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Tr(this.isNodeInDocument)}},zr=function(e,t,n){return new Vr(e,t,n)},Br={"zh-CN":()=>import("./zh_CN-BxdD8hqG.js"),"en-US":()=>import("./en_US-6Hw6WWah.js"),"pt-PT":()=>import("./pt_PT-CCVWOJzE.js"),"tr-TR":()=>import("./tr_TR-CGZch3eB.js"),"zh-TW":()=>import("./zh_TW-D5Y8j-oG.js"),"ja-JP":()=>import("./ja_JP-AsmV92nC.js"),"vi-VN":()=>import("./vi_VN-DONxIDR7.js"),"de-GE":()=>import("./de_DE-BnwOalCV.js"),"fr-FR":()=>import("./fr_FR-BkDgVS_P.js"),"es-ES":()=>import("./es_ES-tAqXFGrR.js"),"ru-RU":()=>import("./ru_RU-w4sUgbzL.js")},$r=P({locale:""});function qr(){if($r.value.locale!==_gct.i18n.global.locale.value){const e=Br[_gct.i18n.global.locale.value];e&&e().then(e=>{$r.value=e.default})}return{getAntdLocale:$r}}var Yr=C({});function Xr(){return{themeVars:Yr,setPrimaryColor:function(e){Yr.primaryColor=e,B.config({theme:{primaryColor:e}})}}}function Gr(e,t,n={}){const r=n.minValue??10,o=P(e),i=C({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:d({get:()=>o.value<r?r:o.value>i.offsetWidth-r?i.offsetWidth-r:o.value,set(e){o.value=e}})}}var Kr=/* @__PURE__ */g({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const n=u("modal"),r=P(!1),o=P(!!e.opts.defaultFullscreen),a=()=>{o.value=!o.value},s=P({});e.opts&&Object.assign(s.value,e.opts);let c=null;const l=new i({dismiss:e=>{r.value=!1,c=e,t.emit("dismiss",c)},setOptions(e){Object.assign(s.value,e)}});x("modal",l);const f=e=>l.dismiss(e);t.expose({present:()=>{r.value=!0},dismiss:f});const d=P(!1),g=async()=>{if(l.ok)try{d.value=!0;const e=await l.ok();d.value=!1,!e||!0!==e.ok&&!0!==e.close||f(e)}finally{d.value=!1}else console.warn("打开模态未实现ok方法")},p=async()=>{l.cancel&&!1===await l.cancel()||f()},{getAntdLocale:v}=qr();return()=>{var e,i;let c;const u=null===(e=(i=t.slots).default)||void 0===e?void 0:e.call(i);return u&&u.length>0&&(u[0].props.modal=l),h(B,{locale:v.value},{default:()=>{return[h(qn,{backend:zr},(e=c=m(j("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:g,confirmLoading:d.value,onCancel:p,okText:"确认",okButtonProps:{disabled:l.state.okDisabled},...s.value},[!1!==s.value.canFullscreen?h("div",{class:n.e("full-screen"),onClick:a},[h("i",{class:"iconfont "+(o.value?"icon-tuichuquanping":"icon-quanping")},null)]):null,u]),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!O(e)?c:{default:()=>[c]}))];var e}})}}}),Jr=Math.min,Zr=Math.max,Qr=Math.round,eo=Math.floor,to=e=>({x:e,y:e}),no={left:"right",right:"left",bottom:"top",top:"bottom"};function ro(e,t,n){return Zr(e,Jr(t,n))}function oo(e,t){return"function"==typeof e?e(t):e}function io(e){return e.split("-")[0]}function ao(e){return e.split("-")[1]}function so(e){return"x"===e?"y":"x"}function co(e){return"y"===e?"height":"width"}function uo(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function lo(e){return so(uo(e))}function fo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var ho=["left","right"],go=["right","left"],po=["top","bottom"],vo=["bottom","top"];function mo(e){const t=io(e);return no[t]+e.slice(t.length)}function yo(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 bo(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 wo(e,t,n){let{reference:r,floating:o}=e;const i=uo(t),a=lo(t),s=co(a),c=io(t),u="y"===i,l=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=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:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(ao(t)){case"start":h[a]-=d*(n&&u?-1:1);break;case"end":h[a]+=d*(n&&u?-1:1)}return h}async function Oo(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:f="floating",altBoundary:d=!1,padding:h=0}=oo(t,e),g=yo(h),p=s[d?"floating"===f?"reference":"floating":f],v=bo(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"===f?{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=bo(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 So=/* @__PURE__ */new Set(["left","top"]);function Do(){return"undefined"!=typeof window}function To(e){return xo(e)?(e.nodeName||"").toLowerCase():"#document"}function Io(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Eo(e){var t;return null==(t=(xo(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function xo(e){return!!Do()&&(e instanceof Node||e instanceof Io(e).Node)}function Co(e){return!!Do()&&(e instanceof Element||e instanceof Io(e).Element)}function Po(e){return!!Do()&&(e instanceof HTMLElement||e instanceof Io(e).HTMLElement)}function jo(e){return!(!Do()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Io(e).ShadowRoot)}function Ro(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Uo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Ao(e){return/^(table|td|th)$/.test(To(e))}function No(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}var Mo,ko=/transform|translate|scale|rotate|perspective|filter/,Lo=/paint|layout|strict|content/,_o=e=>!!e&&"none"!==e;function Fo(e){const t=Co(e)?Uo(e):e;return _o(t.transform)||_o(t.translate)||_o(t.scale)||_o(t.rotate)||_o(t.perspective)||!Ho()&&(_o(t.backdropFilter)||_o(t.filter))||ko.test(t.willChange||"")||Lo.test(t.contain||"")}function Ho(){return null==Mo&&(Mo="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Mo}function Wo(e){return/^(html|body|#document)$/.test(To(e))}function Uo(e){return Io(e).getComputedStyle(e)}function Vo(e){return Co(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zo(e){if("html"===To(e))return e;const t=e.assignedSlot||e.parentNode||jo(e)&&e.host||Eo(e);return jo(t)?t.host:t}function Bo(e){const t=zo(e);return Wo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Po(t)&&Ro(t)?t:Bo(t)}function $o(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Bo(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Io(o);if(i){const e=qo(a);return t.concat(a,a.visualViewport||[],Ro(o)?o:[],e&&n?$o(e):[])}return t.concat(o,$o(o,[],n))}function qo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Yo(e){const t=Uo(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Po(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Qr(n)!==i||Qr(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Xo(e){return Co(e)?e:e.contextElement}function Go(e){const t=Xo(e);if(!Po(t))return to(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Yo(t);let a=(i?Qr(n.width):n.width)/r,s=(i?Qr(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}var Ko=/* @__PURE__ */to(0);function Jo(e){const t=Io(e);return Ho()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ko}function Zo(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Xo(e);let a=to(1);t&&(r?Co(r)&&(a=Go(r)):a=Go(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Io(e))&&t}(i,n,r)?Jo(i):to(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,l=o.width/a.x,f=o.height/a.y;if(i){const e=Io(i),t=r&&Co(r)?Io(r):r;let n=e,o=qo(n);for(;o&&r&&t!==n;){const e=Go(o),t=o.getBoundingClientRect(),r=Uo(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,f*=e.y,c+=i,u+=a,n=Io(o),o=qo(n)}}return bo({width:l,height:f,x:c,y:u})}function Qo(e,t){const n=Vo(e).scrollLeft;return t?t.left+n:Zo(Eo(e)).left+n}function ei(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Qo(e,n),y:n.top+t.scrollTop}}function ti(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Io(e),r=Eo(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=Ho();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}const u=Qo(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=Eo(e),n=Vo(e),r=e.ownerDocument.body,o=Zr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Zr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Qo(e);const s=-n.scrollTop;return"rtl"===Uo(r).direction&&(a+=Zr(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Eo(e));else if(Co(t))r=function(e,t){const n=Zo(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Po(e)?Go(e):to(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=Jo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return bo(r)}function ni(e,t){const n=zo(e);return!(n===t||!Co(n)||Wo(n))&&("fixed"===Uo(n).position||ni(n,t))}function ri(e,t){const n=t.get(e);if(n)return n;let r=$o(e,[],!1).filter(e=>Co(e)&&"body"!==To(e)),o=null;const i="fixed"===Uo(e).position;let a=i?zo(e):e;for(;Co(a)&&!Wo(a);){const t=Uo(a),n=Fo(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||Ro(a)&&!n&&ni(e,a))?r=r.filter(e=>e!==a):o=t,a=zo(a)}return t.set(e,r),r}function oi(e,t,n){const r=Po(t),o=Eo(t),i="fixed"===n,a=Zo(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=to(0);function u(){c.x=Qo(o)}if(r||!r&&!i)if(("body"!==To(t)||Ro(o))&&(s=Vo(t)),r){const e=Zo(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?to(0):ei(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 ii(e){return"static"===Uo(e).position}function ai(e,t){if(!Po(e)||"fixed"===Uo(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Eo(e)===n&&(n=n.ownerDocument.body),n}function si(e,t){const n=Io(e);if(No(e))return n;if(!Po(e)){let t=zo(e);for(;t&&!Wo(t);){if(Co(t)&&!ii(t))return t;t=zo(t)}return n}let r=ai(e,t);for(;r&&Ao(r)&&ii(r);)r=ai(r,t);return r&&Wo(r)&&ii(r)&&!Fo(r)?n:r||function(e){let t=zo(e);for(;Po(t)&&!Wo(t);){if(Fo(t))return t;if(No(t))return null;t=zo(t)}return null}(e)||n}var ci={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Eo(r),s=!!t&&No(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=to(1);const l=to(0),f=Po(r);if((f||!f&&!i)&&(("body"!==To(r)||Ro(a))&&(c=Vo(r)),f)){const e=Zo(r);u=Go(r),l.x=e.x+r.clientLeft,l.y=e.y+r.clientTop}const d=!a||f||i?to(0):ei(a,c);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+l.x+d.x,y:n.y*u.y-c.scrollTop*u.y+l.y+d.y}},getDocumentElement:Eo,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?No(t)?[]:ri(t,this._c):[].concat(n),r],a=ti(t,i[0],o);let s=a.top,c=a.right,u=a.bottom,l=a.left;for(let f=1;f<i.length;f++){const e=ti(t,i[f],o);s=Zr(e.top,s),c=Jr(e.right,c),u=Jr(e.bottom,u),l=Zr(e.left,l)}return{width:c-l,height:u-s,x:l,y:s}},getOffsetParent:si,getElementRects:async function(e){const t=this.getOffsetParent||si,n=this.getDimensions,r=await n(e.floating);return{reference:oi(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}=Yo(e);return{width:t,height:n}},getScale:Go,isElement:Co,isRTL:function(e){return"rtl"===Uo(e).direction}};function ui(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var li=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=io(n),s=ao(n),c="y"===uo(n),u=So.has(a)?-1:1,l=i&&c?-1:1,f=oo(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:g}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof g&&(h="end"===s?-1*g:g),c?{x:h*l,y:d*u}:{x:d*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}}}}},fi=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}=oo(e,t),l={x:n,y:r},f=await i.detectOverflow(t,u),d=uo(io(o)),h=so(d);let g=l[h],p=l[d];if(a){const e="y"===h?"bottom":"right";g=ro(g+f["y"===h?"top":"left"],g,g-f[e])}if(s){const e="y"===d?"bottom":"right";p=ro(p+f["y"===d?"top":"left"],p,p-f[e])}const v=c.fn({...t,[h]:g,[d]:p});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[h]:a,[d]:s}}}}}},di=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:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...v}=oo(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const m=io(o),y=uo(s),b=io(s)===s,w=await(null==c.isRTL?void 0:c.isRTL(u.floating)),O=d||(b||!p?[mo(s)]:function(e){const t=mo(e);return[fo(e),t,fo(t)]}(s)),S="none"!==g;!d&&S&&O.push(...function(e,t,n,r){const o=ao(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?go:ho:t?ho:go;case"left":case"right":return t?po:vo;default:return[]}}(io(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(fo)))),i}(s,p,g,w));const D=[s,...O],T=await c.detectOverflow(t,v),I=[];let E=(null==(r=i.flip)?void 0:r.overflows)||[];if(l&&I.push(T[m]),f){const e=function(e,t,n){void 0===n&&(n=!1);const r=ao(e),o=lo(e),i=co(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=mo(a)),[a,mo(a)]}(o,a,w);I.push(T[e[0]],T[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=D[e];if(t&&("alignment"!==f||y===uo(t)||E.every(e=>uo(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(S){const t=uo(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{}}}},hi=/* @__PURE__ */g({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const n=u("popover"),r=P(!1),o=P(),a=P(),s=C({}),{width:c,height:l,maxHeight:f}=e.opts;c&&(U(c)?s.width=`${c}px`:s.width=c),l&&(U(l)?s.height=`${l}px`:s.height=l),f&&(U(f)?s.maxHeight=`${f}px`:s.maxHeight=f);const d=new i({dismiss:e=>{t.emit("dismiss",e)}});function g(e){return d.dismiss(e)}let p=()=>{};E(()=>{p()}),be(o,()=>{g({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=Xo(e),l=o||i?[...u?$o(u):[],...t?$o(t):[]]:[];l.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const f=u&&s?function(e,t){let n,r=null;const o=Eo(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:f,width:d,height:h}=u;if(s||t(),!d||!h)return;const g={rootMargin:-eo(f)+"px "+-eo(o.clientWidth-(l+d))+"px "+-eo(o.clientHeight-(f+h))+"px "+-eo(l)+"px",threshold:Zr(0,Jr(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||ui(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 d,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?Zo(e):null;return c&&function t(){const r=Zo(e);p&&!ui(p,r)&&n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;l.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=g)||e.disconnect(),g=null,c&&cancelAnimationFrame(d)}}(t,o.value,()=>async function(e,t,n,r){const o=[li(r.offsetOpts||6),di(),fi()];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}=oo(e,t)||{};if(null==u)return{};const f=yo(l),d={x:n,y:r},h=lo(o),g=co(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]-d[h]-i.floating[g],O=d[h]-i.reference[h],S=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let D=S?S[b]:0;D&&await(null==a.isElement?void 0:a.isElement(S))||(D=s.floating[b]||i.floating[g]);const T=w/2-O/2,I=D/2-p[g]/2-1,E=Jr(f[m],I),x=Jr(f[y],I),C=E,P=D-p[g]-x,j=D/2-p[g]/2+T,R=ro(C,j,P),A=!c.arrow&&null!=ao(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]:d[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:ci,...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:Oo},c=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:f}=wo(u,r,c),d=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:f,initialPlacement:r,placement:d,strategy:o,middlewareData:g,rects:u,platform:s,elements:{reference:e,floating:t}});l=null!=y?y:l,f=null!=b?b:f,g[v]={...g[v],...w},O&&h<50&&(h++,"object"==typeof O&&(O.placement&&(d=O.placement),O.rects&&(u=!0===O.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):O.rects),({x:l,y:f}=wo(u,d,c))),p=-1)}return{x:l,y:f,placement:d,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:g});const{getAntdLocale:v}=qr();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=d);const l=h("div",{class:[n.b(),n.is("show",r.value),e.opts.className],ref:o,style:s,onClick:e=>{e.stopPropagation()}},[!e.opts.noArrow&&h("div",{class:[n.e("arrow")],ref:a},null),u]);return!0===e.opts.autoClose?h("div",{class:[n.e("overlay")],onClick:()=>{!0===e.opts.autoClose&&g()}},[l]):h(B,{locale:v.value},{default:()=>{return[h(qn,{backend:zr},(e=l,"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!O(e)?l:{default:()=>[l]}))];var e}})}}}),gi=/* @__PURE__ */g({name:"AppFullScreenContainer",props:{opts:{type:Object,default:()=>({})}},setup(e,t){const n=u("app-full-screen-container"),r=P(!1),o=P({});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)}});x("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:l}=qr();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),h(B,{locale:l.value},{default:()=>{return[h(qn,{backend:zr},(e=a=m("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)&&!O(e)?a:{default:()=>[a]}))];var e}})}}});function pi(e){return V(e)?j(e):e}var vi=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(Kr,e,t)}(W(e)?e:()=>m(pi(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(hi,e,t)}(W(e)?e:()=>m(pi(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(gi,e,t)}(W(e)?e:()=>m(pi(e),{...t}),n)}},mi=new vi,yi=(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),bi={childrenFields:["children"]},wi=/* @__PURE__ */new Error("中断操作");function Oi(e,t){for(const n of t){const t=e[n];if(Array.isArray(t)&&t.length>0)return t}}function Si(e,t,n,r){const{childrenFields:o}=z({},bi,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=Oi(a,o);(null==s?void 0:s.length)&&Si(a,s,n,r)}}function Di(e,t,n){const{childrenFields:r}=z({},bi,n||{});try{const o=Array.isArray(e)?void 0:e,i=Array.isArray(e)?e:Oi(e,r);(null==i?void 0:i.length)?Si(o,i,t,n):console.warn("没有可遍历的数组",e,n)}catch(o){if(o!==wi)throw o}}var Ti={...bi,compareField:"id",compareCallback:({item:e,key:t,compareField:n})=>e[n]===t};function Ii(e,t,n){const{compareField:r,compareCallback:o}=z({},Ti,n||{});let i,a;return Di(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 Ei(e,t){const n=e=>Ei(e,t);return e.map(e=>t(e,n))}function xi(e,t,n){const{childrenFields:r}=z({},bi,n||{});return function e(n,o){return n.filter(n=>{console.log("item",n.title);const i=Oi(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 Ci=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};export{he as A,Oe as C,fe as D,He as E,ue as O,Ce as S,Pe as T,ze as _,Ei as a,be as b,mi as c,qr as d,Sr as f,Ve as g,Et as h,Di as i,de as k,Gr as l,xt as m,xi as n,yi as o,mr as p,Ii as r,vi as s,Ci as t,Xr as u,Ue as v,Te as w,xe as x,We as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,n=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),u=(e,r)=>{let o={};for(var l in e)t(o,l,{get:e[l],enumerable:!0});return r||t(o,Symbol.toStringTag,{value:"Module"}),o},p=(e,l,n,u)=>{if(l&&"object"==typeof l||"function"==typeof l)for(var p,b=o(l),c=0,f=b.length;c<f;c++)p=b[c],a.call(e,p)||p===n||t(e,p,{get:(e=>l[e]).bind(null,p),enumerable:!(u=r(l,p))||u.enumerable});return e},b=(e,t,r)=>(p(e,t,"default"),r&&p(r,t,"default")),c=(r,o,a)=>(a=null!=r?e(l(r)):{},p(!o&&r&&r.__esModule?a:t(a,"default",{value:r,enumerable:!0}),r));export{c as i,u as n,b as r,n as t};
|