找回密码
 立即注册
搜索
热搜: 丝袜 魅魔 黑丝
查看: 8|回复: 0

24568625_迷途的旅者啊,摘下那朵金色的玫瑰吧

[复制链接]

13万

主题

343

回帖

22万

积分

管理员

站长

UID
1
积分
224400
余额
13 R
Moe币
84881
在线时间
279 小时
注册时间
2025-12-28
最后登录
2026-11-9
发表于 2026-9-3 23:00:59 | 显示全部楼层 |阅读模式
indow.localStorage.getItem(n)||"{}");s.expire>Date.now()&&(o=s.value);var a=JSON.parse(window.localStorage.getItem(r)||"{}");a.expire>Date.now()&&(i=a.value)}catch(e){}var c=window.__CONFIG__.wps.disableCoreTypo||!1,l={queryInitArgs:{lowPerformanceMode:window.__CONFIG__.lowPerformanceMode,disableCoreTypo:c}},u=window.__CONFIG__.wps.firstLoadDocumentDataLength;return void 0!==u&&(l.queryInitArgs.queryLength=u),void 0!==o&&void 0!==i&&(l.queryInitArgs.revisionShowMarkValue=i,l.queryInitArgs.revisionValue=o),-1!==e.indexOf("usecore=true")&&(l.queryInitArgs.forceExportTypoInfo=!0),window.APP&&window.APP.isCompareMode&&window.__CONFIG__.wps&&window.__CONFIG__.wps.compareArgs&&(l.compareArgs=window.__CONFIG__.wps.compareArgs),l}var v={CLOSED:"CLOSED",CLOSED_NOERROR:"CLOSED_NOERROR",CONNECTING:"CONNECTING",CONNECTED:"CONNECTED",IDLE:"IDLE"},b={pendding:1,complete:2},m={CONNECTED:"_conncet",CLOSED:"_close",SERVER_ERROR:"server.error",OFFLINE:"_offline",ONLINE:"_online",SERVER_FALLBACK:"server_fallback",NETWORK_ONLINE:"network_online",NETWORK_OFFLINE:"network_offline",LEAVE_OFFLINE_EDITABLE_MODE:"leaveOfflineEditableMode",ENTER_OFFLINE_EDITABLE_MODE:"enterOfflineEditableMode",OFFLINE_EDIT_FORBID:"offlineEditForbid",TASKS_COUNT_CHANGE:"tasksCountChange",MESSAGE_SYNC_START:"messageSyncStart",MESSAGE_SYNC_FAIL:"messageSyncFail",MESSAGE_SYNC_SUCCESS:"messageSyncSuccess",BEFORE_SEND_MESSAGE:"before_send_message",ON_RECEIVE_MESSAGE:"on_receive_message"},y={SECOND:1e3,PING_INTERVAL:1e4,RETRY_INTERVAL:3e3,MAX_RETRY_INTERVAL:3e4,MAX_RECV_INTERVAL:3e4}},aeb9:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("6633"),o=n.n(r),i=n("6b8d"),s=n.n(i),a=function e(t,n){s()(this,e),this.type=t,this.data=n},c=function(){function e(){s()(this,e),this._queue=[],this._enabled=!1,this._listeners={}}return o()(e,[{key:"emit",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"WebSocket";if(this._enabled){var r=this._listeners[e];r?r(t):console.warn("[EventQueueDispatcher] event:",e,"has no listener")}else{console.log("[EventQueueDispatcher] queue event:",e,"from:",n);var o=new a(e,t);this._queue.push(o)}}},{key:"on",value:function(e,t){this._listeners[e]=t}},{key:"off",value:function(e){delete this._listeners[e]}},{key:"onEvent",value:function(){this.on.apply(this,arguments)}},{key:"offEvent",value:function(){this.off.apply(this,arguments)}},{key:"emitEvent",value:function(){this.emit.apply(this,arguments)}},{key:"isListenStart",value:function(){return this._enabled}},{key:"startListen",value:function(){this._enabled||(this._enabled=!0,this._dispatchQueuedEvents())}},{key:"_dispatchQueuedEvents",value:function(){var e=this;console.log("[EventQueueDispatcher] start listen and dispatch, queued events:",this._queue.length);var t=this._queue;this._queue=[],t.map((function(t){var n=e._listeners[t.type];n&&n(t.data)}))}},{key:"clear",value:function(){this._listeners={},this._queue=[]}}]),e}()},b369:function(e,t,n){e.exports=function(e,t){n.e("f5bb").then(n.bind(null,"9bb9")).then((function(t){e&&e(t)})).catch((function(e){/loading.* chunk/i.test(e.message)&&window.badJsFunc(!0,e),console.error(e),t&&t(e)}))}},b546:function(e,t,n){e.exports=n("8e71").BrotliDecompressBuffer},b5ea:function(e,t,n){"use strict";n.r(t);var r=n("ef68"),o=n("6b8d"),i=n.n(o),s=n("6633"),a=n.n(s),c=n("7eda"),l=n.n(c),u=n("5689"),d=n.n(u),f=n("c258"),h=n("5135"),p=function(){function e(){this.events=[],this.status={}}return e.getInstance=function(){return e.instance||(e.instance=new e,window.offlineLog=e.instance),e.instance},e.prototype.add=function(e,t){this.status[e]=t},e.prototype.getValue=function(e){return this.status[e]},e.prototype.getOtl=function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){var e;return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return[4,window.offlineManager.fileManager.readOtl()];case 1:return e=t.sent(),this.otl=e,[2,e]}}))}))},e.prototype.getFileStatus=function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){var e;return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return[4,window.offlineManager.fileManager.getStatus()];case 1:return e=t.sent(),this.fileStatus=e,[2,e]}}))}))},e.prototype.getEvents=function(){return this.events},e.prototype.addEvent=function(e,t){void 0===t&&(t=null),this.events.push({name:e,info:t,time:performance.now()})},e.instance=null,e}();function _(e){return JSON.stringify(e)}function w(e){try{return JSON.parse(e)}catch(t){try{JSON.parse(e.replace(/\n/g,"\\n"))}catch(e){return null}}}var g="mirror/baseModel.otl",v="cache.json",b="csr.html",m=new function(){var e=this;this._isProcessingCache=!1,this._cachePending=[],this._startCacheTime=-1,this.relativePath=v,this._getCacheFile=function(){return Object(r.__awaiter)(e,void 0,Promise,(function(){return Object(r.__generator)(this,(function(e){switch(e.label){case 0:if(!h.a.isSupport())return[2,null];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,h.a.file.read(this.relativePath)];case 2:return[2,e.sent()];case 3:return e.sent(),[2,JSON.stringify({})];case 4:return[2]}}))}))},this._getCacheObject=function(){return Object(r.__awaiter)(e,void 0,void 0,(function(){var e;return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return[4,this._getCacheFile()];case 1:return(e=t.sent())?[2,w(e)]:[2,null]}}))}))},this._writeCache=function(t,n){return function(){return Object(r.__awaiter)(e,void 0,void 0,(function(){var e,o,i;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,this._getCacheObject()];case 1:return(e=r.sent())||(e={}),e[t]=n,e=_(e),[4,h.a.file.write(this.relativePath,e)];case 2:return o=r.sent(),this.handleCachePending(),[2,o];case 3:return i=r.sent(),console.log("xx_write_cache_error",i),[2,!1];case 4:return[2]}}))}))}},this._deleteCache=function(t){return function(){return Object(r.__awaiter)(e,void 0,void 0,(function(){var e,n,o;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,this._getCacheObject()];case 1:return(e=r.sent())?(t?delete e[t]:e={},e=_(e),[4,h.a.file.write(this.relativePath,e)]):[2,!0];case 2:return n=r.sent(),this.handleCachePending(),[2,n];case 3:return o=r.sent(),console.log("xx_delete_cache_error",o),[2,!1];case 4:return[2]}}))}))}},this._cacheOpScheduler=function(t){return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return Object(r.__awaiter)(e,void 0,void 0,(function(){var e,o;return Object(r.__generator)(this,(function(i){switch(i.label){case 0:return this._isProcessingCache?(this._cachePending.push(t.apply(void 0,n)),e=Date.now(),this._startCacheTime>0&&e-this._startCacheTime>=1e3?(o=p.getInstance().getValue("cacheTimeout"),p.getInstance().add("cacheTimeout",o?Object(r.__spreadArray)(Object(r.__spreadArray)([],o,!0),[n[0]],!1):[n[0]]),[4,this.handleCachePending()]):[3,2]):[3,3];case 1:i.sent(),i.label=2;case 2:return[3,5];case 3:return this.setStartCacheTag(),[4,t.apply(void 0,n)()];case 4:i.sent(),this.setEndCacheTag(),i.label=5;case 5:return[2]}}))}))}},this.setStartCacheTag=function(){e._isProcessingCache=!0,e._startCacheTime=Date.now()},this.setEndCacheTag=function(){e._startCacheTime=-1,e._isProcessingCache=!1},this.handleCachePending=function(){return Object(r.__awaiter)(e,void 0,void 0,(function(){var e;return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return this._cachePending.length?(e=this._cachePending.shift(),this.setStartCacheTag(),[4,e()]):[3,2];case 1:t.sent(),this.setEndCacheTag(),t.label=2;case 2:return[2]}}))}))},this.writeCache=function(t,n){return Object(r.__awaiter)(e,void 0,void 0,(function(){return Object(r.__generator)(this,(function(e){switch(e.label){case 0:return[4,this._cacheOpScheduler(this._writeCache)(t,n)];case 1:return e.sent(),[2]}}))}))},this.readCache=function(t){return Object(r.__awaiter)(e,void 0,void 0,(function(){var e,n;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:if(!h.a.isSupport())return[2,null];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._getCacheObject()];case 2:return e=r.sent(),[2,t?e[t]:e];case 3:return n=r.sent(),console.log("xx_read_cache_error",n),[3,4];case 4:return[2]}}))}))},this.deleteCache=function(t){return Object(r.__awaiter)(e,void 0,void 0,(function(){return Object(r.__generator)(this,(function(e){switch(e.label){case 0:return[4,this._cacheOpScheduler(this._deleteCache)(t)];case 1:return e.sent(),[2]}}))}))},this.listAllCacheKeys=function(t){return Object(r.__awaiter)(e,void 0,Promise,(function(){var e,n;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this._getCacheObject()];case 1:return(e=r.sent())?[2,Object.keys(e).filter((function(e){return!t||new RegExp("".concat(t.split("").join("|")),"g").test(e)}))]:[2,[]];case 2:return n=r.sent(),console.log("xx_listAllCache_error",n),[3,3];case 3:return[2]}}))}))}},y=new function(){var e=this;this.write=function(t){return Object(r.__awaiter)(e,void 0,void 0,(function(){return Object(r.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,h.a.file.write(g,_(t))];case 1:return[2,e.sent()];case 2:return e.sent(),[2,!1];case 3:return[2]}}))}))},this.read=function(){return Object(r.__awaiter)(e,void 0,void 0,(function(){return Object(r.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,h.a.file.read(g)];case 1:return[2,w(e.sent())];case 2:return e.sent(),[2,!1];case 3:return[2]}}))}))}},O=n("65ef"),S=n("c4a9"),E=new function(){var e=this;this.writeCSR=function(t){return Object(r.__awaiter)(e,void 0,void 0,(function(){var e,n,o;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=b,localStorage.setItem(S.a.CSR.pure_offline_path_key,e),[4,h.a.file.write(e,t)];case 1:return n=r.sent(),O.a.setLocalStorage(S.a.CSR.pure_offline_exist_key,!0),[2,n];case 2:return o=r.sent(),console.error("write_csr_error",o),[2,!1];case 3:return[2]}}))}))},this.removeCSR=function(){return Object(r.__awaiter)(e,void 0,void 0,(function(){var e,t;return Object(r.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),O.a.getLocalStorage(S.a.CSR.pure_offline_exist_key)?[4,h.a.file.delete(b)]:[2,!0];case 1:return e=n.sent(),O.a.deleteLocalStorage(S.a.CSR.pure_offline_exist_key),[2,e];case 2:return t=n.sent(),console.error("delete_csr_error",t),[2,!1];case 3:return[2]}}))}))}},k=function(){function e(){var e,t,n,o=this;this.fileId=null===(n=null===(t=null===(e=window.__WPSENV__)||void 0===e?void 0:e.file_info)||void 0===t?void 0:t.file)||void 0===n?void 0:n.id,this.writeOtl=Object(f.a)((function(e){return Object(r.__awaiter)(o,void 0,void 0,(function(){var t;return Object(r.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,h.a.doc.write(e)];case 1:return[2,n.sent()];case 2:return t=n.sent(),console.log("xx_write_otl_error",t),[2,!1];case 3:return[2]}}))}))}),500),this.writeFileStatus=function(e){return Object(r.__awaiter)(o,void 0,void 0,(function(){return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return[4,h.a.doc.info.updateInfo(e)];case 1:return[2,t.sent()]}}))}))},this.readFileStatus=function(){return Object(r.__awaiter)(o,void 0,void 0,(function(){var e,t;return Object(r.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),console.log("xx_read_file_status"),[4,h.a.doc.info.read()];case 1:return[2,null==(e=n.sent())?void 0:e.sync_status];case 2:return t=n.sent(),console.log("xx_read_file_status_error",t),[2,null];case 3:return[2]}}))}))},this.writeBaseModel=Object(f.a)((function(e){return Object(r.__awaiter)(o,void 0,void 0,(function(){return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return[4,y.write(e)];case 1:return[2,t.sent()]}}))}))}),1e3),this.readBaseModel=function(){return Object(r.__awaiter)(o,void 0,void 0,(function(){return Object(r.__generator)(this,(function(e){switch(e.label){case 0:return[4,y.read()];case 1:return[2,e.sent()]}}))}))},this.writeCache=function(e,t){return Object(r.__awaiter)(o,void 0,void 0,(function(){return Object(r.__generator)(this,(function(n){return[2,m.writeCache(e,t)]}))}))},this.readCache=function(e){return Object(r.__awaiter)(o,void 0,void 0,(function(){return Object(r.__generator)(this,(function(t){return[2,m.readCache(e)]}))}))},this.deleteCache=function(e){return Object(r.__awaiter)(o,void 0,void 0,(function(){return Object(r.__generator)(this,(function(t){return[2,m.deleteCache(e)]}))}))},this.listAllCacheKeys=function(e){return Object(r.__awaiter)(o,void 0,Promise,(function(){return Object(r.__generator)(this,(function(t){return[2,m.listAllCacheKeys(e)]}))}))},this.writeCSR=function(e){return Object(r.__awaiter)(o,void 0,void 0,(function(){return Object(r.__generator)(this,(function(t){return[2,E.writeCSR(e)]}))}))},this.removeCSR=function(){return Object(r.__awaiter)(o,void 0,void 0,(function(){return Object(r.__generator)(this,(function(e){return[2,E.removeCSR()]}))}))}}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.setLocalId=function(e){},e.prototype.isSupport=function(){return h.a.isSupport()},e.instance=null,e}(),C=n("e934"),N=n("a2e4");function I(e){return JSON.stringify(e)}function T(e){return JSON.parse(e.replace(/\n/g,"\\n"))}var A=function(){function e(){var e,t,n,o=this;this.localId="",this.fileId=null===(n=null===(t=null===(e=window.__WPSENV__)||void 0===e?void 0:e.file_info)||void 0===t?void 0:t.file)||void 0===n?void 0:n.id,this._isProcessingCache=!1,this._cachePending=[],this._startCacheTime=-1,this.readOtl=function(){return Object(r.__awaiter)(o,void 0,Promise,(function(){var e,t;return Object(r.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),console.log("xx-start-read-otl",performance.now()),[4,C.a.file.read({localId:this.localId,relativePos:this._getOtlPath()})];case 1:return e=n.sent(),console.log("xx-end-read-otl",performance.now()),e=T(e),console.log("xx-end-json-parse-otl",performance.now()),[2,e];case 2:return t=n.sent(),console.log("xx_readOtl_error",t),[3,3];case 3:return[2]}}))}))},this.unzip=function(e,t){return Object(r.__awaiter)(o,void 0,void 0,(function(){return Object(r.__generator)(this,(function(n){switch(n.label){case 0:return[4,C.a.file.unzip({localId:this.localId,isRemoveZip:!0,relativePos:e,distRelativePos:t})];case 1:return[2,n.sent()]}}))}))},this.zip=function(e,t){return Object(r.__awaiter)(o,void 0,void 0,(function(){return Object(r.__generator)(this,(function(n){switch(n.label){case 0:return[4,C.a.file.zip({localId:this.localId,relativePos:e,distRelativePos:t})];case 1:return[2,n.sent()]}}))}))},this.writeOtl=Object(f.a)((function(e){return Object(r.__awaiter)(o,void 0,Promise,(function(){var t,n;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),console.log("xx-start-write-OTL",performance.now()),[4,C.a.file.update({localId:this.localId,relativePos:this._getOtlPath(),data:I(e)})];case 1:return t=r.sent(),console.log("xx-end-write-OTL",performance.now()),[2,t];case 2:return n=r.sent(),console.log("xx_write_otl_error",n),[3,3];case 3:return[2]}}))}))}),1e3),this.writeBaseModel=Object(f.a)((function(e){return Object(r.__awaiter)(o,void 0,Promise,(function(){var t;return Object(r.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,C.a.file.update({localId:this.localId,relativePos:this._getBaseModelPath(),data:I(e)})];case 1:return[2,n.sent()];case 2:return t=n.sent(),console.log("xx_write_baseModel_error",t),[3,3];case 3:return[2]}}))}))}),1e3),this.readBaseModel=function(){return Object(r.__awaiter)(o,void 0,Promise,(function(){var e;return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,C.a.file.read({localId:this.localId,relativePos:this._getBaseModelPath()})];case 1:return[2,T(t.sent())];case 2:return e=t.sent(),console.log("xx_read_baseModel_error",e),[3,3];case 3:return[2]}}))}))},this.writeFileStatus=function(e){return C.a.info.update(o.localId,e)},this.readFileStatus=function(){return Object(r.__awaiter)(o,void 0,Promise,(function(){return Object(r.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,C.a.info.select(this.fileId,this.localId)];case 1:return[2,e.sent()];case 2:return e.sent(),[2,null];case 3:return[2]}}))}))},this.removeFileStatus=function(){return C.a.info.remove(o.localId)},this.listAllCacheKeys=function(e){return Object(r.__awaiter)(o,void 0,Promise,(function(){var t,n;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this._getCacheObject()];case 1:return(t=r.sent())?[2,Object.keys(t).filter((function(t){return!e||new RegExp("".concat(e.split("").join("|")),"g").test(t)}))]:[2,[]];case 2:return n=r.sent(),console.log("xx_listAllCache_error",n),[3,3];case 3:return[2]}}))}))},this.writeCache=function(e,t){return Object(r.__awaiter)(o,void 0,void 0,(function(){return Object(r.__generator)(this,(function(n){switch(n.label){case 0:return[4,this._cacheOpScheduler(this._writeCache)(e,t)];case 1:return n.sent(),[2]}}))}))},this.readCache=function(e){return Object(r.__awaiter)(o,void 0,void 0,(function(){var t,n;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:if(!this.isSupport())return[2,null];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._getCacheObject()];case 2:return t=r.sent(),[2,e?t[e]:t];case 3:return n=r.sent(),console.log("xx_read_cache_error",n),[3,4];case 4:return[2]}}))}))},this.deleteCache=function(e){return Object(r.__awaiter)(o,void 0,void 0,(function(){return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return[4,this._cacheOpScheduler(this._deleteCache)(e)];case 1:return t.sent(),[2]}}))}))},this._writeCache=function(e,t){return function(){return Object(r.__awaiter)(o,void 0,void 0,(function(){var n,o,i;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,this._getCacheObject()];case 1:return(n=r.sent())||(n={}),n[e]=t,n=I(n),[4,C.a.file.update({localId:this.localId,relativePos:this._getCacheFilePath(),data:n})];case 2:return o=r.sent(),console.log("xxwrite_cache","key ==>",e," res===>",o),this.handleCachePending(),[2,o];case 3:return i=r.sent(),console.log("xx_write_cache_error",i),[3,4];case 4:return[2]}}))}))}},this._cacheOpScheduler=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Object(r.__awaiter)(o,void 0,void 0,(function(){var n,o;return Object(r.__generator)(this,(function(i){switch(i.label){case 0:return this._isProcessingCache?(this._cachePending.push(e.apply(void 0,t)),n=Date.now(),this._startCacheTime>0&&n-this._startCacheTime>=1e3?(o=p.getInstance().getValue("cacheTimeout"),p.getInstance().add("cacheTimeout",o?Object(r.__spreadArray)(Object(r.__spreadArray)([],o,!0),[t[0]],!1):[t[0]]),[4,this.handleCachePending()]):[3,2]):[3,3];case 1:i.sent(),i.label=2;case 2:return[3,5];case 3:return this.setStartCacheTag(),[4,e.apply(void 0,t)()];case 4:i.sent(),this.setEndCacheTag(),i.label=5;case 5:return[2]}}))}))}},this.setStartCacheTag=function(){o._isProcessingCache=!0,o._startCacheTime=Date.now()},this.setEndCacheTag=function(){o._startCacheTime=-1,o._isProcessingCache=!1},this.handleCachePending=function(){return Object(r.__awaiter)(o,void 0,void 0,(function(){var e;return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return this._cachePending.length?(e=this._cachePending.shift(),this.setStartCacheTag(),[4,e()]):[3,2];case 1:t.sent(),this.setEndCacheTag(),t.label=2;case 2:return[2]}}))}))},this._deleteCache=function(e){return function(){return Object(r.__awaiter)(o,void 0,void 0,(function(){var t,n,o;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,this._getCacheObject()];case 1:return(t=r.sent())?(e?delete t[e]:t={},t=I(t),[4,C.a.file.update({localId:this.localId,relativePos:this._getCacheFilePath(),data:t})]):[2,!0];case 2:return n=r.sent(),console.log("xx_delete_cache","key ===>",e," res ===> ",n),this.handleCachePending(),[2,n];case 3:return o=r.sent(),console.log("xx_delete_cache_error",o),[3,4];case 4:return[2]}}))}))}},this._getCacheFilePath=function(){var e=N.default.getFilePackageInfo();return"".concat(e.pkgCachePath,"/cache.json")},this._getCacheFile=function(){return Object(r.__awaiter)(o,void 0,Promise,(function(){return Object(r.__generator)(this,(function(e){switch(e.label){case 0:if(!this.isSupport())return[2,null];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,C.a.file.read({localId:this.localId,relativePos:this._getCacheFilePath()})];case 2:return[2,e.sent()];case 3:return e.sent(),[2,JSON.stringify({})];case 4:return[2]}}))}))},this._getCacheObject=function(){return Object(r.__awaiter)(o,void 0,void 0,(function(){var e;return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return[4,this._getCacheFile()];case 1:return(e=t.sent())?[2,T(e)]:[2,null]}}))}))},this._getCSRFilePath=function(){var e=N.default.getFilePackageInfo();return"".concat(e.pkgCachePath,"/csr.html")},this.writeCSR=function(e){return Object(r.__awaiter)(o,void 0,void 0,(function(){var t,n,o;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t=this._getCSRFilePath(),localStorage.setItem(S.a.CSR.path_key,t),[4,C.a.file.update({localId:this.localId,relativePos:t,data:e})];case 1:return n=r.sent(),O.a.setLocalStorage(S.a.CSR.exist_key,!0),console.log("xx_write_csr"," res===>",n),[2,n];case 2:return o=r.sent(),console.log("xx_write_csr_error",o),[3,3];case 3:return[2]}}))}))},this.removeCSR=function(){return Object(r.__awaiter)(o,void 0,void 0,(function(){var e,t;return Object(r.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,C.a.file.remove({localId:this.localId,relativePos:this._getCSRFilePath(),isFolder:!1})];case 1:return e=n.sent(),O.a.deleteLocalStorage(S.a.CSR.exist_key),console.log("xx_delete_csr"," res===>",e),[2,e];case 2:return t=n.sent(),console.log("xx_delete_csr_error",t),[3,3];case 3:return[2]}}))}))}}return e.getInstance=function(){return e.instance||(e.instance=new e),e.instance},e.prototype.setLocalId=function(e){this.localId=e},e.prototype.isSupport=function(){return""!==this.localId},e.prototype.removeFile=function(e){return Object(r.__awaiter)(this,void 0,void 0,(function(){return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return[4,C.a.file.remove({localId:this.localId,relativePos:e,isFolder:!1})];case 1:return[2,t.sent()]}}))}))},e.prototype.removeDir=function(e){return Object(r.__awaiter)(this,void 0,void 0,(function(){return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return[4,C.a.file.remove({localId:this.localId,relativePos:e,isFolder:!0})];case 1:return[2,t.sent()]}}))}))},e.prototype._getBaseModelPath=function(){var e=N.default.getFilePackageInfo();return"".concat(e.pkgDataPath,"/mirror/baseModel.otl")},e.prototype._getOtlPath=function(){var e=N.default.getFilePackageInfo();return"".concat(e.pkgSyncPath,"/content.otl")},e.instance=null,e}(),R=null;R=window.__INJECT__&&window.__INJECT__._LOCAL_INJECT_HYBRID_SWITCH?k:A,window.offlineMode=R.getInstance();var F=function(e){function t(e){i()(this,t);var n=l()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=R.getInstance();return r.setLocalId(e),n.io=r,n}return d()(t,e),a()(t,[{key:"datapackParse",value:function(){var e=this,t=(arguments.length>0&&void 0!==arguments[0]||this.localId,arguments[1]);return new Promise((function(n){if(console.log("xx-start-resolve-otl",performance.now()),window.__INJECT__&&window.__INJECT__._LOCAL_INJECT_DATA&&window.__INJECT__._LOCAL_INJECT_DATA.content)try{var r=window.__INJECT__._LOCAL_INJECT_DATA.content;return"string"==typeof r&&(r=JSON.parse(r)),void n({otl:r})}catch(e){console.error("_LOCAL_INJECT_DATA解析失败",e)}t?e.io.readOtl().then((function(t){console.log("xx-end-resolve-otl",performance.now()),n({otl:t}),e.io.readBaseModel().then((function(n){n||e.io.writeBaseModel(t)}))})).catch((function(){n({})})):n({})}))}}]),t}((function(e){this.localId=e,this.docsStorage=C.a}));var P=function(e,t,n){switch(t){case"otl":n(new F(e));break;default:n(null)}},j=n("a55d"),M=function(e){function t(){i()(this,t);var e=l()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.dataVersion="",e}return d()(t,e),a()(t,[{key:"checkVersion",value:function(e){if(console.log("xx_checkVersion_fileInfo_pkgExtends",e.pkgExtends),e.pkgExtends){var t=JSON.parse(window.atob(e.pkgExtends));if(t.file_version_info){this.dataVersion=t.file_version_info.schema_version;var n=Object(j.a)()===this.dataVersion;return console.log("xx_checkVersion_value","pkgVersion: ",Object(j.a)(),", dataVersion",this.dataVersion),n}}return!1}},{key:"getDataVersion",value:function(){return this.dataVersion}}]),t}((function(){}));var D=function(e,t){switch(e){case"otl":t(new M);break;default:t(null)}},W=n("1766"),L=n("3230"),V=n("8b02"),x=n("bf65"),U=n("2f92"),B=n("ed84"),H=n("1c43"),G="webview.preload.prefetch",q=0,K=new(function(){function e(){}return e.prototype.exec=function(e,t){return Object(r.__awaiter)(this,void 0,void 0,(function(){return Object(r.__generator)(this,(function(n){switch(n.label){case 0:return Object(W.a)()?[4,V.b.execPromise(e,t)]:[3,2];case 1:return[2,n.sent()];case 2:return Object(L.a)()?[4,Object(x.b)(e,t)]:[3,4];case 3:return[2,n.sent()];case 4:throw new Error("client not support")}}))}))},e.prototype.getUrlId=function(){var e=window.location.pathname.split("/");return e.length?e[e.length-1]:""},e.prototype._isSupport=function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){return Object(r.__generator)(this,(function(e){switch(e.label){case 0:return Object(W.a)()?[4,Object(U.a)(G)]:[3,2];case 1:return[2,e.sent()];case 2:return Object(L.a)()?[4,B.a.check(G)]:[3,4];case 3:return[2,e.sent()];case 4:return[2,!1]}}))}))},e.prototype.isSupport=function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){var e;return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return"boolean"==typeof this.isSupportCache?[2,this.isSupportCache]:(e=this,[4,this._isSupport().catch((function(){return!1}))]);case 1:return e.isSupportCache=t.sent(),[2,this.isSupportCache]}}))}))},e.prototype.getData=function(e){return Object(r.__awaiter)(this,void 0,void 0,(function(){var t,n=this;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return t=window.__WPSENV__.io_stage,[4,this.isSupport()];case 1:if(!r.sent())throw new Error("client_not_support");return[2,new Promise((function(r,o){try{var i,s="prefetch_".concat(Date.now(),"_").concat(q++),a="",c=[],l=Date.now(),u=!1;i=setTimeout((function(){u||(u=!0,o("timeout"))}),1e3),window._top=function(e){if(u)delete window._top;else try{var n=e;if("string"==typeof e&&(n=JSON.parse(e)),n&&"ok"===n.callstatus&&n.result&&n.result.body){var d=n.result["content-type"]||"",f=n.result.requestBody||{},h=n.result.responseHeaders||{};if("binary"===d)c.push(H.a.convertBase64ToBinary(n.result.body));else try{a+=H.a.decode(n.result.body),d="json"}catch(e){c.push(H.a.convertBase64ToBinary(n.result.body)),d="binary"}if(f&&"string"==typeof f)try{f=JSON.parse(H.a.decode(f))}catch(e){f={}}var p=n.result.page||{cur:0,total:1};if(p.cur+1===p.total){u=!0,clearTimeout(i),delete window._top;var _=Date.now();if(n.result.requestTime&&n.result.requestTime.startTime&&n.result.requestTime.endTime&&window.collection("offlinemode",{event:"hybrid_prefetch",prefetch_type:"openFile",times:Number(n.result.requestTime.endTime)-Number(n.result.requestTime.startTime),prefetch_times:_-l,req_env_times_delay:l-Number(n.result.requestTime.endTime),stage:t}),window.collection("offlinemode",{event:"get_open_file",status:"ok"===n.callstatus?1:0,times:_-l,stage:t}),"binary"===d&&c.length>0){var w=c.reduce((function(e,t){return e+t.length}),0),g=new Uint8Array(w),v=0;c.forEach((function(e){g.set(e,v),v+=e.length}));var b=g.buffer;r({body:b,requestBody:f,responseHeaders:h})}else if(a&&"json"===d){var m=JSON.parse(a);r({body:m,requestBody:f,responseHeaders:h})}else o("config data error")}}else o(n.err)}catch(e){o(e)}},n.exec(G,{key:e,dataCallbackName:s,urlId:n.getUrlId()}).catch((function(e){o(e)}))}catch(e){o(e)}}))]}}))}))},e.prototype.getConfig=function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){var e;return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return[4,this.getData("get_office_config")];case 1:if(e=t.sent(),Object.keys(e).length<1||e.hasOwnProperty("error"))throw new Error("config data error");return[2,e]}}))}))},e.prototype.getOpenFile=function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){var e,t,n,o;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return[4,this.getData("open_file")];case 1:if((e=r.sent()).hasOwnProperty("errno"))throw new Error("open file data error: data.errno");if(t=e.body,n=e.requestBody,o=e.responseHeaders,!t||!n||!o)throw new Error("open file data error: 缺少body/requestBody/responseHeaders");if(t.hasOwnProperty("errno"))throw new Error("open file data error: body.errno");return[2,e]}}))}))},e.prototype.getConfigXhr=function(){return new Promise((function(e,t){var n=window.location.pathname,r=/\/office\/(w|p|s|f|o|d|k)\/[-_a-zA-Z0-9]+$/.exec(n);if(r=r||/\/(p|l)\/[-_a-zA-Z0-9]+$/.exec(n)){var o=n.split("/").pop(),i=n.split(r[0])[0]+"/office-config/"+o+window.location.search,s=new XMLHttpRequest;s.open("GET",i,!0),s.setRequestHeader("accept","application/json"),s.onreadystatechange=function(){s.readyState===XMLHttpRequest.DONE&&200===s.status&&e(JSON.parse(s.response))},s.send()}}))},e.prototype.prefetchConfig=function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){return Object(r.__generator)(this,(function(e){try{return[2,this.getConfig()]}catch(e){return[2,this.getConfigXhr()]}return[2]}))}))},e}()),J=n("a522"),Y=n.n(J),X=n("a8ac"),Q=n.n(X),z=n("e49a"),Z=n.n(z),$=n("2d92"),ee=n.n($),te=n("e4a1"),ne=n.n(te),re=n("d558"),oe=n.n(re),ie=n("6558"),se=n.n(ie),ae=null;function ce(e,t){t(ae=e)}var le=function(e){var t=window.__WPSENV__.office_type;if(ae)e(ae);else switch(t){case"o":Y()((function(t){return ce(t.default,e)}));break;case"s":Q()((function(t){return ce(t.default,e)}));break;case"k":ee()((function(t){return ce(t.default,e)}));break;case"d":Z()((function(t){return ce(t.default,e)}));break;case"p":ne()((function(t){return ce(t.default,e)}));break;case"f":oe()((function(t){return ce(t.default,e)}));break;case"w":se()((function(t){return ce(t.default,e)}))}},ue=n("4a1f"),de=n("feb7"),fe=n("86c8"),he=n("fa54"),pe=new(function(){function e(){this.localId="",this.isClient=C.a.isInClient(),this.TYPES={ONLINE:"online",PREFETCH:"prefetch",STORAGE:"storage",SYNCERROR:"syncError",UPGRADERROR:"upgradeError",PROXY_PREFETCH:"proxyPrefetch"},this.isSupportOfflineEdit=["otl"],this._app=""}return e.prototype.getOpenType=function(){return"false"===localStorage.getItem("isNeedPreopen_".concat(window.__WPSENV__.file_info.file.id))||!window.__WPSENV__.isHybrid||this.isReloadPage()?this.TYPES.ONLINE:Object(fe.a)({pc:"3.0.7",android:"3.1.22",ios:"3.1.23"})&&window.__CONFIG__.isEnableClientHttpProxy?this.TYPES.PROXY_PREFETCH:window.__CONFIG__.isEnableClientPreopen?this.TYPES.PREFETCH:this.TYPES.ONLINE},e.prototype.openStart=function(e){return Object(r.__awaiter)(this,void 0,void 0,(function(){var t,n,o;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:this._app=e,r.label=1;case 1:return r.trys.push([1,11,,12]),this.isSupportOfflineEdit.includes(e)?(t=this.getIsSupport(),this.updateOfflineModeCache(),[4,this.selectDOPData()]):[2,this.getOpenType()];case 2:return n=r.sent(),console.log("dataInfo",t,n,window.__WPSENV__.isSupportOfflineMode),n&&n.localId?(this.localId=n.localId,n.fileSyncStatus&&0!==n.fileSyncStatus?"write"!==window.__WPSENV__.file_info.user.permission?[3,6]:t?[3,4]:[4,this.syncDOPData().catch((function(e){return console.log("sync fail,"+e),null}))]:[3,7]):[3,10];case 3:return o=r.sent(),window.tester.record(window.tester.actions.file_sync_type,"sync"),o?[2,this.TYPES.ONLINE]:[2,this.TYPES.SYNCERROR];case 4:return[4,this.openFileWithStorage(e,n)];case 5:return[2,r.sent()];case 6:return[2,this.getOpenType()];case 7:return t?[3,8]:[2,this.TYPES.ONLINE];case 8:return[4,this.openFileWithStorage(e,n)];case 9:return[2,r.sent()];case 10:return[2,this.getOpenType()];case 11:return r.sent(),[2,this.TYPES.ONLINE];case 12:return[2]}}))}))},e.prototype.isReloadPage=function(){return window.performance.navigation&&1===window.performance.navigation.type||window.performance.getEntriesByType("navigation")&&window.performance.getEntriesByType("navigation")[0]&&"reload"===window.performance.getEntriesByType("navigation")[0].type||""!==document.referrer},e.prototype.isFileUnsync=function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){var e,t;return Object(r.__generator)(this,(function(n){switch(n.label){case 0:if(!Object(de.getQuery)("sdkversion"))return[2,!1];if(0===(e=O.a.getLocalStorage(S.a.FILESYNCSTATUS)))return[2,!1];if(e)return[2,!0];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.selectDOPData()];case 2:return t=n.sent(),[2,t&&0!==t.fileSyncStatus];case 3:return n.sent(),[2,!1];case 4:return[2]}}))}))},e.prototype.openFileWithStorage=function(e,t){return Object(r.__awaiter)(this,void 0,void 0,(function(){var n,o,i,s,a,c,l,u,d,f,h,p,_;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return[4,this.checkVersion(e,t)];case 1:if(r.sent())return console.log("数据包版本可用"),[2,this.TYPES.STORAGE];console.log("数据包版本不可用"),r.label=2;case 2:return r.trys.push([2,8,,9]),n=null===(h=null===(f=window.__WPSENV__)||void 0===f?void 0:f.package_info)||void 0===h?void 0:h.sync_path,o=null===(_=null===(p=window.__WPSENV__)||void 0===p?void 0:p.package_info)||void 0===_?void 0:_.data_path,n||o?[4,Promise.all([C.a.file.read({localId:this.localId,relativePos:"content.otl"}).catch((function(){return null})),C.a.file.read({localId:this.localId,relativePos:n+"/content.otl"}).catch((function(){return null})),C.a.file.read({localId:this.localId,relativePos:o+"/mirror/baseModel.otl"}).catch((function(){return null})),C.a.file.read({localId:this.localId,relativePos:"mirror/baseModel.otl"}).catch((function(){return null}))])]:[3,7];case 3:return i=r.sent(),s=i[0],a=i[1],c=i[2],l=i[3],!s||a||!n||t.pkgSyncPath?[3,5]:(window.collection2&&window.collection2("pkg_content_error"),[4,C.a.file.create({localId:this.localId,relativePos:n+"/content.otl",isFolder:!1,data:s})]);case 4:r.sent(),r.label=5;case 5:return c||!o||t.pkgDataPath?[3,7]:(window.collection2&&window.collection2("pkg_baseModel_error"),[4,C.a.file.create({localId:this.localId,relativePos:o+"/mirror/baseModel.otl",isFolder:!1,data:l||""})]);case 6:r.sent(),r.label=7;case 7:return[3,9];case 8:return u=r.sent(),console.error("file.read or file.create error",u),[3,9];case 9:return[4,this.upgradeDOPData().catch((function(e){return console.log("upgrade fail,"+e),null}))];case 10:return d=r.sent(),window.tester.record(window.tester.actions.file_sync_type,"upgrade"),d?[2,this.TYPES.STORAGE]:[2,this.TYPES.UPGRADERROR]}}))}))},e.prototype.getIsSupport=function(){var e;return"boolean"==typeof(null===(e=window.__WPSENV__)||void 0===e?void 0:e.offlineSwitch)&&window.__WPSENV__.offlineSwitch},e.prototype.updateOfflineModeCache=function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){var e,t,n,o;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),e=void 0,"boolean"!=typeof(null===(o=window.__INJECT__)||void 0===o?void 0:o._LOCAL_INJECT_DATA_OFFLINESWITCH)?[3,1]:(e=window.__INJECT__._LOCAL_INJECT_DATA_OFFLINESWITCH,[3,3]);case 1:return[4,C.a.isSupport()];case 2:e=r.sent(),r.label=3;case 3:return void 0!==window.__WPSENV__.local_package_info?[3,5]:(t=window.__WPSENV__,[4,this.selectDOPData()]);case 4:t.local_package_info=r.sent(),r.label=5;case 5:return he.d.setItem("offlineSwitch",e,he.a.necessary),n=(!ue.isIPad||"hybrid"===Object(de.getQuery)("openEnv"))&&e&&(void 0!==window.__WPSENV__.local_package_info).toString(),he.d.setItem("isSupportOfflineMode",n,he.a.necessary),[3,7];case 6:return r.sent(),[3,7];case 7:return[2]}}))}))},e.prototype.prefetchOpenFile=function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){return Object(r.__generator)(this,(function(e){switch(e.label){case 0:return[4,K.getOpenFile().catch((function(e){return window.collection("offlinemode",{event:"get_preopen_fail",reason:e&&e.message||e||"",filesize:window.__WPSENV__.file_info.file.size}),Promise.reject(e)}))];case 1:return[2,e.sent()]}}))}))},e.prototype.selectDOPData=function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){var e,t,n;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return void 0!==(null===(t=window.__INJECT__)||void 0===t?void 0:t._LOCAL_INJECT_DATA_FILEINFO)?[2,window.__INJECT__._LOCAL_INJECT_DATA_FILEINFO]:void 0!==(null===(n=window.__WPSENV__)||void 0===n?void 0:n.local_package_info)?[2,window.__WPSENV__.local_package_info]:(e=window.__WPSENV__,[4,C.a.info.select(window.__WPSENV__.file_info.file.id).catch((function(){}))]);case 1:return e.local_package_info=r.sent(),[2,window.__WPSENV__.local_package_info]}}))}))},e.prototype.checkVersion=function(e,t){return new Promise((function(n,r){D(e,(function(e){var o=Math.round(performance.now());try{var i=e.checkVersion(t);window.collection("offlinemode",{event:"check_data_packet",status:i?1:0,times:Math.round(performance.now())-o,version:e.getDataVersion()}),n(i)}catch(e){window.collection("offlinemode",{event:"check_data_packet",status:0,times:Math.round(performance.now())-o,version:""}),r(!1)}}))}))},e.prototype.IODatapackParse=function(e,t){var n=this;return new Promise((function(o,i){P(e,t,(function(t){return Object(r.__awaiter)(n,void 0,void 0,(function(){var n;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t.datapackParse(e,this.isFileUnsync())];case 1:return n=r.sent(),o(n),[3,3];case 2:return r.sent(),i(!1),[3,3];case 3:return[2]}}))}))}))}))},e.prototype.updateDOPData=function(e){return Object(r.__awaiter)(this,void 0,void 0,(function(){return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return[4,C.a.info.update(this.localId,e).catch((function(){return!1}))];case 1:return[2,t.sent()]}}))}))},e.prototype.syncDOPData=function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){return Object(r.__generator)(this,(function(e){return[2,new Promise((function(e,t){le((function(n){var r,o;n.setLocalId(null===(o=null===(r=window.__WPSENV__)||void 0===r?void 0:r.local_package_info)||void 0===o?void 0:o.localId),n.sync().then(e).catch(t)}))}))]}))}))},e.prototype.upgradeDOPData=function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){return Object(r.__generator)(this,(function(e){return[2,new Promise((function(e,t){var n=Math.round(performance.now());le((function(r){var o,i;r.setLocalId(null===(i=null===(o=window.__WPSENV__)||void 0===o?void 0:o.local_package_info)||void 0===i?void 0:i.localId),r.upgrade().then((function(t){window.collection("offlinemode",{event:"upgrade_data",status:1,times:Math.round(performance.now())-n,version:""}),e(t)})).catch((function(e){window.collection("offlinemode",{event:"upgrade_data",status:0,times:Math.round(performance.now())-n,version:""}),t(e)}))}))}))]}))}))},e.prototype.isStorageEmpty=function(e,t){return!e||!e[t]||e[t]&&"[object Object]"===Object.prototype.toString.call(e[t])&&Object.keys(e[t]).length<=0},e}());t.default=pe},b998:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return a}));var r=n("ef68"),o=n("9aab"),i=n("3afe"),s=Object(i.c)("messageEventEmitter"),a=function(e){function t(){var t=e.call(this)||this;return t.ackEventEmitter=new o.a,t}return Object(r.__extends)(t,e),t.prototype.onAck=function(e){this.ackEventEmitter.onAny(e)},t.prototype.offAck=function(e){this.ackEventEmitter.offAny(e)},t.prototype.emitAck=function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];(t=this.ackEventEmitter).emit.apply(t,Object(r.__spreadArray)([e],n,!1))},t}(o.a)},bc7b:function(e,t,n){e.exports=function(e,t){n.e("6836").then(n.bind(null,"b47f")).then((function(t){e&&e(t)})).catch((function(e){/loading.* chunk/i.test(e.message)&&window.badJsFunc(!0,e),console.error(e),t&&t(e)}))}},c074:function(e,t,n){var r=n("c2fd");t.init=function(){return(0,n("8e71").BrotliDecompressBuffer)(r.toByteArray(n("527a")))}},c11f:function(e,t,n){var r=n("c074");t.init=function(){t.dictionary=r.init()},t.offsetsByLength=new Uint32Array([0,0,0,0,0,4096,9216,21504,35840,44032,53248,63488,74752,87040,93696,100864,104704,106752,108928,113536,115968,118528,119872,121280,122016]),t.sizeBitsByLength=new Uint8Array([0,0,0,0,10,10,11,11,10,10,10,10,10,9,9,8,7,7,8,7,7,6,6,5,5]),t.minDictionaryWordLength=4,t.maxDictionaryWordLength=24},c27d:function(e,t,n){"use strict";n.d(t,"e",(function(){return i})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var r=n("855a"),o=void 0,i=(o=n(Object(r.a)()?"f375":"9e26")).use,s=(o.callAPI,o.callJSON),a=o.callArrayBuffer,c=o.BEFORE_OPEN,l=o.BEFORE_LOAD},c2fd:function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=l(e),s=r[0],a=r[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),u=0,d=a>0?s-4:s;for(n=0;n<d;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===a&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===a&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=0,a=n-o;s<a;s+=16383)i.push(u(e,s,s+16383>a?a:s+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a<c;++a)r[a]=s[a],o[s.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var o,i,s=[],a=t;a<n;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},c7ff:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("c258"),o=n("ab3c"),i=function(){function e(){var e=this;this._retryCount=0,this._autoReconnect=!0,this.debounceReconnectImmediately=Object(r.a)((function(){e.reconnectImmediately()}),1e3,!0)}return e.prototype.connect=function(e,t,n,r){},e.prototype.reconnect=function(){return Promise.resolve()},e.prototype.reconnectImmediately=function(){},e.prototype.connected=function(){return!0},e.prototype.close=function(e){},e.prototype.getReconnectInterval=function(){var e=this._retryCount*o.b.RETRY_INTERVAL;return e>o.b.MAX_RETRY_INTERVAL&&(e=o.b.MAX_RETRY_INTERVAL),e},e}()},cfa0:function(e,t,n){e.exports=function(e,t){n.e("c240").then(n.bind(null,"60cd")).then((function(t){e&&e(t)})).catch((function(e){/loading.* chunk/i.test(e.message)&&window.badJsFunc(!0,e),console.error(e),t&&t(e)}))}},d2e5:function(e,t,n){e.exports=function(e,t){n.e("97c3").then(n.bind(null,"a51f")).then((function(t){e&&e(t)})).catch((function(e){/loading.* chunk/i.test(e.message)&&window.badJsFunc(!0,e),console.error(e),t&&t(e)}))}},d558:function(e,t,n){e.exports=function(e,t){n.e("e178").then(n.bind(null,"5bde")).then((function(t){e&&e(t)})).catch((function(e){/loading.* chunk/i.test(e.message)&&window.badJsFunc(!0,e),console.error(e),t&&t(e)}))}},d6fe:function(e,t,n){"use strict";n.r(t),n.d(t,"trafficMonitor",(function(){return d}));var r=n("ef68"),o=n("c27d"),i=n("855a"),s=void 0,a=((s=n(Object(i.a)()?"5b57":"0a1a")).initEnv,s.initClient,s.getClient,s.events),c=s.waitClientReady,l=n("c258");function u(e,t,n){if(!e||!t||!n)throw new Error("All parameters must be provided and non-empty.");var r=new RegExp(t,"g");return e.replace(r,n)}var d=new(function(){function e(){var e=this;this.trafficMap={httpUploadTraffics:[],httpDownloadTraffics:[],wsUploadTraffics:[],wsDownloadTraffics:[],resourceDownloadTraffics:[]},this.collecting=!1,this.enableReport=!1,this.prevReportTime=0,this.minReportInterval=1/0,this.onBeforeFetch=function(t,n){var r=(null==n?void 0:n.body)||t.body||null,o=e.getDataBytes(r),i=e.getFetchUrl(t);e.recordTraffic("httpUploadTraffics",i,o)},this.onAfterFetch=function(t,n){return Object(r.__awaiter)(e,void 0,void 0,(function(){var e,o,i,s;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return e=this.getFetchUrl(t),n.bodyUsed?[2]:(o=n.clone(),s=this.getDataBytes,[4,o.arrayBuffer()]);case 1:return i=s.apply(this,[r.sent()]),this.recordTraffic("httpDownloadTraffics",e,i),[2]}}))}))},this.getFetchUrl=function(t){var n="[object String]"===Object.prototype.toString.call(t)?t:t.url;return e.mergeOriginIfNeed(n)},this.onBeforeXhrOpen=function(t){var n=t.options||{},r=e.mergeOriginIfNeed(n.url),o=e.getDataBytes(n.body);e.recordTraffic("httpUploadTraffics",r,o)},this.onBeforeXhrLoad=function(t){var n=t.options||{},r=e.mergeOriginIfNeed(n.url),o=e.getDataBytes(t.response);e.recordTraffic("httpDownloadTraffics",r,o)},this.onNewClientBeforeSendMessage=function(t){var n=t.msg,r=t.formattedMsg,o=window.RPCClient.getSocketUrl(),i=e.getDataBytes(r),s=n.cmd||"";e.recordTraffic("wsUploadTraffics",o,i,s)},this.onNewClientReceiveMessage=function(t){var n=window.RPCClient.getSocketUrl(),r=t.msgLength||0,o=t.ev||"";t.isAck&&(o="ack-"+t.msg.cmd),e.recordTraffic("wsDownloadTraffics",n,r,o)},this.onOldClientBeforeSendMessage=function(t){var n=window.RPCClient.getSocketUrl(),r=e.getDataBytes(t);e.recordTraffic("wsUploadTraffics",n,r)},this.onOldClientReceiveMessage=function(t){var n=window.RPCClient.getSocketUrl(),r=t.msgLength||0;e.recordTraffic("wsDownloadTraffics",n,r)},this.reportDataIfNeeded=Object(l.a)((function(){if(e.enableReport&&!(Date.now()-e.prevReportTime<e.minReportInterval)){var t=e.getReportData();0!==t.length&&(e.prevReportTime=Date.now(),t.forEach((function(e){var t,n,r;window.collection("traffics",{url:e.url,size:e.size,traffic_type:e.trafficType,cmd:e.cmd,filesize:(null===(r=null===(n=null===(t=window.__WPSENV__)||void 0===t?void 0:t.file_info)||void 0===n?void 0:n.file)||void 0===r?void 0:r.size)||-1})})),e.resetTrafficData())}}),3e3),this.catchFunctionError=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return t.apply(e,n)}catch(e){console.error("[TrafficMonitor] function error:",e)}}}}return e.prototype.recordTraffic=function(e,t,n,r){void 0===r&&(r="");var o=Math.round(n/1024*100)/100;o&&t&&(this.trafficMap[e].push({url:t,size:o,trafficType:e,time:Date.now(),cmd:r}),this.onDataChanged())},e.prototype.collectTrafficData=function(e){void 0===e&&(e={}),this.collecting||(this.collecting=!0,e.enableHttp&&this.collectHttpTraffic(),e.enableWs&&this.collectWsTraffic(),e.enableFetch&&this.collectFetchTraffic())},e.prototype.startReportTraffic=function(e){void 0===e&&(e=12e4),this.minReportInterval=e,this.enableReport=!0},e.prototype.resetTrafficData=function(){this.trafficMap={httpUploadTraffics:[],httpDownloadTraffics:[],wsUploadTraffics:[],wsDownloadTraffics:[],resourceDownloadTraffics:[]}},e.prototype.collectHttpTraffic=function(){o.e(o.b,this.catchFunctionError(this.onBeforeXhrOpen)),o.e(o.a,this.catchFunctionError(this.onBeforeXhrLoad))},e.prototype.collectWsTraffic=function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){var e;return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return[4,c()];case 1:return(null==(e=t.sent())?void 0:e._isNewNetwork)?(null==e||e.onEvent(a.BEFORE_SEND_MESSAGE,this.catchFunctionError(this.onNewClientBeforeSendMessage)),null==e||e.onEvent(a.ON_RECEIVE_MESSAGE,this.catchFunctionError(this.onNewClientReceiveMessage))):(null==e||e.onEvent(a.BEFORE_SEND_MESSAGE,this.catchFunctionError(this.onOldClientBeforeSendMessage)),null==e||e.onEvent(a.ON_RECEIVE_MESSAGE,this.catchFunctionError(this.onOldClientReceiveMessage))),[2]}}))}))},e.prototype.collectFetchTraffic=function(){var e=this,t=window.fetch;window.fetch=function(n,o){return Object(r.__awaiter)(e,void 0,void 0,(function(){var e;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return this.catchFunctionError(this.onBeforeFetch)(n,o),[4,t(n,o)];case 1:return e=r.sent(),this.catchFunctionError(this.onAfterFetch)(n,e),[2,e]}}))}))}},e.prototype.mergeOriginIfNeed=function(e){var t=e;return 0===t.indexOf("/")&&(t=location.origin+t),t},e.prototype.desensitizeUrl=function(e){var t,n,r,o;if(!e)return e;var i=e,s=window.__WPSENV__.user_id,a=null===(n=null===(t=window.__WPSENV__.file_info)||void 0===t?void 0:t.file)||void 0===n?void 0:n.id,c=null===(o=null===(r=window.__WPSENV__.file_info)||void 0===r?void 0:r.file)||void 0===o?void 0:o.link_id;return i=s?u(i,s,"{userid}"):i,i=a?u(i,a,"{fileid}"):i,i=c?u(i,c,"{linkid}"):i},e.prototype.getDataBytes=function(e,t){if(void 0===t&&(t=0),t>100)return 0;if(!e)return 0;var n=0,r=Object.prototype.toString.call(e),o="[object Object]"===r,i="[object Array]"===r,s=e instanceof FormData,a=e instanceof ArrayBuffer,c=e instanceof Blob,l=e instanceof File;if("[object String]"===r)n=(new TextEncoder).encode(e).length;else if(l)n=e.size;else if(c)n=e.size;else if(a)n=e.byteLength;else if(s)try{for(var u=0,d=e.entries();u<d.length;u++){var f=d,h=f[0],p=f[1];n+=this.getDataBytes(h,t+1)+this.getDataBytes(p,t+1)}}catch(e){n=0}else if(o||i)try{var _=JSON.stringify(e);n=this.getDataBytes(_,t+1)}catch(e){n=0}return n},e.prototype.onDataChanged=function(){this.reportDataIfNeeded()},e.prototype.getReportData=function(){var e=this,t={};return Object.keys(this.trafficMap).forEach((function(n){e.trafficMap[n].forEach((function(n){var o=e.desensitizeUrl(n.url),i=n.trafficType,s=n.cmd||"",a=s?"".concat(o,"-").concat(i,"-").concat(s):"".concat(o,"-").concat(i);t[a]?t[a].size+=n.size:t[a]=Object(r.__assign)(Object(r.__assign)({},n),{url:o})}))})),Object.keys(t).map((function(e){return t[e]}))},e}())},d9ed:function(e,t,n){e.exports=function(e,t){n.e("3b85").then(n.bind(null,"1901")).then((function(t){e&&e(t)})).catch((function(e){/loading.* chunk/i.test(e.message)&&window.badJsFunc(!0,e),console.error(e),t&&t(e)}))}},da62:function(e,t,n){"use strict";function r(){var e="undefined"!=typeof window&&(window.crypto||window.msCrypto)||("undefined"!=typeof self?self.crypto:void 0);if(e&&"function"==typeof e.randomUUID)try{return e.randomUUID()}catch(e){}if(e&&"function"==typeof e.getRandomValues){var t=new Uint8Array(16);e.getRandomValues(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;for(var n=[],r=0;r<16;r++)n.push((t[r]+256).toString(16).substr(1));return n[0]+n[1]+n[2]+n[3]+"-"+n[4]+n[5]+"-"+n[6]+n[7]+"-"+n[8]+n[9]+"-"+n[10]+n[11]+n[12]+n[13]+n[14]+n[15]}return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}n.d(t,"a",(function(){return r}))},dad5:function(e,t,n){"use strict";var r=n("10b1"),o=n.n(r),i=n("66db"),s=n("ea8c"),a=function(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e.charCodeAt(n)^"kes".charCodeAt(n%"kes".length));return t};t.a=function(e){var t=e.password,n=e.modifyPassword,r=t?"_encode_:"+a(i.a.encode(t)):t,c=n?"_encode_:"+a(i.a.encode(n)):n;return s.c(s.b.FILE_OPEN_PASSWORD,r),s.c(s.b.FILE_MODIFY_PASSWORD,c),o()({},e,{password:r,modifyPassword:c})}},de60:function(e,t){function n(e,t){this.bits=e,this.value=t}t.HuffmanCode=n;function r(e,t){for(var n=1<<t-1;e&n;)n>>=1;return(e&n-1)+n}function o(e,t,r,o,i){do{e[t+(o-=r)]=new n(i.bits,i.value)}while(o>0)}function i(e,t,n){for(var r=1<<t-n;t<15&&!((r-=e[t])<=0);)++t,r<<=1;return t-n}t.BrotliBuildHuffmanTable=function(e,t,s,a,c){var l,u,d,f,h,p,_,w,g,v,b=t,m=new Int32Array(16),y=new Int32Array(16);for(v=new Int32Array(c),u=0;u<c;u++)m[a]++;for(y[1]=0,l=1;l<15;l++)y[l+1]=y[l]+m[l];for(u=0;u<c;u++)0!==a&&(v[y[a]++]=u);if(g=w=1<<(_=s),1===y[15]){for(d=0;d<g;++d)e[t+d]=new n(0,65535&v[0]);return g}for(d=0,u=0,l=1,f=2;l<=s;++l,f<<=1)for(;m[l]>0;--m[l])o(e,t+d,f,w,new n(255&l,65535&v[u++])),d=r(d,l);for(p=g-1,h=-1,l=s+1,f=2;l<=15;++l,f<<=1)for(;m[l]>0;--m[l])(d&p)!==h&&(t+=w,g+=w=1<<(_=i(m,l,s)),e[b+(h=d&p)]=new n(_+s&255,t-b-h&65535)),o(e,t+(d>>s),f,w,new n(l-s&255,65535&v[u++])),d=r(d,l);return g}},e131:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var r={UPLOAD_SUCCESS:0,UPLOADING:1,NOT_UPLOAD:2,UPLOAD_FAIL:3},o={SYNC:"sync",UPGRADE:"upgrade"},i={o:{"1.0.0":{pkgDataPath:"/data",pkgSyncPath:"/data/sync",pkgCachePath:"/cache",pkgVersion:"1.0.0",pkgSyncServer:location.origin+"/api/kdocs/office/file/:id/prefetch/sync",pkgUpgradeServer:location.origin+"/api/kdocs/office/file/:id/prefetch/upgrade",pkgExtends:""}}}},e2ad:function(e,t){function n(e){this.buffer=e,this.pos=0}function r(e){this.buffer=e,this.pos=0}n.prototype.read=function(e,t,n){this.pos+n>this.buffer.length&&(n=this.buffer.length-this.pos);for(var r=0;r<n;r++)e[t+r]=this.buffer[this.pos+r];return this.pos+=n,n},t.BrotliInput=n,r.prototype.write=function(e,t){if(this.pos+t>this.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(e.subarray(0,t),this.pos),this.pos+=t,t},t.BrotliOutput=r},e49a:function(e,t,n){e.exports=function(e,t){n.e("0ded").then(n.bind(null,"b073")).then((function(t){e&&e(t)})).catch((function(e){/loading.* chunk/i.test(e.message)&&window.badJsFunc(!0,e),console.error(e),t&&t(e)}))}},e4a1:function(e,t,n){e.exports=function(e,t){n.e("640a").then(n.bind(null,"7a10")).then((function(t){e&&e(t)})).catch((function(e){/loading.* chunk/i.test(e.message)&&window.badJsFunc(!0,e),console.error(e),t&&t(e)}))}},e64e8:function(e,t){t.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),t.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},f375:function(e,t,n){"use strict";n.r(t),n.d(t,"use",(function(){return S})),n.d(t,"callAPI",(function(){return m})),n.d(t,"callJSON",(function(){return O})),n.d(t,"callArrayBuffer",(function(){return y})),n.d(t,"BEFORE_OPEN",(function(){return E})),n.d(t,"BEFORE_SEND",(function(){return k})),n.d(t,"ON_LOAD",(function(){return C})),n.d(t,"BEFORE_LOAD",(function(){return T})),n.d(t,"ON_SUCCESS",(function(){return N})),n.d(t,"ON_ERROR",(function(){return I}));var r,o=n("ef68"),i=function(){var e=this;this.interceptors={},this.use=function(t,n){e.interceptors[t]=e.interceptors[t]||[],e.interceptors[t].push(n)},this.emit=function(t,n){return Object(o.__awaiter)(e,void 0,void 0,(function(){var e,r;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:e=this.interceptors[t]||[],r=0,o.label=1;case 1:return r<e.length?[4,(0,e[r])(n)]:[3,4];case 2:o.sent(),o.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}))}};!function(e){e.BEFORE_OPEN="beforeOpen",e.BEFORE_SEND="beforeSend",e.ON_LOAD="onLoad",e.ON_SUCCESS="onSuccess",e.ON_ERROR="onError"}(r||(r={}));var s,a=new i,c=function(){function e(e){var t=this;this.resolve=null,this.reject=null,this.timeout=function(e){return t.options.timeout=e,t},this.fields=function(e){for(var n in t.options.body instanceof FormData||(t.options.body=new FormData),e)t.options.body.append(n,e[n]);return t},this.attach=function(e,n){return t.options.body instanceof FormData||(t.options.body=new FormData),t.options.body.append(e,n),t},this.responseType=function(e){t.options.responseType=e},this.query=function(e){if(!e)return t;var n=Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&");return t.options.url.indexOf("?")>=0?t.options.url+="&"+n:t.options.url+="?"+n,t},this.send=function(e){return t.options.body=e,t},this.overrideMimeType=function(e){t.xhr.overrideMimeType(e)},this.end=function(){return Object(o.__awaiter)(t,void 0,void 0,(function(){var e,t,n=this;return Object(o.__generator)(this,(function(r){switch(r.label){case 0:return this.formatOptions(),[4,this._beforeOpen()];case 1:return r.sent(),e=void 0===this.options.async||this.options.async,this.xhr.open(this.options.method,this.options.url,e),this.useOptionToXhr(),[4,this._beforeSend()];case 2:return r.sent(),t=new Promise((function(e,t){n.resolve=e,n.reject=t})),this.xhr.onload=this._onLoad,this.xhr.ontimeout=this._onTimeout,this.xhr.onerror=this._onError,void 0===this.options.body?this.xhr.send():this.xhr.send(this.options.body),[2,t]}}))}))},this.abort=function(){t.xhr.abort()},this._onTimeout=function(){return Object(o.__awaiter)(t,void 0,void 0,(function(){var e;return Object(o.__generator)(this,(function(t){return e={target:this.xhr,body:{result:"Unavailable",_cause:"timeout"},_url:this.options.originUrl},a.emit(r.ON_ERROR,{options:this.options,target:this.xhr,response:e}),this.reject(e),[2]}))}))},this._onError=function(e){return Object(o.__awaiter)(t,void 0,void 0,(function(){var t;return Object(o.__generator)(this,(function(n){return t={target:this.xhr,body:{result:"Unavailable",_cause:"error"},_url:this.options.originUrl},a.emit(r.ON_ERROR,{options:this.options,target:this.xhr,response:t,errorMessage:e.message}),this.reject(t),[2]}))}))},this._onLoad=function(){return Object(o.__awaiter)(t,void 0,void 0,(function(){var e,t;return Object(o.__generator)(this,(function(n){if(e={target:this.xhr,status:this.xhr.status,responseHeaders:this.xhr.getAllResponseHeaders(),body:"text"===this.xhr.responseType?this.xhr.responseText:this.xhr.response},a.emit(r.ON_LOAD,{options:this.options,target:this.xhr,response:e}),"json"===this.options.originResponseType){try{e.body&&(e.body=JSON.parse(e.body))}catch(n){return t=Object(o.__assign)(Object(o.__assign)({},e),{body:{result:"Unavailable",_cause:"SyntaxError"},_url:this.options.originUrl}),a.emit(r.ON_ERROR,{options:this.options,target:this.xhr,response:t,errorMessage:n.message}),this.reject(t),[2]}200===e.status?(a.emit(r.ON_SUCCESS,{options:this.options,target:this.xhr,response:e}),this.resolve(e)):(t=Object(o.__assign)(Object(o.__assign)({},e),{_url:this.options.originUrl}),a.emit(r.ON_ERROR,{options:this.options,target:this.xhr,response:t}),this.reject(t))}else this.resolve(e);return[2]}))}))},this.options=e,this.xhr=new XMLHttpRequest}return Object.defineProperty(e.prototype,"onprogress",{get:function(){return this.xhr.upload.onprogress},set:function(e){this.xhr.upload.onprogress=e},enumerable:!1,configurable:!0}),e.prototype.formatOptions=function(){this.options.originMethod=this.options.method,this.options.originUrl=this.options.url,void 0===this.options.responseType||"json"===this.options.responseType?(this.options.originResponseType="json",this.options.responseType="text"):this.options.originResponseType=this.options.responseType,void 0!==this.options.body&&("string"==typeof this.options.body||this.options.body instanceof FormData||this.options.body instanceof Blob||(this.options.body=JSON.stringify(this.options.body))),this.options.headers=void 0===this.options.headers?{}:this.options.headers},e.prototype.useOptionToXhr=function(){if(this.options.headers)for(var e in this.options.headers){var t=this.options.headers[e];this.xhr.setRequestHeader(e,t)}(void 0===this.options.async||this.options.async)&&(this.xhr.responseType=this.options.responseType),void 0!==this.options.timeout&&(this.xhr.timeout=this.options.timeout),void 0!==this.options.withCredentials&&(this.xhr.withCredentials=this.options.withCredentials)},e.prototype._beforeOpen=function(){return Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(e){switch(e.label){case 0:return[4,a.emit(r.BEFORE_OPEN,{options:this.options,target:this.xhr})];case 1:return e.sent(),[2]}}))}))},e.prototype._beforeSend=function(){return Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(e){switch(e.label){case 0:return[4,a.emit(r.BEFORE_SEND,{options:this.options,target:this.xhr})];case 1:return e.sent(),[2]}}))}))},e}();!function(e){e.Timeout="Timeout",e.NetworkError="NetworkError",e.SyntaxError="SyntaxError",e.ClientError="ClientError",e.ServerError="ServerError",e.HttpStatus="HttpStatus"}(s||(s={}));var l={};function u(e,t,n,r){var o=function(e,t){var n=e||"";return n=n.replace(/(.+?[/=])(\d{5,}|(?![a-z]{10})[a-z0-9]{10}|(?![a-z]{14})[a-zA-Z0-9]{14}|[cs](?![a-z]+(?:\/|$))[a-zA-Z0-9]{6,}|[a-zA-Z0-9,%\-\_]{20,}|[A-Z]{10}|(?![a-z]{16})[a-zA-Z0-9]{16})([/?&]|$)/g,(function(e,n,r,o){return n+t+o}))}(t.originUrl||t.url,"**"),i=o.split("?")[0];if(!l){if(l=!0,e===s.HttpStatus||e===s.SyntaxError&&n.status>=400)if(n.status>=500)e=s.ServerError;else{if(!(n.status>=400))return;e=s.ClientError}var a=t.method,c=r||n.target&&"text"===n.target.responseType&&n.target.responseText||n.body&&JSON.stringify(n.body)||"";window.collectionKmon({type:"badjs-request",value:{method:a.toLowerCase(),url:i,query:o.split("?")[1]||"",status:n.status||null,readyState:n.target&&n.target.readyState||null,type:e,message:c,isNewNetwork:!0}})}}var d=n("59fd"),f=n("fc47");!function(){if(window.__CONFIG__.pathPrefix){var e=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[1];t[1]=Object(f.c)(r)+r,e.apply(this,t)};var t=window.fetch;window.fetch=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if("string"==typeof e[0]){var r=e[0];e[0]=Object(f.c)(r)+r}return t.apply(this,e)}}}();var h=n("ea8c"),p=n("6386"),_=n("5dc3");(0,a.use)(r.BEFORE_OPEN,(function(e){return Object(o.__awaiter)(void 0,void 0,void 0,(function(){var t;return Object(o.__generator)(this,(function(n){return Object(_.a)(e.options.url)?((t=e.options).headers=t.headers||{},function(e){var t=window.location.search,n=h.a(h.b.CHKCODE);if(n&&-1===t.indexOf("chkcode")&&(t+=t?"&":"?",t+="chkcode=".concat(n)),Object(p.b)()){var r=window.__WPSENV__.file_info.file,o=void 0,i=r._w_pub_creator,s=r._w_pub_id,a=r._w_pub_origin_id;o="_w_pub_creator=".concat(i,"&_w_pub_id=").concat(s,"&_w_pub_origin_id=").concat(a),t&&(o+="&".concat(t.substr(1))),e["x-user-query"]=o}else if(t){var c=e["x-user-query"],l=t.slice(1);e["x-user-query"]=c?"".concat(c,"&").concat(l):l}var u=window.__WPSENV__.shared_view_info;if(u&&u.link_id){var d=u.link_id,f=u.app_id,_=u.duplicate_suffix;l="share_id=".concat(d);f&&(l+="&app_id=".concat(f)),_&&(l+="&duplicate_suffix=".concat(_));var w=e["x-user-query"],g=w?"".concat(w,"&").concat(l):l;e["x-user-query"]=g}}(t.headers),[2]):[2]}))}))})),(0,a.use)(r.BEFORE_OPEN,(function(e){return Object(o.__awaiter)(void 0,void 0,void 0,(function(){var t;return Object(o.__generator)(this,(function(n){return Object(_.a)(e.options.url)?((t=h.a(h.b.CSRF_TOKEN))&&(e.options.headers["x-csrf-rand"]=t),[2]):[2]}))}))})),(0,a.use)(r.BEFORE_OPEN,(function(e){return Object(o.__awaiter)(void 0,void 0,void 0,(function(){var t;return Object(o.__generator)(this,(function(n){return Object(_.a)(e.options.url)?((t=h.a(h.b.USER_TOKEN).token)&&(e.options.headers["x-user-token"]=t),[2]):[2]}))}))})),(0,a.use)(r.BEFORE_OPEN,(function(e){return Object(o.__awaiter)(void 0,void 0,void 0,(function(){return Object(o.__generator)(this,(function(t){return Object(_.a)(e.options.url)?(window.__WPSENV__.app_id&&(e.options.headers["x-app-id"]=window.__WPSENV__.app_id),[2]):[2]}))}))})),(0,a.use)(r.BEFORE_OPEN,(function(e){return Object(o.__awaiter)(void 0,void 0,void 0,(function(){return Object(o.__generator)(this,(function(t){return Object(_.a)(e.options.url)?(window.__WPSENV__.app_signature&&(e.options.headers["x-app-signature"]=window.__WPSENV__.app_signature),[2]):[2]}))}))})),(0,a.use)(r.BEFORE_OPEN,(function(e){return Object(o.__awaiter)(void 0,void 0,void 0,(function(){return Object(o.__generator)(this,(function(t){return Object(_.a)(e.options.url)?(window.__WPSENV__.trace_session_id&&(e.options.headers["x-session-id"]=window.__WPSENV__.trace_session_id),[2]):[2]}))}))}));var w=n("da62");(0,a.use)(r.BEFORE_OPEN,(function(e){return Object(o.__awaiter)(void 0,void 0,void 0,(function(){return Object(o.__generator)(this,(function(t){return Object(_.a)(e.options.url)?(e.options.headers["x-client-request-id"]||(e.options.headers["x-client-request-id"]=Object(w.a)()),[2]):[2]}))}))})),(0,a.use)(r.BEFORE_OPEN,(function(e){return Object(o.__awaiter)(void 0,void 0,void 0,(function(){var t;return Object(o.__generator)(this,(function(n){if(!Object(_.a)(e.options.url))return[2];if(window.__WPSENV__.request_header_inject&&!window.__CONFIG__.isRewriteXHR)for(t in window.__WPSENV__.request_header_inject)e.options.headers[t]=window.__WPSENV__.request_header_inject[t];return[2]}))}))}));var g=n("ece7");(0,a.use)(r.BEFORE_OPEN,(function(e){return Object(o.__awaiter)(void 0,void 0,void 0,(function(){var t,n;return Object(o.__generator)(this,(function(r){switch(r.label){case 0:return t=e.options,[4,Object(g.b)(t.method,t.url)];case 1:return(n=r.sent())&&(t.headers["X-Pop-Token"]=n),[2]}}))}))}));var v=n("0a68"),b=Object(v.a)();(0,a.use)(r.BEFORE_SEND,(function(e){return Object(o.__awaiter)(void 0,void 0,void 0,(function(){var t,n,r,i,s;return Object(o.__generator)(this,(function(o){return t=e.options,n=e.target,r=t.url,i=n,s=!!r.match(/^\/(api\/|office\/v5\/)/),b&&s&&(i.withCredentials=!0),[2]}))}))})),(0,a.use)(r.ON_ERROR,(function(e){var t=e.options,n=e.response,r=e.errorMessage;"SyntaxError"===n.body._cause&&u(s.SyntaxError,t,n,r),"error"===n.body._cause&&u(s.NetworkError,t,n,r),"timeout"===n.body._cause&&u(s.Timeout,t,n),n.status&&200!==n.status&&u(s.HttpStatus,t,n)}));var m=function(e){return new c(e).end()},y=function(e,t,n){return void 0===n&&(n={}),n.method=e,n.url=t,n.responseType="arraybuffer",new Promise((function(e,r){var o=r;return r=function(e){var t=e.result,r=e.response;if(n.catchRes)return o({result:t,response:r});o(t)},m(n).then((function(o){if(o.status<300)e(o);else{var i=function(e){var t,n,r,o,i,s;for(t="",r=e.length,n=0;n<r;)switch((o=e[n++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=String.fromCharCode(o);break;case 12:case 13:i=e[n++],t+=String.fromCharCode((31&o)<<6|63&i);break;case 14:i=e[n++],s=e[n++],t+=String.fromCharCode((15&o)<<12|(63&i)<<6|(63&s)<<0)}return t}(new Uint8Array(o.body));try{(a=JSON.parse(i))instanceof Object&&(a._url=t,a.responseHeaders=o.responseHeaders),r({result:a,response:o})}catch(e){var a;u(s.SyntaxError,n,o,e.message),r({result:a={result:"Unavailable",_cause:"SyntaxError",_url:t},response:o})}}})).catch((function(e){var n=e.body;n instanceof Object&&(n._url=t),r({result:n,response:e})}))}))},O=function(e,t,n){return void 0===n&&(n={}),n.method=e,n.url=t,n.endpointID&&(n.headers=n.headers||{},n.headers["x-endpoint-id"]=n.endpointID),new Promise((function(e,r){return m(n).then((function(t){e(t)})).catch((function(e){var o=e.body;if(o instanceof Object&&(o._url=t,o.responseHeaders=e.responseHeaders),n.catchRes)return r({result:o,response:e});r(o)}))}))};window.__WPSENV__=window.__WPSENV__||{},window.__WPSENV__.callJSON=O,window.__WPSENV__.callAPI=m,window.__WPSENV__.request=function(e){return new c(e)},window.__WPSENV__.callAsyncAPI=function(e,t){return new Promise((function(n,r){var o=new d.a(e);o.onload=n,o.onerror=r,o.send(t)}))},window.__WPSENV__.asyncRequest=function(e){return new d.a(e)};var S=a.use,E=r.BEFORE_OPEN,k=r.BEFORE_SEND,C=r.ON_LOAD,N=r.ON_SUCCESS,I=r.ON_ERROR,T=r.ON_LOAD},fbab:function(e,t,n){e.exports=function(e,t){n.e("c966").then(n.bind(null,"931a")).then((function(t){e&&e(t)})).catch((function(e){/loading.* chunk/i.test(e.message)&&window.badJsFunc(!0,e),console.error(e),t&&t(e)}))}},fbeb:function(e,t,n){"use strict";var r=n("ef68"),o=n("63a3"),i=n("4a1f"),s=function(){function e(){var e=this;this.isDisconnect=!1,this.isOfflineDoc=!1,this.isOfflineEditStatus=!1,this.tryEdit=Object(o.a)((function(t,n){t&&e.collection("try_edit",{is_offline_doc:n})}),500),this.tryEditWrap=function(){var t=e,n=t.isDisconnect,r=t.isOfflineDoc;e.tryEdit(n,r)}}return e.prototype.getMode=function(){var e,t,n,r,o,s,a,c,l,u,d,f,h,p="unknown",_=null===(e=window.__WPSENV__)||void 0===e?void 0:e.office_type;try{switch(_){case"s":case"k":case"d":p=(i.isMobile?null===(n=null===(t=window.APP)||void 0===t?void 0:t.isPreEditing)||void 0===n?void 0:n.call(t):null===(o=null===(r=window.APP)||void 0===r?void 0:r.isEditing)||void 0===o?void 0:o.call(r))?"edit":"view";break;case"p":p="edit"===(null===(l=null===(c=null===(a=null===(s=window.APP)||void 0===s?void 0:s.shell)||void 0===a?void 0:a.doc)||void 0===c?void 0:c.getMode)||void 0===l?void 0:l.call(c))?"edit":"view";break;case"f":p=(null===(f=null===(d=null===(u=window.APP)||void 0===u?void 0:u.core)||void 0===d?void 0:d.isConnetEditMode)||void 0===f?void 0:f.call(d))?"edit":"view";break;case"w":p=(null===(h=window.APP)||void 0===h?void 0:h.isEditMode)?"edit":"view"}}catch(e){console.error("get isEditMode failed",e)}return p},e.prototype.collection=function(e,t){var n,o,i,s,a,c;void 0===t&&(t={}),window.collection("offlineedit",Object(r.__assign)({event:e,user_permission:(null===(i=null===(o=null===(n=window.__WPSENV__)||void 0===n?void 0:n.file_info)||void 0===o?void 0:o.user)||void 0===i?void 0:i.permission)||"unknown",mode:this.getMode(),is_new_network:!0===(null===(s=window.RPCClient)||void 0===s?void 0:s._isNewNetwork),enable_offline_edit:!!(null===(c=null===(a=window.RPCClient)||void 0===a?void 0:a.getEnableShortOfflineEdit)||void 0===c?void 0:c.call(a))},t))},e.prototype.networkConnect=function(){this.isDisconnect=!1,this.isOfflineDoc=!1},e.prototype.networkDisconnect=function(){this.isDisconnect=!0,this.collection("network_disconnect")},e.prototype.docOffline=function(){var e=this;set
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|M男之家

GMT+8, 2026-11-12 01:29 , Processed in 0.073778 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表