"use strict";(self["webpackChunklin_cms_vue"]=self["webpackChunklin_cms_vue"]||[]).push([[6262],{46262:function(r,t,e){e.r(t),e.d(t,{checkIsAnimated:function(){return a},createId:function(){return i},getFileType:function(){return u},isEmptyObj:function(){return o}});e(16573),e(78100),e(77936),e(37467),e(44732),e(79577);const n=[{name:"image/x-icon",mask:[255,255,255,255],byte:[0,0,1,0]},{name:"image/x-icon",mask:[255,255,255,255],byte:[0,0,2,0]},{name:"image/bmp",mask:[255,255],byte:[66,77]},{name:"image/gif",mask:[255,255,255,255,255,255],byte:[71,73,70,56,55,97]},{name:"image/gif",mask:[255,255,255,255,255,255],byte:[71,73,70,56,57,97]},{name:"image/webp",mask:[255,255,255,255,0,0,0,0,255,255,255,255,255,255],byte:[82,73,70,70,0,0,0,0,87,69,66,80,86,80]},{name:"image/png",mask:[255,255,255,255,255,255,255,255],byte:[137,80,78,71,13,10,26,10]},{name:"image/jpeg",mask:[255,255,255],byte:[255,216,255]}];function o(r){return!r||"{}"===JSON.stringify(r)}function i(){return Math.random().toString(36).substring(2)}async function a({file:r,fileUrl:t,fileType:e}){return r&&r instanceof File?("image/webp"===e||"image/gif"===e)&&("image/webp"===e?new Promise((r=>{const e=new XMLHttpRequest;e.open("GET",t,!0),e.addEventListener("load",(()=>{r(-1!==e.response.indexOf("ANMF"))})),e.send()})):"image/gif"===e?new Promise((r=>{const e=new XMLHttpRequest;e.open("GET",t,!0),e.responseType="arraybuffer",e.addEventListener("load",(()=>{const t=new Uint8Array(e.response);if(71!==t[0]||73!==t[1]||70!==t[2]||56!==t[3])return void r(!1);let n=0;for(let r=0,e=t.length-9;r1)})),e.send()})):void 0):(console.error("isAnimated param check fail: param expected to be File object"),!1)}async function u(r){return r instanceof File?new Promise((t=>{const e=new FileReader;e.onloadend=r=>{const e=new Uint8Array(r.target.result).slice(0,20);let o="unknown";const i=n.findIndex((r=>r.mask.every(((t,n)=>0===(t&(e[n]^r.byte[n]))))));i>=0&&(o=n[i].name),t(o)},e.readAsArrayBuffer(r)})):"unknown"}},73506:function(r,t,e){var n=e(13925),o=String,i=TypeError;r.exports=function(r){if(n(r))return r;throw new i("Can't set "+o(r)+" as a prototype")}},77811:function(r){r.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},67394:function(r,t,e){var n=e(46706),o=e(44576),i=TypeError;r.exports=n(ArrayBuffer.prototype,"byteLength","get")||function(r){if("ArrayBuffer"!==o(r))throw new i("ArrayBuffer expected");return r.byteLength}},3238:function(r,t,e){var n=e(79504),o=e(67394),i=n(ArrayBuffer.prototype.slice);r.exports=function(r){if(0!==o(r))return!1;try{return i(r,0,0),!1}catch(t){return!0}}},95636:function(r,t,e){var n=e(24475),o=e(79504),i=e(46706),a=e(57696),u=e(3238),f=e(67394),c=e(94483),p=e(1548),y=n.structuredClone,s=n.ArrayBuffer,d=n.DataView,g=n.TypeError,v=Math.min,h=s.prototype,A=d.prototype,l=o(h.slice),w=i(h,"resizable","get"),m=i(h,"maxByteLength","get"),b=o(A.getInt8),x=o(A.setInt8);r.exports=(p||c)&&function(r,t,e){var n,o=f(r),i=void 0===t?o:a(t),h=!w||!w(r);if(u(r))throw new g("ArrayBuffer is detached");if(p&&(r=y(r,{transfer:[r]}),o===i&&(e||h)))return r;if(o>=i&&(!e||h))n=l(r,0,i);else{var A=e&&!h&&m?{maxByteLength:m(r)}:void 0;n=new s(i,A);for(var T=new d(r),_=new d(n),B=v(i,o),k=0;k2?e:n(t),a=new r(i);while(i>o)a[o]=t[o++];return a}},37628:function(r,t,e){var n=e(26198);r.exports=function(r,t){for(var e=n(r),o=new t(e),i=0;i=u||c<0)throw new i("Incorrect index");for(var p=new t(u),y=0;y92||f&&i>94||a&&i>97)return!1;var r=new ArrayBuffer(8),t=c(r,{transfer:[r]});return 0!==r.byteLength||8!==t.byteLength}))},75854:function(r,t,e){var n=e(72777),o=TypeError;r.exports=function(r){var t=n(r,"number");if("number"==typeof t)throw new o("Can't convert number to bigint");return BigInt(t)}},57696:function(r,t,e){var n=e(91291),o=e(18014),i=RangeError;r.exports=function(r){if(void 0===r)return 0;var t=n(r),e=o(t);if(t!==e)throw new i("Wrong length or index");return e}},92140:function(r,t,e){var n=e(78227),o=n("toStringTag"),i={};i[o]="z",r.exports="[object z]"===String(i)},69714:function(r,t,e){var n=e(19088);r.exports=function(r){try{if(n)return Function('return require("'+r+'")')()}catch(t){}}},16573:function(r,t,e){var n=e(43724),o=e(62106),i=e(3238),a=ArrayBuffer.prototype;n&&!("detached"in a)&&o(a,"detached",{configurable:!0,get:function(){return i(this)}})},77936:function(r,t,e){var n=e(46518),o=e(95636);o&&n({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return o(this,arguments.length?arguments[0]:void 0,!1)}})},78100:function(r,t,e){var n=e(46518),o=e(95636);o&&n({target:"ArrayBuffer",proto:!0},{transfer:function(){return o(this,arguments.length?arguments[0]:void 0,!0)}})},37467:function(r,t,e){var n=e(37628),o=e(94644),i=o.aTypedArray,a=o.exportTypedArrayMethod,u=o.getTypedArrayConstructor;a("toReversed",(function(){return n(i(this),u(this))}))},44732:function(r,t,e){var n=e(94644),o=e(79504),i=e(79306),a=e(35370),u=n.aTypedArray,f=n.getTypedArrayConstructor,c=n.exportTypedArrayMethod,p=o(n.TypedArrayPrototype.sort);c("toSorted",(function(r){void 0!==r&&i(r);var t=u(this),e=a(f(t),t);return p(e,r)}))},79577:function(r,t,e){var n=e(39928),o=e(94644),i=e(18727),a=e(91291),u=e(75854),f=o.aTypedArray,c=o.getTypedArrayConstructor,p=o.exportTypedArrayMethod,y=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(r){return 8===r}}();p("with",{with:function(r,t){var e=f(this),o=a(r),p=i(e)?u(t):+t;return n(e,c(e),o,p)}}["with"],!y)}}]); //# sourceMappingURL=6262.f269ff68.js.map