@vunk/form 2.19.20 → 2.19.22
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/components/ai-provider/index.cjs +1 -0
- package/components/ai-provider/index.d.ts +7 -0
- package/components/ai-provider/index.mjs +61 -0
- package/components/ai-provider/src/ctx.d.ts +8 -0
- package/components/ai-provider/src/index.vue.d.ts +23 -0
- package/components/ai-provider/src/types.d.ts +56 -0
- package/components/ai-provider/src/use.d.ts +3 -0
- package/components/api-tables-select/index.cjs +1 -1
- package/components/api-tables-select/index.mjs +1 -1
- package/components/api-tables-select/src/ctx.d.ts +57 -57
- package/components/api-tables-select/src/index.vue.d.ts +46 -419
- package/components/button/index.cjs +1 -1
- package/components/button/index.mjs +12 -12
- package/components/button/src/ctx.d.ts +7 -2
- package/components/button/src/index.vue.d.ts +36 -14
- package/components/card-input-collection/index.cjs +1 -1
- package/components/card-input-collection/index.mjs +136 -141
- package/components/card-input-collection/src/core.vue.d.ts +18 -7
- package/components/card-input-collection/src/ctx.d.ts +7 -2
- package/components/card-input-collection/src/index.vue.d.ts +18 -7
- package/components/cascader/index.cjs +1 -1
- package/components/cascader/index.mjs +38 -39
- package/components/cascader/src/ctx.d.ts +8 -3
- package/components/cascader/src/index.vue.d.ts +19 -8
- package/components/checkbox/src/ctx.d.ts +8 -3
- package/components/checkbox/src/index.vue.d.ts +43 -21
- package/components/{cloneDeep-DE0l40hv.mjs → cloneDeep-2YeQ7w2t.mjs} +10 -10
- package/components/cloneDeep-Btpy0oPF.js +1 -0
- package/components/collapse/index.cjs +1 -1
- package/components/collapse/index.mjs +19 -22
- package/components/collapse-item/index.cjs +1 -1
- package/components/collapse-item/index.mjs +21 -21
- package/components/collapse-item/src/index.vue.d.ts +2 -2
- package/components/color-picker/index.cjs +1 -1
- package/components/color-picker/index.mjs +26 -27
- package/components/color-picker/src/ctx.d.ts +7 -2
- package/components/color-picker/src/index.vue.d.ts +17 -6
- package/components/{style.css → components.css} +1 -1
- package/components/date-picker/index.cjs +1 -1
- package/components/date-picker/index.mjs +40 -41
- package/components/date-picker/src/ctx.d.ts +8 -3
- package/components/date-picker/src/index.vue.d.ts +17 -6
- package/components/date-picker-range/index.cjs +1 -1
- package/components/date-picker-range/index.mjs +17 -17
- package/components/date-picker-range/src/ctx.d.ts +14 -9
- package/components/date-picker-range/src/index.vue.d.ts +48 -26
- package/components/dialog/index.cjs +1 -1
- package/components/dialog/index.mjs +41 -52
- package/components/dialog/src/ctx.d.ts +1 -1
- package/components/dialog/src/index.vue.d.ts +1 -1
- package/components/dialog-input-collection/index.cjs +1 -1
- package/components/dialog-input-collection/index.mjs +124 -122
- package/components/dialog-input-collection/src/ctx.d.ts +7 -2
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +1 -1
- package/components/dialog-input-collection/src/index.vue.d.ts +17 -6
- package/components/download-plus/index.cjs +1 -1
- package/components/download-plus/index.mjs +193 -202
- package/components/download-plus/src/ctx.d.ts +7 -2
- package/components/download-plus/src/index.vue.d.ts +32 -10
- package/components/editable-text/index.cjs +1 -1
- package/components/editable-text/index.mjs +72 -75
- package/components/editable-text/src/ctx.d.ts +7 -2
- package/components/editable-text/src/index.vue.d.ts +18 -7
- package/components/el-slider/index.cjs +1 -1
- package/components/el-slider/index.mjs +230 -233
- package/components/el-slider/src/composables/index.cjs +1 -1
- package/components/el-slider/src/composables/index.mjs +1 -1
- package/components/el-slider/src/slider-core.vue.d.ts +3 -3
- package/components/esri-input-geojson/index.cjs +1 -5
- package/components/esri-input-geojson/index.mjs +59 -68
- package/components/esri-input-geojson/src/append.vue.d.ts +2 -2
- package/components/esri-input-geojson/src/ctx.d.ts +9 -4
- package/components/esri-input-geojson/src/index.vue.d.ts +65 -30
- package/components/fieldset/src/index.vue.d.ts +1 -1
- package/components/form/index.cjs +1 -1
- package/components/form/index.mjs +96 -101
- package/components/form/src/ctx.d.ts +2 -2
- package/components/form/src/index.vue.d.ts +4 -4
- package/components/form/src/use.d.ts +2 -2
- package/components/form-item/index.cjs +1 -1
- package/components/form-item/index.mjs +179 -107
- package/components/form-item/src/core.vue.d.ts +7 -3
- package/components/form-item/src/ctx.d.ts +7 -1
- package/components/form-item/src/index.vue.d.ts +13 -2
- package/components/form-item/src/use.d.ts +11 -0
- package/components/form-item-renderer/index.cjs +1 -1
- package/components/form-item-renderer/index.d.ts +1 -0
- package/components/form-item-renderer/index.mjs +85 -78
- package/components/form-item-renderer/src/use.d.ts +3 -0
- package/components/forms-provider/index.cjs +1 -1
- package/components/forms-provider/index.mjs +18 -21
- package/components/index-BIo_4rr_.mjs +18620 -0
- package/components/index-Bc7UifHG.js +1 -0
- package/components/index-D0D9ABpH.js +108 -0
- package/components/{index-CeHbpfCD.mjs → index-DCNYT7Wv.mjs} +0 -1
- package/components/information-collection/index.cjs +1 -1
- package/components/information-collection/index.mjs +32 -38
- package/components/information-collection/src/ctx.d.ts +7 -2
- package/components/information-collection/src/index.vue.d.ts +17 -6
- package/components/information-tag/index.cjs +1 -1
- package/components/information-tag/index.mjs +9 -12
- package/components/information-tag/src/index.vue.d.ts +1 -1
- package/components/input/index.cjs +1 -1
- package/components/input/index.mjs +27 -27
- package/components/input/src/ctx.d.ts +9 -4
- package/components/input/src/index.vue.d.ts +35 -13
- package/components/input-array/index.cjs +1 -1
- package/components/input-array/index.mjs +71 -74
- package/components/input-array/src/ctx.d.ts +7 -2
- package/components/input-array/src/index.vue.d.ts +18 -7
- package/components/input-collection/index.cjs +1 -1
- package/components/input-collection/index.mjs +121 -126
- package/components/input-collection/src/core.vue.d.ts +17 -6
- package/components/input-collection/src/ctx.d.ts +7 -2
- package/components/input-collection/src/index.vue.d.ts +17 -6
- package/components/input-file/src/index.vue.d.ts +19 -8
- package/components/input-link/index.cjs +1 -1
- package/components/input-link/index.mjs +1 -1
- package/components/input-link/src/ctx.d.ts +7 -2
- package/components/input-link/src/index.vue.d.ts +54 -21
- package/components/input-number/index.cjs +1 -1
- package/components/input-number/index.mjs +30 -33
- package/components/input-number/src/ctx.d.ts +8 -3
- package/components/input-number/src/index.vue.d.ts +33 -11
- package/components/input-tag/index.cjs +1 -1
- package/components/input-tag/index.mjs +24 -24
- package/components/input-tag/src/ctx.d.ts +9 -4
- package/components/input-tag/src/index.vue.d.ts +33 -11
- package/components/monaco-editor/src/ctx.d.ts +8 -3
- package/components/monaco-editor/src/index.vue.d.ts +38 -16
- package/components/radio/src/ctx.d.ts +7 -2
- package/components/radio/src/index.vue.d.ts +40 -18
- package/components/radio/src/wraper.vue.d.ts +22 -11
- package/components/renderer-data/index.cjs +1 -1
- package/components/renderer-data/index.mjs +14 -17
- package/components/select/index.cjs +1 -1
- package/components/select/index.mjs +167 -131
- package/components/select/src/core.vue.d.ts +96 -69
- package/components/select/src/ctx.d.ts +9 -4
- package/components/select/src/index.vue.d.ts +53 -42
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.mjs +30 -31
- package/components/slider/src/ctx.d.ts +7 -2
- package/components/slider/src/index.vue.d.ts +18 -7
- package/components/switch/src/ctx.d.ts +7 -2
- package/components/switch/src/index.vue.d.ts +18 -7
- package/components/tables-select/index.cjs +1 -1
- package/components/tables-select/index.mjs +4 -4
- package/components/tables-select/src/ctx.d.ts +68 -68
- package/components/tables-select/src/index.vue.d.ts +52 -420
- package/components/template-instances-provider/index.cjs +1 -1
- package/components/template-instances-provider/index.mjs +11 -17
- package/components/templates-default/src/index.vue.d.ts +404 -185
- package/components/templates-esri/src/index.vue.d.ts +65 -30
- package/components/templates-variant/src/index.vue.d.ts +48 -26
- package/components/time-picker/index.cjs +1 -1
- package/components/time-picker/index.mjs +38 -39
- package/components/time-picker/src/ctx.d.ts +8 -3
- package/components/time-picker/src/index.vue.d.ts +17 -6
- package/components/upload/index.cjs +1 -1
- package/components/upload/index.mjs +244 -253
- package/components/upload/src/ctx.d.ts +8 -3
- package/components/upload/src/file.vue.d.ts +3 -3
- package/components/upload/src/index.vue.d.ts +37 -15
- package/components/upload/src/wraper.vue.d.ts +19 -8
- package/components/upload-plus/index.cjs +7 -15
- package/components/upload-plus/index.mjs +1879 -1897
- package/components/upload-plus/src/ctx.d.ts +7 -2
- package/components/upload-plus/src/index.vue.d.ts +18 -7
- package/components/use-watch-C3iIa2DX.js +1 -0
- package/components/use-watch-Dp64x0si.mjs +411 -0
- package/components/van-cascader/src/ctx.d.ts +7 -2
- package/components/van-cascader/src/index.vue.d.ts +19 -8
- package/components/var-datetime-picker/src/ctx.d.ts +7 -2
- package/components/var-datetime-picker/src/index.vue.d.ts +30 -8
- package/components/vditor/src/ctx.d.ts +7 -2
- package/components/vditor/src/index.vue.d.ts +41 -19
- package/composables/element-plus/index.cjs +1 -1
- package/composables/element-plus/index.mjs +10 -10
- package/composables/form-mitt/index.mjs +1 -1
- package/composables/index.cjs +1 -1
- package/composables/index.mjs +53 -53
- package/index.css +1 -1
- package/locale/index.cjs +1 -1
- package/locale/index.mjs +8 -5
- package/locale/lang/ar.d.ts +1 -0
- package/locale/lang/en.d.ts +1 -0
- package/locale/lang/zh-cn.d.ts +1 -0
- package/package.json +9 -1
- package/shared/element-plus/ctx.d.ts +16 -16
- package/shared/types/source/index.d.ts +5 -0
- package/shared/upload/index.cjs +1 -1
- package/shared/upload/index.mjs +166 -165
- package/components/cloneDeep-DaYwfXwD.js +0 -1
- package/components/index-BBriTmQP.js +0 -1
- package/components/use-watch-Bfrz9pv_.js +0 -1
- package/components/use-watch-t49wP7jy.mjs +0 -414
package/shared/upload/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function M(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var S={exports:{}},U;function j(){return U||(U=1,(function(u,A){(function(y){u.exports=y()})(function(y){var c=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function a(f,i){var r=f[0],t=f[1],n=f[2],e=f[3];r+=(t&n|~t&e)+i[0]-680876936|0,r=(r<<7|r>>>25)+t|0,e+=(r&t|~r&n)+i[1]-389564586|0,e=(e<<12|e>>>20)+r|0,n+=(e&r|~e&t)+i[2]+606105819|0,n=(n<<17|n>>>15)+e|0,t+=(n&e|~n&r)+i[3]-1044525330|0,t=(t<<22|t>>>10)+n|0,r+=(t&n|~t&e)+i[4]-176418897|0,r=(r<<7|r>>>25)+t|0,e+=(r&t|~r&n)+i[5]+1200080426|0,e=(e<<12|e>>>20)+r|0,n+=(e&r|~e&t)+i[6]-1473231341|0,n=(n<<17|n>>>15)+e|0,t+=(n&e|~n&r)+i[7]-45705983|0,t=(t<<22|t>>>10)+n|0,r+=(t&n|~t&e)+i[8]+1770035416|0,r=(r<<7|r>>>25)+t|0,e+=(r&t|~r&n)+i[9]-1958414417|0,e=(e<<12|e>>>20)+r|0,n+=(e&r|~e&t)+i[10]-42063|0,n=(n<<17|n>>>15)+e|0,t+=(n&e|~n&r)+i[11]-1990404162|0,t=(t<<22|t>>>10)+n|0,r+=(t&n|~t&e)+i[12]+1804603682|0,r=(r<<7|r>>>25)+t|0,e+=(r&t|~r&n)+i[13]-40341101|0,e=(e<<12|e>>>20)+r|0,n+=(e&r|~e&t)+i[14]-1502002290|0,n=(n<<17|n>>>15)+e|0,t+=(n&e|~n&r)+i[15]+1236535329|0,t=(t<<22|t>>>10)+n|0,r+=(t&e|n&~e)+i[1]-165796510|0,r=(r<<5|r>>>27)+t|0,e+=(r&n|t&~n)+i[6]-1069501632|0,e=(e<<9|e>>>23)+r|0,n+=(e&t|r&~t)+i[11]+643717713|0,n=(n<<14|n>>>18)+e|0,t+=(n&r|e&~r)+i[0]-373897302|0,t=(t<<20|t>>>12)+n|0,r+=(t&e|n&~e)+i[5]-701558691|0,r=(r<<5|r>>>27)+t|0,e+=(r&n|t&~n)+i[10]+38016083|0,e=(e<<9|e>>>23)+r|0,n+=(e&t|r&~t)+i[15]-660478335|0,n=(n<<14|n>>>18)+e|0,t+=(n&r|e&~r)+i[4]-405537848|0,t=(t<<20|t>>>12)+n|0,r+=(t&e|n&~e)+i[9]+568446438|0,r=(r<<5|r>>>27)+t|0,e+=(r&n|t&~n)+i[14]-1019803690|0,e=(e<<9|e>>>23)+r|0,n+=(e&t|r&~t)+i[3]-187363961|0,n=(n<<14|n>>>18)+e|0,t+=(n&r|e&~r)+i[8]+1163531501|0,t=(t<<20|t>>>12)+n|0,r+=(t&e|n&~e)+i[13]-1444681467|0,r=(r<<5|r>>>27)+t|0,e+=(r&n|t&~n)+i[2]-51403784|0,e=(e<<9|e>>>23)+r|0,n+=(e&t|r&~t)+i[7]+1735328473|0,n=(n<<14|n>>>18)+e|0,t+=(n&r|e&~r)+i[12]-1926607734|0,t=(t<<20|t>>>12)+n|0,r+=(t^n^e)+i[5]-378558|0,r=(r<<4|r>>>28)+t|0,e+=(r^t^n)+i[8]-2022574463|0,e=(e<<11|e>>>21)+r|0,n+=(e^r^t)+i[11]+1839030562|0,n=(n<<16|n>>>16)+e|0,t+=(n^e^r)+i[14]-35309556|0,t=(t<<23|t>>>9)+n|0,r+=(t^n^e)+i[1]-1530992060|0,r=(r<<4|r>>>28)+t|0,e+=(r^t^n)+i[4]+1272893353|0,e=(e<<11|e>>>21)+r|0,n+=(e^r^t)+i[7]-155497632|0,n=(n<<16|n>>>16)+e|0,t+=(n^e^r)+i[10]-1094730640|0,t=(t<<23|t>>>9)+n|0,r+=(t^n^e)+i[13]+681279174|0,r=(r<<4|r>>>28)+t|0,e+=(r^t^n)+i[0]-358537222|0,e=(e<<11|e>>>21)+r|0,n+=(e^r^t)+i[3]-722521979|0,n=(n<<16|n>>>16)+e|0,t+=(n^e^r)+i[6]+76029189|0,t=(t<<23|t>>>9)+n|0,r+=(t^n^e)+i[9]-640364487|0,r=(r<<4|r>>>28)+t|0,e+=(r^t^n)+i[12]-421815835|0,e=(e<<11|e>>>21)+r|0,n+=(e^r^t)+i[15]+530742520|0,n=(n<<16|n>>>16)+e|0,t+=(n^e^r)+i[2]-995338651|0,t=(t<<23|t>>>9)+n|0,r+=(n^(t|~e))+i[0]-198630844|0,r=(r<<6|r>>>26)+t|0,e+=(t^(r|~n))+i[7]+1126891415|0,e=(e<<10|e>>>22)+r|0,n+=(r^(e|~t))+i[14]-1416354905|0,n=(n<<15|n>>>17)+e|0,t+=(e^(n|~r))+i[5]-57434055|0,t=(t<<21|t>>>11)+n|0,r+=(n^(t|~e))+i[12]+1700485571|0,r=(r<<6|r>>>26)+t|0,e+=(t^(r|~n))+i[3]-1894986606|0,e=(e<<10|e>>>22)+r|0,n+=(r^(e|~t))+i[10]-1051523|0,n=(n<<15|n>>>17)+e|0,t+=(e^(n|~r))+i[1]-2054922799|0,t=(t<<21|t>>>11)+n|0,r+=(n^(t|~e))+i[8]+1873313359|0,r=(r<<6|r>>>26)+t|0,e+=(t^(r|~n))+i[15]-30611744|0,e=(e<<10|e>>>22)+r|0,n+=(r^(e|~t))+i[6]-1560198380|0,n=(n<<15|n>>>17)+e|0,t+=(e^(n|~r))+i[13]+1309151649|0,t=(t<<21|t>>>11)+n|0,r+=(n^(t|~e))+i[4]-145523070|0,r=(r<<6|r>>>26)+t|0,e+=(t^(r|~n))+i[11]-1120210379|0,e=(e<<10|e>>>22)+r|0,n+=(r^(e|~t))+i[2]+718787259|0,n=(n<<15|n>>>17)+e|0,t+=(e^(n|~r))+i[9]-343485551|0,t=(t<<21|t>>>11)+n|0,f[0]=r+f[0]|0,f[1]=t+f[1]|0,f[2]=n+f[2]|0,f[3]=e+f[3]|0}function p(f){var i=[],r;for(r=0;r<64;r+=4)i[r>>2]=f.charCodeAt(r)+(f.charCodeAt(r+1)<<8)+(f.charCodeAt(r+2)<<16)+(f.charCodeAt(r+3)<<24);return i}function g(f){var i=[],r;for(r=0;r<64;r+=4)i[r>>2]=f[r]+(f[r+1]<<8)+(f[r+2]<<16)+(f[r+3]<<24);return i}function s(f){var i=f.length,r=[1732584193,-271733879,-1732584194,271733878],t,n,e,o,l,b;for(t=64;t<=i;t+=64)a(r,p(f.substring(t-64,t)));for(f=f.substring(t-64),n=f.length,e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<n;t+=1)e[t>>2]|=f.charCodeAt(t)<<(t%4<<3);if(e[t>>2]|=128<<(t%4<<3),t>55)for(a(r,e),t=0;t<16;t+=1)e[t]=0;return o=i*8,o=o.toString(16).match(/(.*?)(.{0,8})$/),l=parseInt(o[2],16),b=parseInt(o[1],16)||0,e[14]=l,e[15]=b,a(r,e),r}function d(f){var i=f.length,r=[1732584193,-271733879,-1732584194,271733878],t,n,e,o,l,b;for(t=64;t<=i;t+=64)a(r,g(f.subarray(t-64,t)));for(f=t-64<i?f.subarray(t-64):new Uint8Array(0),n=f.length,e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<n;t+=1)e[t>>2]|=f[t]<<(t%4<<3);if(e[t>>2]|=128<<(t%4<<3),t>55)for(a(r,e),t=0;t<16;t+=1)e[t]=0;return o=i*8,o=o.toString(16).match(/(.*?)(.{0,8})$/),l=parseInt(o[2],16),b=parseInt(o[1],16)||0,e[14]=l,e[15]=b,a(r,e),r}function m(f){var i="",r;for(r=0;r<4;r+=1)i+=c[f>>r*8+4&15]+c[f>>r*8&15];return i}function _(f){var i;for(i=0;i<f.length;i+=1)f[i]=m(f[i]);return f.join("")}_(s("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&(function(){function f(i,r){return i=i|0||0,i<0?Math.max(i+r,0):Math.min(i,r)}ArrayBuffer.prototype.slice=function(i,r){var t=this.byteLength,n=f(i,t),e=t,o,l,b,v;return r!==y&&(e=f(r,t)),n>e?new ArrayBuffer(0):(o=e-n,l=new ArrayBuffer(o),b=new Uint8Array(l),v=new Uint8Array(this,n,o),b.set(v),l)}})();function w(f){return/[\u0080-\uFFFF]/.test(f)&&(f=unescape(encodeURIComponent(f))),f}function C(f,i){var r=f.length,t=new ArrayBuffer(r),n=new Uint8Array(t),e;for(e=0;e<r;e+=1)n[e]=f.charCodeAt(e);return i?n:t}function F(f){return String.fromCharCode.apply(null,new Uint8Array(f))}function I(f,i,r){var t=new Uint8Array(f.byteLength+i.byteLength);return t.set(new Uint8Array(f)),t.set(new Uint8Array(i),f.byteLength),t}function B(f){var i=[],r=f.length,t;for(t=0;t<r-1;t+=2)i.push(parseInt(f.substr(t,2),16));return String.fromCharCode.apply(String,i)}function h(){this.reset()}return h.prototype.append=function(f){return this.appendBinary(w(f)),this},h.prototype.appendBinary=function(f){this._buff+=f,this._length+=f.length;var i=this._buff.length,r;for(r=64;r<=i;r+=64)a(this._hash,p(this._buff.substring(r-64,r)));return this._buff=this._buff.substring(r-64),this},h.prototype.end=function(f){var i=this._buff,r=i.length,t,n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e;for(t=0;t<r;t+=1)n[t>>2]|=i.charCodeAt(t)<<(t%4<<3);return this._finish(n,r),e=_(this._hash),f&&(e=B(e)),this.reset(),e},h.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},h.prototype.setState=function(f){return this._buff=f.buff,this._length=f.length,this._hash=f.hash,this},h.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},h.prototype._finish=function(f,i){var r=i,t,n,e;if(f[r>>2]|=128<<(r%4<<3),r>55)for(a(this._hash,f),r=0;r<16;r+=1)f[r]=0;t=this._length*8,t=t.toString(16).match(/(.*?)(.{0,8})$/),n=parseInt(t[2],16),e=parseInt(t[1],16)||0,f[14]=n,f[15]=e,a(this._hash,f)},h.hash=function(f,i){return h.hashBinary(w(f),i)},h.hashBinary=function(f,i){var r=s(f),t=_(r);return i?B(t):t},h.ArrayBuffer=function(){this.reset()},h.ArrayBuffer.prototype.append=function(f){var i=I(this._buff.buffer,f),r=i.length,t;for(this._length+=f.byteLength,t=64;t<=r;t+=64)a(this._hash,g(i.subarray(t-64,t)));return this._buff=t-64<r?new Uint8Array(i.buffer.slice(t-64)):new Uint8Array(0),this},h.ArrayBuffer.prototype.end=function(f){var i=this._buff,r=i.length,t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n,e;for(n=0;n<r;n+=1)t[n>>2]|=i[n]<<(n%4<<3);return this._finish(t,r),e=_(this._hash),f&&(e=B(e)),this.reset(),e},h.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.ArrayBuffer.prototype.getState=function(){var f=h.prototype.getState.call(this);return f.buff=F(f.buff),f},h.ArrayBuffer.prototype.setState=function(f){return f.buff=C(f.buff,!0),h.prototype.setState.call(this,f)},h.ArrayBuffer.prototype.destroy=h.prototype.destroy,h.ArrayBuffer.prototype._finish=h.prototype._finish,h.ArrayBuffer.hash=function(f,i){var r=d(new Uint8Array(f)),t=_(r);return i?B(t):t},h})})(S)),S.exports}var L=j();const z=M(L);function D(u,A){const y=[];let c=0;const a=parseInt(A+"");for(;c<u.size;)y.push(u.slice(c,c+a)),c+=a;return y}function O(u){return new Promise(A=>{const y=new z.ArrayBuffer,c=new FileReader,a=u.size,p=2*1024*1024,g=[u.slice(0,p)];let s=p;for(;s<a;){if(s+p>=a)g.push(u.slice(s,s+p));else{const d=s+p/2,m=s+p;g.push(u.slice(s,s+2)),g.push(u.slice(d,d+2)),g.push(u.slice(m-2,m))}s+=p}c.readAsArrayBuffer(new Blob(g)),c.onload=d=>{y.append(d.target?.result),A(y.end())}})}exports.calculateFileHashSample=O;exports.createFileChunk=D;
|
package/shared/upload/index.mjs
CHANGED
|
@@ -1,187 +1,188 @@
|
|
|
1
|
-
function
|
|
1
|
+
function M(u) {
|
|
2
2
|
return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
|
|
3
3
|
}
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
(function(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
function c(i) {
|
|
15
|
-
var f = [], r;
|
|
16
|
-
for (r = 0; r < 64; r += 4)
|
|
17
|
-
f[r >> 2] = i.charCodeAt(r) + (i.charCodeAt(r + 1) << 8) + (i.charCodeAt(r + 2) << 16) + (i.charCodeAt(r + 3) << 24);
|
|
18
|
-
return f;
|
|
19
|
-
}
|
|
20
|
-
function g(i) {
|
|
21
|
-
var f = [], r;
|
|
22
|
-
for (r = 0; r < 64; r += 4)
|
|
23
|
-
f[r >> 2] = i[r] + (i[r + 1] << 8) + (i[r + 2] << 16) + (i[r + 3] << 24);
|
|
24
|
-
return f;
|
|
25
|
-
}
|
|
26
|
-
function a(i) {
|
|
27
|
-
var f = i.length, r = [1732584193, -271733879, -1732584194, 271733878], t, n, e, s, l, b;
|
|
28
|
-
for (t = 64; t <= f; t += 64)
|
|
29
|
-
o(r, c(i.substring(t - 64, t)));
|
|
30
|
-
for (i = i.substring(t - 64), n = i.length, e = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], t = 0; t < n; t += 1)
|
|
31
|
-
e[t >> 2] |= i.charCodeAt(t) << (t % 4 << 3);
|
|
32
|
-
if (e[t >> 2] |= 128 << (t % 4 << 3), t > 55)
|
|
33
|
-
for (o(r, e), t = 0; t < 16; t += 1)
|
|
34
|
-
e[t] = 0;
|
|
35
|
-
return s = f * 8, s = s.toString(16).match(/(.*?)(.{0,8})$/), l = parseInt(s[2], 16), b = parseInt(s[1], 16) || 0, e[14] = l, e[15] = b, o(r, e), r;
|
|
36
|
-
}
|
|
37
|
-
function _(i) {
|
|
38
|
-
var f = i.length, r = [1732584193, -271733879, -1732584194, 271733878], t, n, e, s, l, b;
|
|
39
|
-
for (t = 64; t <= f; t += 64)
|
|
40
|
-
o(r, g(i.subarray(t - 64, t)));
|
|
41
|
-
for (i = t - 64 < f ? i.subarray(t - 64) : new Uint8Array(0), n = i.length, e = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], t = 0; t < n; t += 1)
|
|
42
|
-
e[t >> 2] |= i[t] << (t % 4 << 3);
|
|
43
|
-
if (e[t >> 2] |= 128 << (t % 4 << 3), t > 55)
|
|
44
|
-
for (o(r, e), t = 0; t < 16; t += 1)
|
|
45
|
-
e[t] = 0;
|
|
46
|
-
return s = f * 8, s = s.toString(16).match(/(.*?)(.{0,8})$/), l = parseInt(s[2], 16), b = parseInt(s[1], 16) || 0, e[14] = l, e[15] = b, o(r, e), r;
|
|
47
|
-
}
|
|
48
|
-
function d(i) {
|
|
49
|
-
var f = "", r;
|
|
50
|
-
for (r = 0; r < 4; r += 1)
|
|
51
|
-
f += p[i >> r * 8 + 4 & 15] + p[i >> r * 8 & 15];
|
|
52
|
-
return f;
|
|
53
|
-
}
|
|
54
|
-
function A(i) {
|
|
55
|
-
var f;
|
|
56
|
-
for (f = 0; f < i.length; f += 1)
|
|
57
|
-
i[f] = d(i[f]);
|
|
58
|
-
return i.join("");
|
|
59
|
-
}
|
|
60
|
-
A(a("hello")), typeof ArrayBuffer < "u" && !ArrayBuffer.prototype.slice && function() {
|
|
61
|
-
function i(f, r) {
|
|
62
|
-
return f = f | 0 || 0, f < 0 ? Math.max(f + r, 0) : Math.min(f, r);
|
|
4
|
+
var w = { exports: {} }, U;
|
|
5
|
+
function L() {
|
|
6
|
+
return U || (U = 1, (function(u, A) {
|
|
7
|
+
(function(y) {
|
|
8
|
+
u.exports = y();
|
|
9
|
+
})(function(y) {
|
|
10
|
+
var p = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"];
|
|
11
|
+
function o(f, i) {
|
|
12
|
+
var r = f[0], t = f[1], n = f[2], e = f[3];
|
|
13
|
+
r += (t & n | ~t & e) + i[0] - 680876936 | 0, r = (r << 7 | r >>> 25) + t | 0, e += (r & t | ~r & n) + i[1] - 389564586 | 0, e = (e << 12 | e >>> 20) + r | 0, n += (e & r | ~e & t) + i[2] + 606105819 | 0, n = (n << 17 | n >>> 15) + e | 0, t += (n & e | ~n & r) + i[3] - 1044525330 | 0, t = (t << 22 | t >>> 10) + n | 0, r += (t & n | ~t & e) + i[4] - 176418897 | 0, r = (r << 7 | r >>> 25) + t | 0, e += (r & t | ~r & n) + i[5] + 1200080426 | 0, e = (e << 12 | e >>> 20) + r | 0, n += (e & r | ~e & t) + i[6] - 1473231341 | 0, n = (n << 17 | n >>> 15) + e | 0, t += (n & e | ~n & r) + i[7] - 45705983 | 0, t = (t << 22 | t >>> 10) + n | 0, r += (t & n | ~t & e) + i[8] + 1770035416 | 0, r = (r << 7 | r >>> 25) + t | 0, e += (r & t | ~r & n) + i[9] - 1958414417 | 0, e = (e << 12 | e >>> 20) + r | 0, n += (e & r | ~e & t) + i[10] - 42063 | 0, n = (n << 17 | n >>> 15) + e | 0, t += (n & e | ~n & r) + i[11] - 1990404162 | 0, t = (t << 22 | t >>> 10) + n | 0, r += (t & n | ~t & e) + i[12] + 1804603682 | 0, r = (r << 7 | r >>> 25) + t | 0, e += (r & t | ~r & n) + i[13] - 40341101 | 0, e = (e << 12 | e >>> 20) + r | 0, n += (e & r | ~e & t) + i[14] - 1502002290 | 0, n = (n << 17 | n >>> 15) + e | 0, t += (n & e | ~n & r) + i[15] + 1236535329 | 0, t = (t << 22 | t >>> 10) + n | 0, r += (t & e | n & ~e) + i[1] - 165796510 | 0, r = (r << 5 | r >>> 27) + t | 0, e += (r & n | t & ~n) + i[6] - 1069501632 | 0, e = (e << 9 | e >>> 23) + r | 0, n += (e & t | r & ~t) + i[11] + 643717713 | 0, n = (n << 14 | n >>> 18) + e | 0, t += (n & r | e & ~r) + i[0] - 373897302 | 0, t = (t << 20 | t >>> 12) + n | 0, r += (t & e | n & ~e) + i[5] - 701558691 | 0, r = (r << 5 | r >>> 27) + t | 0, e += (r & n | t & ~n) + i[10] + 38016083 | 0, e = (e << 9 | e >>> 23) + r | 0, n += (e & t | r & ~t) + i[15] - 660478335 | 0, n = (n << 14 | n >>> 18) + e | 0, t += (n & r | e & ~r) + i[4] - 405537848 | 0, t = (t << 20 | t >>> 12) + n | 0, r += (t & e | n & ~e) + i[9] + 568446438 | 0, r = (r << 5 | r >>> 27) + t | 0, e += (r & n | t & ~n) + i[14] - 1019803690 | 0, e = (e << 9 | e >>> 23) + r | 0, n += (e & t | r & ~t) + i[3] - 187363961 | 0, n = (n << 14 | n >>> 18) + e | 0, t += (n & r | e & ~r) + i[8] + 1163531501 | 0, t = (t << 20 | t >>> 12) + n | 0, r += (t & e | n & ~e) + i[13] - 1444681467 | 0, r = (r << 5 | r >>> 27) + t | 0, e += (r & n | t & ~n) + i[2] - 51403784 | 0, e = (e << 9 | e >>> 23) + r | 0, n += (e & t | r & ~t) + i[7] + 1735328473 | 0, n = (n << 14 | n >>> 18) + e | 0, t += (n & r | e & ~r) + i[12] - 1926607734 | 0, t = (t << 20 | t >>> 12) + n | 0, r += (t ^ n ^ e) + i[5] - 378558 | 0, r = (r << 4 | r >>> 28) + t | 0, e += (r ^ t ^ n) + i[8] - 2022574463 | 0, e = (e << 11 | e >>> 21) + r | 0, n += (e ^ r ^ t) + i[11] + 1839030562 | 0, n = (n << 16 | n >>> 16) + e | 0, t += (n ^ e ^ r) + i[14] - 35309556 | 0, t = (t << 23 | t >>> 9) + n | 0, r += (t ^ n ^ e) + i[1] - 1530992060 | 0, r = (r << 4 | r >>> 28) + t | 0, e += (r ^ t ^ n) + i[4] + 1272893353 | 0, e = (e << 11 | e >>> 21) + r | 0, n += (e ^ r ^ t) + i[7] - 155497632 | 0, n = (n << 16 | n >>> 16) + e | 0, t += (n ^ e ^ r) + i[10] - 1094730640 | 0, t = (t << 23 | t >>> 9) + n | 0, r += (t ^ n ^ e) + i[13] + 681279174 | 0, r = (r << 4 | r >>> 28) + t | 0, e += (r ^ t ^ n) + i[0] - 358537222 | 0, e = (e << 11 | e >>> 21) + r | 0, n += (e ^ r ^ t) + i[3] - 722521979 | 0, n = (n << 16 | n >>> 16) + e | 0, t += (n ^ e ^ r) + i[6] + 76029189 | 0, t = (t << 23 | t >>> 9) + n | 0, r += (t ^ n ^ e) + i[9] - 640364487 | 0, r = (r << 4 | r >>> 28) + t | 0, e += (r ^ t ^ n) + i[12] - 421815835 | 0, e = (e << 11 | e >>> 21) + r | 0, n += (e ^ r ^ t) + i[15] + 530742520 | 0, n = (n << 16 | n >>> 16) + e | 0, t += (n ^ e ^ r) + i[2] - 995338651 | 0, t = (t << 23 | t >>> 9) + n | 0, r += (n ^ (t | ~e)) + i[0] - 198630844 | 0, r = (r << 6 | r >>> 26) + t | 0, e += (t ^ (r | ~n)) + i[7] + 1126891415 | 0, e = (e << 10 | e >>> 22) + r | 0, n += (r ^ (e | ~t)) + i[14] - 1416354905 | 0, n = (n << 15 | n >>> 17) + e | 0, t += (e ^ (n | ~r)) + i[5] - 57434055 | 0, t = (t << 21 | t >>> 11) + n | 0, r += (n ^ (t | ~e)) + i[12] + 1700485571 | 0, r = (r << 6 | r >>> 26) + t | 0, e += (t ^ (r | ~n)) + i[3] - 1894986606 | 0, e = (e << 10 | e >>> 22) + r | 0, n += (r ^ (e | ~t)) + i[10] - 1051523 | 0, n = (n << 15 | n >>> 17) + e | 0, t += (e ^ (n | ~r)) + i[1] - 2054922799 | 0, t = (t << 21 | t >>> 11) + n | 0, r += (n ^ (t | ~e)) + i[8] + 1873313359 | 0, r = (r << 6 | r >>> 26) + t | 0, e += (t ^ (r | ~n)) + i[15] - 30611744 | 0, e = (e << 10 | e >>> 22) + r | 0, n += (r ^ (e | ~t)) + i[6] - 1560198380 | 0, n = (n << 15 | n >>> 17) + e | 0, t += (e ^ (n | ~r)) + i[13] + 1309151649 | 0, t = (t << 21 | t >>> 11) + n | 0, r += (n ^ (t | ~e)) + i[4] - 145523070 | 0, r = (r << 6 | r >>> 26) + t | 0, e += (t ^ (r | ~n)) + i[11] - 1120210379 | 0, e = (e << 10 | e >>> 22) + r | 0, n += (r ^ (e | ~t)) + i[2] + 718787259 | 0, n = (n << 15 | n >>> 17) + e | 0, t += (e ^ (n | ~r)) + i[9] - 343485551 | 0, t = (t << 21 | t >>> 11) + n | 0, f[0] = r + f[0] | 0, f[1] = t + f[1] | 0, f[2] = n + f[2] | 0, f[3] = e + f[3] | 0;
|
|
63
14
|
}
|
|
64
|
-
|
|
65
|
-
var
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
f.
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
function
|
|
15
|
+
function c(f) {
|
|
16
|
+
var i = [], r;
|
|
17
|
+
for (r = 0; r < 64; r += 4)
|
|
18
|
+
i[r >> 2] = f.charCodeAt(r) + (f.charCodeAt(r + 1) << 8) + (f.charCodeAt(r + 2) << 16) + (f.charCodeAt(r + 3) << 24);
|
|
19
|
+
return i;
|
|
20
|
+
}
|
|
21
|
+
function g(f) {
|
|
22
|
+
var i = [], r;
|
|
23
|
+
for (r = 0; r < 64; r += 4)
|
|
24
|
+
i[r >> 2] = f[r] + (f[r + 1] << 8) + (f[r + 2] << 16) + (f[r + 3] << 24);
|
|
25
|
+
return i;
|
|
26
|
+
}
|
|
27
|
+
function a(f) {
|
|
28
|
+
var i = f.length, r = [1732584193, -271733879, -1732584194, 271733878], t, n, e, s, l, b;
|
|
29
|
+
for (t = 64; t <= i; t += 64)
|
|
30
|
+
o(r, c(f.substring(t - 64, t)));
|
|
31
|
+
for (f = f.substring(t - 64), n = f.length, e = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], t = 0; t < n; t += 1)
|
|
32
|
+
e[t >> 2] |= f.charCodeAt(t) << (t % 4 << 3);
|
|
33
|
+
if (e[t >> 2] |= 128 << (t % 4 << 3), t > 55)
|
|
34
|
+
for (o(r, e), t = 0; t < 16; t += 1)
|
|
35
|
+
e[t] = 0;
|
|
36
|
+
return s = i * 8, s = s.toString(16).match(/(.*?)(.{0,8})$/), l = parseInt(s[2], 16), b = parseInt(s[1], 16) || 0, e[14] = l, e[15] = b, o(r, e), r;
|
|
37
|
+
}
|
|
38
|
+
function d(f) {
|
|
39
|
+
var i = f.length, r = [1732584193, -271733879, -1732584194, 271733878], t, n, e, s, l, b;
|
|
40
|
+
for (t = 64; t <= i; t += 64)
|
|
41
|
+
o(r, g(f.subarray(t - 64, t)));
|
|
42
|
+
for (f = t - 64 < i ? f.subarray(t - 64) : new Uint8Array(0), n = f.length, e = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], t = 0; t < n; t += 1)
|
|
43
|
+
e[t >> 2] |= f[t] << (t % 4 << 3);
|
|
44
|
+
if (e[t >> 2] |= 128 << (t % 4 << 3), t > 55)
|
|
45
|
+
for (o(r, e), t = 0; t < 16; t += 1)
|
|
46
|
+
e[t] = 0;
|
|
47
|
+
return s = i * 8, s = s.toString(16).match(/(.*?)(.{0,8})$/), l = parseInt(s[2], 16), b = parseInt(s[1], 16) || 0, e[14] = l, e[15] = b, o(r, e), r;
|
|
48
|
+
}
|
|
49
|
+
function B(f) {
|
|
50
|
+
var i = "", r;
|
|
51
|
+
for (r = 0; r < 4; r += 1)
|
|
52
|
+
i += p[f >> r * 8 + 4 & 15] + p[f >> r * 8 & 15];
|
|
53
|
+
return i;
|
|
54
|
+
}
|
|
55
|
+
function _(f) {
|
|
56
|
+
var i;
|
|
57
|
+
for (i = 0; i < f.length; i += 1)
|
|
58
|
+
f[i] = B(f[i]);
|
|
59
|
+
return f.join("");
|
|
60
|
+
}
|
|
61
|
+
_(a("hello")), typeof ArrayBuffer < "u" && !ArrayBuffer.prototype.slice && (function() {
|
|
62
|
+
function f(i, r) {
|
|
63
|
+
return i = i | 0 || 0, i < 0 ? Math.max(i + r, 0) : Math.min(i, r);
|
|
64
|
+
}
|
|
65
|
+
ArrayBuffer.prototype.slice = function(i, r) {
|
|
66
|
+
var t = this.byteLength, n = f(i, t), e = t, s, l, b, v;
|
|
67
|
+
return r !== y && (e = f(r, t)), n > e ? new ArrayBuffer(0) : (s = e - n, l = new ArrayBuffer(s), b = new Uint8Array(l), v = new Uint8Array(this, n, s), b.set(v), l);
|
|
68
|
+
};
|
|
69
|
+
})();
|
|
70
|
+
function S(f) {
|
|
71
|
+
return /[\u0080-\uFFFF]/.test(f) && (f = unescape(encodeURIComponent(f))), f;
|
|
72
|
+
}
|
|
73
|
+
function C(f, i) {
|
|
74
|
+
var r = f.length, t = new ArrayBuffer(r), n = new Uint8Array(t), e;
|
|
75
|
+
for (e = 0; e < r; e += 1)
|
|
76
|
+
n[e] = f.charCodeAt(e);
|
|
77
|
+
return i ? n : t;
|
|
78
|
+
}
|
|
79
|
+
function F(f) {
|
|
80
|
+
return String.fromCharCode.apply(null, new Uint8Array(f));
|
|
81
|
+
}
|
|
82
|
+
function I(f, i, r) {
|
|
83
|
+
var t = new Uint8Array(f.byteLength + i.byteLength);
|
|
84
|
+
return t.set(new Uint8Array(f)), t.set(new Uint8Array(i), f.byteLength), t;
|
|
85
|
+
}
|
|
86
|
+
function m(f) {
|
|
87
|
+
var i = [], r = f.length, t;
|
|
88
|
+
for (t = 0; t < r - 1; t += 2)
|
|
89
|
+
i.push(parseInt(f.substr(t, 2), 16));
|
|
90
|
+
return String.fromCharCode.apply(String, i);
|
|
91
|
+
}
|
|
92
|
+
function h() {
|
|
93
|
+
this.reset();
|
|
94
|
+
}
|
|
95
|
+
return h.prototype.append = function(f) {
|
|
96
|
+
return this.appendBinary(S(f)), this;
|
|
97
|
+
}, h.prototype.appendBinary = function(f) {
|
|
98
|
+
this._buff += f, this._length += f.length;
|
|
99
|
+
var i = this._buff.length, r;
|
|
100
|
+
for (r = 64; r <= i; r += 64)
|
|
101
|
+
o(this._hash, c(this._buff.substring(r - 64, r)));
|
|
102
|
+
return this._buff = this._buff.substring(r - 64), this;
|
|
103
|
+
}, h.prototype.end = function(f) {
|
|
104
|
+
var i = this._buff, r = i.length, t, n = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], e;
|
|
105
|
+
for (t = 0; t < r; t += 1)
|
|
106
|
+
n[t >> 2] |= i.charCodeAt(t) << (t % 4 << 3);
|
|
107
|
+
return this._finish(n, r), e = _(this._hash), f && (e = m(e)), this.reset(), e;
|
|
108
|
+
}, h.prototype.reset = function() {
|
|
109
|
+
return this._buff = "", this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this;
|
|
110
|
+
}, h.prototype.getState = function() {
|
|
111
|
+
return {
|
|
112
|
+
buff: this._buff,
|
|
113
|
+
length: this._length,
|
|
114
|
+
hash: this._hash.slice()
|
|
115
|
+
};
|
|
116
|
+
}, h.prototype.setState = function(f) {
|
|
117
|
+
return this._buff = f.buff, this._length = f.length, this._hash = f.hash, this;
|
|
118
|
+
}, h.prototype.destroy = function() {
|
|
119
|
+
delete this._hash, delete this._buff, delete this._length;
|
|
120
|
+
}, h.prototype._finish = function(f, i) {
|
|
121
|
+
var r = i, t, n, e;
|
|
122
|
+
if (f[r >> 2] |= 128 << (r % 4 << 3), r > 55)
|
|
123
|
+
for (o(this._hash, f), r = 0; r < 16; r += 1)
|
|
124
|
+
f[r] = 0;
|
|
125
|
+
t = this._length * 8, t = t.toString(16).match(/(.*?)(.{0,8})$/), n = parseInt(t[2], 16), e = parseInt(t[1], 16) || 0, f[14] = n, f[15] = e, o(this._hash, f);
|
|
126
|
+
}, h.hash = function(f, i) {
|
|
127
|
+
return h.hashBinary(S(f), i);
|
|
128
|
+
}, h.hashBinary = function(f, i) {
|
|
129
|
+
var r = a(f), t = _(r);
|
|
130
|
+
return i ? m(t) : t;
|
|
131
|
+
}, h.ArrayBuffer = function() {
|
|
132
|
+
this.reset();
|
|
133
|
+
}, h.ArrayBuffer.prototype.append = function(f) {
|
|
134
|
+
var i = I(this._buff.buffer, f), r = i.length, t;
|
|
135
|
+
for (this._length += f.byteLength, t = 64; t <= r; t += 64)
|
|
136
|
+
o(this._hash, g(i.subarray(t - 64, t)));
|
|
137
|
+
return this._buff = t - 64 < r ? new Uint8Array(i.buffer.slice(t - 64)) : new Uint8Array(0), this;
|
|
138
|
+
}, h.ArrayBuffer.prototype.end = function(f) {
|
|
139
|
+
var i = this._buff, r = i.length, t = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], n, e;
|
|
140
|
+
for (n = 0; n < r; n += 1)
|
|
141
|
+
t[n >> 2] |= i[n] << (n % 4 << 3);
|
|
142
|
+
return this._finish(t, r), e = _(this._hash), f && (e = m(e)), this.reset(), e;
|
|
143
|
+
}, h.ArrayBuffer.prototype.reset = function() {
|
|
144
|
+
return this._buff = new Uint8Array(0), this._length = 0, this._hash = [1732584193, -271733879, -1732584194, 271733878], this;
|
|
145
|
+
}, h.ArrayBuffer.prototype.getState = function() {
|
|
146
|
+
var f = h.prototype.getState.call(this);
|
|
147
|
+
return f.buff = F(f.buff), f;
|
|
148
|
+
}, h.ArrayBuffer.prototype.setState = function(f) {
|
|
149
|
+
return f.buff = C(f.buff, !0), h.prototype.setState.call(this, f);
|
|
150
|
+
}, h.ArrayBuffer.prototype.destroy = h.prototype.destroy, h.ArrayBuffer.prototype._finish = h.prototype._finish, h.ArrayBuffer.hash = function(f, i) {
|
|
151
|
+
var r = d(new Uint8Array(f)), t = _(r);
|
|
152
|
+
return i ? m(t) : t;
|
|
153
|
+
}, h;
|
|
154
|
+
});
|
|
155
|
+
})(w)), w.exports;
|
|
156
|
+
}
|
|
157
|
+
var j = L();
|
|
158
|
+
const z = /* @__PURE__ */ M(j);
|
|
159
|
+
function D(u, A) {
|
|
158
160
|
const y = [];
|
|
159
161
|
let p = 0;
|
|
160
|
-
const o = parseInt(
|
|
162
|
+
const o = parseInt(A + "");
|
|
161
163
|
for (; p < u.size; )
|
|
162
164
|
y.push(u.slice(p, p + o)), p += o;
|
|
163
165
|
return y;
|
|
164
166
|
}
|
|
165
|
-
function
|
|
166
|
-
return new Promise((
|
|
167
|
-
const y = new
|
|
167
|
+
function R(u) {
|
|
168
|
+
return new Promise((A) => {
|
|
169
|
+
const y = new z.ArrayBuffer(), p = new FileReader(), o = u.size, c = 2 * 1024 * 1024, g = [u.slice(0, c)];
|
|
168
170
|
let a = c;
|
|
169
171
|
for (; a < o; ) {
|
|
170
172
|
if (a + c >= o)
|
|
171
173
|
g.push(u.slice(a, a + c));
|
|
172
174
|
else {
|
|
173
|
-
const
|
|
174
|
-
g.push(u.slice(a, a + 2)), g.push(u.slice(
|
|
175
|
+
const d = a + c / 2, B = a + c;
|
|
176
|
+
g.push(u.slice(a, a + 2)), g.push(u.slice(d, d + 2)), g.push(u.slice(B - 2, B));
|
|
175
177
|
}
|
|
176
178
|
a += c;
|
|
177
179
|
}
|
|
178
|
-
p.readAsArrayBuffer(new Blob(g)), p.onload = (
|
|
179
|
-
|
|
180
|
-
y.append((d = _.target) == null ? void 0 : d.result), B(y.end());
|
|
180
|
+
p.readAsArrayBuffer(new Blob(g)), p.onload = (d) => {
|
|
181
|
+
y.append(d.target?.result), A(y.end());
|
|
181
182
|
};
|
|
182
183
|
});
|
|
183
184
|
}
|
|
184
185
|
export {
|
|
185
|
-
|
|
186
|
-
|
|
186
|
+
R as calculateFileHashSample,
|
|
187
|
+
D as createFileChunk
|
|
187
188
|
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./isObject-fAvOGw_H.js");var F=Array.isArray,Tt="[object AsyncFunction]",vt="[object Function]",$t="[object GeneratorFunction]",At="[object Proxy]";function it(t){if(!o.isObject(t))return!1;var e=o.baseGetTag(t);return e==vt||e==$t||e==Tt||e==At}var C=o.root["__core-js_shared__"],L=function(){var t=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function wt(t){return!!L&&L in t}var Ot=Function.prototype,mt=Ot.toString;function y(t){if(t!=null){try{return mt.call(t)}catch{}try{return t+""}catch{}}return""}var St=/[\\^$.*+?()[\]{}|]/g,Pt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,xt=Object.prototype,Et=Ct.toString,It=xt.hasOwnProperty,Mt=RegExp("^"+Et.call(It).replace(St,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Dt(t){if(!o.isObject(t)||wt(t))return!1;var e=it(t)?Mt:Pt;return e.test(y(t))}function Ft(t,e){return t==null?void 0:t[e]}function _(t,e){var r=Ft(t,e);return Dt(r)?r:void 0}var E=_(o.root,"WeakMap"),N=Object.create,Bt=function(){function t(){}return function(e){if(!o.isObject(e))return{};if(N)return N(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),R=function(){try{var t=_(Object,"defineProperty");return t({},"",{}),t}catch{}}();function Ut(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}var zt=9007199254740991,Gt=/^(?:0|[1-9]\d*)$/;function Lt(t,e){var r=typeof t;return e=e??zt,!!e&&(r=="number"||r!="symbol"&&Gt.test(t))&&t>-1&&t%1==0&&t<e}function Nt(t,e,r){e=="__proto__"&&R?R(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function st(t,e){return t===e||t!==t&&e!==e}var Rt=Object.prototype,Vt=Rt.hasOwnProperty;function Ht(t,e,r){var n=t[e];(!(Vt.call(t,e)&&st(n,r))||r===void 0&&!(e in t))&&Nt(t,e,r)}var Kt=9007199254740991;function ct(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Kt}function Wt(t){return t!=null&&ct(t.length)&&!it(t)}var qt=Object.prototype;function ut(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||qt;return t===r}function Xt(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var Yt="[object Arguments]";function V(t){return o.isObjectLike(t)&&o.baseGetTag(t)==Yt}var ft=Object.prototype,Jt=ft.hasOwnProperty,Zt=ft.propertyIsEnumerable,Qt=V(function(){return arguments}())?V:function(t){return o.isObjectLike(t)&&Jt.call(t,"callee")&&!Zt.call(t,"callee")};function kt(){return!1}var pt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,H=pt&&typeof module=="object"&&module&&!module.nodeType&&module,te=H&&H.exports===pt,K=te?o.root.Buffer:void 0,ee=K?K.isBuffer:void 0,bt=ee||kt,re="[object Arguments]",ne="[object Array]",ae="[object Boolean]",oe="[object Date]",ie="[object Error]",se="[object Function]",ce="[object Map]",ue="[object Number]",fe="[object Object]",pe="[object RegExp]",be="[object Set]",ge="[object String]",le="[object WeakMap]",he="[object ArrayBuffer]",de="[object DataView]",ye="[object Float32Array]",_e="[object Float64Array]",je="[object Int8Array]",Te="[object Int16Array]",ve="[object Int32Array]",$e="[object Uint8Array]",Ae="[object Uint8ClampedArray]",we="[object Uint16Array]",Oe="[object Uint32Array]",i={};i[ye]=i[_e]=i[je]=i[Te]=i[ve]=i[$e]=i[Ae]=i[we]=i[Oe]=!0;i[re]=i[ne]=i[he]=i[ae]=i[de]=i[oe]=i[ie]=i[se]=i[ce]=i[ue]=i[fe]=i[pe]=i[be]=i[ge]=i[le]=!1;function me(t){return o.isObjectLike(t)&&ct(t.length)&&!!i[o.baseGetTag(t)]}function B(t){return function(e){return t(e)}}var gt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,A=gt&&typeof module=="object"&&module&&!module.nodeType&&module,Se=A&&A.exports===gt,x=Se&&o.freeGlobal.process,T=function(){try{var t=A&&A.require&&A.require("util").types;return t||x&&x.binding&&x.binding("util")}catch{}}(),W=T&&T.isTypedArray,Pe=W?B(W):me,Ce=Object.prototype,xe=Ce.hasOwnProperty;function Ee(t,e){var r=F(t),n=!r&&Qt(t),f=!r&&!n&&bt(t),c=!r&&!n&&!f&&Pe(t),s=r||n||f||c,j=s?Xt(t.length,String):[],g=j.length;for(var u in t)xe.call(t,u)&&!(s&&(u=="length"||f&&(u=="offset"||u=="parent")||c&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Lt(u,g)))&&j.push(u);return j}function lt(t,e){return function(r){return t(e(r))}}var Ie=lt(Object.keys,Object),Me=Object.prototype,De=Me.hasOwnProperty;function Fe(t){if(!ut(t))return Ie(t);var e=[];for(var r in Object(t))De.call(t,r)&&r!="constructor"&&e.push(r);return e}function Be(t){return Wt(t)?Ee(t):Fe(t)}var w=_(Object,"create");function Ue(){this.__data__=w?w(null):{},this.size=0}function ze(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Ge="__lodash_hash_undefined__",Le=Object.prototype,Ne=Le.hasOwnProperty;function Re(t){var e=this.__data__;if(w){var r=e[t];return r===Ge?void 0:r}return Ne.call(e,t)?e[t]:void 0}var Ve=Object.prototype,He=Ve.hasOwnProperty;function Ke(t){var e=this.__data__;return w?e[t]!==void 0:He.call(e,t)}var We="__lodash_hash_undefined__";function qe(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=w&&e===void 0?We:e,this}function d(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}d.prototype.clear=Ue;d.prototype.delete=ze;d.prototype.get=Re;d.prototype.has=Ke;d.prototype.set=qe;function Xe(){this.__data__=[],this.size=0}function S(t,e){for(var r=t.length;r--;)if(st(t[r][0],e))return r;return-1}var Ye=Array.prototype,Je=Ye.splice;function Ze(t){var e=this.__data__,r=S(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Je.call(e,r,1),--this.size,!0}function Qe(t){var e=this.__data__,r=S(e,t);return r<0?void 0:e[r][1]}function ke(t){return S(this.__data__,t)>-1}function tr(t,e){var r=this.__data__,n=S(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function b(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}b.prototype.clear=Xe;b.prototype.delete=Ze;b.prototype.get=Qe;b.prototype.has=ke;b.prototype.set=tr;var O=_(o.root,"Map");function er(){this.size=0,this.__data__={hash:new d,map:new(O||b),string:new d}}function rr(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function P(t,e){var r=t.__data__;return rr(e)?r[typeof e=="string"?"string":"hash"]:r.map}function nr(t){var e=P(this,t).delete(t);return this.size-=e?1:0,e}function ar(t){return P(this,t).get(t)}function or(t){return P(this,t).has(t)}function ir(t,e){var r=P(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function v(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}v.prototype.clear=er;v.prototype.delete=nr;v.prototype.get=ar;v.prototype.has=or;v.prototype.set=ir;function sr(t,e){for(var r=-1,n=e.length,f=t.length;++r<n;)t[f+r]=e[r];return t}var cr=lt(Object.getPrototypeOf,Object);function ur(){this.__data__=new b,this.size=0}function fr(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function pr(t){return this.__data__.get(t)}function br(t){return this.__data__.has(t)}var gr=200;function lr(t,e){var r=this.__data__;if(r instanceof b){var n=r.__data__;if(!O||n.length<gr-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new v(n)}return r.set(t,e),this.size=r.size,this}function $(t){var e=this.__data__=new b(t);this.size=e.size}$.prototype.clear=ur;$.prototype.delete=fr;$.prototype.get=pr;$.prototype.has=br;$.prototype.set=lr;var ht=typeof exports=="object"&&exports&&!exports.nodeType&&exports,q=ht&&typeof module=="object"&&module&&!module.nodeType&&module,hr=q&&q.exports===ht,X=hr?o.root.Buffer:void 0;X&&X.allocUnsafe;function dr(t,e){return t.slice()}function yr(t,e){for(var r=-1,n=t==null?0:t.length,f=0,c=[];++r<n;){var s=t[r];e(s,r,t)&&(c[f++]=s)}return c}function _r(){return[]}var jr=Object.prototype,Tr=jr.propertyIsEnumerable,Y=Object.getOwnPropertySymbols,vr=Y?function(t){return t==null?[]:(t=Object(t),yr(Y(t),function(e){return Tr.call(t,e)}))}:_r;function $r(t,e,r){var n=e(t);return F(t)?n:sr(n,r(t))}function Ar(t){return $r(t,Be,vr)}var I=_(o.root,"DataView"),M=_(o.root,"Promise"),D=_(o.root,"Set"),J="[object Map]",wr="[object Object]",Z="[object Promise]",Q="[object Set]",k="[object WeakMap]",tt="[object DataView]",Or=y(I),mr=y(O),Sr=y(M),Pr=y(D),Cr=y(E),p=o.baseGetTag;(I&&p(new I(new ArrayBuffer(1)))!=tt||O&&p(new O)!=J||M&&p(M.resolve())!=Z||D&&p(new D)!=Q||E&&p(new E)!=k)&&(p=function(t){var e=o.baseGetTag(t),r=e==wr?t.constructor:void 0,n=r?y(r):"";if(n)switch(n){case Or:return tt;case mr:return J;case Sr:return Z;case Pr:return Q;case Cr:return k}return e});var xr=Object.prototype,Er=xr.hasOwnProperty;function Ir(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&Er.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var et=o.root.Uint8Array;function U(t){var e=new t.constructor(t.byteLength);return new et(e).set(new et(t)),e}function Mr(t,e){var r=U(t.buffer);return new t.constructor(r,t.byteOffset,t.byteLength)}var Dr=/\w*$/;function Fr(t){var e=new t.constructor(t.source,Dr.exec(t));return e.lastIndex=t.lastIndex,e}var rt=o.Symbol?o.Symbol.prototype:void 0,nt=rt?rt.valueOf:void 0;function Br(t){return nt?Object(nt.call(t)):{}}function Ur(t,e){var r=U(t.buffer);return new t.constructor(r,t.byteOffset,t.length)}var zr="[object Boolean]",Gr="[object Date]",Lr="[object Map]",Nr="[object Number]",Rr="[object RegExp]",Vr="[object Set]",Hr="[object String]",Kr="[object Symbol]",Wr="[object ArrayBuffer]",qr="[object DataView]",Xr="[object Float32Array]",Yr="[object Float64Array]",Jr="[object Int8Array]",Zr="[object Int16Array]",Qr="[object Int32Array]",kr="[object Uint8Array]",tn="[object Uint8ClampedArray]",en="[object Uint16Array]",rn="[object Uint32Array]";function nn(t,e,r){var n=t.constructor;switch(e){case Wr:return U(t);case zr:case Gr:return new n(+t);case qr:return Mr(t);case Xr:case Yr:case Jr:case Zr:case Qr:case kr:case tn:case en:case rn:return Ur(t);case Lr:return new n;case Nr:case Hr:return new n(t);case Rr:return Fr(t);case Vr:return new n;case Kr:return Br(t)}}function an(t){return typeof t.constructor=="function"&&!ut(t)?Bt(cr(t)):{}}var on="[object Map]";function sn(t){return o.isObjectLike(t)&&p(t)==on}var at=T&&T.isMap,cn=at?B(at):sn,un="[object Set]";function fn(t){return o.isObjectLike(t)&&p(t)==un}var ot=T&&T.isSet,pn=ot?B(ot):fn,dt="[object Arguments]",bn="[object Array]",gn="[object Boolean]",ln="[object Date]",hn="[object Error]",yt="[object Function]",dn="[object GeneratorFunction]",yn="[object Map]",_n="[object Number]",_t="[object Object]",jn="[object RegExp]",Tn="[object Set]",vn="[object String]",$n="[object Symbol]",An="[object WeakMap]",wn="[object ArrayBuffer]",On="[object DataView]",mn="[object Float32Array]",Sn="[object Float64Array]",Pn="[object Int8Array]",Cn="[object Int16Array]",xn="[object Int32Array]",En="[object Uint8Array]",In="[object Uint8ClampedArray]",Mn="[object Uint16Array]",Dn="[object Uint32Array]",a={};a[dt]=a[bn]=a[wn]=a[On]=a[gn]=a[ln]=a[mn]=a[Sn]=a[Pn]=a[Cn]=a[xn]=a[yn]=a[_n]=a[_t]=a[jn]=a[Tn]=a[vn]=a[$n]=a[En]=a[In]=a[Mn]=a[Dn]=!0;a[hn]=a[yt]=a[An]=!1;function m(t,e,r,n,f,c){var s;if(s!==void 0)return s;if(!o.isObject(t))return t;var j=F(t);if(j)s=Ir(t);else{var g=p(t),u=g==yt||g==dn;if(bt(t))return dr(t);if(g==_t||g==dt||u&&!f)s=u?{}:an(t);else{if(!a[g])return f?t:{};s=nn(t,g)}}c||(c=new $);var z=c.get(t);if(z)return z;c.set(t,s),pn(t)?t.forEach(function(l){s.add(m(l,e,r,l,t,c))}):cn(t)&&t.forEach(function(l,h){s.set(h,m(l,e,r,h,t,c))});var jt=Ar,G=j?void 0:jt(t);return Ut(G||t,function(l,h){G&&(h=l,l=t[h]),Ht(s,h,m(l,e,r,h,t,c))}),s}var Fn=1,Bn=4;function Un(t){return m(t,Fn|Bn)}exports.cloneDeep=Un;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue");/*! Element Plus Icons Vue v2.3.2 */var o=e.defineComponent({name:"Check",__name:"check",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),n=o,c=e.defineComponent({name:"CircleCheck",__name:"circle-check",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),e.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),r=c,_=e.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),m=_,p=e.defineComponent({name:"CloseBold",__name:"close-bold",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496"})]))}}),d=p,s=e.defineComponent({name:"Close",__name:"close",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),u=s,i=e.defineComponent({name:"Delete",__name:"delete",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),f=i,v=e.defineComponent({name:"DocumentChecked",__name:"document-checked",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),w=v,h=e.defineComponent({name:"Document",__name:"document",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),g=h,B=e.defineComponent({name:"Download",__name:"download",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),x=B,C=e.defineComponent({name:"EditPen",__name:"edit-pen",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z"})]))}}),k=C,E=e.defineComponent({name:"Edit",__name:"edit",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),e.createElementVNode("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),V=E,z=e.defineComponent({name:"MapLocation",__name:"map-location",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),e.createElementVNode("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),M=z,L=e.defineComponent({name:"Minus",__name:"minus",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),H=L,N=e.defineComponent({name:"Plus",__name:"plus",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),D=N,b=e.defineComponent({name:"Right",__name:"right",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),F=b,A=e.defineComponent({name:"Select",__name:"select",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496"})]))}}),P=A,S=e.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),U=S,q=e.defineComponent({name:"UploadFilled",__name:"upload-filled",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),I=q,R=e.defineComponent({name:"Upload",__name:"upload",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),W=R,Z=e.defineComponent({name:"Warning",__name:"warning",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),j=Z,y=e.defineComponent({name:"ZoomIn",__name:"zoom-in",setup(t){return(a,l)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),G=y;exports.check_default=n;exports.circle_check_default=r;exports.circle_close_filled_default=m;exports.close_bold_default=d;exports.close_default=u;exports.delete_default=f;exports.document_checked_default=w;exports.document_default=g;exports.download_default=x;exports.edit_default=V;exports.edit_pen_default=k;exports.map_location_default=M;exports.minus_default=H;exports.plus_default=D;exports.right_default=F;exports.select_default=P;exports.success_filled_default=U;exports.upload_default=W;exports.upload_filled_default=I;exports.warning_default=j;exports.zoom_in_default=G;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const u=require("vue"),E=require("element-plus"),W=require("./debounce-CliSPkvP.js"),D=require("@vunk/shared/function");function le(e,t,l){return e===e&&(l!==void 0&&(e=e<=l?e:l),t!==void 0&&(e=e>=t?e:t)),e}function ue(e,t,l){return l===void 0&&(l=t,t=void 0),l!==void 0&&(l=W.toNumber(l),l=l===l?l:0),t!==void 0&&(t=W.toNumber(t),t=t===t?t:0),le(W.toNumber(e),t,l)}function oe(e){return u.getCurrentScope()?(u.onScopeDispose(e),!0):!1}const ae=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const se=Object.prototype.toString,ie=e=>se.call(e)==="[object Object]";function H(e){return Array.isArray(e)?e:[e]}function re(e,t,l){return u.watch(e,t,{...l,immediate:!0})}const ce=ae?window:void 0;function de(e){var t;const l=u.toValue(e);return(t=l==null?void 0:l.$el)!=null?t:l}function J(...e){const t=[],l=()=>{t.forEach(c=>c()),t.length=0},f=(c,m,n,d)=>(c.addEventListener(m,n,d),()=>c.removeEventListener(m,n,d)),r=u.computed(()=>{const c=H(u.toValue(e[0])).filter(m=>m!=null);return c.every(m=>typeof m!="string")?c:void 0}),o=re(()=>{var c,m;return[(m=(c=r.value)==null?void 0:c.map(n=>de(n)))!=null?m:[ce].filter(n=>n!=null),H(u.toValue(r.value?e[1]:e[0])),H(u.unref(r.value?e[2]:e[1])),u.toValue(r.value?e[3]:e[2])]},([c,m,n,d])=>{if(l(),!(c!=null&&c.length)||!(m!=null&&m.length)||!(n!=null&&n.length))return;const V=ie(d)?{...d}:d;t.push(...c.flatMap(y=>m.flatMap(T=>n.map(O=>f(y,T,O,V)))))},{flush:"post"}),a=()=>{o(),l()};return oe(l),a}const p=Symbol("sliderContextKey"),fe=(e,t,l)=>{const f=u.ref();return u.onMounted(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),J(window,"resize",l),await u.nextTick(),l()}),{sliderWrapper:f}},me=e=>{const t=u.computed(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((f,r)=>f-r).filter(f=>f<=e.max&&f>=e.min).map(f=>({point:f,position:(f-e.min)*100/(e.max-e.min),mark:e.marks[f]})):[]);return u.watchEffect(()=>{if(e.step==="mark"&&!e.marks&&console.warn("[ElSlider] marks prop must be provided when step is mark"),e.marks){const l=Object.keys(e.marks),f=t.value.map(o=>o.point),r=l.filter(o=>{const a=Number.parseFloat(o);return Number.isNaN(a)||!f.includes(a)});r.length>0&&console.warn(`[ElSlider] Some marks keys are invalid (not a number or out of [min, max]): [${r.map(o=>`'${o}'`).join(", ")}] and will be ignored.`)}}),t},ve=(e,t,l,f)=>{const{formItem:r}=E.useFormItem(),o=u.shallowRef(),a=u.ref(),c=u.ref(),m={firstButton:a,secondButton:c},n=E.useFormDisabled(),d=u.computed(()=>Math.min(t.firstValue,t.secondValue)),V=u.computed(()=>Math.max(t.firstValue,t.secondValue)),y=u.computed(()=>e.range?`${100*(V.value-d.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),T=u.computed(()=>e.range?`${100*(d.value-e.min)/(e.max-e.min)}%`:"0%"),O=u.computed(()=>e.vertical?{height:e.height}:{}),k=u.computed(()=>e.vertical?{height:y.value,bottom:T.value}:f.value?{width:y.value,left:"auto",right:T.value}:{width:y.value,left:T.value}),A=()=>{if(o.value){const i=o.value.getBoundingClientRect();t.sliderSize=i[e.vertical?"height":"width"]}},$=i=>{const v=e.min+i*(e.max-e.min)/100;if(!e.range)return a;let b;return Math.abs(d.value-v)<Math.abs(V.value-v)?b=t.firstValue<t.secondValue?"firstButton":"secondButton":b=t.firstValue>t.secondValue?"firstButton":"secondButton",m[b]},R=i=>{const v=$(i);return v.value.setPosition(i),v},G=i=>{t.firstValue=i??e.min;const v=e.range?[d.value,V.value]:i??e.min;K(v)},_=i=>{t.secondValue=i,e.range&&K([d.value,V.value])},K=i=>{l(E.UPDATE_MODEL_EVENT,i),l(E.INPUT_EVENT,i)},C=async()=>{await u.nextTick(),l(E.CHANGE_EVENT,e.range?[d.value,V.value]:e.modelValue)},M=i=>{var b,j,z,U;if(n.value||t.dragging)return;A();let v=0;if(e.vertical){const L=((j=(b=i.touches)==null?void 0:b.item(0))==null?void 0:j.clientY)??i.clientY;v=(o.value.getBoundingClientRect().bottom-L)/t.sliderSize*100}else{const L=((U=(z=i.touches)==null?void 0:z.item(0))==null?void 0:U.clientX)??i.clientX,Y=o.value.getBoundingClientRect();f.value?v=(Y.right-L)/t.sliderSize*100:v=(L-Y.left)/t.sliderSize*100}if(!(v<0||v>100))return R(v)};return{elFormItem:r,slider:o,firstButton:a,secondButton:c,sliderDisabled:n,minValue:d,maxValue:V,runwayStyle:O,barStyle:k,resetSize:A,setPosition:R,emitChange:C,onSliderWrapperPrevent:i=>{var v,b;((v=m.firstButton.value)!=null&&v.dragging||(b=m.secondButton.value)!=null&&b.dragging)&&i.preventDefault()},onSliderClick:i=>{M(i)&&C()},onSliderDown:async i=>{const v=M(i);v&&(await u.nextTick(),v.value.onButtonDown(i))},onSliderMarkerDown:i=>{if(n.value||t.dragging)return;R(i)&&C()},setFirstValue:G,setSecondValue:_}},ge=e=>e.code||e.key,he=(e,t,l)=>{const f=u.ref(),r=u.ref(!1),o=u.computed(()=>t.value instanceof Function),a=u.computed(()=>o.value&&t.value(e.modelValue)||e.modelValue),c=W.debounce(()=>{l.value&&(r.value=!0)},50),m=W.debounce(()=>{l.value&&(r.value=!1)},50);return{tooltip:f,tooltipVisible:r,formatValue:a,displayTooltip:c,hideTooltip:m}},Ve=(e,t,l)=>{const{disabled:f,min:r,max:o,step:a,showTooltip:c,persistent:m,precision:n,sliderSize:d,formatTooltip:V,emitChange:y,resetSize:T,updateDragging:O,markList:k,isRtl:A}=u.inject(p),{tooltip:$,tooltipVisible:R,formatValue:G,displayTooltip:_,hideTooltip:K}=he(e,V,c),C=u.ref(),M=u.computed(()=>`${(e.modelValue-r.value)/(o.value-r.value)*100}%`),Q=u.computed(()=>e.vertical?{bottom:M.value}:A.value?{right:M.value}:{left:M.value}),X=u.computed(()=>a.value==="mark"&&k.value.length>0),Z=()=>{t.hovering=!0,_()},F=()=>{t.hovering=!1,t.dragging||K()},i=s=>{f.value||(s.preventDefault(),ne(s),window.addEventListener("mousemove",q),window.addEventListener("touchmove",q),window.addEventListener("mouseup",B),window.addEventListener("touchend",B),window.addEventListener("contextmenu",B),C.value.focus())},v=s=>{f.value||(t.newPosition=Number.parseFloat(M.value)+s/(o.value-r.value)*100,P(t.newPosition),y())},b=s=>{if(f.value||!k.value.length)return;const g=e.modelValue,h=Number.EPSILON,S=Math.abs(s);let w;if(s>0){const N=k.value.findIndex(x=>x.point>g+h);if(N!==-1){const x=Math.min(N+S-1,k.value.length-1);w=k.value[x].point}}else{let N=-1;for(let x=k.value.length-1;x>=0;x--)if(k.value[x].point<g-h){N=x;break}if(N!==-1){const x=Math.max(N-(S-1),0);w=k.value[x].point}}if(w!==void 0&&w!==g){const N=(w-r.value)/(o.value-r.value)*100;P(N),y()}},j=()=>{X.value?b(-1):typeof a.value=="number"&&v(-a.value)},z=()=>{X.value?b(1):typeof a.value=="number"&&v(a.value)},U=()=>{X.value?b(-4):typeof a.value=="number"&&v(-a.value*4)},L=()=>{X.value?b(4):typeof a.value=="number"&&v(a.value*4)},Y=()=>{f.value||(P(0),y())},ee=()=>{f.value||(P(100),y())},te=s=>{const g=ge(s);let h=!0;switch(g){case E.EVENT_CODE.left:case E.EVENT_CODE.down:j();break;case E.EVENT_CODE.right:case E.EVENT_CODE.up:z();break;case E.EVENT_CODE.home:Y();break;case E.EVENT_CODE.end:ee();break;case E.EVENT_CODE.pageDown:U();break;case E.EVENT_CODE.pageUp:L();break;default:h=!1;break}h&&s.preventDefault()},I=s=>{let g,h;return s.type.startsWith("touch")?(h=s.touches[0].clientY,g=s.touches[0].clientX):(h=s.clientY,g=s.clientX),{clientX:g,clientY:h}},ne=s=>{t.dragging=!0,t.isClick=!0;const{clientX:g,clientY:h}=I(s);e.vertical?t.startY=h:t.startX=g,t.startPosition=Number.parseFloat(M.value),t.newPosition=t.startPosition},q=s=>{if(t.dragging){t.isClick=!1,_(),T();let g;const{clientX:h,clientY:S}=I(s);if(e.vertical)t.currentY=S,g=(t.startY-t.currentY)/d.value*100;else{t.currentX=h;const w=(t.currentX-t.startX)/d.value*100;g=A.value?-w:w}t.newPosition=t.startPosition+g,P(t.newPosition)}},B=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||K(),t.isClick||P(t.newPosition),y()},0),window.removeEventListener("mousemove",q),window.removeEventListener("touchmove",q),window.removeEventListener("mouseup",B),window.removeEventListener("touchend",B),window.removeEventListener("contextmenu",B))},P=async s=>{if(s===null||Number.isNaN(+s))return;s=ue(s,0,100);let g;if(a.value==="mark")k.value.length===0?g=s<=50?r.value:o.value:g=k.value.reduce((S,w)=>Math.abs(w.position-s)<Math.abs(S.position-s)?w:S).point;else{const h=Math.floor((o.value-r.value)/a.value),S=h*a.value/(o.value-r.value)*100,w=S+(100-S)/2;if(s<S){const N=S/h,x=Math.round(s/N);g=r.value+x*a.value}else s<w?g=r.value+h*a.value:g=o.value;g=Number.parseFloat(g.toFixed(n.value))}g!==e.modelValue&&l(E.UPDATE_MODEL_EVENT,g),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await u.nextTick(),t.dragging&&_(),$.value.updatePopper()};return u.watch(()=>t.dragging,s=>{O(s)}),J(C,"touchstart",i,{passive:!1}),{disabled:f,button:C,tooltip:$,tooltipVisible:R,showTooltip:c,persistent:m,wrapperStyle:Q,formatValue:G,handleMouseEnter:Z,handleMouseLeave:F,onButtonDown:i,onKeyDown:te,setPosition:P}},Ee=(e,t,l,f,r)=>({stops:u.computed(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step==="mark"||e.step===0)return e.step===0&&console.warn("[ElSlider] step should not be 0."),[];const c=Math.ceil((e.max-e.min)/e.step),m=100*e.step/(e.max-e.min),n=Array.from({length:c-1}).map((d,V)=>(V+1)*m);return e.range?n.filter(d=>d<100*(l.value-e.min)/(e.max-e.min)||d>100*(f.value-e.min)/(e.max-e.min)):n.filter(d=>d>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:c=>e.vertical?{bottom:`${c}%`}:r.value?{right:`${c}%`}:{left:`${c}%`}}),be=(e,t,l,f,r,o)=>{const a=n=>{r(E.UPDATE_MODEL_EVENT,n),r(E.INPUT_EVENT,n)},c=()=>e.range?![l.value,f.value].every((n,d)=>n===t.oldValue[d]):e.modelValue!==t.oldValue,m=()=>{var d,V;if(e.min>e.max)throw new Error("[Element Plus Slider] props.min should not be greater than props.max.");const n=e.modelValue;e.range&&Array.isArray(n)?n[1]<e.min?a([e.min,e.min]):n[0]>e.max?a([e.max,e.max]):n[0]<e.min?a([e.min,n[1]]):n[1]>e.max?a([n[0],e.max]):(t.firstValue=n[0],t.secondValue=n[1],c()&&(e.validateEvent&&((d=o==null?void 0:o.validate)==null||d.call(o,"change").catch(D.noop)),t.oldValue=n.slice())):!e.range&&typeof n=="number"&&!Number.isNaN(n)&&(n<e.min?a(e.min):n>e.max?a(e.max):(t.firstValue=n,c()&&(e.validateEvent&&((V=o==null?void 0:o.validate)==null||V.call(o,"change").catch(D.noop)),t.oldValue=n)))};m(),u.watch(()=>t.dragging,n=>{n||m()}),u.watch(()=>e.modelValue,(n,d)=>{t.dragging||Array.isArray(n)&&Array.isArray(d)&&n.every((V,y)=>V===d[y])&&t.firstValue===n[0]&&t.secondValue===n[1]||m()},{deep:!0}),u.watch(()=>[e.min,e.max],()=>{m()})};exports.sliderContextKey=p;exports.useEventListener=J;exports.useLifecycle=fe;exports.useMarks=me;exports.useSlide=ve;exports.useSliderButton=Ve;exports.useStops=Ee;exports.useWatch=be;
|