{"version":3,"file":"SpreadSheet-CiLehz98.js","sources":["../../../node_modules/.pnpm/pretty-bytes@6.1.1/node_modules/pretty-bytes/index.js","../../../app/javascript/components/shared/eva-file-card.vue","../../../app/javascript/components/questions/spreadsheet/SpreadSheet.vue"],"sourcesContent":["const BYTE_UNITS = [\n\t'B',\n\t'kB',\n\t'MB',\n\t'GB',\n\t'TB',\n\t'PB',\n\t'EB',\n\t'ZB',\n\t'YB',\n];\n\nconst BIBYTE_UNITS = [\n\t'B',\n\t'KiB',\n\t'MiB',\n\t'GiB',\n\t'TiB',\n\t'PiB',\n\t'EiB',\n\t'ZiB',\n\t'YiB',\n];\n\nconst BIT_UNITS = [\n\t'b',\n\t'kbit',\n\t'Mbit',\n\t'Gbit',\n\t'Tbit',\n\t'Pbit',\n\t'Ebit',\n\t'Zbit',\n\t'Ybit',\n];\n\nconst BIBIT_UNITS = [\n\t'b',\n\t'kibit',\n\t'Mibit',\n\t'Gibit',\n\t'Tibit',\n\t'Pibit',\n\t'Eibit',\n\t'Zibit',\n\t'Yibit',\n];\n\n/*\nFormats the given number using `Number#toLocaleString`.\n- If locale is a string, the value is expected to be a locale-key (for example: `de`).\n- If locale is true, the system default locale is used for translation.\n- If no value for locale is specified, the number is returned unmodified.\n*/\nconst toLocaleString = (number, locale, options) => {\n\tlet result = number;\n\tif (typeof locale === 'string' || Array.isArray(locale)) {\n\t\tresult = number.toLocaleString(locale, options);\n\t} else if (locale === true || options !== undefined) {\n\t\tresult = number.toLocaleString(undefined, options);\n\t}\n\n\treturn result;\n};\n\nexport default function prettyBytes(number, options) {\n\tif (!Number.isFinite(number)) {\n\t\tthrow new TypeError(`Expected a finite number, got ${typeof number}: ${number}`);\n\t}\n\n\toptions = {\n\t\tbits: false,\n\t\tbinary: false,\n\t\tspace: true,\n\t\t...options,\n\t};\n\n\tconst UNITS = options.bits\n\t\t? (options.binary ? BIBIT_UNITS : BIT_UNITS)\n\t\t: (options.binary ? BIBYTE_UNITS : BYTE_UNITS);\n\n\tconst separator = options.space ? ' ' : '';\n\n\tif (options.signed && number === 0) {\n\t\treturn ` 0${separator}${UNITS[0]}`;\n\t}\n\n\tconst isNegative = number < 0;\n\tconst prefix = isNegative ? '-' : (options.signed ? '+' : '');\n\n\tif (isNegative) {\n\t\tnumber = -number;\n\t}\n\n\tlet localeOptions;\n\n\tif (options.minimumFractionDigits !== undefined) {\n\t\tlocaleOptions = {minimumFractionDigits: options.minimumFractionDigits};\n\t}\n\n\tif (options.maximumFractionDigits !== undefined) {\n\t\tlocaleOptions = {maximumFractionDigits: options.maximumFractionDigits, ...localeOptions};\n\t}\n\n\tif (number < 1) {\n\t\tconst numberString = toLocaleString(number, options.locale, localeOptions);\n\t\treturn prefix + numberString + separator + UNITS[0];\n\t}\n\n\tconst exponent = Math.min(Math.floor(options.binary ? Math.log(number) / Math.log(1024) : Math.log10(number) / 3), UNITS.length - 1);\n\tnumber /= (options.binary ? 1024 : 1000) ** exponent;\n\n\tif (!localeOptions) {\n\t\tnumber = number.toPrecision(3);\n\t}\n\n\tconst numberString = toLocaleString(Number(number), options.locale, localeOptions);\n\n\tconst unit = UNITS[exponent];\n\n\treturn prefix + numberString + separator + unit;\n}\n","\n \n \n \n \n {{ icon }}\n \n \n \n \n \n \n \n \n \n {{ icon }}\n \n \n \n \n {{ name }}\n\n \n {{ prettySize }}\n \n \n \n \n \n {{ info }}\n \n \n \n mdi-download\n \n \n \n \n \n \n \n\n\n\n","\n \n \n \n \n {{ $t(\"evalmee.home.teacher.quizEditor.question.spreadSheet.readOnly\") }}\n \n \n \n \n \n \n \n \n\n\n\n\n\n\n\n\n"],"names":["BYTE_UNITS","BIBYTE_UNITS","BIT_UNITS","BIBIT_UNITS","toLocaleString","number","locale","options","result","prettyBytes","__spreadValues","UNITS","separator","isNegative","prefix","localeOptions","numberString","exponent","__pow","unit","_sfc_main","Univer","LocaleType","Tools","UniverInstanceType","FUniver","defaultTheme","UniverRenderEnginePlugin","UniverFormulaEnginePlugin","UniverUIPlugin","UniverSheetsPlugin","UniverSheetsUIPlugin","UniverDocsPlugin","UniverDocsUIPlugin","UniverSheetsFormulaPlugin","UniverSheetsFormulaUIPlugin","UniverSheetsNumfmtPlugin","UniverSheetsNumfmtUIPlugin","UniverSheetsUiEnUS","UniverSheetsFormulaUiEnUS","UniverUiEnUS","UniverDocsUiEnUS","UniverDesignEnUS","UniverDesignFrFR","UniverUiFrFR","UniverDocsUiFrFR","UniverSheetsUiFrFR","UniverSheetsFormulaUiFrFR","defineComponent","props","emit","containerParent","ref","container","univer","workbook","contentMayHaveChanged","univerAPI","isOutside","useMouseInElement","lockKeys","unlockKeys","useKeyboardLock","mouseIsHovering","computed","isFocused","activeElement","useActiveElement","isFocusedOrHovering","watch","el","_a","focused","__async","isEmpty","data","sheets","sheet","cellData","cell","value","handleMutation","command","commandType","commandDomain","debouncedSave","saveIfSheetsHasChanged","newData","newDataIsEmpty","useDebounceFn","init","localeType","univerInstance","lodashReplacementHelper","destroyUniver","reloadSheet","val","oldVal","onMounted","onBeforeUnmount"],"mappings":"+5CAAA,MAAMA,GAAa,CAClB,IACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,IACD,EAEMC,GAAe,CACpB,IACA,MACA,MACA,MACA,MACA,MACA,MACA,MACA,KACD,EAEMC,GAAY,CACjB,IACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,MACD,EAEMC,GAAc,CACnB,IACA,QACA,QACA,QACA,QACA,QACA,QACA,QACA,OACD,EAQMC,EAAiB,CAACC,EAAQC,EAAQC,IAAY,CACnD,IAAIC,EAASH,EACb,OAAI,OAAOC,GAAW,UAAY,MAAM,QAAQA,CAAM,EACrDE,EAASH,EAAO,eAAeC,EAAQC,CAAO,GACpCD,IAAW,IAAQC,IAAY,UACzCC,EAASH,EAAO,eAAe,OAAWE,CAAO,GAG3CC,CACR,EAEe,SAASC,GAAYJ,EAAQE,EAAS,CACpD,GAAI,CAAC,OAAO,SAASF,CAAM,EAC1B,MAAM,IAAI,UAAU,iCAA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