Files
chuanggao-website/client/node_modules/@vueup/vue-quill/dist/vue-quill.esm-browser.prod.js

13 lines
267 KiB
JavaScript
Raw Normal View History

2026-05-12 16:53:18 +08:00
/*!
* VueQuill @vueup/vue-quill v1.2.0
* https://vueup.github.io/vue-quill/
*
* Includes quill v1.3.7
* https://quilljs.com/
*
* Copyright (c) 2023 Ahmad Luthfi Masruri
* Released under the MIT license
* Date: 2023-05-12T08:44:03.742Z
*/
import{defineComponent as t,onMounted as e,onBeforeUnmount as n,ref as r,watch as o,nextTick as i,h as l}from"vue";var a="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},s=[],u=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,f=!1;function h(){f=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=t.length;e<n;++e)s[e]=t[e],u[t.charCodeAt(e)]=e;u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63}function p(t,e,n){for(var r,o=[],i=e;i<n;i+=3)o.push(s[(r=(t[i]<<16)+(t[i+1]<<8)+t[i+2])>>18&63]+s[r>>12&63]+s[r>>6&63]+s[63&r]);return o.join("")}function d(t){var e;f||h();for(var n=t.length,r=n%3,o="",i=[],l=16383,a=0,u=n-r;a<u;a+=l)i.push(p(t,a,a+l>u?u:a+l));return 1===r?(o+=s[(e=t[n-1])>>2],o+=s[e<<4&63],o+="=="):2===r&&(o+=s[(e=(t[n-2]<<8)+t[n-1])>>10],o+=s[e>>4&63],o+=s[e<<2&63],o+="="),i.push(o),i.join("")}function y(t,e,n,r,o){var i,l,a=8*o-r-1,s=(1<<a)-1,u=s>>1,c=-7,f=n?o-1:0,h=n?-1:1,p=t[e+f];for(f+=h,i=p&(1<<-c)-1,p>>=-c,c+=a;c>0;i=256*i+t[e+f],f+=h,c-=8);for(l=i&(1<<-c)-1,i>>=-c,c+=r;c>0;l=256*l+t[e+f],f+=h,c-=8);if(0===i)i=1-u;else{if(i===s)return l?NaN:1/0*(p?-1:1);l+=Math.pow(2,r),i-=u}return(p?-1:1)*l*Math.pow(2,i-r)}function v(t,e,n,r,o,i){var l,a,s,u=8*i-o-1,c=(1<<u)-1,f=c>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,d=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,l=c):(l=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-l))<1&&(l--,s*=2),(e+=l+f>=1?h/s:h*Math.pow(2,1-f))*s>=2&&(l++,s/=2),l+f>=c?(a=0,l=c):l+f>=1?(a=(e*s-1)*Math.pow(2,o),l+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,o),l=0));o>=8;t[n+p]=255&a,p+=d,a/=256,o-=8);for(l=l<<o|a,u+=o;u>0;t[n+p]=255&l,p+=d,l/=256,u-=8);t[n+p-d]|=128*y}var b={}.toString,g=Array.isArray||function(t){return"[object Array]"==b.call(t)};function m(){return O.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function _(t,e){if(m()<e)throw new RangeError("Invalid typed array length");return O.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=O.prototype:(null===t&&(t=new O(e)),t.length=e),t}function O(t,e,n){if(!(O.TYPED_ARRAY_SUPPORT||this instanceof O))return new O(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return E(this,t)}return w(this,t,e,n)}function w(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);O.TYPED_ARRAY_SUPPORT?(t=e).__proto__=O.prototype:t=k(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!O.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|N(e,n),o=(t=_(t,r)).write(e,n);o!==r&&(t=t.slice(0,o));return t}(t,e,n):function(t,e){if(j(e)){var n=0|A(e.length);return 0===(t=_(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?_(t,0):k(t,e);if("Buffer"===e.type&&g(e.data))return k(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function x(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function E(t,e){if(x(e),t=_(t,e<0?0:0|A(e)),!O.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function k(t,e){var n=e.length<0?0:0|A(e.length);t=_(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function A(t){if(t>=m())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+m().toString(16)+" bytes");return 0|t}function j(t){return!(null==t||!t._isBuffer)}function N(t,e){if(j(t))return t.length;if("