@codernote/record-tree 2.2.0 → 2.2.1

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.
Files changed (2) hide show
  1. package/dist/index.js +686 -667
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.node-complex[data-v-e6b954dd]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-e6b954dd]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-e6b954dd]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-e6b954dd]{display:block}.node-image img[data-v-e6b954dd]{outline:none}.node-audio[data-v-e6b954dd]{width:300px}.node-audio audio[data-v-e6b954dd]{width:300px;outline:none}.node-video video[data-v-e6b954dd]{outline:none}.node-del[data-v-e6b954dd]{cursor:pointer;display:none;width:15px;height:15px;position:absolute;top:-3px;right:-3px;background-color:#e6f7ff;background-size:100% 100%;border-radius:50%}.node-del[data-v-e6b954dd]:before,.node-del[data-v-e6b954dd]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-e6b954dd]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-e6b954dd]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-e6b954dd]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-e6b954dd]{flex:1}.node-file-left h6[data-v-e6b954dd]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-e6b954dd]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-e6b954dd]{color:#52a770;font-size:14px}@keyframes blinkBorder-e6b954dd{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-e6b954dd]:focus{animation:blinkBorder-e6b954dd 1s infinite}.fullscreen-handle[data-v-e6b954dd]{width:15px;height:15px;position:absolute;bottom:0;right:16px;cursor:pointer;background:#fff9}.resize-handle[data-v-e6b954dd]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:#fff9}.resize-handle svg[data-v-e6b954dd]{cursor:se-resize}.ProseMirror{outline:none}.node-div[data-v-503978cf]{display:flex;align-items:center;position:relative}.node-div>div[data-v-503978cf]{flex:1}.node-icon[data-v-503978cf]{position:relative;width:17px;height:17px;border-radius:10px;background-color:#fff;cursor:pointer;margin-left:5px;align-self:flex-start;top:3px}.node-icon[data-v-503978cf]:after{content:"";position:absolute;top:5px;left:5px;width:7px;height:7px;border-radius:10px;background-color:#eee}.node-icon[data-v-503978cf]:hover{background-color:#ccc}.node-ul[data-v-46aab851]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-46aab851]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-46aab851] .sublevel .node-li{margin-left:15px}[data-v-46aab851] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-46aab851] .drag-over-center{background-color:#eee}[data-v-46aab851] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-46aab851]{display:none}[data-v-46aab851] .collapsed .node-icon:before{display:none}.tree-title[data-v-46aab851]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-46aab851] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-46aab851] .node-li.dragging .node-icon:before{display:none}[data-v-46aab851] .has-child>.node-div>.node-icon:before{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-46aab851] .has-child>.node-div>.node-icon:hover:before{background-color:#52a770}[data-v-f14c9a1f] .popper{transform:translate3d(0,22px,0)!important}.record-tree-popper-content{display:flex;flex-wrap:wrap;padding:10px;box-shadow:0 2px 12px #1d1c1c1f;border:1px solid rgba(29,28,28,.12);border-radius:5px;overflow:hidden;background:#fff;z-index:9999}.record-tree-popper-content-item{padding:8px 10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.record-tree-svg{display:inline-block;border-radius:9999px;color:#fff;cursor:pointer}.record-tree-title-bar{position:relative;display:flex;margin-bottom:3px}.record-tree-title{padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%}.record-tree-popper-reference{display:flex;position:absolute;top:0;left:0;text-align:center;border-radius:9999px;color:#fff}.record-tree-empty-icon{display:inline-block;border-radius:9999px}.record-tree-placeholder{position:absolute;left:0;top:0;padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%;color:#999;pointer-events:none}.record-audio[data-v-9be5ddd6]{position:absolute;background:#fff;padding:20px;width:400px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.record-audio .recwave[data-v-9be5ddd6]{width:300px;height:40px}.record-audio .audio-item[data-v-9be5ddd6]{margin-top:10px;display:flex;align-items:center}.record-audio .audio-item a[data-v-9be5ddd6]{color:#52a770;margin-left:10px;font-size:12px;cursor:pointer}.record-audio .audio-text[data-v-9be5ddd6]{background:#f5f5f5;margin-top:10px;padding:8px 12px;border-radius:5px}.record-audio .buttons[data-v-9be5ddd6]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-9be5ddd6]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.record-audio .buttons .finish[data-v-9be5ddd6]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-9be5ddd6]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-9be5ddd6]{border:1px solid #eee}.record-audio .buttons .oper[data-v-9be5ddd6]{margin-right:10px}.record-audio .main[data-v-9be5ddd6]{display:flex;align-items:center}.record-audio .duration[data-v-9be5ddd6]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-9be5ddd6]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-9be5ddd6]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-audio-mobile[data-v-9be5ddd6]{display:flex;width:100vw;position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);z-index:999;align-items:center}.record-audio-mobile .recwave[data-v-9be5ddd6]{flex:1;height:30px}.record-audio-mobile .oper[data-v-9be5ddd6]{margin-right:10px}.record-video[data-v-be255be7]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-be255be7]{width:300px}.buttons[data-v-be255be7]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-be255be7]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-be255be7]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-be255be7]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-be255be7]{border:1px solid #eee}.buttons .oper[data-v-be255be7]{margin-right:10px}.wrap[data-v-be255be7]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-be255be7]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-video[data-v-d1a4de11]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;width:452px;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-d1a4de11]{width:200px}.img-item[data-v-d1a4de11]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-d1a4de11]{width:200px}.record-content[data-v-d1a4de11]{display:flex}.buttons[data-v-d1a4de11]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-d1a4de11]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-d1a4de11]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-d1a4de11]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-d1a4de11]{border:1px solid #eee}.buttons .oper[data-v-d1a4de11]{margin-right:10px}.wrap[data-v-d1a4de11]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-d1a4de11]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-tree-mobile .record-tree{height:calc(100vh - 45px);overflow-y:scroll}.record-tree-mobile .record-tree-main{padding-left:0}.record-tree-mobile .record-tree-options{padding:12px 0;display:flex;position:fixed}.record-tree-mobile .record-tree-option-item{flex:1;max-width:32px}.record-tree-mobile .node-file-wrap{width:200px}.record-tree-mobile .node-file-right{display:none}.record-tree-mobile .node-image img{width:auto;max-height:80px}.record-tree-mobile .node-audio,.record-tree-mobile .node-video{width:200px}.record-tree-mobile .node-audio audio{width:200px;outline:none}.record-tree-mobile .node-video video{width:200px;outline:none}.record-tree-container{position:relative;height:100%}.record-tree-main{padding-left:15px;overflow:scroll;flex:1}.record-tree{position:relative;padding-bottom:40px;display:flex;flex-direction:column;overflow:hidden;height:100%}.record-tree-options{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-between;padding:5px 0;background:#fff;border-top:1px dotted #ddd}.record-tree-option-left{display:flex;flex:1;padding-left:10px}.record-tree-option-right{padding-right:10px;font-size:14px}.record-tree-option-item{margin:0 5px;cursor:pointer;display:flex;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}img:-webkit-full-screen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain}img:fullscreen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;-o-object-fit:contain;object-fit:contain}.record-tree .node-text{margin-left:5px;flex:1;border:none;outline:none;word-break:break-all}.record-tree .node-text a{color:#0076ff;cursor:pointer}.date-popover{display:block;padding:5px 10px;background:#333;border-radius:4px;position:fixed;z-index:9999;transform:translate(-50%,-120%);font-size:12px;color:#666;text-align:center;transition:opacity .3s;color:#fff}.date-popover:after{content:"";position:absolute;top:95%;left:50%;transform:translate(-50%);border-width:6px;border-style:solid;border-color:#333 transparent transparent transparent}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { detectDeviceType as E0, truncateString as br, formatBytes as wr, uuid as Ht, byNameFindIcon as yr, icons as gr, parseMimeType as er, getSize as tr, oss as rr } from "@codernote/utils";
3
- import { reactive as xr, ref as $t, openBlock as Je, createElementBlock as it, withModifiers as kt, createElementVNode as Qe, normalizeClass as Pt, createCommentVNode as Tt, unref as Ft, toDisplayString as o0, createVNode as Rt, nextTick as q0, pushScopeId as ar, popScopeId as ir, watch as j0, onMounted as Sr, onBeforeUnmount as Rr, createBlock as Nt, resolveComponent as Et, Fragment as M0, renderList as C0, withCtx as h0, renderSlot as G0, createSlots as Tr, normalizeStyle as Gt } from "vue";
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.node-complex[data-v-4ec3ee0d]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-4ec3ee0d]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-4ec3ee0d]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-4ec3ee0d]{display:block}.node-image img[data-v-4ec3ee0d]{outline:none}.node-audio[data-v-4ec3ee0d]{width:300px}.node-audio audio[data-v-4ec3ee0d]{width:300px;outline:none}.node-video video[data-v-4ec3ee0d]{outline:none}.node-del[data-v-4ec3ee0d]{cursor:pointer;display:none;width:15px;height:15px;position:absolute;top:-3px;right:-3px;background-color:#e6f7ff;background-size:100% 100%;border-radius:50%}.node-del[data-v-4ec3ee0d]:before,.node-del[data-v-4ec3ee0d]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-4ec3ee0d]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-4ec3ee0d]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-4ec3ee0d]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-4ec3ee0d]{flex:1}.node-file-left h6[data-v-4ec3ee0d]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-4ec3ee0d]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-4ec3ee0d]{color:#52a770;font-size:14px}@keyframes blinkBorder-4ec3ee0d{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-4ec3ee0d]:focus{animation:blinkBorder-4ec3ee0d 1s infinite}.fullscreen-handle[data-v-4ec3ee0d]{width:15px;height:15px;position:absolute;bottom:0;right:16px;cursor:pointer;background:#fff9}.resize-handle[data-v-4ec3ee0d]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:#fff9}.resize-handle svg[data-v-4ec3ee0d]{cursor:se-resize}.ProseMirror{outline:none}.node-div[data-v-503978cf]{display:flex;align-items:center;position:relative}.node-div>div[data-v-503978cf]{flex:1}.node-icon[data-v-503978cf]{position:relative;width:17px;height:17px;border-radius:10px;background-color:#fff;cursor:pointer;margin-left:5px;align-self:flex-start;top:3px}.node-icon[data-v-503978cf]:after{content:"";position:absolute;top:5px;left:5px;width:7px;height:7px;border-radius:10px;background-color:#eee}.node-icon[data-v-503978cf]:hover{background-color:#ccc}.node-ul[data-v-46aab851]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-46aab851]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-46aab851] .sublevel .node-li{margin-left:15px}[data-v-46aab851] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-46aab851] .drag-over-center{background-color:#eee}[data-v-46aab851] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-46aab851]{display:none}[data-v-46aab851] .collapsed .node-icon:before{display:none}.tree-title[data-v-46aab851]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-46aab851] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-46aab851] .node-li.dragging .node-icon:before{display:none}[data-v-46aab851] .has-child>.node-div>.node-icon:before{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-46aab851] .has-child>.node-div>.node-icon:hover:before{background-color:#52a770}[data-v-f14c9a1f] .popper{transform:translate3d(0,22px,0)!important}.record-tree-popper-content{display:flex;flex-wrap:wrap;padding:10px;box-shadow:0 2px 12px #1d1c1c1f;border:1px solid rgba(29,28,28,.12);border-radius:5px;overflow:hidden;background:#fff;z-index:9999}.record-tree-popper-content-item{padding:8px 10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.record-tree-svg{display:inline-block;border-radius:9999px;color:#fff;cursor:pointer}.record-tree-title-bar{position:relative;display:flex;margin-bottom:3px}.record-tree-title{padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%}.record-tree-popper-reference{display:flex;position:absolute;top:0;left:0;text-align:center;border-radius:9999px;color:#fff}.record-tree-empty-icon{display:inline-block;border-radius:9999px}.record-tree-placeholder{position:absolute;left:5px;top:0;padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%;color:#999;pointer-events:none}.record-audio[data-v-9be5ddd6]{position:absolute;background:#fff;padding:20px;width:400px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.record-audio .recwave[data-v-9be5ddd6]{width:300px;height:40px}.record-audio .audio-item[data-v-9be5ddd6]{margin-top:10px;display:flex;align-items:center}.record-audio .audio-item a[data-v-9be5ddd6]{color:#52a770;margin-left:10px;font-size:12px;cursor:pointer}.record-audio .audio-text[data-v-9be5ddd6]{background:#f5f5f5;margin-top:10px;padding:8px 12px;border-radius:5px}.record-audio .buttons[data-v-9be5ddd6]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-9be5ddd6]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.record-audio .buttons .finish[data-v-9be5ddd6]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-9be5ddd6]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-9be5ddd6]{border:1px solid #eee}.record-audio .buttons .oper[data-v-9be5ddd6]{margin-right:10px}.record-audio .main[data-v-9be5ddd6]{display:flex;align-items:center}.record-audio .duration[data-v-9be5ddd6]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-9be5ddd6]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-9be5ddd6]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-audio-mobile[data-v-9be5ddd6]{display:flex;width:100vw;position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);z-index:999;align-items:center}.record-audio-mobile .recwave[data-v-9be5ddd6]{flex:1;height:30px}.record-audio-mobile .oper[data-v-9be5ddd6]{margin-right:10px}.record-video[data-v-be255be7]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-be255be7]{width:300px}.buttons[data-v-be255be7]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-be255be7]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-be255be7]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-be255be7]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-be255be7]{border:1px solid #eee}.buttons .oper[data-v-be255be7]{margin-right:10px}.wrap[data-v-be255be7]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-be255be7]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-video[data-v-d1a4de11]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;width:452px;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-d1a4de11]{width:200px}.img-item[data-v-d1a4de11]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-d1a4de11]{width:200px}.record-content[data-v-d1a4de11]{display:flex}.buttons[data-v-d1a4de11]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-d1a4de11]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-d1a4de11]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-d1a4de11]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-d1a4de11]{border:1px solid #eee}.buttons .oper[data-v-d1a4de11]{margin-right:10px}.wrap[data-v-d1a4de11]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-d1a4de11]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-tree-mobile .record-tree{height:calc(100vh - 45px);overflow-y:scroll}.record-tree-mobile .record-tree-main{padding-left:0}.record-tree-mobile .record-tree-options{padding:12px 0;display:flex;position:fixed}.record-tree-mobile .record-tree-option-item{flex:1;max-width:32px}.record-tree-mobile .node-file-wrap{width:200px}.record-tree-mobile .node-file-right{display:none}.record-tree-mobile .node-image img{width:auto;max-height:80px}.record-tree-mobile .node-audio,.record-tree-mobile .node-video{width:200px}.record-tree-mobile .node-audio audio{width:200px;outline:none}.record-tree-mobile .node-video video{width:200px;outline:none}.record-tree-container{position:relative;height:100%}.record-tree-main{padding-left:15px;overflow:scroll;flex:1}.record-tree{position:relative;padding-bottom:40px;display:flex;flex-direction:column;overflow:hidden;height:100%}.record-tree-options{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-between;padding:5px 0;background:#fff;border-top:1px dotted #ddd}.record-tree-option-left{display:flex;flex:1;padding-left:10px}.record-tree-option-right{padding-right:10px;font-size:14px}.record-tree-option-item{margin:0 5px;cursor:pointer;display:flex;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}img:-webkit-full-screen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain}img:fullscreen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;-o-object-fit:contain;object-fit:contain}.record-tree .node-text{margin-left:5px;flex:1;border:none;outline:none;word-break:break-all}.record-tree .node-text a{color:#0076ff;cursor:pointer}.date-popover{display:block;padding:5px 10px;background:#333;border-radius:4px;position:fixed;z-index:9999;transform:translate(-50%,-120%);font-size:12px;color:#666;text-align:center;transition:opacity .3s;color:#fff}.date-popover:after{content:"";position:absolute;top:95%;left:50%;transform:translate(-50%);border-width:6px;border-style:solid;border-color:#333 transparent transparent transparent}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
+ import { detectDeviceType as E0, truncateString as mr, formatBytes as pr, uuid as Ht, byNameFindIcon as br, icons as wr, parseMimeType as er, getSize as tr, oss as rr } from "@codernote/utils";
3
+ import { reactive as yr, ref as $t, openBlock as $e, createElementBlock as it, withModifiers as kt, createElementVNode as Je, normalizeClass as Pt, createCommentVNode as Rt, unref as Ot, toDisplayString as o0, createVNode as Tt, nextTick as q0, watch as j0, onMounted as gr, onBeforeUnmount as xr, createBlock as Nt, resolveComponent as Et, Fragment as M0, renderList as C0, withCtx as h0, renderSlot as G0, createSlots as Sr, normalizeStyle as Gt, pushScopeId as Rr, popScopeId as Tr } from "vue";
4
4
  import Mr from "mitt";
5
5
  import Jt from "vue-inline-svg";
6
6
  import { useEditor as Cr, EditorContent as Ar } from "@tiptap/vue-3";
@@ -9,7 +9,7 @@ import Br from "@tiptap/extension-highlight";
9
9
  import Er from "@tiptap/starter-kit";
10
10
  import at from "dayjs";
11
11
  import Dr from "vue3-popper";
12
- const Bt = xr({
12
+ const Bt = yr({
13
13
  currentId: null,
14
14
  dragId: null,
15
15
  pos: null,
@@ -48,11 +48,11 @@ function Qt(a, s = 0, x = !1) {
48
48
  console.error("Error setting focus position:", Y);
49
49
  }
50
50
  }
51
- const Lr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709866109224'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4677'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M742.832175%20461.155909h125.076465a50.844091%2050.844091%200%200%201%200%20101.688182h-137.787488l27.455809%2027.45581A50.844091%2050.844091%200%201%201%20685.378352%20660.973188l-107.789474-106.772592a50.844091%2050.844091%200%200%201%200-71.690169l107.789474-107.789474a50.844091%2050.844091%200%201%201%2072.198609%2071.690169z%20m-586.740815-305.064549h711.81728a50.844091%2050.844091%200%200%201%200%20101.688183h-711.81728a50.844091%2050.844091%200%200%201%200-101.688183z%20m0%20305.064549h305.064549a50.844091%2050.844091%200%201%201%200%20101.688182h-305.064549a50.844091%2050.844091%200%200%201%200-101.688182z%20m0%20305.064548h711.81728a50.844091%2050.844091%200%200%201%200%20101.688183h-711.81728a50.844091%2050.844091%200%200%201%200-101.688183z'%20fill='%232c2c2c'%20p-id='4678'%3e%3c/path%3e%3c/svg%3e", Ir = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709866100174'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4504'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M281.676266%20461.155909l-14.744786-14.744787a50.844091%2050.844091%200%200%201%2071.690168-72.19861l107.789474%20107.789474a50.844091%2050.844091%200%200%201%200%2071.690169L338.621648%20660.973188a50.844091%2050.844091%200%201%201-71.690168-71.690169l27.455809-27.455809H156.09136a50.844091%2050.844091%200%200%201%200-101.688183z%20m586.740814-305.064549a50.844091%2050.844091%200%200%201%200%20101.688183h-711.817279a50.844091%2050.844091%200%200%201%200-101.688183z%20m0%20610.129097a50.844091%2050.844091%200%200%201%200%20101.688183h-711.817279a50.844091%2050.844091%200%200%201%200-101.688183z%20m0-305.064548a50.844091%2050.844091%200%200%201%200%20101.688182h-305.064548a50.844091%2050.844091%200%200%201%200-101.688182z'%20fill='%232c2c2c'%20p-id='4505'%3e%3c/path%3e%3c/svg%3e", Or = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709779202767'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4512'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M470.016%20976.896q-44.032%200-59.392-20.48t-15.36-65.536q0-20.48-0.512-64.512t-1.024-93.696-1.536-96.768-1.024-74.752q0-39.936-7.68-62.464t-35.328-21.504q-20.48%200-48.64-1.024t-49.664%200q-35.84%200-45.568-19.456t13.824-50.176q24.576-30.72%2057.344-72.704t67.584-86.016%2068.096-87.04%2058.88-75.776q23.552-29.696%2045.568-30.72t46.592%2026.624q24.576%2029.696%2056.832%2069.632t67.072%2082.432%2068.608%2083.968%2060.416%2073.216q29.696%2035.84%2023.04%2058.88t-43.52%2023.04q-11.264%200-25.088%200.512t-29.184%201.024-30.208%201.024-27.136%200.512q-25.6%201.024-32.256%2016.384t-5.632%2041.984q0%2029.696%200.512%2077.824t1.024%20100.352%201.536%20101.376%201.024%2079.872q0%2013.312-2.048%2027.648t-9.728%2026.112-21.504%2019.968-36.352%208.192q-27.648%200-52.736%200.512t-56.832%201.536z'%20p-id='4513'%3e%3c/path%3e%3c/svg%3e", Fr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709779221999'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4657'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M564.224%2044.032q43.008%200%2058.368%2020.48t15.36%2065.536q0%2020.48%200.512%2064.512t0.512%2093.696%200.512%2096.768%200.512%2074.752q0%2038.912%207.68%2061.952t35.328%2022.016q19.456%200%2048.128%201.024t49.152%201.024q35.84%200%2045.568%2018.944t-13.824%2049.664q-24.576%2030.72-57.344%2072.704t-68.096%2086.016-69.12%2086.528-59.392%2075.264q-23.552%2029.696-45.568%2030.72t-45.568-27.648q-24.576-29.696-57.344-69.632t-67.072-82.432-67.584-83.968-59.904-74.24q-29.696-35.84-22.528-58.88t44.032-23.04l24.576%200q14.336%200%2029.696-0.512t30.208-1.536%2026.112-1.024q26.624%200%2032.768-15.36t6.144-41.984q0-29.696-0.512-77.824t-0.512-100.352-0.512-101.376-0.512-79.872q0-13.312%202.048-27.648t9.728-26.112%2020.992-19.456%2036.864-7.68q27.648%200%2053.248-0.512t57.344-0.512z'%20p-id='4658'%3e%3c/path%3e%3c/svg%3e", Nr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709780159129'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8535'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M901.12%2068.224a202.88%20202.88%200%200%200-286.976%200l-0.64%200.832%200.512%200.512c-0.768%200.704-1.728%200.896-2.368%201.6L144.896%20537.792l-0.128%200.128-0.128%200.256-11.712%2011.712a47.296%2047.296%200%200%200-9.856%2014.656c-85.76%20109.76-79.36%20268.288%2021.76%20369.344%20100.864%20100.992%20259.008%20107.52%20368.832%2022.272a51.072%2051.072%200%200%200%2015.232-10.24l324.608-324.672a48.512%2048.512%200%200%200%201.024-68.8%2048.704%2048.704%200%200%200-68.864%200.896L475.776%20863.36l-0.256-0.256c-0.896%200.96-1.472%202.112-2.496%203.008a184%20184%200%200%201-260.352-259.968l0.256-0.384c0.896-0.96%201.92-1.536%202.944-2.432l-0.256-0.192%20464-464c0.64-0.704%200.896-1.664%201.536-2.432l0.256%200.256c0.256-0.256%200.384-0.576%200.64-0.768a106.88%20106.88%200%201%201%20151.232%20151.296l-0.768%200.64%200.512%200.512c-0.768%200.64-1.728%200.896-2.368%201.6l-478.592%20478.656c-11.392%2011.456-29.888%2010.112-41.152-1.344a28.224%2028.224%200%200%201-0.64-40.384l415.232-415.104a48.64%2048.64%200%200%200%200.896-68.8%2048.576%2048.576%200%200%200-68.736%200.896l-415.168%20415.296c-0.384%200.32-0.512%200.768-0.768%201.088-47.36%2048.96-46.976%20126.72%201.344%20174.976%2045.888%2046.08%20118.4%2048.128%20167.488%207.616%203.136-1.92%206.656-3.584%209.344-6.464l478.592-478.656c0.768-0.704%200.896-1.664%201.536-2.432l0.256%200.256%200.832-0.64a202.944%20202.944%200%200%200%200-286.976z'%20fill='%23030000'%20p-id='8536'%3e%3c/path%3e%3c/svg%3e", Yr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709780533791'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='25342'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M355.555556%20967.111111a28.444444%2028.444444%200%201%201%200-56.888889h312.888888a28.444444%2028.444444%200%201%201%200%2056.888889H355.555556z%20m128-56.888889v-100.878222a296.433778%20296.433778%200%200%201-182.727112-86.158222A296.718222%20296.718222%200%200%201%20213.333333%20512v-99.555556a28.444444%2028.444444%200%200%201%2056.888889%200v99.555556c0.142222%20133.475556%20108.316444%20241.635556%20241.777778%20241.777778%20133.475556-0.142222%20241.635556-108.302222%20241.777778-241.777778v-99.555556a28.444444%2028.444444%200%201%201%2056.888889%200v99.555556a296.718222%20296.718222%200%200%201-87.466667%20211.2A296.433778%20296.433778%200%200%201%20540.444444%20809.358222V910.222222h-56.888888z%20m-113.777778-391.111111v-312.888889C369.777778%20123.747556%20436.636444%2056.888889%20519.111111%2056.888889%20601.6%2056.888889%20668.444444%20123.747556%20668.444444%20206.222222v312.888889C668.444444%20601.585778%20601.6%20668.444444%20519.111111%20668.444444%20436.636444%20668.444444%20369.777778%20601.585778%20369.777778%20519.111111z'%20fill='%23323233'%20p-id='25343'%3e%3c/path%3e%3c/svg%3e", Hr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709780437481'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16390'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M746.656%20310.528l110.688-49.184a42.656%2042.656%200%200%201%2060%2038.976v423.36a42.656%2042.656%200%200%201-60%2038.976l-110.688-49.184V768a85.344%2085.344%200%200%201-85.312%2085.344H192A85.344%2085.344%200%200%201%20106.656%20768V256A85.344%2085.344%200%200%201%20192%20170.656h469.344A85.344%2085.344%200%200%201%20746.656%20256v54.528zM320%20381.184v261.632a21.344%2021.344%200%200%200%2033.152%2017.728l196.224-130.784a21.344%2021.344%200%200%200%200-35.52l-196.224-130.784a21.344%2021.344%200%200%200-33.152%2017.728z'%20fill='%23000000'%20p-id='16391'%3e%3c/path%3e%3c/svg%3e", Vr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709780461968'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='20299'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M813.812907%20828.826855l-31.770588%200%200%200L241.960751%20828.826855l-0.004093%200-31.766494%200c-35.092239%200-63.541175-28.369118-63.541175-63.365166L146.648988%20337.743234c0-34.996049%2028.448936-63.365166%2063.541175-63.365166l31.766494%200%200.004093%200%200%200%20103.249549%200%2039.709397-63.365166c0-8.749268%2022.99983-15.84078%2031.774681-15.84078l190.614315%200c8.769734%200%2031.770588%207.091512%2031.770588%2015.84078l39.712467%2063.365166%20103.250572%200%2031.770588%200c35.092239%200%2063.537082%2028.369118%2063.537082%2063.365166l0%20427.718455C877.349989%20800.457738%20848.905146%20828.826855%20813.812907%20828.826855L813.812907%20828.826855zM512.001023%20337.743234c-114.046453%200-206.504214%2092.201935-206.504214%20205.940372%200%20113.739461%2092.457762%20205.936279%20206.504214%20205.936279%20114.043383%200%20206.496028-92.196819%20206.500121-205.928093l0-0.016373C718.497051%20429.941076%20626.044406%20337.743234%20512.001023%20337.743234L512.001023%20337.743234zM512.001023%20686.254719c-78.958306%200-142.963039-63.828724-142.963039-142.571113%200-78.738295%2064.004733-142.571113%20142.963039-142.571113%2078.955236%200%20142.963039%2063.832817%20142.963039%20142.571113C654.964062%20622.425995%20590.95626%20686.254719%20512.001023%20686.254719L512.001023%20686.254719zM512.001023%20686.254719'%20fill='%23272636'%20p-id='20300'%3e%3c/path%3e%3c/svg%3e", Pr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709785409899'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='37829'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%200C230.4%200%200%20230.4%200%20512s230.4%20512%20512%20512%20512-230.4%20512-512-230.4-512-512-512z%20m0%20960c-249.6%200-448-198.4-448-448s198.4-448%20448-448%20448%20198.4%20448%20448-198.4%20448-448%20448z'%20fill='%23333333'%20p-id='37830'%3e%3c/path%3e%3cpath%20d='M352%20352h320v320h-320z'%20fill='%23333333'%20p-id='37831'%3e%3c/path%3e%3c/svg%3e", Ur = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709785373002'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='30220'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M392.256%20515.008a119.744%20119.744%200%201%200%20239.488%200%20119.744%20119.744%200%201%200-239.488%200z'%20fill='%23333333'%20p-id='30221'%3e%3c/path%3e%3cpath%20d='M512%2068.032A447.488%20447.488%200%200%200%2065.024%20515.008%20447.424%20447.424%200%200%200%20512%20961.984a447.424%20447.424%200%200%200%20446.976-446.976A447.424%20447.424%200%200%200%20512%2068.032z%20m0%20829.952c-211.2%200-382.976-171.84-382.976-382.976S300.8%20132.032%20512%20132.032s382.976%20171.84%20382.976%20382.976S723.2%20897.984%20512%20897.984z'%20fill='%23333333'%20p-id='30222'%3e%3c/path%3e%3c/svg%3e", zr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1712145583790'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5884'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M734.165333%20350.165333l-384%20384L469.333333%20853.333333H170.666667v-298.666666l119.168%20119.168%20384-384L554.666667%20170.666667h298.666666v298.666666l-119.168-119.168zM256%20256v192H170.666667V170.666667h256v85.333333H256z%20m512%20512v-170.666667h85.333333v256h-256v-85.333333h170.666667z'%20fill='%234B4F54'%20p-id='5885'%3e%3c/path%3e%3c/svg%3e", qr = "data:image/svg+xml,%3csvg%20t='1714370428406'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4557'%20width='200'%20height='200'%3e%3cpath%20d='M213.333333%20213.333333h213.333334V128H170.666667a42.666667%2042.666667%200%200%200-42.666667%2042.666667v256h85.333333V213.333333zM170.666667%20896h256v-85.333333H213.333333v-213.333334H128v256a42.666667%2042.666667%200%200%200%2042.666667%2042.666667z%20m725.333333-42.666667v-256h-85.333333v213.333334h-213.333334v85.333333h256a42.666667%2042.666667%200%200%200%2042.666667-42.666667zM597.333333%20213.333333h213.333334v213.333334h85.333333V170.666667a42.666667%2042.666667%200%200%200-42.666667-42.666667h-256v85.333333z'%20fill='%23515151'%20p-id='4558'%3e%3c/path%3e%3c/svg%3e", Wt = {
51
+ const Lr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709866109224'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4677'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M742.832175%20461.155909h125.076465a50.844091%2050.844091%200%200%201%200%20101.688182h-137.787488l27.455809%2027.45581A50.844091%2050.844091%200%201%201%20685.378352%20660.973188l-107.789474-106.772592a50.844091%2050.844091%200%200%201%200-71.690169l107.789474-107.789474a50.844091%2050.844091%200%201%201%2072.198609%2071.690169z%20m-586.740815-305.064549h711.81728a50.844091%2050.844091%200%200%201%200%20101.688183h-711.81728a50.844091%2050.844091%200%200%201%200-101.688183z%20m0%20305.064549h305.064549a50.844091%2050.844091%200%201%201%200%20101.688182h-305.064549a50.844091%2050.844091%200%200%201%200-101.688182z%20m0%20305.064548h711.81728a50.844091%2050.844091%200%200%201%200%20101.688183h-711.81728a50.844091%2050.844091%200%200%201%200-101.688183z'%20fill='%232c2c2c'%20p-id='4678'%3e%3c/path%3e%3c/svg%3e", Ir = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709866100174'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4504'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M281.676266%20461.155909l-14.744786-14.744787a50.844091%2050.844091%200%200%201%2071.690168-72.19861l107.789474%20107.789474a50.844091%2050.844091%200%200%201%200%2071.690169L338.621648%20660.973188a50.844091%2050.844091%200%201%201-71.690168-71.690169l27.455809-27.455809H156.09136a50.844091%2050.844091%200%200%201%200-101.688183z%20m586.740814-305.064549a50.844091%2050.844091%200%200%201%200%20101.688183h-711.817279a50.844091%2050.844091%200%200%201%200-101.688183z%20m0%20610.129097a50.844091%2050.844091%200%200%201%200%20101.688183h-711.817279a50.844091%2050.844091%200%200%201%200-101.688183z%20m0-305.064548a50.844091%2050.844091%200%200%201%200%20101.688182h-305.064548a50.844091%2050.844091%200%200%201%200-101.688182z'%20fill='%232c2c2c'%20p-id='4505'%3e%3c/path%3e%3c/svg%3e", Fr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709779202767'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4512'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M470.016%20976.896q-44.032%200-59.392-20.48t-15.36-65.536q0-20.48-0.512-64.512t-1.024-93.696-1.536-96.768-1.024-74.752q0-39.936-7.68-62.464t-35.328-21.504q-20.48%200-48.64-1.024t-49.664%200q-35.84%200-45.568-19.456t13.824-50.176q24.576-30.72%2057.344-72.704t67.584-86.016%2068.096-87.04%2058.88-75.776q23.552-29.696%2045.568-30.72t46.592%2026.624q24.576%2029.696%2056.832%2069.632t67.072%2082.432%2068.608%2083.968%2060.416%2073.216q29.696%2035.84%2023.04%2058.88t-43.52%2023.04q-11.264%200-25.088%200.512t-29.184%201.024-30.208%201.024-27.136%200.512q-25.6%201.024-32.256%2016.384t-5.632%2041.984q0%2029.696%200.512%2077.824t1.024%20100.352%201.536%20101.376%201.024%2079.872q0%2013.312-2.048%2027.648t-9.728%2026.112-21.504%2019.968-36.352%208.192q-27.648%200-52.736%200.512t-56.832%201.536z'%20p-id='4513'%3e%3c/path%3e%3c/svg%3e", Or = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709779221999'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4657'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M564.224%2044.032q43.008%200%2058.368%2020.48t15.36%2065.536q0%2020.48%200.512%2064.512t0.512%2093.696%200.512%2096.768%200.512%2074.752q0%2038.912%207.68%2061.952t35.328%2022.016q19.456%200%2048.128%201.024t49.152%201.024q35.84%200%2045.568%2018.944t-13.824%2049.664q-24.576%2030.72-57.344%2072.704t-68.096%2086.016-69.12%2086.528-59.392%2075.264q-23.552%2029.696-45.568%2030.72t-45.568-27.648q-24.576-29.696-57.344-69.632t-67.072-82.432-67.584-83.968-59.904-74.24q-29.696-35.84-22.528-58.88t44.032-23.04l24.576%200q14.336%200%2029.696-0.512t30.208-1.536%2026.112-1.024q26.624%200%2032.768-15.36t6.144-41.984q0-29.696-0.512-77.824t-0.512-100.352-0.512-101.376-0.512-79.872q0-13.312%202.048-27.648t9.728-26.112%2020.992-19.456%2036.864-7.68q27.648%200%2053.248-0.512t57.344-0.512z'%20p-id='4658'%3e%3c/path%3e%3c/svg%3e", Nr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709780159129'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='8535'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M901.12%2068.224a202.88%20202.88%200%200%200-286.976%200l-0.64%200.832%200.512%200.512c-0.768%200.704-1.728%200.896-2.368%201.6L144.896%20537.792l-0.128%200.128-0.128%200.256-11.712%2011.712a47.296%2047.296%200%200%200-9.856%2014.656c-85.76%20109.76-79.36%20268.288%2021.76%20369.344%20100.864%20100.992%20259.008%20107.52%20368.832%2022.272a51.072%2051.072%200%200%200%2015.232-10.24l324.608-324.672a48.512%2048.512%200%200%200%201.024-68.8%2048.704%2048.704%200%200%200-68.864%200.896L475.776%20863.36l-0.256-0.256c-0.896%200.96-1.472%202.112-2.496%203.008a184%20184%200%200%201-260.352-259.968l0.256-0.384c0.896-0.96%201.92-1.536%202.944-2.432l-0.256-0.192%20464-464c0.64-0.704%200.896-1.664%201.536-2.432l0.256%200.256c0.256-0.256%200.384-0.576%200.64-0.768a106.88%20106.88%200%201%201%20151.232%20151.296l-0.768%200.64%200.512%200.512c-0.768%200.64-1.728%200.896-2.368%201.6l-478.592%20478.656c-11.392%2011.456-29.888%2010.112-41.152-1.344a28.224%2028.224%200%200%201-0.64-40.384l415.232-415.104a48.64%2048.64%200%200%200%200.896-68.8%2048.576%2048.576%200%200%200-68.736%200.896l-415.168%20415.296c-0.384%200.32-0.512%200.768-0.768%201.088-47.36%2048.96-46.976%20126.72%201.344%20174.976%2045.888%2046.08%20118.4%2048.128%20167.488%207.616%203.136-1.92%206.656-3.584%209.344-6.464l478.592-478.656c0.768-0.704%200.896-1.664%201.536-2.432l0.256%200.256%200.832-0.64a202.944%20202.944%200%200%200%200-286.976z'%20fill='%23030000'%20p-id='8536'%3e%3c/path%3e%3c/svg%3e", Yr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709780533791'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='25342'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M355.555556%20967.111111a28.444444%2028.444444%200%201%201%200-56.888889h312.888888a28.444444%2028.444444%200%201%201%200%2056.888889H355.555556z%20m128-56.888889v-100.878222a296.433778%20296.433778%200%200%201-182.727112-86.158222A296.718222%20296.718222%200%200%201%20213.333333%20512v-99.555556a28.444444%2028.444444%200%200%201%2056.888889%200v99.555556c0.142222%20133.475556%20108.316444%20241.635556%20241.777778%20241.777778%20133.475556-0.142222%20241.635556-108.302222%20241.777778-241.777778v-99.555556a28.444444%2028.444444%200%201%201%2056.888889%200v99.555556a296.718222%20296.718222%200%200%201-87.466667%20211.2A296.433778%20296.433778%200%200%201%20540.444444%20809.358222V910.222222h-56.888888z%20m-113.777778-391.111111v-312.888889C369.777778%20123.747556%20436.636444%2056.888889%20519.111111%2056.888889%20601.6%2056.888889%20668.444444%20123.747556%20668.444444%20206.222222v312.888889C668.444444%20601.585778%20601.6%20668.444444%20519.111111%20668.444444%20436.636444%20668.444444%20369.777778%20601.585778%20369.777778%20519.111111z'%20fill='%23323233'%20p-id='25343'%3e%3c/path%3e%3c/svg%3e", Hr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709780437481'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='16390'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M746.656%20310.528l110.688-49.184a42.656%2042.656%200%200%201%2060%2038.976v423.36a42.656%2042.656%200%200%201-60%2038.976l-110.688-49.184V768a85.344%2085.344%200%200%201-85.312%2085.344H192A85.344%2085.344%200%200%201%20106.656%20768V256A85.344%2085.344%200%200%201%20192%20170.656h469.344A85.344%2085.344%200%200%201%20746.656%20256v54.528zM320%20381.184v261.632a21.344%2021.344%200%200%200%2033.152%2017.728l196.224-130.784a21.344%2021.344%200%200%200%200-35.52l-196.224-130.784a21.344%2021.344%200%200%200-33.152%2017.728z'%20fill='%23000000'%20p-id='16391'%3e%3c/path%3e%3c/svg%3e", Vr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709780461968'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='20299'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M813.812907%20828.826855l-31.770588%200%200%200L241.960751%20828.826855l-0.004093%200-31.766494%200c-35.092239%200-63.541175-28.369118-63.541175-63.365166L146.648988%20337.743234c0-34.996049%2028.448936-63.365166%2063.541175-63.365166l31.766494%200%200.004093%200%200%200%20103.249549%200%2039.709397-63.365166c0-8.749268%2022.99983-15.84078%2031.774681-15.84078l190.614315%200c8.769734%200%2031.770588%207.091512%2031.770588%2015.84078l39.712467%2063.365166%20103.250572%200%2031.770588%200c35.092239%200%2063.537082%2028.369118%2063.537082%2063.365166l0%20427.718455C877.349989%20800.457738%20848.905146%20828.826855%20813.812907%20828.826855L813.812907%20828.826855zM512.001023%20337.743234c-114.046453%200-206.504214%2092.201935-206.504214%20205.940372%200%20113.739461%2092.457762%20205.936279%20206.504214%20205.936279%20114.043383%200%20206.496028-92.196819%20206.500121-205.928093l0-0.016373C718.497051%20429.941076%20626.044406%20337.743234%20512.001023%20337.743234L512.001023%20337.743234zM512.001023%20686.254719c-78.958306%200-142.963039-63.828724-142.963039-142.571113%200-78.738295%2064.004733-142.571113%20142.963039-142.571113%2078.955236%200%20142.963039%2063.832817%20142.963039%20142.571113C654.964062%20622.425995%20590.95626%20686.254719%20512.001023%20686.254719L512.001023%20686.254719zM512.001023%20686.254719'%20fill='%23272636'%20p-id='20300'%3e%3c/path%3e%3c/svg%3e", Pr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709785409899'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='37829'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%200C230.4%200%200%20230.4%200%20512s230.4%20512%20512%20512%20512-230.4%20512-512-230.4-512-512-512z%20m0%20960c-249.6%200-448-198.4-448-448s198.4-448%20448-448%20448%20198.4%20448%20448-198.4%20448-448%20448z'%20fill='%23333333'%20p-id='37830'%3e%3c/path%3e%3cpath%20d='M352%20352h320v320h-320z'%20fill='%23333333'%20p-id='37831'%3e%3c/path%3e%3c/svg%3e", Ur = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1709785373002'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='30220'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M392.256%20515.008a119.744%20119.744%200%201%200%20239.488%200%20119.744%20119.744%200%201%200-239.488%200z'%20fill='%23333333'%20p-id='30221'%3e%3c/path%3e%3cpath%20d='M512%2068.032A447.488%20447.488%200%200%200%2065.024%20515.008%20447.424%20447.424%200%200%200%20512%20961.984a447.424%20447.424%200%200%200%20446.976-446.976A447.424%20447.424%200%200%200%20512%2068.032z%20m0%20829.952c-211.2%200-382.976-171.84-382.976-382.976S300.8%20132.032%20512%20132.032s382.976%20171.84%20382.976%20382.976S723.2%20897.984%20512%20897.984z'%20fill='%23333333'%20p-id='30222'%3e%3c/path%3e%3c/svg%3e", zr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1712145583790'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5884'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M734.165333%20350.165333l-384%20384L469.333333%20853.333333H170.666667v-298.666666l119.168%20119.168%20384-384L554.666667%20170.666667h298.666666v298.666666l-119.168-119.168zM256%20256v192H170.666667V170.666667h256v85.333333H256z%20m512%20512v-170.666667h85.333333v256h-256v-85.333333h170.666667z'%20fill='%234B4F54'%20p-id='5885'%3e%3c/path%3e%3c/svg%3e", qr = "data:image/svg+xml,%3csvg%20t='1714370428406'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='4557'%20width='200'%20height='200'%3e%3cpath%20d='M213.333333%20213.333333h213.333334V128H170.666667a42.666667%2042.666667%200%200%200-42.666667%2042.666667v256h85.333333V213.333333zM170.666667%20896h256v-85.333333H213.333333v-213.333334H128v256a42.666667%2042.666667%200%200%200%2042.666667%2042.666667z%20m725.333333-42.666667v-256h-85.333333v213.333334h-213.333334v85.333333h256a42.666667%2042.666667%200%200%200%2042.666667-42.666667zM597.333333%20213.333333h213.333334v213.333334h85.333333V170.666667a42.666667%2042.666667%200%200%200-42.666667-42.666667h-256v85.333333z'%20fill='%23515151'%20p-id='4558'%3e%3c/path%3e%3c/svg%3e", Wt = {
52
52
  left: Lr,
53
53
  right: Ir,
54
- up: Or,
55
- down: Fr,
54
+ up: Fr,
55
+ down: Or,
56
56
  attach: Nr,
57
57
  audio: Yr,
58
58
  video: Hr,
@@ -66,18 +66,19 @@ const Lr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
66
66
  for (const [w, V] of s)
67
67
  x[w] = V;
68
68
  return x;
69
- }, jr = (a) => (ar("data-v-e6b954dd"), a = a(), ir(), a), Gr = ["contenteditable"], Wr = /* @__PURE__ */ jr(() => /* @__PURE__ */ Qe("span", {
69
+ }, jr = ["contenteditable"], Gr = {
70
+ key: 0,
70
71
  class: "holder holder-left",
71
72
  contenteditable: "true",
72
73
  tabindex: "-1"
73
- }, null, -1)), Xr = {
74
+ }, Wr = {
74
75
  class: "node-element",
75
76
  contenteditable: "false"
76
- }, Kr = ["src", "width", "height"], Zr = ["src"], $r = ["src", "width", "height", "poster"], Qr = {
77
+ }, Xr = ["src", "width", "height"], Kr = ["src"], Zr = ["src", "width", "height", "poster"], $r = {
77
78
  key: 3,
78
79
  contenteditable: !1,
79
80
  class: "node-file-wrap"
80
- }, Jr = { class: "node-file-left" }, ea = { class: "node-file-right" }, ta = ["href", "download"], ra = {
81
+ }, Qr = { class: "node-file-left" }, Jr = { class: "node-file-right" }, ea = ["href", "download"], ta = {
81
82
  __name: "media",
82
83
  props: {
83
84
  readOnly: {
@@ -150,7 +151,7 @@ const Lr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
150
151
  };
151
152
  document.documentElement.addEventListener("mousemove", Ge, !1), document.documentElement.addEventListener("mouseup", Ve, !1);
152
153
  }
153
- return (_e, De) => (Je(), it("div", {
154
+ return (_e, De) => ($e(), it("div", {
154
155
  class: "node-text",
155
156
  ref_key: "element",
156
157
  ref: _,
@@ -159,29 +160,29 @@ const Lr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
159
160
  onFocusin: kt(Te, ["stop", "self"]),
160
161
  onClick: kt(ce, ["stop"])
161
162
  }, [
162
- Qe("div", {
163
+ Je("div", {
163
164
  contenteditable: !1,
164
165
  class: Pt(`node-complex node-${a.data.type}`)
165
166
  }, [
166
- Wr,
167
- Qe("div", Xr, [
168
- a.data.type === "image" ? (Je(), it("img", {
167
+ a.readOnly ? Rt("", !0) : ($e(), it("span", Gr)),
168
+ Je("div", Wr, [
169
+ a.data.type === "image" ? ($e(), it("img", {
169
170
  key: 0,
170
171
  ref_key: "resource",
171
172
  ref: E,
172
173
  src: a.data.content,
173
174
  width: a.data.size ? a.data.size.width : 80,
174
175
  height: a.data.size ? a.data.size.height : 80
175
- }, null, 8, Kr)) : Tt("", !0),
176
- a.data.type === "audio" ? (Je(), it("audio", {
176
+ }, null, 8, Xr)) : Rt("", !0),
177
+ a.data.type === "audio" ? ($e(), it("audio", {
177
178
  key: 1,
178
179
  ref_key: "resource",
179
180
  ref: E,
180
181
  src: a.data.content,
181
182
  controls: "",
182
183
  width: "300"
183
- }, null, 8, Zr)) : Tt("", !0),
184
- a.data.type === "video" ? (Je(), it("video", {
184
+ }, null, 8, Kr)) : Rt("", !0),
185
+ a.data.type === "video" ? ($e(), it("video", {
185
186
  key: 2,
186
187
  ref_key: "resource",
187
188
  ref: E,
@@ -189,64 +190,65 @@ const Lr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
189
190
  controls: "",
190
191
  width: a.data.size ? a.data.size.width : 300,
191
192
  height: a.data.size ? a.data.size.width : 300,
192
- poster: Ft(x) ? "data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=" : null
193
- }, null, 8, $r)) : Tt("", !0),
194
- a.data.type === "file" ? (Je(), it("div", Qr, [
195
- Qe("div", Jr, [
196
- Qe("h6", null, o0(Ft(br)(a.data.name, 20)), 1),
197
- Qe("p", null, o0(Ft(wr)(a.data.size)), 1)
193
+ poster: Ot(x) ? "data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=" : null
194
+ }, null, 8, Zr)) : Rt("", !0),
195
+ a.data.type === "file" ? ($e(), it("div", $r, [
196
+ Je("div", Qr, [
197
+ Je("h6", null, o0(Ot(mr)(a.data.name, 20)), 1),
198
+ Je("p", null, o0(Ot(pr)(a.data.size)), 1)
198
199
  ]),
199
- Qe("div", ea, [
200
- Qe("a", {
200
+ Je("div", Jr, [
201
+ Je("a", {
201
202
  href: a.data.content,
202
203
  download: a.data.name,
203
204
  tabindex: "-1"
204
- }, "下载", 8, ta)
205
+ }, "下载", 8, ea)
205
206
  ])
206
- ])) : Tt("", !0),
207
- !Ft(x) && (a.data.type === "image" || a.data.type === "video") ? (Je(), it("div", {
207
+ ])) : Rt("", !0),
208
+ !Ot(x) && (a.data.type === "image" || a.data.type === "video") ? ($e(), it("div", {
208
209
  key: 4,
209
210
  class: "resize-handle",
210
211
  ref_key: "resizableBox",
211
212
  ref: Y,
212
213
  onMousedown: kt(se, ["prevent", "stop"])
213
214
  }, [
214
- Rt(Ft(Jt), {
215
- src: Ft(Wt).resize,
215
+ Tt(Ot(Jt), {
216
+ src: Ot(Wt).resize,
216
217
  width: 15,
217
218
  height: 15
218
219
  }, null, 8, ["src"])
219
- ], 544)) : Tt("", !0),
220
- !Ft(x) && a.data.type === "image" ? (Je(), it("div", {
220
+ ], 544)) : Rt("", !0),
221
+ !Ot(x) && a.data.type === "image" ? ($e(), it("div", {
221
222
  key: 5,
222
223
  class: "fullscreen-handle",
223
224
  ref_key: "fullscreenBox",
224
225
  ref: ae,
225
226
  onMousedown: kt(re, ["prevent", "stop"])
226
227
  }, [
227
- Rt(Ft(Jt), {
228
- src: Ft(Wt).fullscreen,
228
+ Tt(Ot(Jt), {
229
+ src: Ot(Wt).fullscreen,
229
230
  width: 15,
230
231
  height: 15
231
232
  }, null, 8, ["src"])
232
- ], 544)) : Tt("", !0),
233
- a.readOnly ? Tt("", !0) : (Je(), it("div", {
233
+ ], 544)) : Rt("", !0),
234
+ a.readOnly ? Rt("", !0) : ($e(), it("div", {
234
235
  key: 6,
235
236
  class: "node-del",
236
237
  onClick: kt(Be, ["stop"])
237
238
  }))
238
239
  ]),
239
- Qe("span", {
240
+ a.readOnly ? Rt("", !0) : ($e(), it("span", {
241
+ key: 1,
240
242
  ref_key: "holderRight",
241
243
  ref: Q,
242
244
  class: "holder holder-right",
243
245
  contenteditable: "true",
244
246
  tabindex: "-1"
245
- }, null, 512)
247
+ }, null, 512))
246
248
  ], 2)
247
- ], 40, Gr));
249
+ ], 40, jr));
248
250
  }
249
- }, aa = /* @__PURE__ */ zt(ra, [["__scopeId", "data-v-e6b954dd"]]), nr = "date-popover", A0 = {
251
+ }, ra = /* @__PURE__ */ zt(ta, [["__scopeId", "data-v-4ec3ee0d"]]), ar = "date-popover", A0 = {
250
252
  现在: () => at().format("YYYY-MM-DD HH:mm:ss"),
251
253
  前天: () => at().subtract(2, "day").format("YYYY-MM-DD"),
252
254
  前日: () => at().subtract(2, "day").format("YYYY-MM-DD"),
@@ -294,25 +296,25 @@ const Lr = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
294
296
  上上周今天: () => at().subtract(2, "week").format("YYYY-MM-DD"),
295
297
  下下个月: () => at().add(2, "month").format("YYYY-MM"),
296
298
  下下周今天: () => at().add(2, "week").format("YYYY-MM-DD")
297
- }, sr = Object.keys(A0);
298
- sr.sort((a, s) => s.length - a.length);
299
- const or = (a) => a.tagName.toLowerCase() === "mark", D0 = () => {
300
- document.querySelectorAll(`.${nr}`).forEach((s) => {
299
+ }, ir = Object.keys(A0);
300
+ ir.sort((a, s) => s.length - a.length);
301
+ const nr = (a) => a.tagName.toLowerCase() === "mark", D0 = () => {
302
+ document.querySelectorAll(`.${ar}`).forEach((s) => {
301
303
  s.remove();
302
304
  });
303
305
  }, X0 = (a) => {
304
- if (or(a.target)) {
306
+ if (nr(a.target)) {
305
307
  D0();
306
308
  const s = a.target.innerText;
307
309
  if (A0[s]) {
308
310
  const x = document.createElement("div");
309
- x.classList.add(nr);
311
+ x.classList.add(ar);
310
312
  const { top: w, left: V, width: _ } = a.target.getBoundingClientRect();
311
313
  x.innerText = A0[s](), x.style.top = `${w}px`, x.style.left = `${V + parseInt(_ / 2)}px`, document.body.appendChild(x);
312
314
  }
313
315
  }
314
316
  }, K0 = (a) => {
315
- or(a.target) && D0();
317
+ nr(a.target) && D0();
316
318
  }, c0 = {
317
319
  install(a) {
318
320
  a.addEventListener("mouseover", X0), a.addEventListener("mouseout", K0);
@@ -321,13 +323,13 @@ const or = (a) => a.tagName.toLowerCase() === "mark", D0 = () => {
321
323
  a && (a.removeEventListener("mouseover", X0), a.removeEventListener("mouseout", K0));
322
324
  },
323
325
  getHtml(a) {
324
- const s = new RegExp(`(${sr.join("|")})`, "g");
326
+ const s = new RegExp(`(${ir.join("|")})`, "g");
325
327
  return a.replace(/<\/?mark>/g, "").replace(s, "<mark>$1</mark>");
326
328
  },
327
329
  clear() {
328
330
  D0();
329
331
  }
330
- }, ia = {
332
+ }, aa = {
331
333
  __name: "text",
332
334
  props: {
333
335
  content: {
@@ -337,6 +339,10 @@ const or = (a) => a.tagName.toLowerCase() === "mark", D0 = () => {
337
339
  readOnly: {
338
340
  type: Boolean,
339
341
  default: !1
342
+ },
343
+ globalFocusFn: {
344
+ type: String,
345
+ default: ""
340
346
  }
341
347
  },
342
348
  emits: ["change", "keydown", "focus"],
@@ -389,22 +395,24 @@ const or = (a) => a.tagName.toLowerCase() === "mark", D0 = () => {
389
395
  () => {
390
396
  Y != null && Y.value && Y.value.setEditable(!w.readOnly);
391
397
  }
392
- ), Sr(() => {
398
+ ), gr(() => {
393
399
  const Q = x.value.rootEl;
394
400
  Q.addEventListener("dblclick", () => {
395
401
  Y.value.commands.selectAll();
396
- }), c0.install(Q);
397
- }), Rr(() => {
402
+ }), c0.install(Q), w.globalFocusFn && (window[w.globalFocusFn] = () => {
403
+ Y.value && Y.value.commands.focus();
404
+ });
405
+ }), xr(() => {
398
406
  Y.value.destroy(), c0.uninstall(x.value.rootEl);
399
- }), (Q, ce) => (Je(), Nt(Ft(Ar), {
400
- editor: Ft(Y),
407
+ }), (Q, ce) => ($e(), Nt(Ot(Ar), {
408
+ editor: Ot(Y),
401
409
  ref_key: "container",
402
410
  ref: x,
403
411
  onCompositionstart: ce[0] || (ce[0] = kt((Ce) => _.value = !0, ["stop"])),
404
412
  onCompositionend: kt(ae, ["stop"])
405
413
  }, null, 8, ["editor"]));
406
414
  }
407
- }, lr = {
415
+ }, sr = {
408
416
  __name: "index",
409
417
  props: {
410
418
  data: {
@@ -415,6 +423,10 @@ const or = (a) => a.tagName.toLowerCase() === "mark", D0 = () => {
415
423
  readOnly: {
416
424
  type: Boolean,
417
425
  default: !1
426
+ },
427
+ globalFocusFn: {
428
+ type: String,
429
+ default: ""
418
430
  }
419
431
  },
420
432
  emits: ["change", "keydown", "focus", "remove"],
@@ -438,7 +450,7 @@ const or = (a) => a.tagName.toLowerCase() === "mark", D0 = () => {
438
450
  function ae(Q) {
439
451
  return (Q || "").replace("contenteditable", "temp");
440
452
  }
441
- return (Q, ce) => a.data.type ? (Je(), Nt(Ft(aa), {
453
+ return (Q, ce) => a.data.type ? ($e(), Nt(Ot(ra), {
442
454
  key: 0,
443
455
  data: a.data,
444
456
  readOnly: a.readOnly,
@@ -446,29 +458,30 @@ const or = (a) => a.tagName.toLowerCase() === "mark", D0 = () => {
446
458
  onKeydown: V,
447
459
  onFocus: _,
448
460
  onRemove: E
449
- }, null, 8, ["data", "readOnly"])) : (Je(), Nt(Ft(ia), {
461
+ }, null, 8, ["data", "readOnly"])) : ($e(), Nt(Ot(aa), {
450
462
  key: 1,
463
+ globalFocusFn: a.globalFocusFn,
451
464
  content: a.readOnly ? ae(a.data.text) : a.data.text,
452
465
  readOnly: a.readOnly,
453
466
  onChange: Y,
454
467
  onKeydown: V,
455
468
  onFocus: _
456
- }, null, 8, ["content", "readOnly"]));
469
+ }, null, 8, ["globalFocusFn", "content", "readOnly"]));
457
470
  }
458
471
  };
459
- function ur(a) {
472
+ function or(a) {
460
473
  var Y;
461
474
  let x = (((Y = a.target) == null ? void 0 : Y.querySelector(".node-div")) || a.target).getBoundingClientRect(), w = a.clientY, V = x.top + x.height / 3, _ = x.top + x.height / 3 * 2;
462
475
  return w < V ? "top" : w < _ ? "center" : "bottom";
463
476
  }
464
- function na(a) {
477
+ function ia(a) {
465
478
  return /<(img|audio|video)/.test(a.text) || a.type;
466
479
  }
467
- function sa(a) {
480
+ function na(a) {
468
481
  return a && a.uuid ? document.getElementById(a.uuid) : null;
469
482
  }
470
483
  function Yt(a, s = !1) {
471
- const x = sa(a), w = ".node-text";
484
+ const x = na(a), w = ".node-text";
472
485
  if (s) {
473
486
  const V = x.querySelectorAll(w);
474
487
  return V[V.length - 1];
@@ -480,7 +493,7 @@ function k0() {
480
493
  document.querySelectorAll(`.${a}`).forEach((s) => s.classList.remove(a));
481
494
  });
482
495
  }
483
- function oa(a, s) {
496
+ function sa(a, s) {
484
497
  var Y;
485
498
  const x = a.currentTarget, w = Bt.dragId ? document.getElementById(Bt.dragId) : null;
486
499
  if (!x || Bt.dragId === s.uuid || w != null && w.querySelector(`[id="${s.uuid}"]`)) {
@@ -488,10 +501,10 @@ function oa(a, s) {
488
501
  return;
489
502
  }
490
503
  k0();
491
- const V = ur(a), _ = (Y = x.querySelector(".node-div")) == null ? void 0 : Y.classList;
504
+ const V = or(a), _ = (Y = x.querySelector(".node-div")) == null ? void 0 : Y.classList;
492
505
  _ && _.add(`drag-over-${V}`);
493
506
  }
494
- function la(a) {
507
+ function oa(a) {
495
508
  const x = new DOMParser().parseFromString(a, "text/html"), w = x.querySelector("img"), V = x.querySelector("video"), _ = x.querySelector("audio");
496
509
  return w ? {
497
510
  type: "image",
@@ -510,11 +523,11 @@ function B0(a, s, x = !0) {
510
523
  (V) => V.uuid === a.uuid || (x ? B0(a, V) : !1)
511
524
  ) : !1;
512
525
  }
513
- function ua(a) {
526
+ function la(a) {
514
527
  const s = a.getBoundingClientRect();
515
528
  return s.top >= 0 && s.left >= 0 && s.bottom <= (window.innerHeight || document.documentElement.clientHeight) && s.right <= (window.innerWidth || document.documentElement.clientWidth);
516
529
  }
517
- function dr(a = !0) {
530
+ function lr(a = !0) {
518
531
  const s = document.querySelector(".record-tree-options");
519
532
  if (!s)
520
533
  return;
@@ -522,7 +535,7 @@ function dr(a = !0) {
522
535
  window.visualViewport.height < x && (s.style.display = "none", setTimeout(() => {
523
536
  if (s.style.display = "", a) {
524
537
  const _ = Bt.currentId, Y = Yt({ uuid: _ });
525
- ua(Y) || Y.scrollIntoView({
538
+ la(Y) || Y.scrollIntoView({
526
539
  behavior: "smooth",
527
540
  block: "center"
528
541
  });
@@ -533,9 +546,9 @@ function dr(a = !0) {
533
546
  window.removeEventListener("resize", w);
534
547
  }, 500);
535
548
  }
536
- const da = {
549
+ const ua = {
537
550
  components: {
538
- Editor: lr
551
+ Editor: sr
539
552
  },
540
553
  props: {
541
554
  node: {
@@ -561,7 +574,7 @@ const da = {
561
574
  methods: {
562
575
  handleFocus() {
563
576
  const a = this.node;
564
- Bt.currentId = a.uuid, this.isMobile && dr();
577
+ Bt.currentId = a.uuid, this.isMobile && lr();
565
578
  },
566
579
  handleKeydown(a, ...s) {
567
580
  switch (a.key) {
@@ -635,18 +648,18 @@ const da = {
635
648
  this.$emit("change", a);
636
649
  }
637
650
  }
638
- }, ca = {
651
+ }, da = {
639
652
  class: "node-div",
640
653
  ref: "row"
641
654
  };
642
- function fa(a, s, x, w, V, _) {
655
+ function ca(a, s, x, w, V, _) {
643
656
  const Y = Et("Editor");
644
- return Je(), it("div", ca, [
645
- Qe("span", {
657
+ return $e(), it("div", da, [
658
+ Je("span", {
646
659
  class: "node-icon",
647
660
  onClick: s[0] || (s[0] = kt((E) => a.$emit("collapse", x.node), ["stop"]))
648
661
  }),
649
- Rt(Y, {
662
+ Tt(Y, {
650
663
  readOnly: x.readOnly,
651
664
  data: x.node,
652
665
  onChange: _.update,
@@ -656,9 +669,9 @@ function fa(a, s, x, w, V, _) {
656
669
  }, null, 8, ["readOnly", "data", "onChange", "onKeydown", "onFocus", "onRemove"])
657
670
  ], 512);
658
671
  }
659
- const ha = /* @__PURE__ */ zt(da, [["render", fa], ["__scopeId", "data-v-503978cf"]]), va = {
672
+ const fa = /* @__PURE__ */ zt(ua, [["render", ca], ["__scopeId", "data-v-503978cf"]]), ha = {
660
673
  name: "tree-editor",
661
- components: { Node: ha },
674
+ components: { Node: fa },
662
675
  props: {
663
676
  nodes: {
664
677
  type: Array,
@@ -706,7 +719,7 @@ const ha = /* @__PURE__ */ zt(da, [["render", fa], ["__scopeId", "data-v-503978c
706
719
  }
707
720
  },
708
721
  methods: {
709
- handleDragOver: oa,
722
+ handleDragOver: sa,
710
723
  handleDragLeave: k0,
711
724
  handleDragStart(a, s) {
712
725
  a.currentTarget.classList.add("dragging"), a.dataTransfer.setData("dragNode", JSON.stringify(s)), W0.on("dragEnd", () => {
@@ -724,7 +737,7 @@ const ha = /* @__PURE__ */ zt(da, [["render", fa], ["__scopeId", "data-v-503978c
724
737
  this.addFiles(x, s);
725
738
  else {
726
739
  let w = a.dataTransfer.getData("dragNode");
727
- const V = ur(a);
740
+ const V = or(a);
728
741
  try {
729
742
  w = JSON.parse(w);
730
743
  } catch {
@@ -904,8 +917,8 @@ const ha = /* @__PURE__ */ zt(da, [["render", fa], ["__scopeId", "data-v-503978c
904
917
  precheck() {
905
918
  let a = !1;
906
919
  this.nodes.forEach((s) => {
907
- if (s.uuid || (s.uuid = Ht(), a = !0), na(s) && !s.type) {
908
- const x = la(s.text);
920
+ if (s.uuid || (s.uuid = Ht(), a = !0), ia(s) && !s.type) {
921
+ const x = oa(s.text);
909
922
  x && (s.type = x.type, s.content = x.content), a = !0;
910
923
  }
911
924
  }), a ? this.update() : this.ensureStatus(this.nodes);
@@ -931,24 +944,24 @@ const ha = /* @__PURE__ */ zt(da, [["render", fa], ["__scopeId", "data-v-503978c
931
944
  this.sublevel || console.log("=== nodes树更新 ==="), this.ensureStatus(a), this.$emit("change", [...a]);
932
945
  }
933
946
  }
934
- }, _a = {
947
+ }, va = {
935
948
  key: 0,
936
949
  class: /* @__PURE__ */ Pt({
937
950
  "node-ul": !0,
938
951
  readOnly: !0,
939
952
  sublevel: !0
940
953
  })
941
- }, ma = ["id"], pa = {
954
+ }, _a = ["id"], ma = {
942
955
  key: 1,
943
956
  class: /* @__PURE__ */ Pt({
944
957
  "node-ul": !0,
945
958
  sublevel: !0
946
959
  })
947
- }, ba = ["id", "onDragstart", "onDragover", "onDragend", "onDrop", "onDragleave", "onPaste"];
948
- function wa(a, s, x, w, V, _) {
960
+ }, pa = ["id", "onDragstart", "onDragover", "onDragend", "onDrop", "onDragleave", "onPaste"];
961
+ function ba(a, s, x, w, V, _) {
949
962
  const Y = Et("Node"), E = Et("tree-editor");
950
- return x.readOnly ? (Je(), it("ul", _a, [
951
- (Je(!0), it(M0, null, C0(_.filterNodes(x.nodes), (ae) => (Je(), it("li", {
963
+ return x.readOnly ? ($e(), it("ul", va, [
964
+ ($e(!0), it(M0, null, C0(_.filterNodes(x.nodes), (ae) => ($e(), it("li", {
952
965
  key: ae.uuid,
953
966
  id: `${ae.uuid}`,
954
967
  class: Pt({
@@ -957,21 +970,21 @@ function wa(a, s, x, w, V, _) {
957
970
  "has-child": !!(ae.children || []).length
958
971
  })
959
972
  }, [
960
- Rt(Y, {
973
+ Tt(Y, {
961
974
  readOnly: "",
962
975
  node: ae,
963
976
  isMobile: x.isMobile,
964
977
  onCollapse: _.handleCollapse
965
978
  }, null, 8, ["node", "isMobile", "onCollapse"]),
966
- (ae.children || []).length ? (Je(), Nt(E, {
979
+ (ae.children || []).length ? ($e(), Nt(E, {
967
980
  key: 0,
968
981
  nodes: ae.children,
969
982
  sublevel: !0,
970
983
  isMobile: x.isMobile
971
- }, null, 8, ["nodes", "isMobile"])) : Tt("", !0)
972
- ], 10, ma))), 128))
973
- ])) : (Je(), it("ul", pa, [
974
- (Je(!0), it(M0, null, C0(_.filterNodes(x.nodes), (ae) => (Je(), it("li", {
984
+ }, null, 8, ["nodes", "isMobile"])) : Rt("", !0)
985
+ ], 10, _a))), 128))
986
+ ])) : ($e(), it("ul", ma, [
987
+ ($e(!0), it(M0, null, C0(_.filterNodes(x.nodes), (ae) => ($e(), it("li", {
975
988
  key: ae.uuid,
976
989
  id: `${ae.uuid}`,
977
990
  ref_for: !0,
@@ -989,7 +1002,7 @@ function wa(a, s, x, w, V, _) {
989
1002
  onDragleave: kt((Q) => _.handleDragLeave(Q, ae), ["stop"]),
990
1003
  onPaste: kt((Q) => _.handlePaste(Q, ae), ["stop"])
991
1004
  }, [
992
- Rt(Y, {
1005
+ Tt(Y, {
993
1006
  node: ae,
994
1007
  isMobile: x.isMobile,
995
1008
  onChange: _.handleNodeChange,
@@ -1001,7 +1014,7 @@ function wa(a, s, x, w, V, _) {
1001
1014
  onTab: _.handleTab,
1002
1015
  onRemove: _.handleRemove
1003
1016
  }, null, 8, ["node", "isMobile", "onChange", "onToPrevFocus", "onToNextFocus", "onToFocus", "onCollapse", "onEnter", "onTab", "onRemove"]),
1004
- (ae.children || []).length ? (Je(), Nt(E, {
1017
+ (ae.children || []).length ? ($e(), Nt(E, {
1005
1018
  key: 0,
1006
1019
  nodes: ae.children,
1007
1020
  enableDbEnter: x.enableDbEnter,
@@ -1015,18 +1028,18 @@ function wa(a, s, x, w, V, _) {
1015
1028
  onTransfer: (Q) => _.handleTransfer(ae, Q),
1016
1029
  onFileUpload: s[0] || (s[0] = (...Q) => a.$emit("fileUpload", ...Q)),
1017
1030
  onDbEnter: _.handleDbEnter
1018
- }, null, 8, ["nodes", "enableDbEnter", "hash", "isMobile", "onChange", "onFocusPrev", "onFocusNext", "onTransfer", "onDbEnter"])) : Tt("", !0)
1019
- ], 42, ba))), 128))
1031
+ }, null, 8, ["nodes", "enableDbEnter", "hash", "isMobile", "onChange", "onFocusPrev", "onFocusNext", "onTransfer", "onDbEnter"])) : Rt("", !0)
1032
+ ], 42, pa))), 128))
1020
1033
  ]));
1021
1034
  }
1022
- const ya = /* @__PURE__ */ zt(va, [["render", wa], ["__scopeId", "data-v-46aab851"]]), ga = {
1035
+ const wa = /* @__PURE__ */ zt(ha, [["render", ba], ["__scopeId", "data-v-46aab851"]]), ya = {
1023
1036
  components: {
1024
1037
  Popper: Dr
1025
1038
  }
1026
1039
  };
1027
- function xa(a, s, x, w, V, _) {
1040
+ function ga(a, s, x, w, V, _) {
1028
1041
  const Y = Et("Popper");
1029
- return Je(), Nt(Y, { hover: "" }, {
1042
+ return $e(), Nt(Y, { hover: "" }, {
1030
1043
  content: h0(() => [
1031
1044
  G0(a.$slots, "default", {}, void 0, !0)
1032
1045
  ]),
@@ -1036,7 +1049,7 @@ function xa(a, s, x, w, V, _) {
1036
1049
  _: 3
1037
1050
  });
1038
1051
  }
1039
- const Sa = /* @__PURE__ */ zt(ga, [["render", xa], ["__scopeId", "data-v-f14c9a1f"]]), Ra = {
1052
+ const xa = /* @__PURE__ */ zt(ya, [["render", ga], ["__scopeId", "data-v-f14c9a1f"]]), Sa = {
1040
1053
  show: !0,
1041
1054
  // tag总开关,false时取消tag所有功能
1042
1055
  tagSize: 20,
@@ -1049,12 +1062,12 @@ const Sa = /* @__PURE__ */ zt(ga, [["render", xa], ["__scopeId", "data-v-f14c9a1
1049
1062
  // 图标定位left值
1050
1063
  tagT: "3px"
1051
1064
  // 图标定位top值
1052
- }, Ta = {
1065
+ }, Ra = {
1053
1066
  name: "recordTree",
1054
1067
  components: {
1055
1068
  InlineSvg: Jt,
1056
- Picker: Sa,
1057
- Editor: lr
1069
+ Picker: xa,
1070
+ Editor: sr
1058
1071
  },
1059
1072
  props: {
1060
1073
  title: {
@@ -1087,7 +1100,7 @@ const Sa = /* @__PURE__ */ zt(ga, [["render", xa], ["__scopeId", "data-v-f14c9a1
1087
1100
  data() {
1088
1101
  return {
1089
1102
  timeout: null,
1090
- tagConfig: { ...Ra },
1103
+ tagConfig: { ...Sa },
1091
1104
  icon: Wt,
1092
1105
  isMobile: E0() === "mobile",
1093
1106
  titleEmpty: !1
@@ -1099,7 +1112,7 @@ const Sa = /* @__PURE__ */ zt(ga, [["render", xa], ["__scopeId", "data-v-f14c9a1
1099
1112
  const a = this.tags.find((x) => x.created_at === this.tagId);
1100
1113
  return {
1101
1114
  ...a,
1102
- icon: a ? (s = yr(a.icon)) == null ? void 0 : s.value : ""
1115
+ icon: a ? (s = br(a.icon)) == null ? void 0 : s.value : ""
1103
1116
  };
1104
1117
  },
1105
1118
  tagNames() {
@@ -1126,10 +1139,13 @@ const Sa = /* @__PURE__ */ zt(ga, [["render", xa], ["__scopeId", "data-v-f14c9a1
1126
1139
  immediate: !0
1127
1140
  }
1128
1141
  },
1142
+ mounted() {
1143
+ console.log(this.$refs.editor);
1144
+ },
1129
1145
  methods: {
1130
1146
  // 根据svg的icon名找到svg实体
1131
1147
  getSvgUrl(a) {
1132
- const s = gr.find((x) => x.name === a.icon);
1148
+ const s = wr.find((x) => x.name === a.icon);
1133
1149
  return (s == null ? void 0 : s.value) || "";
1134
1150
  },
1135
1151
  // 选择tag图标
@@ -1140,7 +1156,7 @@ const Sa = /* @__PURE__ */ zt(ga, [["render", xa], ["__scopeId", "data-v-f14c9a1
1140
1156
  });
1141
1157
  },
1142
1158
  handleTitleFocus() {
1143
- this.isMobile && dr(!1);
1159
+ this.isMobile && lr(!1);
1144
1160
  },
1145
1161
  handleChange(a) {
1146
1162
  if (a.type)
@@ -1168,7 +1184,7 @@ const Sa = /* @__PURE__ */ zt(ga, [["render", xa], ["__scopeId", "data-v-f14c9a1
1168
1184
  },
1169
1185
  // 标题enter输入
1170
1186
  handleTitleEnter(a) {
1171
- a.preventDefault(), this.enableDbEnter ? this.timeout ? (clearTimeout(this.timeout), this.timeout = null, this.handleTitleBlur(a), this.$emit("dbEnter")) : this.timeout = setTimeout(() => {
1187
+ a.preventDefault(), this.enableDbEnter ? this.timeout ? (clearTimeout(this.timeout), this.timeout = null, this.$emit("dbEnter")) : this.timeout = setTimeout(() => {
1172
1188
  this.timeout = null, this.$emit("focusContent");
1173
1189
  }, 180) : this.$emit("focusContent");
1174
1190
  },
@@ -1223,13 +1239,13 @@ const Sa = /* @__PURE__ */ zt(ga, [["render", xa], ["__scopeId", "data-v-f14c9a1
1223
1239
  });
1224
1240
  }
1225
1241
  }
1226
- }, Ma = { class: "record-tree-title-bar" }, Ca = ["onClick"];
1227
- function Aa(a, s, x, w, V, _) {
1242
+ }, Ta = { class: "record-tree-title-bar" }, Ma = ["onClick"];
1243
+ function Ca(a, s, x, w, V, _) {
1228
1244
  const Y = Et("inline-svg"), E = Et("Picker"), ae = Et("Editor");
1229
- return Je(), it("div", Ma, [
1230
- x.tags.length ? (Je(), Nt(E, { key: 0 }, Tr({
1245
+ return $e(), it("div", Ta, [
1246
+ x.tags.length ? ($e(), Nt(E, { key: 0 }, Sr({
1231
1247
  trigger: h0(() => [
1232
- Qe("span", {
1248
+ Je("span", {
1233
1249
  class: "record-tree-popper-reference",
1234
1250
  style: Gt({
1235
1251
  backgroundColor: _.curTag.color,
@@ -1237,13 +1253,13 @@ function Aa(a, s, x, w, V, _) {
1237
1253
  left: V.tagConfig.tagL
1238
1254
  })
1239
1255
  }, [
1240
- _.curTag.icon ? (Je(), Nt(Y, {
1256
+ _.curTag.icon ? ($e(), Nt(Y, {
1241
1257
  key: 0,
1242
1258
  class: "record-tree-svg",
1243
1259
  src: _.curTag.icon,
1244
1260
  width: V.tagConfig.tagSize,
1245
1261
  height: V.tagConfig.tagSize
1246
- }, null, 8, ["src", "width", "height"])) : (Je(), it("span", {
1262
+ }, null, 8, ["src", "width", "height"])) : ($e(), it("span", {
1247
1263
  key: 1,
1248
1264
  class: "record-tree-svg",
1249
1265
  style: Gt({
@@ -1259,23 +1275,23 @@ function Aa(a, s, x, w, V, _) {
1259
1275
  x.readOnly ? void 0 : {
1260
1276
  name: "default",
1261
1277
  fn: h0(() => [
1262
- Qe("div", {
1278
+ Je("div", {
1263
1279
  class: "record-tree-popper-content",
1264
1280
  style: Gt({ width: V.tagConfig.popW, height: V.tagConfig.popH })
1265
1281
  }, [
1266
- (Je(!0), it(M0, null, C0(x.tags, (Q, ce) => (Je(), it("span", {
1282
+ ($e(!0), it(M0, null, C0(x.tags, (Q, ce) => ($e(), it("span", {
1267
1283
  class: "record-tree-popper-content-item",
1268
1284
  key: ce,
1269
1285
  onClick: (Ce) => _.tagSelect(Q)
1270
1286
  }, [
1271
- _.getSvgUrl(Q) ? (Je(), Nt(Y, {
1287
+ _.getSvgUrl(Q) ? ($e(), Nt(Y, {
1272
1288
  key: 0,
1273
1289
  class: "record-tree-svg",
1274
1290
  src: _.getSvgUrl(Q),
1275
1291
  width: V.tagConfig.tagSize,
1276
1292
  height: V.tagConfig.tagSize,
1277
1293
  style: Gt({ backgroundColor: Q.color })
1278
- }, null, 8, ["src", "width", "height", "style"])) : (Je(), it("span", {
1294
+ }, null, 8, ["src", "width", "height", "style"])) : ($e(), it("span", {
1279
1295
  key: 1,
1280
1296
  class: "record-tree-empty-icon",
1281
1297
  style: Gt({
@@ -1284,21 +1300,23 @@ function Aa(a, s, x, w, V, _) {
1284
1300
  backgroundColor: Q.color
1285
1301
  })
1286
1302
  }, null, 4))
1287
- ], 8, Ca))), 128))
1303
+ ], 8, Ma))), 128))
1288
1304
  ], 4)
1289
1305
  ]),
1290
1306
  key: "0"
1291
1307
  }
1292
- ]), 1024)) : Tt("", !0),
1293
- V.isMobile && V.titleEmpty ? (Je(), it("div", {
1308
+ ]), 1024)) : Rt("", !0),
1309
+ V.isMobile && V.titleEmpty ? ($e(), it("div", {
1294
1310
  key: 1,
1295
1311
  onClick: s[0] || (s[0] = (Q) => a.$refs.treeTitle.focus()),
1296
1312
  class: "record-tree-placeholder"
1297
- }, " 请输入标题 ")) : Tt("", !0),
1298
- Rt(ae, {
1313
+ }, " 请输入标题 ")) : Rt("", !0),
1314
+ Tt(ae, {
1315
+ ref: "editor",
1299
1316
  id: "tree_title",
1300
1317
  class: "record-tree-title",
1301
1318
  readOnly: x.readOnly,
1319
+ globalFocusFn: "focusTitle",
1302
1320
  data: _.titleObj,
1303
1321
  onChange: _.handleChange,
1304
1322
  onRemove: _.handleRemove,
@@ -1310,12 +1328,12 @@ function Aa(a, s, x, w, V, _) {
1310
1328
  }, null, 8, ["readOnly", "data", "onChange", "onRemove", "onFocus", "onPaste", "onKeydown"])
1311
1329
  ]);
1312
1330
  }
1313
- const ka = /* @__PURE__ */ zt(Ta, [["render", Aa]]);
1331
+ const Aa = /* @__PURE__ */ zt(Ra, [["render", Ca]]);
1314
1332
  var dt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1315
1333
  function L0(a) {
1316
1334
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
1317
1335
  }
1318
- function Ba(a) {
1336
+ function ka(a) {
1319
1337
  if (a.__esModule)
1320
1338
  return a;
1321
1339
  var s = a.default;
@@ -1336,15 +1354,15 @@ function Ba(a) {
1336
1354
  });
1337
1355
  }), x;
1338
1356
  }
1339
- var cr = { exports: {} };
1340
- function Ea(a) {
1357
+ var ur = { exports: {} };
1358
+ function Ba(a) {
1341
1359
  throw new Error('Could not dynamically require "' + a + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
1342
1360
  }
1343
1361
  var x0 = { exports: {} };
1344
- const Da = {}, La = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1362
+ const Ea = {}, Da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1345
1363
  __proto__: null,
1346
- default: Da
1347
- }, Symbol.toStringTag, { value: "Module" })), Ia = /* @__PURE__ */ Ba(La);
1364
+ default: Ea
1365
+ }, Symbol.toStringTag, { value: "Module" })), La = /* @__PURE__ */ ka(Da);
1348
1366
  var Z0;
1349
1367
  function v0() {
1350
1368
  return Z0 || (Z0 = 1, function(a, s) {
@@ -1353,9 +1371,9 @@ function v0() {
1353
1371
  })(dt, function() {
1354
1372
  var x = x || function(w, V) {
1355
1373
  var _;
1356
- if (typeof window < "u" && window.crypto && (_ = window.crypto), typeof self < "u" && self.crypto && (_ = self.crypto), typeof globalThis < "u" && globalThis.crypto && (_ = globalThis.crypto), !_ && typeof window < "u" && window.msCrypto && (_ = window.msCrypto), !_ && typeof dt < "u" && dt.crypto && (_ = dt.crypto), !_ && typeof Ea == "function")
1374
+ if (typeof window < "u" && window.crypto && (_ = window.crypto), typeof self < "u" && self.crypto && (_ = self.crypto), typeof globalThis < "u" && globalThis.crypto && (_ = globalThis.crypto), !_ && typeof window < "u" && window.msCrypto && (_ = window.msCrypto), !_ && typeof dt < "u" && dt.crypto && (_ = dt.crypto), !_ && typeof Ba == "function")
1357
1375
  try {
1358
- _ = Ia;
1376
+ _ = La;
1359
1377
  } catch {
1360
1378
  }
1361
1379
  var Y = function() {
@@ -1847,7 +1865,7 @@ function v0() {
1847
1865
  }(x0)), x0.exports;
1848
1866
  }
1849
1867
  var S0 = { exports: {} }, $0;
1850
- function Oa() {
1868
+ function Ia() {
1851
1869
  return $0 || ($0 = 1, function(a, s) {
1852
1870
  (function(x, w) {
1853
1871
  a.exports = w(v0());
@@ -1978,14 +1996,14 @@ function Fa() {
1978
1996
  }
1979
1997
  (function(a, s) {
1980
1998
  (function(x, w, V) {
1981
- a.exports = w(v0(), Oa(), Fa());
1999
+ a.exports = w(v0(), Ia(), Fa());
1982
2000
  })(dt, function(x) {
1983
2001
  return x.HmacSHA256;
1984
2002
  });
1985
- })(cr);
1986
- var Na = cr.exports;
1987
- const Ya = /* @__PURE__ */ L0(Na);
1988
- var fr = { exports: {} };
2003
+ })(ur);
2004
+ var Oa = ur.exports;
2005
+ const Na = /* @__PURE__ */ L0(Oa);
2006
+ var dr = { exports: {} };
1989
2007
  (function(a, s) {
1990
2008
  (function(x, w) {
1991
2009
  a.exports = w(v0());
@@ -2057,33 +2075,33 @@ var fr = { exports: {} };
2057
2075
  }
2058
2076
  }(), x.enc.Base64;
2059
2077
  });
2060
- })(fr);
2061
- var Ha = fr.exports;
2062
- const Va = /* @__PURE__ */ L0(Ha);
2063
- let Vt, t0 = "", f0 = "", hr = null;
2064
- function Pa() {
2078
+ })(dr);
2079
+ var Ya = dr.exports;
2080
+ const Ha = /* @__PURE__ */ L0(Ya);
2081
+ let Vt, t0 = "", f0 = "", cr = null;
2082
+ function Va() {
2065
2083
  var a = "wss://iat-api.xfyun.cn/v2/iat", s = "iat-api.xfyun.cn", x = "4f2bbe08d7ee54da888cfd009514e89f", w = "NTc3MWNlNDNiZWFmMGM2Yzk0ZjRlZjdi", V = (/* @__PURE__ */ new Date()).toGMTString(), _ = "hmac-sha256", Y = "host date request-line", E = `host: ${s}
2066
2084
  date: ${V}
2067
- GET /v2/iat HTTP/1.1`, ae = Ya(E, w), Q = Va.stringify(ae), ce = `api_key="${x}", algorithm="${_}", headers="${Y}", signature="${Q}"`, Ce = btoa(ce);
2085
+ GET /v2/iat HTTP/1.1`, ae = Na(E, w), Q = Ha.stringify(ae), ce = `api_key="${x}", algorithm="${_}", headers="${Y}", signature="${Q}"`, Ce = btoa(ce);
2068
2086
  return a = `${a}?authorization=${Ce}&date=${V}&host=${s}`, a;
2069
2087
  }
2070
- function Ua(a) {
2088
+ function Pa(a) {
2071
2089
  for (var s = "", x = new Uint8Array(a), w = x.byteLength, V = 0; V < w; V++)
2072
2090
  s += String.fromCharCode(x[V]);
2073
2091
  return s;
2074
2092
  }
2075
- function za(a) {
2093
+ function Ua(a) {
2076
2094
  let s = JSON.parse(a);
2077
2095
  if (s.data && s.data.result) {
2078
2096
  let x = s.data.result, w = "", V = x.ws;
2079
2097
  for (let _ = 0; _ < V.length; _++)
2080
2098
  w = w + V[_].cw[0].w;
2081
- x.pgs ? (x.pgs === "apd" && (t0 = f0), f0 = t0 + w) : t0 = t0 + w, hr(f0 || t0 || "");
2099
+ x.pgs ? (x.pgs === "apd" && (t0 = f0), f0 = t0 + w) : t0 = t0 + w, cr(f0 || t0 || "");
2082
2100
  }
2083
2101
  s.code === 0 && s.data.status === 2 && Vt.close(), s.code !== 0 && (Vt.close(), console.error(s));
2084
2102
  }
2085
- function qa(a) {
2086
- const s = Pa();
2103
+ function za(a) {
2104
+ const s = Va();
2087
2105
  Vt = new WebSocket(s), Vt.onopen = () => {
2088
2106
  var x = {
2089
2107
  common: {
@@ -2104,17 +2122,17 @@ function qa(a) {
2104
2122
  };
2105
2123
  Vt.send(JSON.stringify(x)), a();
2106
2124
  }, Vt.onmessage = (x) => {
2107
- za(x.data);
2125
+ Ua(x.data);
2108
2126
  }, Vt.onerror = (x) => {
2109
2127
  console.error(x);
2110
2128
  };
2111
2129
  }
2112
- function ja(a, s) {
2113
- Vt = null, t0 = "", f0 = "", hr = s, qa(() => {
2130
+ function qa(a, s) {
2131
+ Vt = null, t0 = "", f0 = "", cr = s, za(() => {
2114
2132
  const x = new FileReader();
2115
2133
  x.readAsArrayBuffer(a), x.onload = (w) => {
2116
2134
  console.log(w.target.result);
2117
- const V = Ua(w.target.result);
2135
+ const V = Pa(w.target.result);
2118
2136
  let _ = 0;
2119
2137
  for (; _ < V.length; ) {
2120
2138
  const Y = V.substring(_, _ + 1280);
@@ -2136,7 +2154,7 @@ function ja(a, s) {
2136
2154
  };
2137
2155
  });
2138
2156
  }
2139
- var vr = { exports: {} };
2157
+ var fr = { exports: {} };
2140
2158
  (function(a) {
2141
2159
  (function(s) {
2142
2160
  var x = typeof window == "object" && !!window.document, w = x ? window : Object;
@@ -2204,12 +2222,12 @@ var vr = { exports: {} };
2204
2222
  l.splice(p, 1);
2205
2223
  break;
2206
2224
  }
2207
- Ve(Fe("mSxV::剩{1}个GetContext未close", 0, v + "-1=" + l.length), l.length ? 3 : 0);
2225
+ Ve(Oe("mSxV::剩{1}个GetContext未close", 0, v + "-1=" + l.length), l.length ? 3 : 0);
2208
2226
  }
2209
2227
  };
2210
2228
  var _e = function(e) {
2211
2229
  var l = e.state, v = "ctx.state=" + l;
2212
- return l == "suspended" && (v += Fe("nMIy::(注意:ctx不是running状态,rec.open和start至少要有一个在用户操作(触摸、点击等)时进行调用,否则将在rec.start时尝试进行ctx.resume,可能会产生兼容性问题(仅iOS),请参阅文档中runningContext配置)")), v;
2230
+ return l == "suspended" && (v += Oe("nMIy::(注意:ctx不是running状态,rec.open和start至少要有一个在用户操作(触摸、点击等)时进行调用,否则将在rec.start时尝试进行ctx.resume,可能会产生兼容性问题(仅iOS),请参阅文档中runningContext配置)")), v;
2213
2231
  }, De = "ConnectEnableWebM";
2214
2232
  _[De] = !0;
2215
2233
  var I = "ConnectEnableWorklet";
@@ -2230,9 +2248,9 @@ var vr = { exports: {} };
2230
2248
  Se[ie](y, z);
2231
2249
  return;
2232
2250
  }
2233
- }, de = "ScriptProcessor", be = "audioWorklet", ke = ae + " " + be, he = "RecProc", J = "MediaRecorder", ye = J + ".WebM.PCM", Ae = A.createScriptProcessor || A.createJavaScriptNode, G = Fe("ZGlf::。由于{1}内部1秒375次回调,在移动端可能会有性能问题导致回调丢失录音变短,PC端无影响,暂不建议开启{1}。", 0, be), oe = function() {
2234
- o = p.isWorklet = !1, Ye(p), Ve(Fe("7TU0::Connect采用老的{1},", 0, de) + _t.get(
2235
- _[I] ? Fe("JwCL::但已设置{1}尝试启用{2}", 2) : Fe("VGjB::可设置{1}尝试启用{2}", 2),
2251
+ }, de = "ScriptProcessor", be = "audioWorklet", ke = ae + " " + be, he = "RecProc", J = "MediaRecorder", ye = J + ".WebM.PCM", Ae = A.createScriptProcessor || A.createJavaScriptNode, G = Oe("ZGlf::。由于{1}内部1秒375次回调,在移动端可能会有性能问题导致回调丢失录音变短,PC端无影响,暂不建议开启{1}。", 0, be), oe = function() {
2252
+ o = p.isWorklet = !1, Ye(p), Ve(Oe("7TU0::Connect采用老的{1},", 0, de) + _t.get(
2253
+ _[I] ? Oe("JwCL::但已设置{1}尝试启用{2}", 2) : Oe("VGjB::可设置{1}尝试启用{2}", 2),
2236
2254
  [ae + "." + I + "=true", be]
2237
2255
  ) + le + G, 3);
2238
2256
  var W = p._p = Ae.call(A, v, 1, 1);
@@ -2254,28 +2272,28 @@ var vr = { exports: {} };
2254
2272
  return H += "constructor " + ue(function(ie) {
2255
2273
  DEL_super(ie);
2256
2274
  var N = this, pe = ie.processorOptions.bufferSize;
2257
- N.bufferSize = pe, N.buffer = new Float32Array(pe * 2), N.pos = 0, N.port.onmessage = function(F) {
2258
- F.data.kill && (N.kill = !0, $C.log("$RA kill call"));
2275
+ N.bufferSize = pe, N.buffer = new Float32Array(pe * 2), N.pos = 0, N.port.onmessage = function(O) {
2276
+ O.data.kill && (N.kill = !0, $C.log("$RA kill call"));
2259
2277
  }, $C.log("$RA .ctor call", ie);
2260
2278
  }), H += "process " + ue(function(ie, N, pe) {
2261
- var F = this, P = F.bufferSize, t = F.buffer, u = F.pos;
2279
+ var O = this, P = O.bufferSize, t = O.buffer, u = O.pos;
2262
2280
  if (ie = (ie[0] || [])[0] || [], ie.length) {
2263
2281
  t.set(ie, u), u += ie.length;
2264
2282
  var C = ~~(u / P) * P;
2265
2283
  if (C) {
2266
2284
  this.port.postMessage({ val: t.slice(0, C) });
2267
2285
  var q = t.subarray(C, u);
2268
- t = new Float32Array(P * 2), t.set(q), u = q.length, F.buffer = t;
2286
+ t = new Float32Array(P * 2), t.set(q), u = q.length, O.buffer = t;
2269
2287
  }
2270
- F.pos = u;
2288
+ O.pos = u;
2271
2289
  }
2272
- return !F.kill;
2290
+ return !O.kill;
2273
2291
  }), H += '}try{registerProcessor("' + he + '", ' + he + ')}catch(e){$C.error("' + ke + ' Reg Error",e)}', H = H.replace(/\$C\./g, "console."), "data:text/javascript;base64," + btoa(unescape(encodeURIComponent(H)));
2274
2292
  }, fe = function() {
2275
2293
  return o && p._na;
2276
2294
  }, y = p._na = function() {
2277
2295
  te !== "" && (clearTimeout(te), te = setTimeout(function() {
2278
- te = 0, fe() && (Ve(Fe("MxX1::{1}未返回任何音频,恢复使用{2}", 0, be, de), 3), Ae && oe());
2296
+ te = 0, fe() && (Ve(Oe("MxX1::{1}未返回任何音频,恢复使用{2}", 0, be, de), 3), Ae && oe());
2279
2297
  }, 500));
2280
2298
  }, z = function() {
2281
2299
  if (fe()) {
@@ -2283,8 +2301,8 @@ var vr = { exports: {} };
2283
2301
  processorOptions: { bufferSize: v }
2284
2302
  });
2285
2303
  Z(ue), ue.port.onmessage = function(H) {
2286
- te && (clearTimeout(te), te = ""), fe() ? Re(H.data.val) : o || Ve(Fe("XUap::{1}多余回调", 0, be), 3);
2287
- }, Ve(Fe("yOta::Connect采用{1},设置{2}可恢复老式{3}", 0, be, ae + "." + I + "=false", de) + le + G, 3);
2304
+ te && (clearTimeout(te), te = ""), fe() ? Re(H.data.val) : o || Ve(Oe("XUap::{1}多余回调", 0, be), 3);
2305
+ }, Ve(Oe("yOta::Connect采用{1},设置{2}可恢复老式{3}", 0, be, ae + "." + I + "=false", de) + le + G, 3);
2288
2306
  }
2289
2307
  };
2290
2308
  A.resume()[Se && "finally"](function() {
@@ -2305,7 +2323,7 @@ var vr = { exports: {} };
2305
2323
  var W = window[J], R = "ondataavailable", fe = "audio/webm; codecs=pcm";
2306
2324
  M = p.isWebM = _[De];
2307
2325
  var y = W && R in W.prototype && W.isTypeSupported(fe);
2308
- if (le = y ? "" : Fe("VwPd::(此浏览器不支持{1})", 0, ye), !l || !M || !y) {
2326
+ if (le = y ? "" : Oe("VwPd::(此浏览器不支持{1})", 0, ye), !l || !M || !y) {
2309
2327
  c();
2310
2328
  return;
2311
2329
  }
@@ -2314,7 +2332,7 @@ var vr = { exports: {} };
2314
2332
  };
2315
2333
  p._ra = function() {
2316
2334
  te !== "" && (clearTimeout(te), te = setTimeout(function() {
2317
- z() && (Ve(Fe("vHnb::{1}未返回任何音频,降级使用{2}", 0, J, be), 3), c());
2335
+ z() && (Ve(Oe("vHnb::{1}未返回任何音频,降级使用{2}", 0, J, be), 3), c());
2318
2336
  }, 500));
2319
2337
  };
2320
2338
  var ue = Object.assign({ mimeType: fe }, _.ConnectWebMOptions), H = p._r = new W(p, ue), ie = p._rd = { sampleRate: A[Ce] };
@@ -2322,18 +2340,18 @@ var vr = { exports: {} };
2322
2340
  var pe = new FileReader();
2323
2341
  pe.onloadend = function() {
2324
2342
  if (z()) {
2325
- var F = vt(new Uint8Array(pe.result), ie);
2326
- if (!F)
2343
+ var O = vt(new Uint8Array(pe.result), ie);
2344
+ if (!O)
2327
2345
  return;
2328
- if (F == -1) {
2346
+ if (O == -1) {
2329
2347
  c();
2330
2348
  return;
2331
2349
  }
2332
- te && (clearTimeout(te), te = ""), Re(F);
2350
+ te && (clearTimeout(te), te = ""), Re(O);
2333
2351
  } else
2334
- M || Ve(Fe("O9P7::{1}多余回调", 0, J), 3);
2352
+ M || Ve(Oe("O9P7::{1}多余回调", 0, J), 3);
2335
2353
  }, pe.readAsArrayBuffer(N.data);
2336
- }, H.start(~~(v / 48)), Ve(Fe("LMEm::Connect采用{1},设置{2}可恢复使用{3}或老式{4}", 0, ye, ae + "." + De + "=false", be, de));
2354
+ }, H.start(~~(v / 48)), Ve(Oe("LMEm::Connect采用{1},设置{2}可恢复使用{3}或老式{4}", 0, ye, ae + "." + De + "=false", be, de));
2337
2355
  };
2338
2356
  k();
2339
2357
  }, ge = function(e) {
@@ -2357,7 +2375,7 @@ var vr = { exports: {} };
2357
2375
  var Z = "SampleData";
2358
2376
  p || (p = {});
2359
2377
  var M = p.index || 0, o = p.offset || 0, te = p.filter;
2360
- if (te && te.fn && te.sr != l && (te = null, Ve(Fe("d48C::{1}的filter采样率变了,重设滤波", 0, Z), 3)), !te) {
2378
+ if (te && te.fn && te.sr != l && (te = null, Ve(Oe("d48C::{1}的filter采样率变了,重设滤波", 0, Z), 3)), !te) {
2361
2379
  var le = v > l * 3 / 4 ? 0 : v / 2 * 3 / 4;
2362
2380
  te = { fn: le ? _.IIRFilter(!0, l, le) : 0 };
2363
2381
  }
@@ -2367,7 +2385,7 @@ var vr = { exports: {} };
2367
2385
  var de = A.frameSize || 1;
2368
2386
  A.frameType && (de = A.frameType == "mp3" ? 1152 : 1);
2369
2387
  var be = e.length;
2370
- M > be + 1 && Ve(Fe("tlbC::{1}似乎传入了未重置chunk {2}", 0, Z, M + ">" + be), 3);
2388
+ M > be + 1 && Ve(Oe("tlbC::{1}似乎传入了未重置chunk {2}", 0, Z, M + ">" + be), 3);
2371
2389
  for (var ke = 0, he = M; he < be; he++)
2372
2390
  ke += e[he].length;
2373
2391
  ke = Math.max(0, ke - Math.floor(o));
@@ -2383,8 +2401,8 @@ var vr = { exports: {} };
2383
2401
  }
2384
2402
  var ue = Math.floor(he);
2385
2403
  if (y == ue) {
2386
- var H = Math.ceil(he), ie = he - ue, N = k, pe = H < oe ? W : N, F = N + (pe - N) * ie;
2387
- F > 32767 ? F = 32767 : F < -32768 && (F = -32768), ye[Ae] = F, Ae++, he += J;
2404
+ var H = Math.ceil(he), ie = he - ue, N = k, pe = H < oe ? W : N, O = N + (pe - N) * ie;
2405
+ O > 32767 ? O = 32767 : O < -32768 && (O = -32768), ye[Ae] = O, Ae++, he += J;
2388
2406
  }
2389
2407
  }
2390
2408
  o = Math.max(0, he - oe);
@@ -2464,7 +2482,7 @@ var vr = { exports: {} };
2464
2482
  v[p] = e[p];
2465
2483
  l.set = v;
2466
2484
  var A = v[Te], Z = v[Ce];
2467
- (A && !V(A) || Z && !V(Z)) && l.CLog(Fe.G("IllegalArgs-1", [Fe("VtS4::{1}和{2}必须是数值", 0, Ce, Te)]), 1, e), v[Te] = +A || 16, v[Ce] = +Z || 16e3, l.state = 0, l._S = 9, l.Sync = { O: 9, C: 9 };
2485
+ (A && !V(A) || Z && !V(Z)) && l.CLog(Oe.G("IllegalArgs-1", [Oe("VtS4::{1}和{2}必须是数值", 0, Ce, Te)]), 1, e), v[Te] = +A || 16, v[Ce] = +Z || 16e3, l.state = 0, l._S = 9, l.Sync = { O: 9, C: 9 };
2468
2486
  }
2469
2487
  _.Sync = {
2470
2488
  /*open*/
@@ -2484,7 +2502,7 @@ var vr = { exports: {} };
2484
2502
  var v = this, p = v.set, A = v._streamStore(), Z = 0;
2485
2503
  e = e || w;
2486
2504
  var M = function(c, k) {
2487
- k = !!k, v.CLog(Fe("5tWi::录音open失败:") + c + ",isUserNotAllow:" + k, 1), Z && _.CloseNewCtx(Z), l && l(c, k);
2505
+ k = !!k, v.CLog(Oe("5tWi::录音open失败:") + c + ",isUserNotAllow:" + k, 1), Z && _.CloseNewCtx(Z), l && l(c, k);
2488
2506
  };
2489
2507
  v._streamTag = Q;
2490
2508
  var o = function() {
@@ -2493,22 +2511,22 @@ var vr = { exports: {} };
2493
2511
  v._O = v._O_ = le, v._SO = v._S;
2494
2512
  var Re = function() {
2495
2513
  if (Se != te.C || !v._O) {
2496
- var c = Fe("dFm8::open被取消");
2497
- return le == te.O ? v.close() : c = Fe("VtJO::open被中断"), M(c), !0;
2514
+ var c = Oe("dFm8::open被取消");
2515
+ return le == te.O ? v.close() : c = Oe("VtJO::open被中断"), M(c), !0;
2498
2516
  }
2499
2517
  };
2500
2518
  if (!x) {
2501
- M(Fe.G("NonBrowser-1", ["open"]) + Fe("EMJq::,可尝试使用RecordApp解决方案") + "(" + E + "/tree/master/app-support-sample)");
2519
+ M(Oe.G("NonBrowser-1", ["open"]) + Oe("EMJq::,可尝试使用RecordApp解决方案") + "(" + E + "/tree/master/app-support-sample)");
2502
2520
  return;
2503
2521
  }
2504
2522
  var de = v.envCheck({ envName: "H5", canProcess: !0 });
2505
2523
  if (de) {
2506
- M(Fe("A5bm::不能录音:") + de);
2524
+ M(Oe("A5bm::不能录音:") + de);
2507
2525
  return;
2508
2526
  }
2509
2527
  if (p.sourceStream) {
2510
2528
  if (v._streamTag = "set.sourceStream", !_.GetContext()) {
2511
- M(Fe("1iU7::不支持此浏览器从流中获取录音"));
2529
+ M(Oe("1iU7::不支持此浏览器从流中获取录音"));
2512
2530
  return;
2513
2531
  }
2514
2532
  je(A);
@@ -2517,7 +2535,7 @@ var vr = { exports: {} };
2517
2535
  try {
2518
2536
  me(A);
2519
2537
  } catch (c) {
2520
- je(A), M(Fe("BTW2::从流中打开录音失败:") + c.message);
2538
+ je(A), M(Oe("BTW2::从流中打开录音失败:") + c.message);
2521
2539
  return;
2522
2540
  }
2523
2541
  o();
@@ -2527,17 +2545,17 @@ var vr = { exports: {} };
2527
2545
  try {
2528
2546
  window.top.a;
2529
2547
  } catch {
2530
- M(Fe("Nclz::无权录音(跨域,请尝试给iframe添加麦克风访问策略,如{1})", 0, 'allow="camera;microphone"'));
2548
+ M(Oe("Nclz::无权录音(跨域,请尝试给iframe添加麦克风访问策略,如{1})", 0, 'allow="camera;microphone"'));
2531
2549
  return;
2532
2550
  }
2533
- /Permission|Allow/i.test(c) ? M(Fe("gyO5::用户拒绝了录音权限"), !0) : window.isSecureContext === !1 ? M(Fe("oWNo::浏览器禁止不安全页面录音,可开启https解决")) : /Found/i.test(c) ? M(k + Fe("jBa9::,无可用麦克风")) : M(k);
2551
+ /Permission|Allow/i.test(c) ? M(Oe("gyO5::用户拒绝了录音权限"), !0) : window.isSecureContext === !1 ? M(Oe("oWNo::浏览器禁止不安全页面录音,可开启https解决")) : /Found/i.test(c) ? M(k + Oe("jBa9::,无可用麦克风")) : M(k);
2534
2552
  };
2535
2553
  if (_.IsOpen()) {
2536
2554
  o();
2537
2555
  return;
2538
2556
  }
2539
2557
  if (!_.Support()) {
2540
- ke("", Fe("COxc::此浏览器不支持录音"));
2558
+ ke("", Oe("COxc::此浏览器不支持录音"));
2541
2559
  return;
2542
2560
  }
2543
2561
  var he = p.runningContext;
@@ -2546,11 +2564,11 @@ var vr = { exports: {} };
2546
2564
  setTimeout(function() {
2547
2565
  c._call = {};
2548
2566
  var k = _.Stream;
2549
- k && (je(), c._call = k._call), _.Stream = c, c._c = he, c._RC = p.runningContext, !Re() && (_.IsOpen() ? (k && v.CLog(Fe("upb8::发现同时多次调用open"), 1), me(A, 1), o()) : M(Fe("Q1GA::录音功能无效:无音频流")));
2567
+ k && (je(), c._call = k._call), _.Stream = c, c._c = he, c._RC = p.runningContext, !Re() && (_.IsOpen() ? (k && v.CLog(Oe("upb8::发现同时多次调用open"), 1), me(A, 1), o()) : M(Oe("Q1GA::录音功能无效:无音频流")));
2550
2568
  }, 100);
2551
2569
  }, ye = function(c) {
2552
2570
  var k = c.name || c.message || c.code + ":" + c;
2553
- v.CLog(Fe("xEQR::请求录音权限错误"), 1, c), ke(k, Fe("bDOG::无法录音:") + k);
2571
+ v.CLog(Oe("xEQR::请求录音权限错误"), 1, c), ke(k, Oe("bDOG::无法录音:") + k);
2554
2572
  }, Ae = p.audioTrackSet || {};
2555
2573
  Ae[Ce] = he[Ce];
2556
2574
  var G = { audio: Ae };
@@ -2559,7 +2577,7 @@ var vr = { exports: {} };
2559
2577
  } catch (c) {
2560
2578
  v.CLog(Q, 3, c), G = { audio: !0 }, oe = _.Scope[Q](G, J, ye);
2561
2579
  }
2562
- v.CLog(Q + "(" + JSON.stringify(G) + ") " + _e(he) + Fe("RiWe::,未配置noiseSuppression和echoCancellation时浏览器可能会自动打开降噪和回声消除,移动端可能会降低系统播放音量(关闭录音后可恢复),请参阅文档中audioTrackSet配置") + "(" + E + ") LM:" + Y + " UA:" + navigator.userAgent), oe && oe.then && oe.then(J)[Be](ye);
2580
+ v.CLog(Q + "(" + JSON.stringify(G) + ") " + _e(he) + Oe("RiWe::,未配置noiseSuppression和echoCancellation时浏览器可能会自动打开降噪和回声消除,移动端可能会降低系统播放音量(关闭录音后可恢复),请参阅文档中audioTrackSet配置") + "(" + E + ") LM:" + Y + " UA:" + navigator.userAgent), oe && oe.then && oe.then(J)[Be](ye);
2563
2581
  },
2564
2582
  close: function(e) {
2565
2583
  e = e || w;
@@ -2567,7 +2585,7 @@ var vr = { exports: {} };
2567
2585
  l._stop();
2568
2586
  var p = " stream:" + l._streamTag, A = v.Sync;
2569
2587
  if (l._O = 0, l._O_ != A.O) {
2570
- l.CLog(Fe("hWVz::close被忽略(因为同时open了多个rec,只有最后一个会真正close)") + p, 3), e();
2588
+ l.CLog(Oe("hWVz::close被忽略(因为同时open了多个rec,只有最后一个会真正close)") + p, 3), e();
2571
2589
  return;
2572
2590
  }
2573
2591
  A.C++, je(v), l.CLog("close," + p), e();
@@ -2578,13 +2596,13 @@ var vr = { exports: {} };
2578
2596
  },
2579
2597
  _setSrcSR: function(e) {
2580
2598
  var l = this, v = l.set, p = v[Ce];
2581
- p > e ? v[Ce] = e : p = 0, l[ce] = e, l.CLog(ce + ": " + e + " set." + Ce + ": " + v[Ce] + (p ? " " + Fe("UHvm::忽略") + ": " + p : ""), p ? 3 : 0);
2599
+ p > e ? v[Ce] = e : p = 0, l[ce] = e, l.CLog(ce + ": " + e + " set." + Ce + ": " + v[Ce] + (p ? " " + Oe("UHvm::忽略") + ": " + p : ""), p ? 3 : 0);
2582
2600
  },
2583
2601
  envCheck: function(e) {
2584
2602
  var l, v = this, p = v.set, A = "CPU_BE";
2585
- if (!l && !_[A] && typeof Int8Array == "function" && !new Int8Array(new Int32Array([1]).buffer)[0] && (L(A), l = Fe("Essp::不支持{1}架构", 0, A)), !l) {
2603
+ if (!l && !_[A] && typeof Int8Array == "function" && !new Int8Array(new Int32Array([1]).buffer)[0] && (L(A), l = Oe("Essp::不支持{1}架构", 0, A)), !l) {
2586
2604
  var Z = p.type, M = v[Z + "_envCheck"];
2587
- p.takeoffEncodeChunk && (M ? e.canProcess || (l = Fe("7uMV::{1}环境不支持实时处理", 0, e.envName)) : l = Fe("2XBl::{1}类型不支持设置takeoffEncodeChunk", 0, Z) + (v[Z] ? "" : Fe("LG7e::(未加载编码器)"))), !l && M && (l = v[Z + "_envCheck"](e, p));
2605
+ p.takeoffEncodeChunk && (M ? e.canProcess || (l = Oe("7uMV::{1}环境不支持实时处理", 0, e.envName)) : l = Oe("2XBl::{1}类型不支持设置takeoffEncodeChunk", 0, Z) + (v[Z] ? "" : Oe("LG7e::(未加载编码器)"))), !l && M && (l = v[Z + "_envCheck"](e, p));
2588
2606
  }
2589
2607
  return l || "";
2590
2608
  },
@@ -2623,7 +2641,7 @@ var vr = { exports: {} };
2623
2641
  var k = de - G.t - be;
2624
2642
  if (k > be / 5) {
2625
2643
  var W = !p.disableEnvInFix;
2626
- if (v.CLog("[" + de + "]" + _t.get(Fe(W ? "4Kfd::补偿{1}ms" : "bM5i::未补偿{1}ms", 1), [k]), 3), v.envInFix += k, W) {
2644
+ if (v.CLog("[" + de + "]" + _t.get(Oe(W ? "4Kfd::补偿{1}ms" : "bM5i::未补偿{1}ms", 1), [k]), 3), v.envInFix += k, W) {
2627
2645
  var R = new Int16Array(k * Z / 1e3);
2628
2646
  M += R.length, te.push(R);
2629
2647
  }
@@ -2635,7 +2653,7 @@ var vr = { exports: {} };
2635
2653
  A.chunkInfo = ue, fe = A.pcmSize, y = ue.data.length, z = fe + y, A.pcmSize = z, te = A.pcmDatas, le = te.length, te.push(ue.data), Z = ue[Ce];
2636
2654
  }
2637
2655
  var H = Math.round(z / Z * 1e3), ie = te.length, N = Se.length, pe = function() {
2638
- for (var C = F ? 0 : -y, q = te[0] == null, S = le; S < ie; S++) {
2656
+ for (var C = O ? 0 : -y, q = te[0] == null, S = le; S < ie; S++) {
2639
2657
  var h = te[S];
2640
2658
  h == null ? q = 1 : (C += h.length, A && h.length && v[p.type + "_encode"](A, h));
2641
2659
  }
@@ -2644,30 +2662,30 @@ var vr = { exports: {} };
2644
2662
  for (Se[0] && (S = 0); S < N; S++)
2645
2663
  Se[S] = null;
2646
2664
  }
2647
- q && (C = F ? y : 0, te[0] = null), A ? A.pcmSize += C : v.recSize += C;
2648
- }, F = 0, P = "rec.set.onProcess";
2665
+ q && (C = O ? y : 0, te[0] = null), A ? A.pcmSize += C : v.recSize += C;
2666
+ }, O = 0, P = "rec.set.onProcess";
2649
2667
  try {
2650
- F = p.onProcess(te, o, H, Z, le, pe);
2668
+ O = p.onProcess(te, o, H, Z, le, pe);
2651
2669
  } catch (C) {
2652
- console.error(P + Fe("gFUF::回调出错是不允许的,需保证不会抛异常"), C);
2670
+ console.error(P + Oe("gFUF::回调出错是不允许的,需保证不会抛异常"), C);
2653
2671
  }
2654
2672
  var t = Date.now() - de;
2655
- if (t > 10 && v.envInFirst - de > 1e3 && v.CLog(P + Fe("2ghS::低性能,耗时{1}ms", 0, t), 3), F === !0) {
2673
+ if (t > 10 && v.envInFirst - de > 1e3 && v.CLog(P + Oe("2ghS::低性能,耗时{1}ms", 0, t), 3), O === !0) {
2656
2674
  for (var u = 0, ye = le; ye < ie; ye++)
2657
2675
  te[ye] == null ? u = 1 : te[ye] = new Int16Array(0);
2658
- u ? v.CLog(Fe("ufqH::未进入异步前不能清除buffers"), 3) : A ? A.pcmSize -= y : v.recSize -= y;
2676
+ u ? v.CLog(Oe("ufqH::未进入异步前不能清除buffers"), 3) : A ? A.pcmSize -= y : v.recSize -= y;
2659
2677
  } else
2660
2678
  pe();
2661
2679
  },
2662
2680
  start: function() {
2663
2681
  var e = this, l = 1;
2664
2682
  if (e.set.sourceStream ? e.Stream || (l = 0) : _.IsOpen() || (l = 0), !l) {
2665
- e.CLog(Fe("6WmN::start失败:未open"), 1);
2683
+ e.CLog(Oe("6WmN::start失败:未open"), 1);
2666
2684
  return;
2667
2685
  }
2668
2686
  var v = e._streamCtx();
2669
- if (e.CLog(Fe("kLDN::start 开始录音,") + _e(v) + " stream:" + e._streamTag), e._stop(), e.envStart(null, v[Ce]), e.state = 3, e._SO && e._SO + 1 != e._S) {
2670
- e.CLog(Fe("Bp2y::start被中断"), 3);
2687
+ if (e.CLog(Oe("kLDN::start 开始录音,") + _e(v) + " stream:" + e._streamTag), e._stop(), e.envStart(null, v[Ce]), e.state = 3, e._SO && e._SO + 1 != e._S) {
2688
+ e.CLog(Oe("Bp2y::start被中断"), 3);
2671
2689
  return;
2672
2690
  }
2673
2691
  e._SO = 0;
@@ -2679,7 +2697,7 @@ var vr = { exports: {} };
2679
2697
  e.CLog(A + "wait..."), v.resume().then(function() {
2680
2698
  e.CLog(A + v.state), p();
2681
2699
  })[Be](function(Z) {
2682
- e.CLog(A + v.state + Fe("upkE::,可能无法录音:") + Z.message, 1, Z), p();
2700
+ e.CLog(A + v.state + Oe("upkE::,可能无法录音:") + Z.message, 1, Z), p();
2683
2701
  });
2684
2702
  } else
2685
2703
  p();
@@ -2700,21 +2718,21 @@ var vr = { exports: {} };
2700
2718
  },
2701
2719
  stop: function(e, l, v) {
2702
2720
  var p = this, A = p.set, Z, M = p.envInLast - p.envInFirst, o = M && p.buffers.length;
2703
- p.CLog(Fe("Xq4s::stop 和start时差:") + (M ? M + "ms " + Fe("3CQP::补偿:") + p.envInFix + "ms envIn:" + o + " fps:" + (o / M * 1e3).toFixed(1) : "-") + " stream:" + p._streamTag + " (" + E + ") LM:" + Y);
2721
+ p.CLog(Oe("Xq4s::stop 和start时差:") + (M ? M + "ms " + Oe("3CQP::补偿:") + p.envInFix + "ms envIn:" + o + " fps:" + (o / M * 1e3).toFixed(1) : "-") + " stream:" + p._streamTag + " (" + E + ") LM:" + Y);
2704
2722
  var te = function() {
2705
2723
  p._stop(), v && p.close();
2706
2724
  }, le = function(Ae) {
2707
- p.CLog(Fe("u8JG::结束录音失败:") + Ae, 1), l && l(Ae), te();
2725
+ p.CLog(Oe("u8JG::结束录音失败:") + Ae, 1), l && l(Ae), te();
2708
2726
  }, Se = function(Ae, G, oe) {
2709
2727
  var c = "blob", k = "arraybuffer", W = "dataType", R = "DefaultDataType", fe = p[W] || _[R] || c, y = W + "=" + fe, z = Ae instanceof ArrayBuffer, ue = 0, H = z ? Ae.byteLength : Ae.size;
2710
- if (fe == k ? z || (ue = 1) : fe == c ? typeof Blob != "function" ? ue = Fe.G("NonBrowser-1", [y]) + Fe("1skY::,请设置{1}", 0, ae + "." + R + '="' + k + '"') : (z && (Ae = new Blob([Ae], { type: G })), Ae instanceof Blob || (ue = 1), G = Ae.type || G) : ue = Fe.G("NotSupport-1", [y]), p.CLog(Fe("Wv7l::结束录音 编码花{1}ms 音频时长{2}ms 文件大小{3}b", 0, Date.now() - Z, oe, H) + " " + y + "," + G), ue) {
2711
- le(ue != 1 ? ue : Fe("Vkbd::{1}编码器返回的不是{2}", 0, A.type, fe) + ", " + y);
2728
+ if (fe == k ? z || (ue = 1) : fe == c ? typeof Blob != "function" ? ue = Oe.G("NonBrowser-1", [y]) + Oe("1skY::,请设置{1}", 0, ae + "." + R + '="' + k + '"') : (z && (Ae = new Blob([Ae], { type: G })), Ae instanceof Blob || (ue = 1), G = Ae.type || G) : ue = Oe.G("NotSupport-1", [y]), p.CLog(Oe("Wv7l::结束录音 编码花{1}ms 音频时长{2}ms 文件大小{3}b", 0, Date.now() - Z, oe, H) + " " + y + "," + G), ue) {
2729
+ le(ue != 1 ? ue : Oe("Vkbd::{1}编码器返回的不是{2}", 0, A.type, fe) + ", " + y);
2712
2730
  return;
2713
2731
  }
2714
2732
  if (A.takeoffEncodeChunk)
2715
- p.CLog(Fe("QWnr::启用takeoffEncodeChunk后stop返回的blob长度为0不提供音频数据"), 3);
2733
+ p.CLog(Oe("QWnr::启用takeoffEncodeChunk后stop返回的blob长度为0不提供音频数据"), 3);
2716
2734
  else if (H < Math.max(50, oe / 5)) {
2717
- le(Fe("Sz2H::生成的{1}无效", 0, A.type));
2735
+ le(Oe("Sz2H::生成的{1}无效", 0, A.type));
2718
2736
  return;
2719
2737
  }
2720
2738
  e && e(Ae, oe, G), te();
@@ -2722,24 +2740,24 @@ var vr = { exports: {} };
2722
2740
  if (!p.isMock) {
2723
2741
  var Re = p.state == 3;
2724
2742
  if (!p.state || Re) {
2725
- le(Fe("wf9t::未开始录音") + (Re ? Fe("Dl2c::,开始录音前无用户交互导致AudioContext未运行") : ""));
2743
+ le(Oe("wf9t::未开始录音") + (Re ? Oe("Dl2c::,开始录音前无用户交互导致AudioContext未运行") : ""));
2726
2744
  return;
2727
2745
  }
2728
2746
  }
2729
2747
  p._stop(!0);
2730
2748
  var de = p.recSize;
2731
2749
  if (!de) {
2732
- le(Fe("Ltz3::未采集到录音"));
2750
+ le(Oe("Ltz3::未采集到录音"));
2733
2751
  return;
2734
2752
  }
2735
2753
  if (!p[A.type]) {
2736
- le(Fe("xGuI::未加载{1}编码器,请尝试到{2}的src/engine内找到{1}的编码器并加载", 0, A.type, ae));
2754
+ le(Oe("xGuI::未加载{1}编码器,请尝试到{2}的src/engine内找到{1}的编码器并加载", 0, A.type, ae));
2737
2755
  return;
2738
2756
  }
2739
2757
  if (p.isMock) {
2740
2758
  var be = p.envCheck(p.mockEnvInfo || { envName: "mock", canProcess: !1 });
2741
2759
  if (be) {
2742
- le(Fe("AxOH::录音错误:") + be);
2760
+ le(Oe("AxOH::录音错误:") + be);
2743
2761
  return;
2744
2762
  }
2745
2763
  }
@@ -2752,13 +2770,13 @@ var vr = { exports: {} };
2752
2770
  return;
2753
2771
  }
2754
2772
  if (Z = Date.now(), !p.buffers[0]) {
2755
- le(Fe("xkKd::音频buffers被释放"));
2773
+ le(Oe("xkKd::音频buffers被释放"));
2756
2774
  return;
2757
2775
  }
2758
2776
  var he = _.SampleData(p.buffers, p[ce], A[Ce]);
2759
2777
  A[Ce] = he[Ce];
2760
2778
  var J = he.data, ye = Math.round(J.length / A[Ce] * 1e3);
2761
- p.CLog(Fe("CxeT::采样:{1} 花:{2}ms", 0, de + "->" + J.length, Date.now() - Z)), setTimeout(function() {
2779
+ p.CLog(Oe("CxeT::采样:{1} 花:{2}ms", 0, de + "->" + J.length, Date.now() - Z)), setTimeout(function() {
2762
2780
  Z = Date.now(), p[A.type](J, function(Ae, G) {
2763
2781
  Se(Ae, G, ye);
2764
2782
  }, function(Ae) {
@@ -2950,8 +2968,8 @@ var vr = { exports: {} };
2950
2968
  }
2951
2969
  return l ? p > 0 ? l : _t.v_G(l, v) : "";
2952
2970
  }
2953
- }, Fe = _t.$T;
2954
- Fe.G = _t.get, Fe("NonBrowser-1::非浏览器环境,不支持{1}", 1), Fe("IllegalArgs-1::参数错误:{1}", 1), Fe("NeedImport-2::调用{1}需要先导入{2}", 2), Fe("NotSupport-1::不支持:{1}", 1), _.TrafficImgUrl = "//ia.51.la/go1?id=20469973&pvFlag=1";
2971
+ }, Oe = _t.$T;
2972
+ Oe.G = _t.get, Oe("NonBrowser-1::非浏览器环境,不支持{1}", 1), Oe("IllegalArgs-1::参数错误:{1}", 1), Oe("NeedImport-2::调用{1}需要先导入{2}", 2), Oe("NotSupport-1::不支持:{1}", 1), _.TrafficImgUrl = "//ia.51.la/go1?id=20469973&pvFlag=1";
2955
2973
  var L = _.Traffic = function(e) {
2956
2974
  if (x) {
2957
2975
  e = e ? "/" + ae + "/Report/" + e : "";
@@ -2966,11 +2984,11 @@ var vr = { exports: {} };
2966
2984
  }
2967
2985
  }
2968
2986
  };
2969
- re && (Ve(Fe("8HO5::覆盖导入{1}", 0, ae), 1), re.Destroy()), s[ae] = _;
2987
+ re && (Ve(Oe("8HO5::覆盖导入{1}", 0, ae), 1), re.Destroy()), s[ae] = _;
2970
2988
  });
2971
- })(vr);
2972
- var Ga = vr.exports;
2973
- const T0 = /* @__PURE__ */ L0(Ga);
2989
+ })(fr);
2990
+ var ja = fr.exports;
2991
+ const T0 = /* @__PURE__ */ L0(ja);
2974
2992
  (function(a) {
2975
2993
  var s = typeof window == "object" && !!window.document, x = s ? window : Object, w = x.Recorder, V = w.i18n;
2976
2994
  a(w, V, V.$T, s);
@@ -3098,12 +3116,12 @@ const T0 = /* @__PURE__ */ L0(Ga);
3098
3116
  });
3099
3117
  break;
3100
3118
  }
3101
- var _t = [rt.memory.buffer.slice(0, rt.mOffset)], Fe = nt.fn(_t, rt.mOffset, rt.pcmSize, rt.sampleRate);
3119
+ var _t = [rt.memory.buffer.slice(0, rt.mOffset)], Oe = nt.fn(_t, rt.mOffset, rt.pcmSize, rt.sampleRate);
3102
3120
  ge.onmessage({
3103
3121
  action: Ee.action,
3104
3122
  id: Ee.id,
3105
3123
  blob: _t[0] || new ArrayBuffer(0),
3106
- meta: Fe
3124
+ meta: Oe
3107
3125
  });
3108
3126
  break;
3109
3127
  }
@@ -3206,8 +3224,8 @@ const T0 = /* @__PURE__ */ L0(Ga);
3206
3224
  for (var Ve = Math.round(se * 8 / Ge), Ze = qe == 1 ? 384 : qe == 2 || Ye == 1 ? 1152 : 576, Ee = Ze / je * 1e3, j = Math.floor(Ze * Ge / 8 / je * 1e3), vt = 0, nt = 0, rt = 0; rt < re.length; rt++) {
3207
3225
  var wt = re[rt];
3208
3226
  if (nt += wt.byteLength, nt >= j + 3) {
3209
- var yt = new Uint8Array(wt), _t = wt.byteLength - (nt - (j + 3) + 1), Fe = I(_t, yt);
3210
- vt = Fe.charAt(6) == "1";
3227
+ var yt = new Uint8Array(wt), _t = wt.byteLength - (nt - (j + 3) + 1), Oe = I(_t, yt);
3228
+ vt = Oe.charAt(6) == "1";
3211
3229
  break;
3212
3230
  }
3213
3231
  }
@@ -3429,19 +3447,19 @@ const T0 = /* @__PURE__ */ L0(Ga);
3429
3447
  f = f >> 1;
3430
3448
  var i = f % 2;
3431
3449
  for (f = f >> 1; f-- != 0; ) {
3432
- var $, O, K, ve, xe, Me, ze, Ke;
3433
- $ = b[T++] * m, O = b[T++] * m, xe = 0 | $, K = b[T++] * m, Me = 0 | O, ve = b[T++] * m, ze = 0 | K, $ += c.adj43[xe], Ke = 0 | ve, O += c.adj43[Me], D[r++] = 0 | $, K += c.adj43[ze], D[r++] = 0 | O, ve += c.adj43[Ke], D[r++] = 0 | K, D[r++] = 0 | ve;
3450
+ var $, F, K, ve, xe, Me, ze, Ke;
3451
+ $ = b[T++] * m, F = b[T++] * m, xe = 0 | $, K = b[T++] * m, Me = 0 | F, ve = b[T++] * m, ze = 0 | K, $ += c.adj43[xe], Ke = 0 | ve, F += c.adj43[Me], D[r++] = 0 | $, K += c.adj43[ze], D[r++] = 0 | F, ve += c.adj43[Ke], D[r++] = 0 | K, D[r++] = 0 | ve;
3434
3452
  }
3435
3453
  if (i != 0) {
3436
- var $, O, xe, Me;
3437
- $ = b[T++] * m, O = b[T++] * m, xe = 0 | $, Me = 0 | O, $ += c.adj43[xe], O += c.adj43[Me], D[r++] = 0 | $, D[r++] = 0 | O;
3454
+ var $, F, xe, Me;
3455
+ $ = b[T++] * m, F = b[T++] * m, xe = 0 | $, Me = 0 | F, $ += c.adj43[xe], F += c.adj43[Me], D[r++] = 0 | $, D[r++] = 0 | F;
3438
3456
  }
3439
3457
  }
3440
3458
  function y(f, m, b, T, D) {
3441
- var r, i, $ = 0, O, K = 0, ve = 0, xe = 0, Me = m, ze = 0, Ke = Me, We = 0, gt = f, xt = 0;
3442
- for (O = D != null && T.global_gain == D.global_gain, T.block_type == o.SHORT_TYPE ? i = 38 : i = 21, r = 0; r <= i; r++) {
3459
+ var r, i, $ = 0, F, K = 0, ve = 0, xe = 0, Me = m, ze = 0, Ke = Me, We = 0, gt = f, xt = 0;
3460
+ for (F = D != null && T.global_gain == D.global_gain, T.block_type == o.SHORT_TYPE ? i = 38 : i = 21, r = 0; r <= i; r++) {
3443
3461
  var ft = -1;
3444
- if ((O || T.block_type == o.NORM_TYPE) && (ft = T.global_gain - (T.scalefac[r] + (T.preflag != 0 ? c.pretab[r] : 0) << T.scalefac_scale + 1) - T.subblock_gain[T.window[r]] * 8), O && D.step[r] == ft)
3462
+ if ((F || T.block_type == o.NORM_TYPE) && (ft = T.global_gain - (T.scalefac[r] + (T.preflag != 0 ? c.pretab[r] : 0) << T.scalefac_scale + 1) - T.subblock_gain[T.window[r]] * 8), F && D.step[r] == ft)
3445
3463
  K != 0 && (fe(
3446
3464
  K,
3447
3465
  b,
@@ -3495,12 +3513,12 @@ const T0 = /* @__PURE__ */ L0(Ga);
3495
3513
  return T < D && (T = D), T;
3496
3514
  }
3497
3515
  function ue(f, m, b, T, D, r) {
3498
- var i = j.ht[T].xlen * 65536 + j.ht[D].xlen, $ = 0, O;
3516
+ var i = j.ht[T].xlen * 65536 + j.ht[D].xlen, $ = 0, F;
3499
3517
  do {
3500
3518
  var K = f[m++], ve = f[m++];
3501
3519
  K != 0 && (K > 14 && (K = 15, $ += i), K *= 16), ve != 0 && (ve > 14 && (ve = 15, $ += i), K += ve), $ += j.largetbl[K];
3502
3520
  } while (m < b);
3503
- return O = $ & 65535, $ >>= 16, $ > O && ($ = O, T = D), r.bits += $, T;
3521
+ return F = $ & 65535, $ >>= 16, $ > F && ($ = F, T = D), r.bits += $, T;
3504
3522
  }
3505
3523
  function H(f, m, b, T) {
3506
3524
  var D = 0, r = j.ht[1].hlen;
@@ -3511,18 +3529,18 @@ const T0 = /* @__PURE__ */ L0(Ga);
3511
3529
  return T.bits += D, 1;
3512
3530
  }
3513
3531
  function ie(f, m, b, T, D) {
3514
- var r = 0, i, $ = j.ht[T].xlen, O;
3515
- T == 2 ? O = j.table23 : O = j.table56;
3532
+ var r = 0, i, $ = j.ht[T].xlen, F;
3533
+ T == 2 ? F = j.table23 : F = j.table56;
3516
3534
  do {
3517
3535
  var K = f[m + 0] * $ + f[m + 1];
3518
- m += 2, r += O[K];
3536
+ m += 2, r += F[K];
3519
3537
  } while (m < b);
3520
3538
  return i = r & 65535, r >>= 16, r > i && (r = i, T++), D.bits += r, T;
3521
3539
  }
3522
3540
  function N(f, m, b, T, D) {
3523
- var r = 0, i = 0, $ = 0, O = j.ht[T].xlen, K = j.ht[T].hlen, ve = j.ht[T + 1].hlen, xe = j.ht[T + 2].hlen;
3541
+ var r = 0, i = 0, $ = 0, F = j.ht[T].xlen, K = j.ht[T].hlen, ve = j.ht[T + 1].hlen, xe = j.ht[T + 2].hlen;
3524
3542
  do {
3525
- var Me = f[m + 0] * O + f[m + 1];
3543
+ var Me = f[m + 0] * F + f[m + 1];
3526
3544
  m += 2, r += K[Me], i += ve[Me], $ += xe[Me];
3527
3545
  } while (m < b);
3528
3546
  var ze = T;
@@ -3545,7 +3563,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
3545
3563
  13,
3546
3564
  13
3547
3565
  ];
3548
- function F(f, m, b, T) {
3566
+ function O(f, m, b, T) {
3549
3567
  var D = z(f, m, b);
3550
3568
  switch (D) {
3551
3569
  case 0:
@@ -3602,65 +3620,65 @@ const T0 = /* @__PURE__ */ L0(Ga);
3602
3620
  break;
3603
3621
  $ = ((T[D - 4] * 2 + T[D - 3]) * 2 + T[D - 2]) * 2 + T[D - 1], r += j.t32l[$], i += j.t33l[$];
3604
3622
  }
3605
- var O = r;
3606
- if (m.count1table_select = 0, r > i && (O = i, m.count1table_select = 1), m.count1bits = O, m.big_values = D, D == 0)
3607
- return O;
3623
+ var F = r;
3624
+ if (m.count1table_select = 0, r > i && (F = i, m.count1table_select = 1), m.count1bits = F, m.big_values = D, D == 0)
3625
+ return F;
3608
3626
  if (m.block_type == o.SHORT_TYPE)
3609
3627
  r = 3 * f.scalefac_band.s[3], r > m.big_values && (r = m.big_values), i = m.big_values;
3610
3628
  else if (m.block_type == o.NORM_TYPE) {
3611
3629
  if (r = m.region0_count = f.bv_scf[D - 2], i = m.region1_count = f.bv_scf[D - 1], i = f.scalefac_band.l[r + i + 2], r = f.scalefac_band.l[r + 1], i < D) {
3612
- var K = new k(O);
3613
- m.table_select[2] = F(T, i, D, K), O = K.bits;
3630
+ var K = new k(F);
3631
+ m.table_select[2] = O(T, i, D, K), F = K.bits;
3614
3632
  }
3615
3633
  } else
3616
3634
  m.region0_count = 7, m.region1_count = o.SBMAX_l - 1 - 7 - 1, r = f.scalefac_band.l[8], i = D, r > i && (r = i);
3617
3635
  if (r = Math.min(r, D), i = Math.min(i, D), 0 < r) {
3618
- var K = new k(O);
3619
- m.table_select[0] = F(T, 0, r, K), O = K.bits;
3636
+ var K = new k(F);
3637
+ m.table_select[0] = O(T, 0, r, K), F = K.bits;
3620
3638
  }
3621
3639
  if (r < i) {
3622
- var K = new k(O);
3623
- m.table_select[1] = F(T, r, i, K), O = K.bits;
3640
+ var K = new k(F);
3641
+ m.table_select[1] = O(T, r, i, K), F = K.bits;
3624
3642
  }
3625
3643
  if (f.use_best_huffman == 2 && w(), b != null && m.block_type == o.NORM_TYPE) {
3626
3644
  for (var ve = 0; f.scalefac_band.l[ve] < m.big_values; )
3627
3645
  ve++;
3628
3646
  b.sfb_count1 = ve;
3629
3647
  }
3630
- return O;
3648
+ return F;
3631
3649
  }, this.count_bits = function(f, m, b, T) {
3632
3650
  var D = b.l3_enc, r = e.IXMAX_VAL / c.IPOW20(b.global_gain);
3633
3651
  return b.xrpow_max > r ? e.LARGE_BITS : (y(m, D, c.IPOW20(b.global_gain), b, T), f.substep_shaping & 2 && w(), this.noquant_count_bits(f, b, T));
3634
3652
  };
3635
3653
  function P(f, m, b, T, D, r, i) {
3636
- for (var $ = m.big_values, O = 0; O <= 22; O++)
3637
- T[O] = e.LARGE_BITS;
3638
- for (var O = 0; O < 16; O++) {
3639
- var K = f.scalefac_band.l[O + 1];
3654
+ for (var $ = m.big_values, F = 0; F <= 22; F++)
3655
+ T[F] = e.LARGE_BITS;
3656
+ for (var F = 0; F < 16; F++) {
3657
+ var K = f.scalefac_band.l[F + 1];
3640
3658
  if (K >= $)
3641
3659
  break;
3642
- var ve = 0, xe = new k(ve), Me = F(b, 0, K, xe);
3660
+ var ve = 0, xe = new k(ve), Me = O(b, 0, K, xe);
3643
3661
  ve = xe.bits;
3644
3662
  for (var ze = 0; ze < 8; ze++) {
3645
- var Ke = f.scalefac_band.l[O + ze + 2];
3663
+ var Ke = f.scalefac_band.l[F + ze + 2];
3646
3664
  if (Ke >= $)
3647
3665
  break;
3648
3666
  var We = ve;
3649
3667
  xe = new k(We);
3650
- var gt = F(b, K, Ke, xe);
3651
- We = xe.bits, T[O + ze] > We && (T[O + ze] = We, D[O + ze] = O, r[O + ze] = Me, i[O + ze] = gt);
3668
+ var gt = O(b, K, Ke, xe);
3669
+ We = xe.bits, T[F + ze] > We && (T[F + ze] = We, D[F + ze] = F, r[F + ze] = Me, i[F + ze] = gt);
3652
3670
  }
3653
3671
  }
3654
3672
  }
3655
3673
  function t(f, m, b, T, D, r, i, $) {
3656
- for (var O = m.big_values, K = 2; K < o.SBMAX_l + 1; K++) {
3674
+ for (var F = m.big_values, K = 2; K < o.SBMAX_l + 1; K++) {
3657
3675
  var ve = f.scalefac_band.l[K];
3658
- if (ve >= O)
3676
+ if (ve >= F)
3659
3677
  break;
3660
3678
  var xe = D[K - 2] + m.count1bits;
3661
3679
  if (b.part2_3_length <= xe)
3662
3680
  break;
3663
- var Me = new k(xe), ze = F(T, ve, O, Me);
3681
+ var Me = new k(xe), ze = O(T, ve, F, Me);
3664
3682
  xe = Me.bits, !(b.part2_3_length <= xe) && (b.assign(m), b.part2_3_length = xe, b.region0_count = r[K - 2], b.region1_count = K - 2 - r[K - 2], b.table_select[0] = i[K - 2], b.table_select[1] = $[K - 2], b.table_select[2] = ze);
3665
3683
  }
3666
3684
  }
@@ -3677,14 +3695,14 @@ const T0 = /* @__PURE__ */ L0(Ga);
3677
3695
  i,
3678
3696
  $
3679
3697
  ));
3680
- var O = b.big_values;
3681
- if (!(O == 0 || (T[O - 2] | T[O - 1]) > 1) && (O = m.count1 + 2, !(O > 576))) {
3682
- b.assign(m), b.count1 = O;
3683
- for (var K = 0, ve = 0; O > b.big_values; O -= 4) {
3684
- var xe = ((T[O - 4] * 2 + T[O - 3]) * 2 + T[O - 2]) * 2 + T[O - 1];
3698
+ var F = b.big_values;
3699
+ if (!(F == 0 || (T[F - 2] | T[F - 1]) > 1) && (F = m.count1 + 2, !(F > 576))) {
3700
+ b.assign(m), b.count1 = F;
3701
+ for (var K = 0, ve = 0; F > b.big_values; F -= 4) {
3702
+ var xe = ((T[F - 4] * 2 + T[F - 3]) * 2 + T[F - 2]) * 2 + T[F - 1];
3685
3703
  K += j.t32l[xe], ve += j.t33l[xe];
3686
3704
  }
3687
- if (b.big_values = O, b.count1table_select = 0, K > ve && (K = ve, b.count1table_select = 1), b.count1bits = K, b.block_type == o.NORM_TYPE)
3705
+ if (b.big_values = F, b.count1table_select = 0, K > ve && (K = ve, b.count1table_select = 1), b.count1bits = K, b.block_type == o.NORM_TYPE)
3688
3706
  t(
3689
3707
  f,
3690
3708
  b,
@@ -3696,13 +3714,13 @@ const T0 = /* @__PURE__ */ L0(Ga);
3696
3714
  $
3697
3715
  );
3698
3716
  else {
3699
- if (b.part2_3_length = K, K = f.scalefac_band.l[8], K > O && (K = O), K > 0) {
3717
+ if (b.part2_3_length = K, K = f.scalefac_band.l[8], K > F && (K = F), K > 0) {
3700
3718
  var Me = new k(b.part2_3_length);
3701
- b.table_select[0] = F(T, 0, K, Me), b.part2_3_length = Me.bits;
3719
+ b.table_select[0] = O(T, 0, K, Me), b.part2_3_length = Me.bits;
3702
3720
  }
3703
- if (O > K) {
3721
+ if (F > K) {
3704
3722
  var Me = new k(b.part2_3_length);
3705
- b.table_select[1] = F(T, K, O, Me), b.part2_3_length = Me.bits;
3723
+ b.table_select[1] = O(T, K, F, Me), b.part2_3_length = Me.bits;
3706
3724
  }
3707
3725
  m.part2_3_length > b.part2_3_length && m.assign(b);
3708
3726
  }
@@ -3724,21 +3742,21 @@ const T0 = /* @__PURE__ */ L0(Ga);
3724
3742
  var i = 0, $ = 0;
3725
3743
  for (b = 0; b < 11; b++)
3726
3744
  T.scalefac[b] != -1 && ($++, i < T.scalefac[b] && (i = T.scalefac[b]));
3727
- for (var O = 0, K = 0; b < o.SBPSY_l; b++)
3728
- T.scalefac[b] != -1 && (K++, O < T.scalefac[b] && (O = T.scalefac[b]));
3745
+ for (var F = 0, K = 0; b < o.SBPSY_l; b++)
3746
+ T.scalefac[b] != -1 && (K++, F < T.scalefac[b] && (F = T.scalefac[b]));
3729
3747
  for (var r = 0; r < 16; r++)
3730
- if (i < u[r] && O < C[r]) {
3748
+ if (i < u[r] && F < C[r]) {
3731
3749
  var ve = q[r] * $ + S[r] * K;
3732
3750
  T.part2_length > ve && (T.part2_length = ve, T.scalefac_compress = r);
3733
3751
  }
3734
3752
  }
3735
3753
  this.best_scalefac_store = function(f, m, b, T) {
3736
- var D = T.tt[m][b], r, i, $, O, K = 0;
3754
+ var D = T.tt[m][b], r, i, $, F, K = 0;
3737
3755
  for ($ = 0, r = 0; r < D.sfbmax; r++) {
3738
3756
  var ve = D.width[r];
3739
- for ($ += ve, O = -ve; O < 0 && D.l3_enc[O + $] == 0; O++)
3757
+ for ($ += ve, F = -ve; F < 0 && D.l3_enc[F + $] == 0; F++)
3740
3758
  ;
3741
- O == 0 && (D.scalefac[r] = K = -2);
3759
+ F == 0 && (D.scalefac[r] = K = -2);
3742
3760
  }
3743
3761
  if (D.scalefac_scale == 0 && D.preflag == 0) {
3744
3762
  var xe = 0;
@@ -3845,21 +3863,21 @@ const T0 = /* @__PURE__ */ L0(Ga);
3845
3863
  [3, 3, 0, 0]
3846
3864
  ];
3847
3865
  this.scale_bitcount_lsf = function(f, m) {
3848
- var b, T, D, r, i, $, O, K, ve = Y(4), xe = m.scalefac;
3849
- for (m.preflag != 0 ? b = 2 : b = 0, O = 0; O < 4; O++)
3850
- ve[O] = 0;
3866
+ var b, T, D, r, i, $, F, K, ve = Y(4), xe = m.scalefac;
3867
+ for (m.preflag != 0 ? b = 2 : b = 0, F = 0; F < 4; F++)
3868
+ ve[F] = 0;
3851
3869
  if (m.block_type == o.SHORT_TYPE) {
3852
3870
  T = 1;
3853
3871
  var Me = c.nr_of_sfb_block[b][T];
3854
3872
  for (K = 0, D = 0; D < 4; D++)
3855
- for (r = Me[D] / 3, O = 0; O < r; O++, K++)
3873
+ for (r = Me[D] / 3, F = 0; F < r; F++, K++)
3856
3874
  for (i = 0; i < 3; i++)
3857
3875
  xe[K * 3 + i] > ve[D] && (ve[D] = xe[K * 3 + i]);
3858
3876
  } else {
3859
3877
  T = 0;
3860
3878
  var Me = c.nr_of_sfb_block[b][T];
3861
3879
  for (K = 0, D = 0; D < 4; D++)
3862
- for (r = Me[D], O = 0; O < r; O++, K++)
3880
+ for (r = Me[D], F = 0; F < r; F++, K++)
3863
3881
  xe[K] > ve[D] && (ve[D] = xe[K]);
3864
3882
  }
3865
3883
  for ($ = !1, D = 0; D < 4; D++)
@@ -3919,8 +3937,8 @@ const T0 = /* @__PURE__ */ L0(Ga);
3919
3937
  function qe() {
3920
3938
  }
3921
3939
  function je() {
3922
- function c(y, z, ue, H, ie, N, pe, F, P, t, u, C, q, S) {
3923
- this.quant_comp = z, this.quant_comp_s = ue, this.safejoint = H, this.nsmsfix = ie, this.st_lrm = N, this.st_s = pe, this.nsbass = F, this.scale = P, this.masking_adj = t, this.ath_lower = u, this.ath_curve = C, this.interch = q, this.sfscale = S;
3940
+ function c(y, z, ue, H, ie, N, pe, O, P, t, u, C, q, S) {
3941
+ this.quant_comp = z, this.quant_comp_s = ue, this.safejoint = H, this.nsmsfix = ie, this.st_lrm = N, this.st_s = pe, this.nsbass = O, this.scale = P, this.masking_adj = t, this.ath_lower = u, this.ath_curve = C, this.interch = q, this.sfscale = S;
3924
3942
  }
3925
3943
  var k;
3926
3944
  this.setModules = function(y) {
@@ -4400,7 +4418,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
4400
4418
  d.h_ptr = b + 1 & de.MAX_HEADER_BUF - 1, d.header[d.h_ptr].write_timing = d.header[b].write_timing + g, d.h_ptr == d.w_ptr;
4401
4419
  }
4402
4420
  }
4403
- function F(h, g) {
4421
+ function O(h, g) {
4404
4422
  var d = j.ht[g.count1table_select + 32], B, n = 0, X = g.big_values, f = g.big_values;
4405
4423
  for (B = (g.count1 - g.big_values) / 4; B > 0; --B) {
4406
4424
  var m = 0, b = 0, T;
@@ -4413,19 +4431,19 @@ const T0 = /* @__PURE__ */ L0(Ga);
4413
4431
  if (g == 0)
4414
4432
  return f;
4415
4433
  for (var m = d; m < B; m += 2) {
4416
- var b = 0, T = 0, D = X.xlen, r = X.xlen, i = 0, $ = n.l3_enc[m], O = n.l3_enc[m + 1];
4434
+ var b = 0, T = 0, D = X.xlen, r = X.xlen, i = 0, $ = n.l3_enc[m], F = n.l3_enc[m + 1];
4417
4435
  if ($ != 0 && (n.xr[m] < 0 && i++, b--), g > 15) {
4418
4436
  if ($ > 14) {
4419
4437
  var K = $ - 15;
4420
4438
  i |= K << 1, T = D, $ = 15;
4421
4439
  }
4422
- if (O > 14) {
4423
- var ve = O - 15;
4424
- i <<= D, i |= ve, T += D, O = 15;
4440
+ if (F > 14) {
4441
+ var ve = F - 15;
4442
+ i <<= D, i |= ve, T += D, F = 15;
4425
4443
  }
4426
4444
  r = 16;
4427
4445
  }
4428
- O != 0 && (i <<= 1, n.xr[m + 1] < 0 && i++, b--), $ = $ * r + O, T -= b, b += X.hlen[$], H(h, X.table[$], b), H(h, i, T), f += b + T;
4446
+ F != 0 && (i <<= 1, n.xr[m + 1] < 0 && i++, b--), $ = $ * r + F, T -= b, b += X.hlen[$], H(h, X.table[$], b), H(h, i, T), f += b + T;
4429
4447
  }
4430
4448
  return f;
4431
4449
  }
@@ -4469,15 +4487,15 @@ const T0 = /* @__PURE__ */ L0(Ga);
4469
4487
  b.scalefac[B] != -1 && (H(f, b.scalefac[B], T), n += T);
4470
4488
  for (; B < b.sfbmax; B++)
4471
4489
  b.scalefac[B] != -1 && (H(f, b.scalefac[B], D), n += D);
4472
- b.block_type == o.SHORT_TYPE ? n += t(f, b) : n += u(f, b), n += F(f, b), X += n;
4490
+ b.block_type == o.SHORT_TYPE ? n += t(f, b) : n += u(f, b), n += O(f, b), X += n;
4473
4491
  }
4474
4492
  else
4475
4493
  for (g = 0, d = 0; d < f.channels_out; d++) {
4476
4494
  var b = m.tt[g][d], r, i, $ = 0;
4477
4495
  if (n = 0, B = 0, i = 0, b.block_type == o.SHORT_TYPE) {
4478
4496
  for (; i < 4; i++) {
4479
- var O = b.sfb_partition_table[i] / 3, K = b.slen[i];
4480
- for (r = 0; r < O; r++, B++)
4497
+ var F = b.sfb_partition_table[i] / 3, K = b.slen[i];
4498
+ for (r = 0; r < F; r++, B++)
4481
4499
  H(
4482
4500
  f,
4483
4501
  Math.max(b.scalefac[B * 3 + 0], 0),
@@ -4495,13 +4513,13 @@ const T0 = /* @__PURE__ */ L0(Ga);
4495
4513
  n += t(f, b);
4496
4514
  } else {
4497
4515
  for (; i < 4; i++) {
4498
- var O = b.sfb_partition_table[i], K = b.slen[i];
4499
- for (r = 0; r < O; r++, B++)
4516
+ var F = b.sfb_partition_table[i], K = b.slen[i];
4517
+ for (r = 0; r < F; r++, B++)
4500
4518
  H(f, Math.max(b.scalefac[B], 0), K), $ += K;
4501
4519
  }
4502
4520
  n += u(f, b);
4503
4521
  }
4504
- n += F(f, b), X += $ + n;
4522
+ n += O(f, b), X += $ + n;
4505
4523
  }
4506
4524
  return X;
4507
4525
  }
@@ -8011,8 +8029,8 @@ const T0 = /* @__PURE__ */ L0(Ga);
8011
8029
  function _t(c) {
8012
8030
  var k = c;
8013
8031
  this.quantize = k, this.iteration_loop = function(W, R, fe, y) {
8014
- var z = W.internal_flags, ue = E(p.SFBMAX), H = E(576), ie = Y(2), N = 0, pe = z.l3_side, F = new vt(N);
8015
- this.quantize.rv.ResvFrameBegin(W, F), N = F.bits;
8032
+ var z = W.internal_flags, ue = E(p.SFBMAX), H = E(576), ie = Y(2), N = 0, pe = z.l3_side, O = new vt(N);
8033
+ this.quantize.rv.ResvFrameBegin(W, O), N = O.bits;
8016
8034
  for (var P = 0; P < z.mode_gr; P++) {
8017
8035
  this.quantize.qupvt.on_pe(
8018
8036
  W,
@@ -8045,7 +8063,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
8045
8063
  this.quantize.rv.ResvFrameEnd(z, N);
8046
8064
  };
8047
8065
  }
8048
- function Fe() {
8066
+ function Oe() {
8049
8067
  }
8050
8068
  function L(c, k, W, R) {
8051
8069
  this.l = Y(1 + o.SBMAX_l), this.s = Y(1 + o.SBMAX_s), this.psfb21 = Y(1 + o.PSFB21), this.psfb12 = Y(1 + o.PSFB12);
@@ -8062,7 +8080,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
8062
8080
  return pe[S + e.Q_MAX2];
8063
8081
  }
8064
8082
  this.IPOW20 = function(S) {
8065
- return F[S];
8083
+ return O[S];
8066
8084
  };
8067
8085
  var fe = 2220446049250313e-31, y = e.IXMAX_VAL, z = y + 2, ue = e.Q_MAX, H = e.Q_MAX2, ie = 100;
8068
8086
  this.nr_of_sfb_block = [
@@ -8433,7 +8451,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
8433
8451
  /* sfb12 pseudo sub bands */
8434
8452
  )
8435
8453
  ];
8436
- var pe = E(ue + H + 1), F = E(ue), P = E(z), t = E(z);
8454
+ var pe = E(ue + H + 1), O = E(ue), P = E(z), t = E(z);
8437
8455
  this.adj43 = t;
8438
8456
  function u(S, h) {
8439
8457
  var g = W.ATHformula(h, S);
@@ -8487,7 +8505,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
8487
8505
  0.75
8488
8506
  );
8489
8507
  for (t[d] = 0.5, d = 0; d < ue; d++)
8490
- F[d] = Math.pow(2, (d - 210) * -0.1875);
8508
+ O[d] = Math.pow(2, (d - 210) * -0.1875);
8491
8509
  for (d = 0; d <= ue + H; d++)
8492
8510
  pe[d] = Math.pow(2, (d - 210 - H) * 0.25);
8493
8511
  c.huffman_init(h);
@@ -8529,11 +8547,11 @@ const T0 = /* @__PURE__ */ L0(Ga);
8529
8547
  }, this.calc_xmin = function(S, h, g, d) {
8530
8548
  var B = 0, n = S.internal_flags, X, f = 0, m = 0, b = n.ATH, T = g.xr, D = S.VBR == I.vbr_mtrh ? 1 : 0, r = n.masking_lower;
8531
8549
  for ((S.VBR == I.vbr_mtrh || S.VBR == I.vbr_mt) && (r = 1), X = 0; X < g.psy_lmax; X++) {
8532
- var i, $, O, K, ve, xe;
8533
- S.VBR == I.vbr_rh || S.VBR == I.vbr_mtrh ? $ = athAdjust(b.adjust, b.l[X], b.floor) : $ = b.adjust * b.l[X], ve = g.width[X], O = $ / ve, K = fe, xe = ve >> 1, i = 0;
8550
+ var i, $, F, K, ve, xe;
8551
+ S.VBR == I.vbr_rh || S.VBR == I.vbr_mtrh ? $ = athAdjust(b.adjust, b.l[X], b.floor) : $ = b.adjust * b.l[X], ve = g.width[X], F = $ / ve, K = fe, xe = ve >> 1, i = 0;
8534
8552
  do {
8535
8553
  var Me, ze;
8536
- Me = T[f] * T[f], i += Me, K += Me < O ? Me : O, f++, ze = T[f] * T[f], i += ze, K += ze < O ? ze : O, f++;
8554
+ Me = T[f] * T[f], i += Me, K += Me < F ? Me : F, f++, ze = T[f] * T[f], i += ze, K += ze < F ? ze : F, f++;
8537
8555
  } while (--xe > 0);
8538
8556
  if (i > $ && m++, X == o.SBPSY_l && w(), D != 0 && ($ = K), !S.ATHonly) {
8539
8557
  var Ke = h.en.l[X];
@@ -8552,11 +8570,11 @@ const T0 = /* @__PURE__ */ L0(Ga);
8552
8570
  for (var ft = g.sfb_smin; X < g.psymax; ft++, X += 3) {
8553
8571
  var ve, pt, Mt;
8554
8572
  for (S.VBR == I.vbr_rh || S.VBR == I.vbr_mtrh ? Mt = athAdjust(b.adjust, b.s[ft], b.floor) : Mt = b.adjust * b.s[ft], ve = g.width[X], pt = 0; pt < 3; pt++) {
8555
- var i = 0, $, O, K, xe = ve >> 1;
8556
- O = Mt / ve, K = fe;
8573
+ var i = 0, $, F, K, xe = ve >> 1;
8574
+ F = Mt / ve, K = fe;
8557
8575
  do {
8558
8576
  var Me, ze;
8559
- Me = T[f] * T[f], i += Me, K += Me < O ? Me : O, f++, ze = T[f] * T[f], i += ze, K += ze < O ? ze : O, f++;
8577
+ Me = T[f] * T[f], i += Me, K += Me < F ? Me : F, f++, ze = T[f] * T[f], i += ze, K += ze < F ? ze : F, f++;
8560
8578
  } while (--xe > 0);
8561
8579
  if (i > Mt && m++, ft == o.SBPSY_s && w(), D != 0 ? $ = K : $ = Mt, !S.ATHonly && !S.ATHshort) {
8562
8580
  var Ke = h.en.s[ft][pt];
@@ -8594,9 +8612,9 @@ const T0 = /* @__PURE__ */ L0(Ga);
8594
8612
  }
8595
8613
  return h.s = n, B;
8596
8614
  }, this.calc_noise = function(S, h, g, d, B) {
8597
- var n = 0, X = 0, f, m, b = 0, T = 0, D = 0, r = -20, i = 0, $ = S.scalefac, O = 0;
8615
+ var n = 0, X = 0, f, m, b = 0, T = 0, D = 0, r = -20, i = 0, $ = S.scalefac, F = 0;
8598
8616
  for (d.over_SSD = 0, f = 0; f < S.psymax; f++) {
8599
- var K = S.global_gain - ($[O++] + (S.preflag != 0 ? N[f] : 0) << S.scalefac_scale + 1) - S.subblock_gain[S.window[f]] * 8, ve = 0;
8617
+ var K = S.global_gain - ($[F++] + (S.preflag != 0 ? N[f] : 0) << S.scalefac_scale + 1) - S.subblock_gain[S.window[f]] * 8, ve = 0;
8600
8618
  if (B != null && B.step[f] == K)
8601
8619
  ve = B.noise[f], i += S.width[f], g[n++] = ve / h[X++], ve = B.noise_log[f];
8602
8620
  else {
@@ -8814,7 +8832,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
8814
8832
  }
8815
8833
  t.preflag = 0, t.scalefac_scale = 1;
8816
8834
  }
8817
- function F(t, u, C) {
8835
+ function O(t, u, C) {
8818
8836
  var q, S = u.scalefac;
8819
8837
  for (q = 0; q < u.sfb_lmax; q++)
8820
8838
  if (S[q] >= 16)
@@ -8860,7 +8878,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
8860
8878
  var h = t.internal_flags;
8861
8879
  N(t, u, C, q);
8862
8880
  var g = H(u);
8863
- return g ? !1 : (h.mode_gr == 2 ? g = R.scale_bitcount(u) : g = R.scale_bitcount_lsf(h, u), g ? (h.noise_shaping > 1 && (Be.fill(h.pseudohalf, 0), u.scalefac_scale == 0 ? (pe(u, q), g = !1) : u.block_type == o.SHORT_TYPE && h.subblock_gain > 0 && (g = F(h, u, q) || H(u))), g || (h.mode_gr == 2 ? g = R.scale_bitcount(u) : g = R.scale_bitcount_lsf(h, u)), !g) : !0);
8881
+ return g ? !1 : (h.mode_gr == 2 ? g = R.scale_bitcount(u) : g = R.scale_bitcount_lsf(h, u), g ? (h.noise_shaping > 1 && (Be.fill(h.pseudohalf, 0), u.scalefac_scale == 0 ? (pe(u, q), g = !1) : u.block_type == o.SHORT_TYPE && h.subblock_gain > 0 && (g = O(h, u, q) || H(u))), g || (h.mode_gr == 2 ? g = R.scale_bitcount(u) : g = R.scale_bitcount_lsf(h, u)), !g) : !0);
8864
8882
  }
8865
8883
  this.outer_loop = function(t, u, C, q, S, h) {
8866
8884
  var g = t.internal_flags, d = new v(), B = E(576), n = E(p.SFBMAX), X = new nt(), f, m = new l(), b = 9999999, T = !1, D = !1, r = 0;
@@ -8876,8 +8894,8 @@ const T0 = /* @__PURE__ */ L0(Ga);
8876
8894
  var i = 0;
8877
8895
  for (re.arraycopy(q, 0, B, 0, 576); !T; ) {
8878
8896
  do {
8879
- var $ = new nt(), O, K = 255;
8880
- if (g.substep_shaping & 2 ? O = 20 : O = 3, g.sfb21_extra && w(), !P(t, d, n, q))
8897
+ var $ = new nt(), F, K = 255;
8898
+ if (g.substep_shaping & 2 ? F = 20 : F = 3, g.sfb21_extra && w(), !P(t, d, n, q))
8881
8899
  break;
8882
8900
  d.scalefac_scale != 0 && (K = 254);
8883
8901
  var ve = h - d.part2_length;
@@ -8911,7 +8929,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
8911
8929
  m
8912
8930
  ), $.bits = d.part2_3_length, u.block_type != o.SHORT_TYPE ? f = t.quant_comp : f = t.quant_comp_short, f = ie(f, X, $) ? 1 : 0, f != 0)
8913
8931
  b = u.part2_3_length, X = $, u.assign(d), i = 0, re.arraycopy(q, 0, B, 0, 576);
8914
- else if (g.full_outer_loop == 0 && (++i > O && X.over_count == 0 || g.noise_shaping_amp == 3 && D && i > 30 || g.noise_shaping_amp == 3 && D && d.global_gain - r > 15))
8932
+ else if (g.full_outer_loop == 0 && (++i > F && X.over_count == 0 || g.noise_shaping_amp == 3 && D && i > 30 || g.noise_shaping_amp == 3 && D && d.global_gain - r > 15))
8915
8933
  break;
8916
8934
  } while (d.global_gain + d.scalefac_scale < 255);
8917
8935
  g.noise_shaping_amp == 3 ? w() : T = !0;
@@ -9415,53 +9433,53 @@ const T0 = /* @__PURE__ */ L0(Ga);
9415
9433
  30,
9416
9434
  31
9417
9435
  ];
9418
- function ie(F, P, t) {
9436
+ function ie(O, P, t) {
9419
9437
  for (var u = 10, C = P + 238 - 14 - 286, q = -15; q < 0; q++) {
9420
9438
  var S, h, g;
9421
- S = c[u + -10], h = F[C + -224] * S, g = F[P + 224] * S, S = c[u + -9], h += F[C + -160] * S, g += F[P + 160] * S, S = c[u + -8], h += F[C + -96] * S, g += F[P + 96] * S, S = c[u + -7], h += F[C + -32] * S, g += F[P + 32] * S, S = c[u + -6], h += F[C + 32] * S, g += F[P + -32] * S, S = c[u + -5], h += F[C + 96] * S, g += F[P + -96] * S, S = c[u + -4], h += F[C + 160] * S, g += F[P + -160] * S, S = c[u + -3], h += F[C + 224] * S, g += F[P + -224] * S, S = c[u + -2], h += F[P + -256] * S, g -= F[C + 256] * S, S = c[u + -1], h += F[P + -192] * S, g -= F[C + 192] * S, S = c[u + 0], h += F[P + -128] * S, g -= F[C + 128] * S, S = c[u + 1], h += F[P + -64] * S, g -= F[C + 64] * S, S = c[u + 2], h += F[P + 0] * S, g -= F[C + 0] * S, S = c[u + 3], h += F[P + 64] * S, g -= F[C + -64] * S, S = c[u + 4], h += F[P + 128] * S, g -= F[C + -128] * S, S = c[u + 5], h += F[P + 192] * S, g -= F[C + -192] * S, h *= c[u + 6], S = g - h, t[30 + q * 2] = g + h, t[31 + q * 2] = c[u + 7] * S, u += 18, P--, C++;
9439
+ S = c[u + -10], h = O[C + -224] * S, g = O[P + 224] * S, S = c[u + -9], h += O[C + -160] * S, g += O[P + 160] * S, S = c[u + -8], h += O[C + -96] * S, g += O[P + 96] * S, S = c[u + -7], h += O[C + -32] * S, g += O[P + 32] * S, S = c[u + -6], h += O[C + 32] * S, g += O[P + -32] * S, S = c[u + -5], h += O[C + 96] * S, g += O[P + -96] * S, S = c[u + -4], h += O[C + 160] * S, g += O[P + -160] * S, S = c[u + -3], h += O[C + 224] * S, g += O[P + -224] * S, S = c[u + -2], h += O[P + -256] * S, g -= O[C + 256] * S, S = c[u + -1], h += O[P + -192] * S, g -= O[C + 192] * S, S = c[u + 0], h += O[P + -128] * S, g -= O[C + 128] * S, S = c[u + 1], h += O[P + -64] * S, g -= O[C + 64] * S, S = c[u + 2], h += O[P + 0] * S, g -= O[C + 0] * S, S = c[u + 3], h += O[P + 64] * S, g -= O[C + -64] * S, S = c[u + 4], h += O[P + 128] * S, g -= O[C + -128] * S, S = c[u + 5], h += O[P + 192] * S, g -= O[C + -192] * S, h *= c[u + 6], S = g - h, t[30 + q * 2] = g + h, t[31 + q * 2] = c[u + 7] * S, u += 18, P--, C++;
9422
9440
  }
9423
9441
  {
9424
9442
  var h, g, d, B;
9425
- g = F[P + -16] * c[u + -10], h = F[P + -32] * c[u + -2], g += (F[P + -48] - F[P + 16]) * c[u + -9], h += F[P + -96] * c[u + -1], g += (F[P + -80] + F[P + 48]) * c[u + -8], h += F[P + -160] * c[u + 0], g += (F[P + -112] - F[P + 80]) * c[u + -7], h += F[P + -224] * c[u + 1], g += (F[P + -144] + F[P + 112]) * c[u + -6], h -= F[P + 32] * c[u + 2], g += (F[P + -176] - F[P + 144]) * c[u + -5], h -= F[P + 96] * c[u + 3], g += (F[P + -208] + F[P + 176]) * c[u + -4], h -= F[P + 160] * c[u + 4], g += (F[P + -240] - F[P + 208]) * c[u + -3], h -= F[P + 224], d = h - g, B = h + g, g = t[14], h = t[15] - g, t[31] = B + g, t[30] = d + h, t[15] = d - h, t[14] = B - g;
9443
+ g = O[P + -16] * c[u + -10], h = O[P + -32] * c[u + -2], g += (O[P + -48] - O[P + 16]) * c[u + -9], h += O[P + -96] * c[u + -1], g += (O[P + -80] + O[P + 48]) * c[u + -8], h += O[P + -160] * c[u + 0], g += (O[P + -112] - O[P + 80]) * c[u + -7], h += O[P + -224] * c[u + 1], g += (O[P + -144] + O[P + 112]) * c[u + -6], h -= O[P + 32] * c[u + 2], g += (O[P + -176] - O[P + 144]) * c[u + -5], h -= O[P + 96] * c[u + 3], g += (O[P + -208] + O[P + 176]) * c[u + -4], h -= O[P + 160] * c[u + 4], g += (O[P + -240] - O[P + 208]) * c[u + -3], h -= O[P + 224], d = h - g, B = h + g, g = t[14], h = t[15] - g, t[31] = B + g, t[30] = d + h, t[15] = d - h, t[14] = B - g;
9426
9444
  }
9427
9445
  {
9428
9446
  var n;
9429
9447
  n = t[28] - t[0], t[0] += t[28], t[28] = n * c[u + -2 * 18 + 7], n = t[29] - t[1], t[1] += t[29], t[29] = n * c[u + -2 * 18 + 7], n = t[26] - t[2], t[2] += t[26], t[26] = n * c[u + -4 * 18 + 7], n = t[27] - t[3], t[3] += t[27], t[27] = n * c[u + -4 * 18 + 7], n = t[24] - t[4], t[4] += t[24], t[24] = n * c[u + -6 * 18 + 7], n = t[25] - t[5], t[5] += t[25], t[25] = n * c[u + -6 * 18 + 7], n = t[22] - t[6], t[6] += t[22], t[22] = n * se.SQRT2, n = t[23] - t[7], t[7] += t[23], t[23] = n * se.SQRT2 - t[7], t[7] -= t[6], t[22] -= t[7], t[23] -= t[22], n = t[6], t[6] = t[31] - n, t[31] = t[31] + n, n = t[7], t[7] = t[30] - n, t[30] = t[30] + n, n = t[22], t[22] = t[15] - n, t[15] = t[15] + n, n = t[23], t[23] = t[14] - n, t[14] = t[14] + n, n = t[20] - t[8], t[8] += t[20], t[20] = n * c[u + -10 * 18 + 7], n = t[21] - t[9], t[9] += t[21], t[21] = n * c[u + -10 * 18 + 7], n = t[18] - t[10], t[10] += t[18], t[18] = n * c[u + -12 * 18 + 7], n = t[19] - t[11], t[11] += t[19], t[19] = n * c[u + -12 * 18 + 7], n = t[16] - t[12], t[12] += t[16], t[16] = n * c[u + -14 * 18 + 7], n = t[17] - t[13], t[13] += t[17], t[17] = n * c[u + -14 * 18 + 7], n = -t[20] + t[24], t[20] += t[24], t[24] = n * c[u + -12 * 18 + 7], n = -t[21] + t[25], t[21] += t[25], t[25] = n * c[u + -12 * 18 + 7], n = t[4] - t[8], t[4] += t[8], t[8] = n * c[u + -12 * 18 + 7], n = t[5] - t[9], t[5] += t[9], t[9] = n * c[u + -12 * 18 + 7], n = t[0] - t[12], t[0] += t[12], t[12] = n * c[u + -4 * 18 + 7], n = t[1] - t[13], t[1] += t[13], t[13] = n * c[u + -4 * 18 + 7], n = t[16] - t[28], t[16] += t[28], t[28] = n * c[u + -4 * 18 + 7], n = -t[17] + t[29], t[17] += t[29], t[29] = n * c[u + -4 * 18 + 7], n = se.SQRT2 * (t[2] - t[10]), t[2] += t[10], t[10] = n, n = se.SQRT2 * (t[3] - t[11]), t[3] += t[11], t[11] = n, n = se.SQRT2 * (-t[18] + t[26]), t[18] += t[26], t[26] = n - t[18], n = se.SQRT2 * (-t[19] + t[27]), t[19] += t[27], t[27] = n - t[19], n = t[2], t[19] -= t[3], t[3] -= n, t[2] = t[31] - n, t[31] += n, n = t[3], t[11] -= t[19], t[18] -= n, t[3] = t[30] - n, t[30] += n, n = t[18], t[27] -= t[11], t[19] -= n, t[18] = t[15] - n, t[15] += n, n = t[19], t[10] -= n, t[19] = t[14] - n, t[14] += n, n = t[10], t[11] -= n, t[10] = t[23] - n, t[23] += n, n = t[11], t[26] -= n, t[11] = t[22] - n, t[22] += n, n = t[26], t[27] -= n, t[26] = t[7] - n, t[7] += n, n = t[27], t[27] = t[6] - n, t[6] += n, n = se.SQRT2 * (t[0] - t[4]), t[0] += t[4], t[4] = n, n = se.SQRT2 * (t[1] - t[5]), t[1] += t[5], t[5] = n, n = se.SQRT2 * (t[16] - t[20]), t[16] += t[20], t[20] = n, n = se.SQRT2 * (t[17] - t[21]), t[17] += t[21], t[21] = n, n = -se.SQRT2 * (t[8] - t[12]), t[8] += t[12], t[12] = n - t[8], n = -se.SQRT2 * (t[9] - t[13]), t[9] += t[13], t[13] = n - t[9], n = -se.SQRT2 * (t[25] - t[29]), t[25] += t[29], t[29] = n - t[25], n = -se.SQRT2 * (t[24] + t[28]), t[24] -= t[28], t[28] = n - t[24], n = t[24] - t[16], t[24] = n, n = t[20] - n, t[20] = n, n = t[28] - n, t[28] = n, n = t[25] - t[17], t[25] = n, n = t[21] - n, t[21] = n, n = t[29] - n, t[29] = n, n = t[17] - t[1], t[17] = n, n = t[9] - n, t[9] = n, n = t[25] - n, t[25] = n, n = t[5] - n, t[5] = n, n = t[21] - n, t[21] = n, n = t[13] - n, t[13] = n, n = t[29] - n, t[29] = n, n = t[1] - t[0], t[1] = n, n = t[16] - n, t[16] = n, n = t[17] - n, t[17] = n, n = t[8] - n, t[8] = n, n = t[9] - n, t[9] = n, n = t[24] - n, t[24] = n, n = t[25] - n, t[25] = n, n = t[4] - n, t[4] = n, n = t[5] - n, t[5] = n, n = t[20] - n, t[20] = n, n = t[21] - n, t[21] = n, n = t[12] - n, t[12] = n, n = t[13] - n, t[13] = n, n = t[28] - n, t[28] = n, n = t[29] - n, t[29] = n, n = t[0], t[0] += t[31], t[31] -= n, n = t[1], t[1] += t[30], t[30] -= n, n = t[16], t[16] += t[15], t[15] -= n, n = t[17], t[17] += t[14], t[14] -= n, n = t[8], t[8] += t[23], t[23] -= n, n = t[9], t[9] += t[22], t[22] -= n, n = t[24], t[24] += t[7], t[7] -= n, n = t[25], t[25] += t[6], t[6] -= n, n = t[4], t[4] += t[27], t[27] -= n, n = t[5], t[5] += t[26], t[26] -= n, n = t[20], t[20] += t[11], t[11] -= n, n = t[21], t[21] += t[10], t[10] -= n, n = t[12], t[12] += t[19], t[19] -= n, n = t[13], t[13] += t[18], t[18] -= n, n = t[28], t[28] += t[3], t[3] -= n, n = t[29], t[29] += t[2], t[2] -= n;
9430
9448
  }
9431
9449
  }
9432
- function N(F, P) {
9450
+ function N(O, P) {
9433
9451
  for (var t = 0; t < 3; t++) {
9434
9452
  var u, C, q, S, h, g;
9435
- S = F[P + 2 * 3] * R[o.SHORT_TYPE][0] - F[P + 5 * 3], u = F[P + 0 * 3] * R[o.SHORT_TYPE][2] - F[P + 3 * 3], C = S + u, q = S - u, S = F[P + 5 * 3] * R[o.SHORT_TYPE][0] + F[P + 2 * 3], u = F[P + 3 * 3] * R[o.SHORT_TYPE][2] + F[P + 0 * 3], h = S + u, g = -S + u, u = (F[P + 1 * 3] * R[o.SHORT_TYPE][1] - F[P + 4 * 3]) * 2069978111953089e-26, S = (F[P + 4 * 3] * R[o.SHORT_TYPE][1] + F[P + 1 * 3]) * 2069978111953089e-26, F[P + 3 * 0] = C * 190752519173728e-25 + u, F[P + 3 * 5] = -h * 190752519173728e-25 + S, q = q * 0.8660254037844387 * 1907525191737281e-26, h = h * 0.5 * 1907525191737281e-26 + S, F[P + 3 * 1] = q - h, F[P + 3 * 2] = q + h, C = C * 0.5 * 1907525191737281e-26 - u, g = g * 0.8660254037844387 * 1907525191737281e-26, F[P + 3 * 3] = C + g, F[P + 3 * 4] = C - g, P++;
9453
+ S = O[P + 2 * 3] * R[o.SHORT_TYPE][0] - O[P + 5 * 3], u = O[P + 0 * 3] * R[o.SHORT_TYPE][2] - O[P + 3 * 3], C = S + u, q = S - u, S = O[P + 5 * 3] * R[o.SHORT_TYPE][0] + O[P + 2 * 3], u = O[P + 3 * 3] * R[o.SHORT_TYPE][2] + O[P + 0 * 3], h = S + u, g = -S + u, u = (O[P + 1 * 3] * R[o.SHORT_TYPE][1] - O[P + 4 * 3]) * 2069978111953089e-26, S = (O[P + 4 * 3] * R[o.SHORT_TYPE][1] + O[P + 1 * 3]) * 2069978111953089e-26, O[P + 3 * 0] = C * 190752519173728e-25 + u, O[P + 3 * 5] = -h * 190752519173728e-25 + S, q = q * 0.8660254037844387 * 1907525191737281e-26, h = h * 0.5 * 1907525191737281e-26 + S, O[P + 3 * 1] = q - h, O[P + 3 * 2] = q + h, C = C * 0.5 * 1907525191737281e-26 - u, g = g * 0.8660254037844387 * 1907525191737281e-26, O[P + 3 * 3] = C + g, O[P + 3 * 4] = C - g, P++;
9436
9454
  }
9437
9455
  }
9438
- function pe(F, P, t) {
9456
+ function pe(O, P, t) {
9439
9457
  var u, C;
9440
9458
  {
9441
9459
  var q, S, h, g, d, B, n, X;
9442
- q = t[17] - t[9], h = t[15] - t[11], g = t[14] - t[12], d = t[0] + t[8], B = t[1] + t[7], n = t[2] + t[6], X = t[3] + t[5], F[P + 17] = d + n - X - (B - t[4]), C = (d + n - X) * y[19] + (B - t[4]), u = (q - h - g) * y[18], F[P + 5] = u + C, F[P + 6] = u - C, S = (t[16] - t[10]) * y[18], B = B * y[19] + t[4], u = q * y[12] + S + h * y[13] + g * y[14], C = -d * y[16] + B - n * y[17] + X * y[15], F[P + 1] = u + C, F[P + 2] = u - C, u = q * y[13] - S - h * y[14] + g * y[12], C = -d * y[17] + B - n * y[15] + X * y[16], F[P + 9] = u + C, F[P + 10] = u - C, u = q * y[14] - S + h * y[12] - g * y[13], C = d * y[15] - B + n * y[16] - X * y[17], F[P + 13] = u + C, F[P + 14] = u - C;
9460
+ q = t[17] - t[9], h = t[15] - t[11], g = t[14] - t[12], d = t[0] + t[8], B = t[1] + t[7], n = t[2] + t[6], X = t[3] + t[5], O[P + 17] = d + n - X - (B - t[4]), C = (d + n - X) * y[19] + (B - t[4]), u = (q - h - g) * y[18], O[P + 5] = u + C, O[P + 6] = u - C, S = (t[16] - t[10]) * y[18], B = B * y[19] + t[4], u = q * y[12] + S + h * y[13] + g * y[14], C = -d * y[16] + B - n * y[17] + X * y[15], O[P + 1] = u + C, O[P + 2] = u - C, u = q * y[13] - S - h * y[14] + g * y[12], C = -d * y[17] + B - n * y[15] + X * y[16], O[P + 9] = u + C, O[P + 10] = u - C, u = q * y[14] - S + h * y[12] - g * y[13], C = d * y[15] - B + n * y[16] - X * y[17], O[P + 13] = u + C, O[P + 14] = u - C;
9443
9461
  }
9444
9462
  {
9445
9463
  var f, m, b, T, D, r, i, $;
9446
- f = t[8] - t[0], b = t[6] - t[2], T = t[5] - t[3], D = t[17] + t[9], r = t[16] + t[10], i = t[15] + t[11], $ = t[14] + t[12], F[P + 0] = D + i + $ + (r + t[13]), u = (D + i + $) * y[19] - (r + t[13]), C = (f - b + T) * y[18], F[P + 11] = u + C, F[P + 12] = u - C, m = (t[7] - t[1]) * y[18], r = t[13] - r * y[19], u = D * y[15] - r + i * y[16] + $ * y[17], C = f * y[14] + m + b * y[12] + T * y[13], F[P + 3] = u + C, F[P + 4] = u - C, u = -D * y[17] + r - i * y[15] - $ * y[16], C = f * y[13] + m - b * y[14] - T * y[12], F[P + 7] = u + C, F[P + 8] = u - C, u = -D * y[16] + r - i * y[17] - $ * y[15], C = f * y[12] - m + b * y[13] - T * y[14], F[P + 15] = u + C, F[P + 16] = u - C;
9464
+ f = t[8] - t[0], b = t[6] - t[2], T = t[5] - t[3], D = t[17] + t[9], r = t[16] + t[10], i = t[15] + t[11], $ = t[14] + t[12], O[P + 0] = D + i + $ + (r + t[13]), u = (D + i + $) * y[19] - (r + t[13]), C = (f - b + T) * y[18], O[P + 11] = u + C, O[P + 12] = u - C, m = (t[7] - t[1]) * y[18], r = t[13] - r * y[19], u = D * y[15] - r + i * y[16] + $ * y[17], C = f * y[14] + m + b * y[12] + T * y[13], O[P + 3] = u + C, O[P + 4] = u - C, u = -D * y[17] + r - i * y[15] - $ * y[16], C = f * y[13] + m - b * y[14] - T * y[12], O[P + 7] = u + C, O[P + 8] = u - C, u = -D * y[16] + r - i * y[17] - $ * y[15], C = f * y[12] - m + b * y[13] - T * y[14], O[P + 15] = u + C, O[P + 16] = u - C;
9447
9465
  }
9448
9466
  }
9449
- this.mdct_sub48 = function(F, P, t) {
9450
- for (var u = P, C = 286, q = 0; q < F.channels_out; q++) {
9451
- for (var S = 0; S < F.mode_gr; S++) {
9452
- for (var h, g = F.l3_side.tt[S][q], d = g.xr, B = 0, n = F.sb_sample[q][1 - S], X = 0, f = 0; f < 18 / 2; f++)
9467
+ this.mdct_sub48 = function(O, P, t) {
9468
+ for (var u = P, C = 286, q = 0; q < O.channels_out; q++) {
9469
+ for (var S = 0; S < O.mode_gr; S++) {
9470
+ for (var h, g = O.l3_side.tt[S][q], d = g.xr, B = 0, n = O.sb_sample[q][1 - S], X = 0, f = 0; f < 18 / 2; f++)
9453
9471
  for (ie(u, C, n[X]), ie(u, C + 32, n[X + 1]), X += 2, C += 64, h = 1; h < 32; h += 2)
9454
9472
  n[X - 1][h] *= -1;
9455
9473
  for (h = 0; h < 32; h++, B += 18) {
9456
- var m = g.block_type, b = F.sb_sample[q][S], T = F.sb_sample[q][1 - S];
9457
- if (g.mixed_block_flag != 0 && h < 2 && (m = 0), F.amp_filter[h] < 1e-12)
9474
+ var m = g.block_type, b = O.sb_sample[q][S], T = O.sb_sample[q][1 - S];
9475
+ if (g.mixed_block_flag != 0 && h < 2 && (m = 0), O.amp_filter[h] < 1e-12)
9458
9476
  Be.fill(
9459
9477
  d,
9460
9478
  B + 0,
9461
9479
  B + 18,
9462
9480
  0
9463
9481
  );
9464
- else if (F.amp_filter[h] < 1 && w(), m == o.SHORT_TYPE) {
9482
+ else if (O.amp_filter[h] < 1 && w(), m == o.SHORT_TYPE) {
9465
9483
  for (var f = -k / 4; f < 0; f++) {
9466
9484
  var D = R[o.SHORT_TYPE][f + 3];
9467
9485
  d[B + f * 3 + 9] = b[9 + f][H[h]] * D - b[8 - f][H[h]], d[B + f * 3 + 18] = b[14 - f][H[h]] * D + b[15 + f][H[h]], d[B + f * 3 + 10] = b[15 + f][H[h]] * D - b[14 - f][H[h]], d[B + f * 3 + 19] = T[2 - f][H[h]] * D + T[3 + f][H[h]], d[B + f * 3 + 11] = T[3 + f][H[h]] * D - T[2 - f][H[h]], d[B + f * 3 + 20] = T[8 - f][H[h]] * D + T[9 + f][H[h]];
@@ -9476,17 +9494,17 @@ const T0 = /* @__PURE__ */ L0(Ga);
9476
9494
  }
9477
9495
  if (m != o.SHORT_TYPE && h != 0)
9478
9496
  for (var f = 7; f >= 0; --f) {
9479
- var O, K;
9480
- O = d[B + f] * z[20 + f] + d[B + -1 - f] * ue[28 + f], K = d[B + f] * ue[28 + f] - d[B + -1 - f] * z[20 + f], d[B + -1 - f] = O, d[B + f] = K;
9497
+ var F, K;
9498
+ F = d[B + f] * z[20 + f] + d[B + -1 - f] * ue[28 + f], K = d[B + f] * ue[28 + f] - d[B + -1 - f] * z[20 + f], d[B + -1 - f] = F, d[B + f] = K;
9481
9499
  }
9482
9500
  }
9483
9501
  }
9484
- if (u = t, C = 286, F.mode_gr == 1)
9502
+ if (u = t, C = 286, O.mode_gr == 1)
9485
9503
  for (var ve = 0; ve < 18; ve++)
9486
9504
  re.arraycopy(
9487
- F.sb_sample[q][1][ve],
9505
+ O.sb_sample[q][1][ve],
9488
9506
  0,
9489
- F.sb_sample[q][0][ve],
9507
+ O.sb_sample[q][0][ve],
9490
9508
  0,
9491
9509
  32
9492
9510
  );
@@ -9537,18 +9555,18 @@ const T0 = /* @__PURE__ */ L0(Ga);
9537
9555
  }
9538
9556
  }
9539
9557
  function ue(H, ie) {
9540
- var N = H.internal_flags, pe, F;
9558
+ var N = H.internal_flags, pe, O;
9541
9559
  if (N.lame_encode_frame_init == 0) {
9542
9560
  var P, t, u = E(2014), C = E(2014);
9543
9561
  for (N.lame_encode_frame_init = 1, P = 0, t = 0; P < 286 + 576 * (1 + N.mode_gr); ++P)
9544
9562
  P < 576 * N.mode_gr ? (u[P] = 0, N.channels_out == 2 && (C[P] = 0)) : (u[P] = ie[0][t], N.channels_out == 2 && (C[P] = ie[1][t]), ++t);
9545
- for (F = 0; F < N.mode_gr; F++)
9563
+ for (O = 0; O < N.mode_gr; O++)
9546
9564
  for (pe = 0; pe < N.channels_out; pe++)
9547
- N.l3_side.tt[F][pe].block_type = o.SHORT_TYPE;
9565
+ N.l3_side.tt[O][pe].block_type = o.SHORT_TYPE;
9548
9566
  fe.mdct_sub48(N, u, C);
9549
9567
  }
9550
9568
  }
9551
- this.lame_encode_mp3_frame = function(H, ie, N, pe, F, P) {
9569
+ this.lame_encode_mp3_frame = function(H, ie, N, pe, O, P) {
9552
9570
  var t, u = Te([2, 2]);
9553
9571
  u[0][0] = new M(), u[0][1] = new M(), u[1][0] = new M(), u[1][1] = new M();
9554
9572
  var C = Te([2, 2]);
@@ -9580,19 +9598,19 @@ const T0 = /* @__PURE__ */ L0(Ga);
9580
9598
  } else
9581
9599
  w();
9582
9600
  if (y(h), fe.mdct_sub48(h, S[0], S[1]), h.mode_ext = o.MPG_MD_LR_LR, H.force_ms ? h.mode_ext = o.MPG_MD_MS_LR : H.mode == me.JOINT_STEREO && w(), h.mode_ext == c ? (q = C, X = n) : (q = u, X = B), H.analysis && h.pinfo != null && w(), H.VBR == I.vbr_off || H.VBR == I.vbr_abr) {
9583
- var $, O;
9601
+ var $, F;
9584
9602
  for ($ = 0; $ < 18; $++)
9585
9603
  h.nsPsy.pefirbuf[$] = h.nsPsy.pefirbuf[$ + 1];
9586
- for (O = 0, m = 0; m < h.mode_gr; m++)
9604
+ for (F = 0, m = 0; m < h.mode_gr; m++)
9587
9605
  for (f = 0; f < h.channels_out; f++)
9588
- O += X[m][f];
9589
- for (h.nsPsy.pefirbuf[18] = O, O = h.nsPsy.pefirbuf[9], $ = 0; $ < 9; $++)
9590
- O += (h.nsPsy.pefirbuf[$] + h.nsPsy.pefirbuf[18 - $]) * o.fircoef[$];
9591
- for (O = 670 * 5 * h.mode_gr * h.channels_out / O, m = 0; m < h.mode_gr; m++)
9606
+ F += X[m][f];
9607
+ for (h.nsPsy.pefirbuf[18] = F, F = h.nsPsy.pefirbuf[9], $ = 0; $ < 9; $++)
9608
+ F += (h.nsPsy.pefirbuf[$] + h.nsPsy.pefirbuf[18 - $]) * o.fircoef[$];
9609
+ for (F = 670 * 5 * h.mode_gr * h.channels_out / F, m = 0; m < h.mode_gr; m++)
9592
9610
  for (f = 0; f < h.channels_out; f++)
9593
- X[m][f] *= O;
9611
+ X[m][f] *= F;
9594
9612
  }
9595
- return h.iteration_loop.iteration_loop(H, X, d, q), k.format_bitstream(H), t = k.copy_buffer(h, pe, F, P, 1), H.bWriteVbrTag && R.addVbrFrame(H), H.analysis && h.pinfo != null && w(), z(h), t;
9613
+ return h.iteration_loop.iteration_loop(H, X, d, q), k.format_bitstream(H), t = k.copy_buffer(h, pe, O, P, 1), H.bWriteVbrTag && R.addVbrFrame(H), H.analysis && h.pinfo != null && w(), z(h), t;
9596
9614
  };
9597
9615
  }
9598
9616
  function te() {
@@ -9646,7 +9664,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
9646
9664
  function R(y, z, ue) {
9647
9665
  var H = 0, ie, N, pe;
9648
9666
  ue <<= 1;
9649
- var F = z + ue;
9667
+ var O = z + ue;
9650
9668
  ie = 4;
9651
9669
  do {
9652
9670
  var P, t, u, C, q, S, h;
@@ -9654,14 +9672,14 @@ const T0 = /* @__PURE__ */ L0(Ga);
9654
9672
  do {
9655
9673
  var g, d, B, n;
9656
9674
  d = y[N + 0] - y[N + C], g = y[N + 0] + y[N + C], n = y[N + q] - y[N + S], B = y[N + q] + y[N + S], y[N + q] = g - B, y[N + 0] = g + B, y[N + S] = d - n, y[N + C] = d + n, d = y[pe + 0] - y[pe + C], g = y[pe + 0] + y[pe + C], n = se.SQRT2 * y[pe + S], B = se.SQRT2 * y[pe + q], y[pe + q] = g - B, y[pe + 0] = g + B, y[pe + S] = d - n, y[pe + C] = d + n, pe += ie, N += ie;
9657
- } while (N < F);
9675
+ } while (N < O);
9658
9676
  for (t = W[H + 0], P = W[H + 1], u = 1; u < h; u++) {
9659
9677
  var X, f;
9660
9678
  X = 1 - 2 * P * P, f = 2 * P * t, N = z + u, pe = z + C - u;
9661
9679
  do {
9662
9680
  var m, b, T, g, d, D, B, r, n, i;
9663
9681
  b = f * y[N + C] - X * y[pe + C], m = X * y[N + C] + f * y[pe + C], d = y[N + 0] - m, g = y[N + 0] + m, D = y[pe + 0] - b, T = y[pe + 0] + b, b = f * y[N + S] - X * y[pe + S], m = X * y[N + S] + f * y[pe + S], n = y[N + q] - m, B = y[N + q] + m, i = y[pe + q] - b, r = y[pe + q] + b, b = P * B - t * i, m = t * B + P * i, y[N + q] = g - m, y[N + 0] = g + m, y[pe + S] = D - b, y[pe + C] = D + b, b = t * r - P * n, m = P * r + t * n, y[pe + q] = T - m, y[pe + 0] = T + m, y[N + S] = d - b, y[N + C] = d + b, pe += ie, N += ie;
9664
- } while (N < F);
9682
+ } while (N < O);
9665
9683
  X = t, t = X * W[H + 0] - P * W[H + 1], P = X * W[H + 1] + P * W[H + 0];
9666
9684
  }
9667
9685
  H += 2;
@@ -9799,18 +9817,18 @@ const T0 = /* @__PURE__ */ L0(Ga);
9799
9817
  ];
9800
9818
  this.fft_short = function(y, z, ue, H, ie) {
9801
9819
  for (var N = 0; N < 3; N++) {
9802
- var pe = o.BLKSIZE_s / 2, F = 65535 & 576 / 3 * (N + 1), P = o.BLKSIZE_s / 8 - 1;
9820
+ var pe = o.BLKSIZE_s / 2, O = 65535 & 576 / 3 * (N + 1), P = o.BLKSIZE_s / 8 - 1;
9803
9821
  do {
9804
9822
  var t, u, C, q, S, h = fe[P << 2] & 255;
9805
- t = k[h] * H[ue][ie + h + F], S = k[127 - h] * H[ue][ie + h + F + 128], u = t - S, t = t + S, C = k[h + 64] * H[ue][ie + h + F + 64], S = k[63 - h] * H[ue][ie + h + F + 192], q = C - S, C = C + S, pe -= 4, z[N][pe + 0] = t + C, z[N][pe + 2] = t - C, z[N][pe + 1] = u + q, z[N][pe + 3] = u - q, t = k[h + 1] * H[ue][ie + h + F + 1], S = k[126 - h] * H[ue][ie + h + F + 129], u = t - S, t = t + S, C = k[h + 65] * H[ue][ie + h + F + 65], S = k[62 - h] * H[ue][ie + h + F + 193], q = C - S, C = C + S, z[N][pe + o.BLKSIZE_s / 2 + 0] = t + C, z[N][pe + o.BLKSIZE_s / 2 + 2] = t - C, z[N][pe + o.BLKSIZE_s / 2 + 1] = u + q, z[N][pe + o.BLKSIZE_s / 2 + 3] = u - q;
9823
+ t = k[h] * H[ue][ie + h + O], S = k[127 - h] * H[ue][ie + h + O + 128], u = t - S, t = t + S, C = k[h + 64] * H[ue][ie + h + O + 64], S = k[63 - h] * H[ue][ie + h + O + 192], q = C - S, C = C + S, pe -= 4, z[N][pe + 0] = t + C, z[N][pe + 2] = t - C, z[N][pe + 1] = u + q, z[N][pe + 3] = u - q, t = k[h + 1] * H[ue][ie + h + O + 1], S = k[126 - h] * H[ue][ie + h + O + 129], u = t - S, t = t + S, C = k[h + 65] * H[ue][ie + h + O + 65], S = k[62 - h] * H[ue][ie + h + O + 193], q = C - S, C = C + S, z[N][pe + o.BLKSIZE_s / 2 + 0] = t + C, z[N][pe + o.BLKSIZE_s / 2 + 2] = t - C, z[N][pe + o.BLKSIZE_s / 2 + 1] = u + q, z[N][pe + o.BLKSIZE_s / 2 + 3] = u - q;
9806
9824
  } while (--P >= 0);
9807
9825
  R(z[N], pe, o.BLKSIZE_s / 2);
9808
9826
  }
9809
9827
  }, this.fft_long = function(y, z, ue, H, ie) {
9810
9828
  var N = o.BLKSIZE / 8 - 1, pe = o.BLKSIZE / 2;
9811
9829
  do {
9812
- var F, P, t, u, C, q = fe[N] & 255;
9813
- F = c[q] * H[ue][ie + q], C = c[q + 512] * H[ue][ie + q + 512], P = F - C, F = F + C, t = c[q + 256] * H[ue][ie + q + 256], C = c[q + 768] * H[ue][ie + q + 768], u = t - C, t = t + C, pe -= 4, z[pe + 0] = F + t, z[pe + 2] = F - t, z[pe + 1] = P + u, z[pe + 3] = P - u, F = c[q + 1] * H[ue][ie + q + 1], C = c[q + 513] * H[ue][ie + q + 513], P = F - C, F = F + C, t = c[q + 257] * H[ue][ie + q + 257], C = c[q + 769] * H[ue][ie + q + 769], u = t - C, t = t + C, z[pe + o.BLKSIZE / 2 + 0] = F + t, z[pe + o.BLKSIZE / 2 + 2] = F - t, z[pe + o.BLKSIZE / 2 + 1] = P + u, z[pe + o.BLKSIZE / 2 + 3] = P - u;
9830
+ var O, P, t, u, C, q = fe[N] & 255;
9831
+ O = c[q] * H[ue][ie + q], C = c[q + 512] * H[ue][ie + q + 512], P = O - C, O = O + C, t = c[q + 256] * H[ue][ie + q + 256], C = c[q + 768] * H[ue][ie + q + 768], u = t - C, t = t + C, pe -= 4, z[pe + 0] = O + t, z[pe + 2] = O - t, z[pe + 1] = P + u, z[pe + 3] = P - u, O = c[q + 1] * H[ue][ie + q + 1], C = c[q + 513] * H[ue][ie + q + 513], P = O - C, O = O + C, t = c[q + 257] * H[ue][ie + q + 257], C = c[q + 769] * H[ue][ie + q + 769], u = t - C, t = t + C, z[pe + o.BLKSIZE / 2 + 0] = O + t, z[pe + o.BLKSIZE / 2 + 2] = O - t, z[pe + o.BLKSIZE / 2 + 1] = P + u, z[pe + o.BLKSIZE / 2 + 3] = P - u;
9814
9832
  } while (--N >= 0);
9815
9833
  R(z, pe, o.BLKSIZE / 2);
9816
9834
  }, this.init_fft = function(y) {
@@ -9821,18 +9839,18 @@ const T0 = /* @__PURE__ */ L0(Ga);
9821
9839
  };
9822
9840
  }
9823
9841
  function ke() {
9824
- var c = new be(), k = 2.302585092994046, W = 2, R = 16, fe = 2, y = 16, z = 0.34, ue = 1 / (14752 * 14752) / (o.BLKSIZE / 2), H = 0.01, ie = 0.8, N = 0.6, pe = 0.3, F = 3.5, P = 21, t = 0.2302585093;
9842
+ var c = new be(), k = 2.302585092994046, W = 2, R = 16, fe = 2, y = 16, z = 0.34, ue = 1 / (14752 * 14752) / (o.BLKSIZE / 2), H = 0.01, ie = 0.8, N = 0.6, pe = 0.3, O = 3.5, P = 21, t = 0.2302585093;
9825
9843
  function u(ne, U) {
9826
9844
  for (var ee = 0, Ne = 0; Ne < o.BLKSIZE / 2; ++Ne)
9827
9845
  ee += ne[Ne] * U.ATH.eql_w[Ne];
9828
9846
  return ee *= ue, ee;
9829
9847
  }
9830
- function C(ne, U, ee, Ne, Oe, we, Le, Ie, He, et, Pe) {
9848
+ function C(ne, U, ee, Ne, Fe, we, Le, Ie, He, et, Pe) {
9831
9849
  var ht = ne.internal_flags;
9832
- He < 2 ? (c.fft_long(ht, Ne[Oe], He, et, Pe), c.fft_short(ht, we[Le], He, et, Pe)) : He == 2 && w(), U[0] = /*fix NON_LINEAR_SCALE_ENERGY*/
9833
- Ne[Oe + 0][0], U[0] *= U[0];
9850
+ He < 2 ? (c.fft_long(ht, Ne[Fe], He, et, Pe), c.fft_short(ht, we[Le], He, et, Pe)) : He == 2 && w(), U[0] = /*fix NON_LINEAR_SCALE_ENERGY*/
9851
+ Ne[Fe + 0][0], U[0] *= U[0];
9834
9852
  for (var st = o.BLKSIZE / 2 - 1; st >= 0; --st) {
9835
- var ct = Ne[Oe + 0][o.BLKSIZE / 2 - st], bt = Ne[Oe + 0][o.BLKSIZE / 2 + st];
9853
+ var ct = Ne[Fe + 0][o.BLKSIZE / 2 - st], bt = Ne[Fe + 0][o.BLKSIZE / 2 + st];
9836
9854
  U[o.BLKSIZE / 2 - st] = /*fix NON_LINEAR_SCALE_ENERGY*/
9837
9855
  (ct * ct + bt * bt) * 0.5;
9838
9856
  }
@@ -9845,9 +9863,9 @@ const T0 = /* @__PURE__ */ L0(Ga);
9845
9863
  }
9846
9864
  }
9847
9865
  {
9848
- for (var $e = 0, st = 11; st < o.HBLKSIZE; st++)
9849
- $e += U[st];
9850
- ht.tot_ener[He] = $e;
9866
+ for (var Qe = 0, st = 11; st < o.HBLKSIZE; st++)
9867
+ Qe += U[st];
9868
+ ht.tot_ener[He] = Qe;
9851
9869
  }
9852
9870
  ne.analysis && w(), ne.athaa_loudapprox == 2 && He < 2 && (ht.loudness_sq[Ie][He] = ht.loudness_sq_save[He], ht.loudness_sq_save[He] = u(U, ht));
9853
9871
  }
@@ -9918,7 +9936,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
9918
9936
  1.11084 * 1.11084,
9919
9937
  1.03826 * 1.03826
9920
9938
  ];
9921
- function T(ne, U, ee, Ne, Oe, we) {
9939
+ function T(ne, U, ee, Ne, Fe, we) {
9922
9940
  var Le;
9923
9941
  if (U > ne)
9924
9942
  if (U < ne * d)
@@ -9937,7 +9955,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
9937
9955
  return ne * m[Ie];
9938
9956
  }
9939
9957
  var Ie = 0 | se.FAST_LOG10_X(Le, 16);
9940
- if (U = Oe.ATH.cb_l[ee] * Oe.ATH.adjust, ne < B * U) {
9958
+ if (U = Fe.ATH.cb_l[ee] * Fe.ATH.adjust, ne < B * U) {
9941
9959
  if (ne > U) {
9942
9960
  var He, et;
9943
9961
  return He = 1, Ie <= 13 && (He = b[Ie]), et = se.FAST_LOG10_X(ne / U, 10 / 15), ne * ((f[Ie] - He) * et + He);
@@ -9946,41 +9964,41 @@ const T0 = /* @__PURE__ */ L0(Ga);
9946
9964
  }
9947
9965
  return ne * f[Ie];
9948
9966
  }
9949
- function D(ne, U, ee, Ne, Oe) {
9967
+ function D(ne, U, ee, Ne, Fe) {
9950
9968
  var we, Le, Ie = 0, He = 0;
9951
9969
  for (we = Le = 0; we < o.SBMAX_s; ++Le, ++we) {
9952
9970
  for (var et = ne.bo_s[we], Pe = ne.npart_s, ht = et < Pe ? et : Pe; Le < ht; )
9953
9971
  Ie += U[Le], He += ee[Le], Le++;
9954
- if (ne.en[Ne].s[we][Oe] = Ie, ne.thm[Ne].s[we][Oe] = He, Le >= Pe) {
9972
+ if (ne.en[Ne].s[we][Fe] = Ie, ne.thm[Ne].s[we][Fe] = He, Le >= Pe) {
9955
9973
  ++we;
9956
9974
  break;
9957
9975
  }
9958
9976
  {
9959
9977
  var st = ne.PSY.bo_s_weight[we], ct = 1 - st;
9960
- Ie = st * U[Le], He = st * ee[Le], ne.en[Ne].s[we][Oe] += Ie, ne.thm[Ne].s[we][Oe] += He, Ie = ct * U[Le], He = ct * ee[Le];
9978
+ Ie = st * U[Le], He = st * ee[Le], ne.en[Ne].s[we][Fe] += Ie, ne.thm[Ne].s[we][Fe] += He, Ie = ct * U[Le], He = ct * ee[Le];
9961
9979
  }
9962
9980
  }
9963
9981
  for (; we < o.SBMAX_s; ++we)
9964
- ne.en[Ne].s[we][Oe] = 0, ne.thm[Ne].s[we][Oe] = 0;
9982
+ ne.en[Ne].s[we][Fe] = 0, ne.thm[Ne].s[we][Fe] = 0;
9965
9983
  }
9966
9984
  function r(ne, U, ee, Ne) {
9967
- var Oe, we, Le = 0, Ie = 0;
9968
- for (Oe = we = 0; Oe < o.SBMAX_l; ++we, ++Oe) {
9969
- for (var He = ne.bo_l[Oe], et = ne.npart_l, Pe = He < et ? He : et; we < Pe; )
9985
+ var Fe, we, Le = 0, Ie = 0;
9986
+ for (Fe = we = 0; Fe < o.SBMAX_l; ++we, ++Fe) {
9987
+ for (var He = ne.bo_l[Fe], et = ne.npart_l, Pe = He < et ? He : et; we < Pe; )
9970
9988
  Le += U[we], Ie += ee[we], we++;
9971
- if (ne.en[Ne].l[Oe] = Le, ne.thm[Ne].l[Oe] = Ie, we >= et) {
9972
- ++Oe;
9989
+ if (ne.en[Ne].l[Fe] = Le, ne.thm[Ne].l[Fe] = Ie, we >= et) {
9990
+ ++Fe;
9973
9991
  break;
9974
9992
  }
9975
9993
  {
9976
- var ht = ne.PSY.bo_l_weight[Oe], st = 1 - ht;
9977
- Le = ht * U[we], Ie = ht * ee[we], ne.en[Ne].l[Oe] += Le, ne.thm[Ne].l[Oe] += Ie, Le = st * U[we], Ie = st * ee[we];
9994
+ var ht = ne.PSY.bo_l_weight[Fe], st = 1 - ht;
9995
+ Le = ht * U[we], Ie = ht * ee[we], ne.en[Ne].l[Fe] += Le, ne.thm[Ne].l[Fe] += Ie, Le = st * U[we], Ie = st * ee[we];
9978
9996
  }
9979
9997
  }
9980
- for (; Oe < o.SBMAX_l; ++Oe)
9981
- ne.en[Ne].l[Oe] = 0, ne.thm[Ne].l[Oe] = 0;
9998
+ for (; Fe < o.SBMAX_l; ++Fe)
9999
+ ne.en[Ne].l[Fe] = 0, ne.thm[Ne].l[Fe] = 0;
9982
10000
  }
9983
- function i(ne, U, ee, Ne, Oe, we) {
10001
+ function i(ne, U, ee, Ne, Fe, we) {
9984
10002
  var Le = ne.internal_flags, Ie, He;
9985
10003
  for (He = Ie = 0; He < Le.npart_s; ++He) {
9986
10004
  for (var et = 0, Pe = Le.numlines_s[He], ht = 0; ht < Pe; ++ht, ++Ie) {
@@ -9994,25 +10012,25 @@ const T0 = /* @__PURE__ */ L0(Ga);
9994
10012
  for (++ct; ct <= Le.s3ind_s[He][1]; )
9995
10013
  bt += Le.s3_ss[Ie] * ee[ct], ++Ie, ++ct;
9996
10014
  {
9997
- var ot = fe * Le.nb_s1[Oe][He];
10015
+ var ot = fe * Le.nb_s1[Fe][He];
9998
10016
  Ne[He] = Math.min(bt, ot);
9999
10017
  }
10000
- if (Le.blocktype_old[Oe & 1] == o.SHORT_TYPE) {
10001
- var ot = y * Le.nb_s2[Oe][He], $e = Ne[He];
10002
- Ne[He] = Math.min(ot, $e);
10018
+ if (Le.blocktype_old[Fe & 1] == o.SHORT_TYPE) {
10019
+ var ot = y * Le.nb_s2[Fe][He], Qe = Ne[He];
10020
+ Ne[He] = Math.min(ot, Qe);
10003
10021
  }
10004
- Le.nb_s2[Oe][He] = Le.nb_s1[Oe][He], Le.nb_s1[Oe][He] = bt;
10022
+ Le.nb_s2[Fe][He] = Le.nb_s1[Fe][He], Le.nb_s1[Fe][He] = bt;
10005
10023
  }
10006
10024
  for (; He <= o.CBANDS; ++He)
10007
10025
  ee[He] = 0, Ne[He] = 0;
10008
10026
  }
10009
10027
  function $(ne, U, ee, Ne) {
10010
- var Oe = ne.internal_flags;
10028
+ var Fe = ne.internal_flags;
10011
10029
  ne.short_blocks == _e.short_block_coupled && !(U[0] != 0 && U[1] != 0) && (U[0] = U[1] = 0);
10012
- for (var we = 0; we < Oe.channels_out; we++)
10013
- Ne[we] = o.NORM_TYPE, ne.short_blocks == _e.short_block_dispensed && (U[we] = 1), ne.short_blocks == _e.short_block_forced && (U[we] = 0), U[we] != 0 ? Oe.blocktype_old[we] == o.SHORT_TYPE && (Ne[we] = o.STOP_TYPE) : (Ne[we] = o.SHORT_TYPE, Oe.blocktype_old[we] == o.NORM_TYPE && (Oe.blocktype_old[we] = o.START_TYPE), Oe.blocktype_old[we] == o.STOP_TYPE && (Oe.blocktype_old[we] = o.SHORT_TYPE)), ee[we] = Oe.blocktype_old[we], Oe.blocktype_old[we] = Ne[we];
10030
+ for (var we = 0; we < Fe.channels_out; we++)
10031
+ Ne[we] = o.NORM_TYPE, ne.short_blocks == _e.short_block_dispensed && (U[we] = 1), ne.short_blocks == _e.short_block_forced && (U[we] = 0), U[we] != 0 ? Fe.blocktype_old[we] == o.SHORT_TYPE && (Ne[we] = o.STOP_TYPE) : (Ne[we] = o.SHORT_TYPE, Fe.blocktype_old[we] == o.NORM_TYPE && (Fe.blocktype_old[we] = o.START_TYPE), Fe.blocktype_old[we] == o.STOP_TYPE && (Fe.blocktype_old[we] = o.SHORT_TYPE)), ee[we] = Fe.blocktype_old[we], Fe.blocktype_old[we] = Ne[we];
10014
10032
  }
10015
- function O(ne, U, ee) {
10033
+ function F(ne, U, ee) {
10016
10034
  return ee >= 1 ? ne : ee <= 0 ? U : U > 0 ? Math.pow(ne / U, ee) * U : 0;
10017
10035
  }
10018
10036
  var K = [
@@ -10032,10 +10050,10 @@ const T0 = /* @__PURE__ */ L0(Ga);
10032
10050
  ];
10033
10051
  function ve(ne, U) {
10034
10052
  for (var ee = 309.07, Ne = 0; Ne < o.SBMAX_s - 1; Ne++)
10035
- for (var Oe = 0; Oe < 3; Oe++) {
10036
- var we = ne.thm.s[Ne][Oe];
10053
+ for (var Fe = 0; Fe < 3; Fe++) {
10054
+ var we = ne.thm.s[Ne][Fe];
10037
10055
  if (we > 0) {
10038
- var Le = we * U, Ie = ne.en.s[Ne][Oe];
10056
+ var Le = we * U, Ie = ne.en.s[Ne][Fe];
10039
10057
  Ie > Le && (Ie > Le * 1e10 ? ee += K[Ne] * (10 * k) : ee += K[Ne] * se.FAST_LOG10(Ie / Le));
10040
10058
  }
10041
10059
  }
@@ -10067,15 +10085,15 @@ const T0 = /* @__PURE__ */ L0(Ga);
10067
10085
  ];
10068
10086
  function Me(ne, U) {
10069
10087
  for (var ee = 281.0575, Ne = 0; Ne < o.SBMAX_l - 1; Ne++) {
10070
- var Oe = ne.thm.l[Ne];
10071
- if (Oe > 0) {
10072
- var we = Oe * U, Le = ne.en.l[Ne];
10088
+ var Fe = ne.thm.l[Ne];
10089
+ if (Fe > 0) {
10090
+ var we = Fe * U, Le = ne.en.l[Ne];
10073
10091
  Le > we && (Le > we * 1e10 ? ee += xe[Ne] * (10 * k) : ee += xe[Ne] * se.FAST_LOG10(Le / we));
10074
10092
  }
10075
10093
  }
10076
10094
  return ee;
10077
10095
  }
10078
- function ze(ne, U, ee, Ne, Oe) {
10096
+ function ze(ne, U, ee, Ne, Fe) {
10079
10097
  var we, Le;
10080
10098
  for (we = Le = 0; we < ne.npart_l; ++we) {
10081
10099
  var Ie = 0, He = 0, et;
@@ -10083,16 +10101,16 @@ const T0 = /* @__PURE__ */ L0(Ga);
10083
10101
  var Pe = U[Le];
10084
10102
  Ie += Pe, He < Pe && (He = Pe);
10085
10103
  }
10086
- ee[we] = Ie, Ne[we] = He, Oe[we] = Ie * ne.rnumlines_l[we];
10104
+ ee[we] = Ie, Ne[we] = He, Fe[we] = Ie * ne.rnumlines_l[we];
10087
10105
  }
10088
10106
  }
10089
10107
  function Ke(ne, U, ee, Ne) {
10090
- var Oe = n.length - 1, we = 0, Le = ee[we] + ee[we + 1];
10108
+ var Fe = n.length - 1, we = 0, Le = ee[we] + ee[we + 1];
10091
10109
  if (Le > 0) {
10092
10110
  var Ie = U[we];
10093
10111
  Ie < U[we + 1] && (Ie = U[we + 1]), Le = 20 * (Ie * 2 - Le) / (Le * (ne.numlines_l[we] + ne.numlines_l[we + 1] - 1));
10094
10112
  var He = 0 | Le;
10095
- He > Oe && (He = Oe), Ne[we] = He;
10113
+ He > Fe && (He = Fe), Ne[we] = He;
10096
10114
  } else
10097
10115
  Ne[we] = 0;
10098
10116
  for (we = 1; we < ne.npart_l - 1; we++)
@@ -10100,14 +10118,14 @@ const T0 = /* @__PURE__ */ L0(Ga);
10100
10118
  var Ie = U[we - 1];
10101
10119
  Ie < U[we] && (Ie = U[we]), Ie < U[we + 1] && (Ie = U[we + 1]), Le = 20 * (Ie * 3 - Le) / (Le * (ne.numlines_l[we - 1] + ne.numlines_l[we] + ne.numlines_l[we + 1] - 1));
10102
10120
  var He = 0 | Le;
10103
- He > Oe && (He = Oe), Ne[we] = He;
10121
+ He > Fe && (He = Fe), Ne[we] = He;
10104
10122
  } else
10105
10123
  Ne[we] = 0;
10106
10124
  if (Le = ee[we - 1] + ee[we], Le > 0) {
10107
10125
  var Ie = U[we - 1];
10108
10126
  Ie < U[we] && (Ie = U[we]), Le = 20 * (Ie * 2 - Le) / (Le * (ne.numlines_l[we - 1] + ne.numlines_l[we] - 1));
10109
10127
  var He = 0 | Le;
10110
- He > Oe && (He = Oe), Ne[we] = He;
10128
+ He > Fe && (He = Fe), Ne[we] = He;
10111
10129
  } else
10112
10130
  Ne[we] = 0;
10113
10131
  }
@@ -10123,8 +10141,8 @@ const T0 = /* @__PURE__ */ L0(Ga);
10123
10141
  -552212e-22 * 2,
10124
10142
  -0.313819 * 2
10125
10143
  ];
10126
- this.L3psycho_anal_ns = function(ne, U, ee, Ne, Oe, we, Le, Ie, He, et) {
10127
- var Pe = ne.internal_flags, ht = Q([2, o.BLKSIZE]), st = Q([2, 3, o.BLKSIZE_s]), ct = E(o.CBANDS + 1), bt = E(o.CBANDS + 1), ot = E(o.CBANDS + 2), $e = Y(2), ut = Y(2), Ct, Ue, tt, Xe, mt, qt, Dt, lt, l0 = Q([2, 576]), It, Xt = Y(o.CBANDS + 2), e0 = Y(o.CBANDS + 2);
10144
+ this.L3psycho_anal_ns = function(ne, U, ee, Ne, Fe, we, Le, Ie, He, et) {
10145
+ var Pe = ne.internal_flags, ht = Q([2, o.BLKSIZE]), st = Q([2, 3, o.BLKSIZE_s]), ct = E(o.CBANDS + 1), bt = E(o.CBANDS + 1), ot = E(o.CBANDS + 2), Qe = Y(2), ut = Y(2), Ct, Ue, tt, Xe, mt, qt, Dt, lt, l0 = Q([2, 576]), It, Xt = Y(o.CBANDS + 2), e0 = Y(o.CBANDS + 2);
10128
10146
  for (Be.fill(e0, 0), Ct = Pe.channels_out, ne.mode == me.JOINT_STEREO && (Ct = 4), ne.VBR == I.vbr_off ? It = Pe.ResvMax == 0 ? 0 : Pe.ResvSize / Pe.ResvMax * 0.5 : ne.VBR == I.vbr_rh || ne.VBR == I.vbr_mtrh || ne.VBR == I.vbr_mt ? It = 0.6 : It = 1, Ue = 0; Ue < Pe.channels_out; Ue++) {
10129
10147
  var r0 = U[Ue], a0 = ee + 576 - 350 - P + 192;
10130
10148
  for (Xe = 0; Xe < 576; Xe++) {
@@ -10133,19 +10151,19 @@ const T0 = /* @__PURE__ */ L0(Ga);
10133
10151
  _0 += We[mt] * (r0[a0 + Xe + mt] + r0[a0 + Xe + P - mt]), m0 += We[mt + 1] * (r0[a0 + Xe + mt + 1] + r0[a0 + Xe + P - mt - 1]);
10134
10152
  l0[Ue][Xe] = _0 + m0;
10135
10153
  }
10136
- Oe[Ne][Ue].en.assign(Pe.en[Ue]), Oe[Ne][Ue].thm.assign(Pe.thm[Ue]), Ct > 2 && w();
10154
+ Fe[Ne][Ue].en.assign(Pe.en[Ue]), Fe[Ne][Ue].thm.assign(Pe.thm[Ue]), Ct > 2 && w();
10137
10155
  }
10138
10156
  for (Ue = 0; Ue < Ct; Ue++) {
10139
- var I0, O0, Ot = E(12), jt = [0, 0, 0, 0], p0 = E(12), F0 = 1, N0, Y0 = E(o.CBANDS), H0 = E(o.CBANDS), St = [0, 0, 0, 0], V0 = E(o.HBLKSIZE), P0 = Q([3, o.HBLKSIZE_s]);
10157
+ var I0, F0, Ft = E(12), jt = [0, 0, 0, 0], p0 = E(12), O0 = 1, N0, Y0 = E(o.CBANDS), H0 = E(o.CBANDS), St = [0, 0, 0, 0], V0 = E(o.HBLKSIZE), P0 = Q([3, o.HBLKSIZE_s]);
10140
10158
  for (Xe = 0; Xe < 3; Xe++)
10141
- Ot[Xe] = Pe.nsPsy.last_en_subshort[Ue][Xe + 6], p0[Xe] = Ot[Xe] / Pe.nsPsy.last_en_subshort[Ue][Xe + 4], jt[0] += Ot[Xe];
10159
+ Ft[Xe] = Pe.nsPsy.last_en_subshort[Ue][Xe + 6], p0[Xe] = Ft[Xe] / Pe.nsPsy.last_en_subshort[Ue][Xe + 4], jt[0] += Ft[Xe];
10142
10160
  Ue == 2 && w();
10143
10161
  {
10144
10162
  var U0 = l0[Ue & 1], i0 = 0;
10145
10163
  for (Xe = 0; Xe < 9; Xe++) {
10146
- for (var pr = i0 + 64, At = 1; i0 < pr; i0++)
10164
+ for (var _r = i0 + 64, At = 1; i0 < _r; i0++)
10147
10165
  At < Math.abs(U0[i0]) && (At = Math.abs(U0[i0]));
10148
- Pe.nsPsy.last_en_subshort[Ue][Xe] = Ot[Xe + 3] = At, jt[1 + Xe / 3] += At, At > Ot[Xe + 3 - 2] ? At = At / Ot[Xe + 3 - 2] : Ot[Xe + 3 - 2] > At * 10 ? At = Ot[Xe + 3 - 2] / (At * 10) : At = 0, p0[Xe + 3] = At;
10166
+ Pe.nsPsy.last_en_subshort[Ue][Xe] = Ft[Xe + 3] = At, jt[1 + Xe / 3] += At, At > Ft[Xe + 3 - 2] ? At = At / Ft[Xe + 3 - 2] : Ft[Xe + 3 - 2] > At * 10 ? At = Ft[Xe + 3 - 2] / (At * 10) : At = 0, p0[Xe + 3] = At;
10149
10167
  }
10150
10168
  }
10151
10169
  for (ne.analysis && w(), N0 = Ue == 3 ? Pe.nsPsy.attackthre_s : Pe.nsPsy.attackthre, Xe = 0; Xe < 12; Xe++)
@@ -10154,13 +10172,13 @@ const T0 = /* @__PURE__ */ L0(Ga);
10154
10172
  var b0;
10155
10173
  jt[Xe - 1] > jt[Xe] ? b0 = jt[Xe - 1] / jt[Xe] : b0 = jt[Xe] / jt[Xe - 1], b0 < 1.7 && (St[Xe] = 0, Xe == 1 && (St[0] = 0));
10156
10174
  }
10157
- for (St[0] != 0 && Pe.nsPsy.lastAttacks[Ue] != 0 && (St[0] = 0), (Pe.nsPsy.lastAttacks[Ue] == 3 || St[0] + St[1] + St[2] + St[3] != 0) && (F0 = 0, St[1] != 0 && St[0] != 0 && (St[1] = 0), St[2] != 0 && St[1] != 0 && (St[2] = 0), St[3] != 0 && St[2] != 0 && (St[3] = 0)), Ue < 2 ? ut[Ue] = F0 : w(), He[Ue] = Pe.tot_ener[Ue], O0 = st, I0 = ht, C(
10175
+ for (St[0] != 0 && Pe.nsPsy.lastAttacks[Ue] != 0 && (St[0] = 0), (Pe.nsPsy.lastAttacks[Ue] == 3 || St[0] + St[1] + St[2] + St[3] != 0) && (O0 = 0, St[1] != 0 && St[0] != 0 && (St[1] = 0), St[2] != 0 && St[1] != 0 && (St[2] = 0), St[3] != 0 && St[2] != 0 && (St[3] = 0)), Ue < 2 ? ut[Ue] = O0 : w(), He[Ue] = Pe.tot_ener[Ue], F0 = st, I0 = ht, C(
10158
10176
  ne,
10159
10177
  V0,
10160
10178
  P0,
10161
10179
  I0,
10162
10180
  Ue & 1,
10163
- O0,
10181
+ F0,
10164
10182
  Ue & 1,
10165
10183
  Ne,
10166
10184
  Ue,
@@ -10170,7 +10188,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
10170
10188
  var w0, Lt;
10171
10189
  for (i(ne, P0, bt, ot, Ue, lt), D(Pe, bt, ot, Ue, lt), Dt = 0; Dt < o.SBMAX_s; Dt++) {
10172
10190
  if (Lt = Pe.thm[Ue].s[Dt][lt], Lt *= ie, St[lt] >= 2 || St[lt + 1] == 1) {
10173
- var n0 = lt != 0 ? lt - 1 : 2, At = O(
10191
+ var n0 = lt != 0 ? lt - 1 : 2, At = F(
10174
10192
  Pe.thm[Ue].s[Dt][n0],
10175
10193
  Lt,
10176
10194
  N * It
@@ -10178,21 +10196,21 @@ const T0 = /* @__PURE__ */ L0(Ga);
10178
10196
  Lt = Math.min(Lt, At);
10179
10197
  }
10180
10198
  if (St[lt] == 1) {
10181
- var n0 = lt != 0 ? lt - 1 : 2, At = O(
10199
+ var n0 = lt != 0 ? lt - 1 : 2, At = F(
10182
10200
  Pe.thm[Ue].s[Dt][n0],
10183
10201
  Lt,
10184
10202
  pe * It
10185
10203
  );
10186
10204
  Lt = Math.min(Lt, At);
10187
10205
  } else if (lt != 0 && St[lt - 1] == 3 || lt == 0 && Pe.nsPsy.lastAttacks[Ue] == 3) {
10188
- var n0 = lt != 2 ? lt + 1 : 0, At = O(
10206
+ var n0 = lt != 2 ? lt + 1 : 0, At = F(
10189
10207
  Pe.thm[Ue].s[Dt][n0],
10190
10208
  Lt,
10191
10209
  pe * It
10192
10210
  );
10193
10211
  Lt = Math.min(Lt, At);
10194
10212
  }
10195
- w0 = Ot[lt * 3 + 3] + Ot[lt * 3 + 4] + Ot[lt * 3 + 5], Ot[lt * 3 + 5] * 6 < w0 && (Lt *= 0.5, Ot[lt * 3 + 4] * 6 < w0 && (Lt *= 0.5)), Pe.thm[Ue].s[Dt][lt] = Lt;
10213
+ w0 = Ft[lt * 3 + 3] + Ft[lt * 3 + 4] + Ft[lt * 3 + 5], Ft[lt * 3 + 5] * 6 < w0 && (Lt *= 0.5, Ft[lt * 3 + 4] * 6 < w0 && (Lt *= 0.5)), Pe.thm[Ue].s[Dt][lt] = Lt;
10196
10214
  }
10197
10215
  }
10198
10216
  for (Pe.nsPsy.lastAttacks[Ue] = St[2], qt = 0, tt = 0; tt < Pe.npart_l; tt++) {
@@ -10204,7 +10222,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
10204
10222
  Kt - tt,
10205
10223
  Pe
10206
10224
  );
10207
- Zt *= 0.158489319246111, Pe.blocktype_old[Ue & 1] == o.SHORT_TYPE ? ot[tt] = Zt : ot[tt] = O(
10225
+ Zt *= 0.158489319246111, Pe.blocktype_old[Ue & 1] == o.SHORT_TYPE ? ot[tt] = Zt : ot[tt] = F(
10208
10226
  Math.min(Zt, Math.min(W * Pe.nb_1[Ue][tt], R * Pe.nb_2[Ue][tt])),
10209
10227
  Zt,
10210
10228
  It
@@ -10214,35 +10232,35 @@ const T0 = /* @__PURE__ */ L0(Ga);
10214
10232
  ct[tt] = 0, ot[tt] = 0;
10215
10233
  r(Pe, ct, ot, Ue);
10216
10234
  }
10217
- for ((ne.mode == me.STEREO || ne.mode == me.JOINT_STEREO) && w(), ne.mode == me.JOINT_STEREO && w(), $(ne, ut, et, $e), Ue = 0; Ue < Ct; Ue++) {
10235
+ for ((ne.mode == me.STEREO || ne.mode == me.JOINT_STEREO) && w(), ne.mode == me.JOINT_STEREO && w(), $(ne, ut, et, Qe), Ue = 0; Ue < Ct; Ue++) {
10218
10236
  var u0, d0 = 0, z0, g0;
10219
- Ue > 1 ? w() : (u0 = Le, d0 = 0, z0 = et[Ue], g0 = Oe[Ne][Ue]), z0 == o.SHORT_TYPE ? u0[d0 + Ue] = ve(g0, Pe.masking_lower) : u0[d0 + Ue] = Me(g0, Pe.masking_lower), ne.analysis && (Pe.pinfo.pe[Ne][Ue] = u0[d0 + Ue]);
10237
+ Ue > 1 ? w() : (u0 = Le, d0 = 0, z0 = et[Ue], g0 = Fe[Ne][Ue]), z0 == o.SHORT_TYPE ? u0[d0 + Ue] = ve(g0, Pe.masking_lower) : u0[d0 + Ue] = Me(g0, Pe.masking_lower), ne.analysis && (Pe.pinfo.pe[Ne][Ue] = u0[d0 + Ue]);
10220
10238
  }
10221
10239
  return 0;
10222
10240
  };
10223
10241
  function gt(ne) {
10224
- var U, ee, Ne, Oe;
10225
- return U = ne, U >= 0 ? U *= 3 : U *= 1.5, U >= 0.5 && U <= 2.5 ? (Oe = U - 0.5, ee = 8 * (Oe * Oe - 2 * Oe)) : ee = 0, U += 0.474, Ne = 15.811389 + 7.5 * U - 17.5 * Math.sqrt(1 + U * U), Ne <= -60 ? 0 : (U = Math.exp((ee + Ne) * t), U /= 0.6609193, U);
10242
+ var U, ee, Ne, Fe;
10243
+ return U = ne, U >= 0 ? U *= 3 : U *= 1.5, U >= 0.5 && U <= 2.5 ? (Fe = U - 0.5, ee = 8 * (Fe * Fe - 2 * Fe)) : ee = 0, U += 0.474, Ne = 15.811389 + 7.5 * U - 17.5 * Math.sqrt(1 + U * U), Ne <= -60 ? 0 : (U = Math.exp((ee + Ne) * t), U /= 0.6609193, U);
10226
10244
  }
10227
10245
  function xt(ne) {
10228
10246
  return ne < 0 && (ne = 0), ne = ne * 1e-3, 13 * Math.atan(0.76 * ne) + 3.5 * Math.atan(ne * ne / (7.5 * 7.5));
10229
10247
  }
10230
- function ft(ne, U, ee, Ne, Oe, we, Le, Ie, He, et, Pe, ht) {
10248
+ function ft(ne, U, ee, Ne, Fe, we, Le, Ie, He, et, Pe, ht) {
10231
10249
  var st = E(o.CBANDS + 1), ct = Ie / (ht > 15 ? 2 * 576 : 2 * 192), bt = Y(o.HBLKSIZE), ot;
10232
10250
  Ie /= He;
10233
- var $e = 0, ut = 0;
10251
+ var Qe = 0, ut = 0;
10234
10252
  for (ot = 0; ot < o.CBANDS; ot++) {
10235
10253
  var Ct, Ue;
10236
- for (Ct = xt(Ie * $e), st[ot] = Ie * $e, Ue = $e; xt(Ie * Ue) - Ct < z && Ue <= He / 2; Ue++)
10254
+ for (Ct = xt(Ie * Qe), st[ot] = Ie * Qe, Ue = Qe; xt(Ie * Ue) - Ct < z && Ue <= He / 2; Ue++)
10237
10255
  ;
10238
- for (ne[ot] = Ue - $e, ut = ot + 1; $e < Ue; )
10239
- bt[$e++] = ot;
10240
- if ($e > He / 2) {
10241
- $e = He / 2, ++ot;
10256
+ for (ne[ot] = Ue - Qe, ut = ot + 1; Qe < Ue; )
10257
+ bt[Qe++] = ot;
10258
+ if (Qe > He / 2) {
10259
+ Qe = He / 2, ++ot;
10242
10260
  break;
10243
10261
  }
10244
10262
  }
10245
- st[ot] = Ie * $e;
10263
+ st[ot] = Ie * Qe;
10246
10264
  for (var tt = 0; tt < ht; tt++) {
10247
10265
  var Xe, mt, qt, Dt, lt;
10248
10266
  qt = et[tt], Dt = et[tt + 1], Xe = 0 | Math.floor(0.5 + Pe * (qt - 0.5)), Xe < 0 && (Xe = 0), mt = 0 | Math.floor(0.5 + Pe * (Dt - 0.5)), mt > He / 2 && (mt = He / 2), ee[tt] = (bt[Xe] + bt[mt]) / 2, U[tt] = bt[mt];
@@ -10252,20 +10270,20 @@ const T0 = /* @__PURE__ */ L0(Ga);
10252
10270
  1.25 * (1 - Math.cos(Math.PI * lt)) - 2.5
10253
10271
  );
10254
10272
  }
10255
- $e = 0;
10273
+ Qe = 0;
10256
10274
  for (var It = 0; It < ut; It++) {
10257
10275
  var Xt = ne[It], Ct, e0;
10258
- Ct = xt(Ie * $e), e0 = xt(Ie * ($e + Xt - 1)), Ne[It] = 0.5 * (Ct + e0), Ct = xt(Ie * ($e - 0.5)), e0 = xt(Ie * ($e + Xt - 0.5)), Oe[It] = e0 - Ct, $e += Xt;
10276
+ Ct = xt(Ie * Qe), e0 = xt(Ie * (Qe + Xt - 1)), Ne[It] = 0.5 * (Ct + e0), Ct = xt(Ie * (Qe - 0.5)), e0 = xt(Ie * (Qe + Xt - 0.5)), Fe[It] = e0 - Ct, Qe += Xt;
10259
10277
  }
10260
10278
  return ut;
10261
10279
  }
10262
- function pt(ne, U, ee, Ne, Oe, we) {
10280
+ function pt(ne, U, ee, Ne, Fe, we) {
10263
10281
  var Le = Q([o.CBANDS, o.CBANDS]), Ie, He = 0;
10264
10282
  if (we)
10265
10283
  for (var et = 0; et < U; et++)
10266
10284
  for (Ie = 0; Ie < U; Ie++) {
10267
10285
  var Pe = gt(ee[et] - ee[Ie]) * Ne[Ie];
10268
- Le[et][Ie] = Pe * Oe[et];
10286
+ Le[et][Ie] = Pe * Fe[et];
10269
10287
  }
10270
10288
  else
10271
10289
  w();
@@ -10289,7 +10307,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
10289
10307
  );
10290
10308
  }
10291
10309
  this.psymodel_init = function(ne) {
10292
- var U = ne.internal_flags, ee, Ne = !0, Oe = 13, we = 24, Le = 0, Ie = 0, He = -8.25, et = -4.5, Pe = E(o.CBANDS), ht = E(o.CBANDS), st = E(o.CBANDS), ct = ne.out_samplerate;
10310
+ var U = ne.internal_flags, ee, Ne = !0, Fe = 13, we = 24, Le = 0, Ie = 0, He = -8.25, et = -4.5, Pe = E(o.CBANDS), ht = E(o.CBANDS), st = E(o.CBANDS), ct = ne.out_samplerate;
10293
10311
  switch (ne.experimentalZ) {
10294
10312
  default:
10295
10313
  case 0:
@@ -10302,21 +10320,21 @@ const T0 = /* @__PURE__ */ L0(Ga);
10302
10320
  Ne = !1;
10303
10321
  break;
10304
10322
  case 3:
10305
- Oe = 8, Le = -1.75, Ie = -0.0125, He = -8.25, et = -2.25;
10323
+ Fe = 8, Le = -1.75, Ie = -0.0125, He = -8.25, et = -2.25;
10306
10324
  break;
10307
10325
  }
10308
10326
  for (U.ms_ener_ratio_old = 0.25, U.blocktype_old[0] = U.blocktype_old[1] = o.NORM_TYPE, ee = 0; ee < 4; ++ee) {
10309
- for (var $e = 0; $e < o.CBANDS; ++$e)
10310
- U.nb_1[ee][$e] = 1e20, U.nb_2[ee][$e] = 1e20, U.nb_s1[ee][$e] = U.nb_s2[ee][$e] = 1;
10327
+ for (var Qe = 0; Qe < o.CBANDS; ++Qe)
10328
+ U.nb_1[ee][Qe] = 1e20, U.nb_2[ee][Qe] = 1e20, U.nb_s1[ee][Qe] = U.nb_s2[ee][Qe] = 1;
10311
10329
  for (var bt = 0; bt < o.SBMAX_l; bt++)
10312
10330
  U.en[ee].l[bt] = 1e20, U.thm[ee].l[bt] = 1e20;
10313
- for (var $e = 0; $e < 3; ++$e) {
10331
+ for (var Qe = 0; Qe < 3; ++Qe) {
10314
10332
  for (var bt = 0; bt < o.SBMAX_s; bt++)
10315
- U.en[ee].s[bt][$e] = 1e20, U.thm[ee].s[bt][$e] = 1e20;
10333
+ U.en[ee].s[bt][Qe] = 1e20, U.thm[ee].s[bt][Qe] = 1e20;
10316
10334
  U.nsPsy.lastAttacks[ee] = 0;
10317
10335
  }
10318
- for (var $e = 0; $e < 9; $e++)
10319
- U.nsPsy.last_en_subshort[ee][$e] = 10;
10336
+ for (var Qe = 0; Qe < 9; Qe++)
10337
+ U.nsPsy.last_en_subshort[ee][Qe] = 10;
10320
10338
  }
10321
10339
  for (U.loudness_sq_save[0] = U.loudness_sq_save[1] = 0, U.npart_l = ft(
10322
10340
  U.numlines_l,
@@ -10333,7 +10351,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
10333
10351
  o.SBMAX_l
10334
10352
  ), ee = 0; ee < U.npart_l; ee++) {
10335
10353
  var ot = Le;
10336
- Pe[ee] >= Oe && (ot = Ie * (Pe[ee] - Oe) / (we - Oe) + Le * (we - Pe[ee]) / (we - Oe)), st[ee] = Math.pow(10, ot / 10), U.numlines_l[ee] > 0 ? U.rnumlines_l[ee] = 1 / U.numlines_l[ee] : U.rnumlines_l[ee] = 0;
10354
+ Pe[ee] >= Fe && (ot = Ie * (Pe[ee] - Fe) / (we - Fe) + Le * (we - Pe[ee]) / (we - Fe)), st[ee] = Math.pow(10, ot / 10), U.numlines_l[ee] > 0 ? U.rnumlines_l[ee] = 1 / U.numlines_l[ee] : U.rnumlines_l[ee] = 0;
10337
10355
  }
10338
10356
  U.s3_ll = pt(
10339
10357
  U.s3ind,
@@ -10343,12 +10361,12 @@ const T0 = /* @__PURE__ */ L0(Ga);
10343
10361
  st,
10344
10362
  Ne
10345
10363
  );
10346
- var $e = 0;
10364
+ var Qe = 0;
10347
10365
  for (ee = 0; ee < U.npart_l; ee++) {
10348
10366
  var ut;
10349
10367
  ut = De.MAX_VALUE;
10350
- for (var Ct = 0; Ct < U.numlines_l[ee]; Ct++, $e++) {
10351
- var Ue = ct * $e / (1e3 * o.BLKSIZE), tt;
10368
+ for (var Ct = 0; Ct < U.numlines_l[ee]; Ct++, Qe++) {
10369
+ var Ue = ct * Qe / (1e3 * o.BLKSIZE), tt;
10352
10370
  tt = this.ATHformula(Ue * 1e3, ne) - 20, tt = Math.pow(10, 0.1 * tt), tt *= U.numlines_l[ee], ut > tt && (ut = tt);
10353
10371
  }
10354
10372
  U.ATH.cb_l[ee] = ut, ut = -20 + Pe[ee] * 20 / 10, ut > 6 && (ut = 100), ut < -15 && (ut = -15), ut -= 8, U.minval_l[ee] = Math.pow(10, ut / 10) * U.numlines_l[ee];
@@ -10366,11 +10384,11 @@ const T0 = /* @__PURE__ */ L0(Ga);
10366
10384
  U.scalefac_band.s,
10367
10385
  o.BLKSIZE_s / (2 * 192),
10368
10386
  o.SBMAX_s
10369
- ), $e = 0, ee = 0; ee < U.npart_s; ee++) {
10387
+ ), Qe = 0, ee = 0; ee < U.npart_s; ee++) {
10370
10388
  var ut, ot = He;
10371
- Pe[ee] >= Oe && (ot = et * (Pe[ee] - Oe) / (we - Oe) + He * (we - Pe[ee]) / (we - Oe)), st[ee] = Math.pow(10, ot / 10), ut = De.MAX_VALUE;
10372
- for (var Ct = 0; Ct < U.numlines_s[ee]; Ct++, $e++) {
10373
- var Ue = ct * $e / (1e3 * o.BLKSIZE_s), tt;
10389
+ Pe[ee] >= Fe && (ot = et * (Pe[ee] - Fe) / (we - Fe) + He * (we - Pe[ee]) / (we - Fe)), st[ee] = Math.pow(10, ot / 10), ut = De.MAX_VALUE;
10390
+ for (var Ct = 0; Ct < U.numlines_s[ee]; Ct++, Qe++) {
10391
+ var Ue = ct * Qe / (1e3 * o.BLKSIZE_s), tt;
10374
10392
  tt = this.ATHformula(Ue * 1e3, ne) - 20, tt = Math.pow(10, 0.1 * tt), tt *= U.numlines_s[ee], ut > tt && (ut = tt);
10375
10393
  }
10376
10394
  U.ATH.cb_s[ee] = ut, ut = -7 + Pe[ee] * 7 / 12, Pe[ee] > 12 && (ut *= 1 + Math.log(1 + ut) * 3.1), Pe[ee] < 12 && (ut *= 1 + Math.log(1 - ut) * 2.3), ut < -15 && (ut = -15), ut -= 8, U.minval_s[ee] = Math.pow(10, ut / 10) * U.numlines_s[ee];
@@ -10385,7 +10403,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
10385
10403
  ), X(), c.init_fft(U), U.decay = Math.exp(-1 * k / (H * ct / 192));
10386
10404
  {
10387
10405
  var Xe;
10388
- Xe = F, ne.exp_nspsytune & 2 && (Xe = 1), Math.abs(ne.msfix) > 0 && (Xe = ne.msfix), ne.msfix = Xe;
10406
+ Xe = O, ne.exp_nspsytune & 2 && (Xe = 1), Math.abs(ne.msfix) > 0 && (Xe = ne.msfix), ne.msfix = Xe;
10389
10407
  for (var mt = 0; mt < U.npart_l; mt++)
10390
10408
  U.s3ind[mt][1] > U.npart_l - 1 && (U.s3ind[mt][1] = U.npart_l - 1);
10391
10409
  }
@@ -10398,22 +10416,22 @@ const T0 = /* @__PURE__ */ L0(Ga);
10398
10416
  U.ATH.eql_w[ee] *= lt;
10399
10417
  }
10400
10418
  {
10401
- for (var mt = $e = 0; mt < U.npart_s; ++mt)
10419
+ for (var mt = Qe = 0; mt < U.npart_s; ++mt)
10402
10420
  for (ee = 0; ee < U.numlines_s[mt]; ++ee)
10403
- ++$e;
10404
- for (var mt = $e = 0; mt < U.npart_l; ++mt)
10421
+ ++Qe;
10422
+ for (var mt = Qe = 0; mt < U.npart_l; ++mt)
10405
10423
  for (ee = 0; ee < U.numlines_l[mt]; ++ee)
10406
- ++$e;
10424
+ ++Qe;
10407
10425
  }
10408
- for ($e = 0, ee = 0; ee < U.npart_l; ee++) {
10409
- var Ue = ct * ($e + U.numlines_l[ee] / 2) / (1 * o.BLKSIZE);
10410
- U.mld_cb_l[ee] = Mt(Ue), $e += U.numlines_l[ee];
10426
+ for (Qe = 0, ee = 0; ee < U.npart_l; ee++) {
10427
+ var Ue = ct * (Qe + U.numlines_l[ee] / 2) / (1 * o.BLKSIZE);
10428
+ U.mld_cb_l[ee] = Mt(Ue), Qe += U.numlines_l[ee];
10411
10429
  }
10412
10430
  for (; ee < o.CBANDS; ++ee)
10413
10431
  U.mld_cb_l[ee] = 1;
10414
- for ($e = 0, ee = 0; ee < U.npart_s; ee++) {
10415
- var Ue = ct * ($e + U.numlines_s[ee] / 2) / (1 * o.BLKSIZE_s);
10416
- U.mld_cb_s[ee] = Mt(Ue), $e += U.numlines_s[ee];
10432
+ for (Qe = 0, ee = 0; ee < U.npart_s; ee++) {
10433
+ var Ue = ct * (Qe + U.numlines_s[ee] / 2) / (1 * o.BLKSIZE_s);
10434
+ U.mld_cb_s[ee] = Mt(Ue), Qe += U.numlines_s[ee];
10417
10435
  }
10418
10436
  for (; ee < o.CBANDS; ++ee)
10419
10437
  U.mld_cb_s[ee] = 1;
@@ -10455,13 +10473,13 @@ const T0 = /* @__PURE__ */ L0(Ga);
10455
10473
  var W = 16384 + k;
10456
10474
  he.LAME_MAXMP3BUFFER = W;
10457
10475
  var R, fe, y, z, ue, H = new ke(), ie, N;
10458
- this.enc = new o(), this.setModules = function(r, i, $, O, K, ve, xe, Me, ze) {
10459
- R = r, fe = i, y = $, z = O, ue = K, ie = ve, N = Me, this.enc.setModules(fe, H, z, ie);
10476
+ this.enc = new o(), this.setModules = function(r, i, $, F, K, ve, xe, Me, ze) {
10477
+ R = r, fe = i, y = $, z = F, ue = K, ie = ve, N = Me, this.enc.setModules(fe, H, z, ie);
10460
10478
  };
10461
10479
  function pe() {
10462
10480
  this.mask_adjust = 0, this.mask_adjust_short = 0, this.bo_l_weight = E(o.SBMAX_l), this.bo_s_weight = E(o.SBMAX_s);
10463
10481
  }
10464
- function F() {
10482
+ function O() {
10465
10483
  this.lowerlimit = 0;
10466
10484
  }
10467
10485
  function P(r, i) {
@@ -10498,14 +10516,14 @@ const T0 = /* @__PURE__ */ L0(Ga);
10498
10516
  224,
10499
10517
  256,
10500
10518
  320
10501
- ], $ = 0, O = 0, K = 0, ve = 0;
10502
- ve = i[16], K = 16, O = i[16], $ = 16;
10519
+ ], $ = 0, F = 0, K = 0, ve = 0;
10520
+ ve = i[16], K = 16, F = i[16], $ = 16;
10503
10521
  for (var xe = 0; xe < 16; xe++)
10504
10522
  if (Math.max(r, i[xe + 1]) != r) {
10505
- ve = i[xe + 1], K = xe + 1, O = i[xe], $ = xe;
10523
+ ve = i[xe + 1], K = xe + 1, F = i[xe], $ = xe;
10506
10524
  break;
10507
10525
  }
10508
- return ve - r > r - O ? $ : K;
10526
+ return ve - r > r - F ? $ : K;
10509
10527
  };
10510
10528
  function q(r, i) {
10511
10529
  switch (r) {
@@ -10533,15 +10551,15 @@ const T0 = /* @__PURE__ */ L0(Ga);
10533
10551
  }
10534
10552
  function S(r, i, $) {
10535
10553
  $ < 16e3 && (i = 2);
10536
- for (var O = j.bitrate_table[i][1], K = 2; K <= 14; K++)
10537
- j.bitrate_table[i][K] > 0 && Math.abs(j.bitrate_table[i][K] - r) < Math.abs(O - r) && (O = j.bitrate_table[i][K]);
10538
- return O;
10554
+ for (var F = j.bitrate_table[i][1], K = 2; K <= 14; K++)
10555
+ j.bitrate_table[i][K] > 0 && Math.abs(j.bitrate_table[i][K] - r) < Math.abs(F - r) && (F = j.bitrate_table[i][K]);
10556
+ return F;
10539
10557
  }
10540
10558
  function h(r, i, $) {
10541
10559
  $ < 16e3 && (i = 2);
10542
- for (var O = 0; O <= 14; O++)
10543
- if (j.bitrate_table[i][O] > 0 && j.bitrate_table[i][O] == r)
10544
- return O;
10560
+ for (var F = 0; F <= 14; F++)
10561
+ if (j.bitrate_table[i][F] > 0 && j.bitrate_table[i][F] == r)
10562
+ return F;
10545
10563
  return -1;
10546
10564
  }
10547
10565
  function g(r, i) {
@@ -10563,17 +10581,17 @@ const T0 = /* @__PURE__ */ L0(Ga);
10563
10581
  new P(224, 19400),
10564
10582
  new P(256, 19700),
10565
10583
  new P(320, 20500)
10566
- ], O = c.nearestBitrateFullIndex(i);
10567
- r.lowerlimit = $[O].lowpass;
10584
+ ], F = c.nearestBitrateFullIndex(i);
10585
+ r.lowerlimit = $[F].lowpass;
10568
10586
  }
10569
10587
  function d(r) {
10570
10588
  var i = r.internal_flags, $ = 32;
10571
10589
  if (i.lowpass1 > 0) {
10572
- for (var O = 999, K = 0; K <= 31; K++) {
10590
+ for (var F = 999, K = 0; K <= 31; K++) {
10573
10591
  var ve = K / 31;
10574
- ve >= i.lowpass2 && ($ = Math.min($, K)), i.lowpass1 < ve && ve < i.lowpass2 && (O = Math.min(O, K));
10592
+ ve >= i.lowpass2 && ($ = Math.min($, K)), i.lowpass1 < ve && ve < i.lowpass2 && (F = Math.min(F, K));
10575
10593
  }
10576
- O == 999 ? i.lowpass1 = ($ - 0.75) / 31 : i.lowpass1 = (O - 0.75) / 31, i.lowpass2 = $ / 31;
10594
+ F == 999 ? i.lowpass1 = ($ - 0.75) / 31 : i.lowpass1 = (F - 0.75) / 31, i.lowpass2 = $ / 31;
10577
10595
  }
10578
10596
  i.highpass2 > 0 && w(), i.highpass2 > 0 && w();
10579
10597
  for (var K = 0; K < 32; K++) {
@@ -10622,7 +10640,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
10622
10640
  }
10623
10641
  this.lame_init_params = function(r) {
10624
10642
  var i = r.internal_flags;
10625
- if (i.Class_ID = 0, i.ATH == null && (i.ATH = new wt()), i.PSY == null && (i.PSY = new pe()), i.rgdata == null && (i.rgdata = new Fe()), i.channels_in = r.num_channels, i.channels_in == 1 && (r.mode = me.MONO), i.channels_out = r.mode == me.MONO ? 1 : 2, i.mode_ext = o.MPG_MD_MS_LR, r.mode == me.MONO && (r.force_ms = !1), r.VBR == I.vbr_off && r.VBR_mean_bitrate_kbps != 128 && r.brate == 0 && (r.brate = r.VBR_mean_bitrate_kbps), r.VBR == I.vbr_off || r.VBR == I.vbr_mtrh || r.VBR == I.vbr_mt || (r.free_format = !1), r.VBR == I.vbr_off && r.brate == 0 && w(), r.VBR == I.vbr_off && r.compression_ratio > 0 && w(), r.out_samplerate != 0 && (r.out_samplerate < 16e3 ? (r.VBR_mean_bitrate_kbps = Math.max(
10643
+ if (i.Class_ID = 0, i.ATH == null && (i.ATH = new wt()), i.PSY == null && (i.PSY = new pe()), i.rgdata == null && (i.rgdata = new Oe()), i.channels_in = r.num_channels, i.channels_in == 1 && (r.mode = me.MONO), i.channels_out = r.mode == me.MONO ? 1 : 2, i.mode_ext = o.MPG_MD_MS_LR, r.mode == me.MONO && (r.force_ms = !1), r.VBR == I.vbr_off && r.VBR_mean_bitrate_kbps != 128 && r.brate == 0 && (r.brate = r.VBR_mean_bitrate_kbps), r.VBR == I.vbr_off || r.VBR == I.vbr_mtrh || r.VBR == I.vbr_mt || (r.free_format = !1), r.VBR == I.vbr_off && r.brate == 0 && w(), r.VBR == I.vbr_off && r.compression_ratio > 0 && w(), r.out_samplerate != 0 && (r.out_samplerate < 16e3 ? (r.VBR_mean_bitrate_kbps = Math.max(
10626
10644
  r.VBR_mean_bitrate_kbps,
10627
10645
  8
10628
10646
  ), r.VBR_mean_bitrate_kbps = Math.min(
@@ -10644,13 +10662,13 @@ const T0 = /* @__PURE__ */ L0(Ga);
10644
10662
  var $ = 16e3;
10645
10663
  switch (r.VBR) {
10646
10664
  case I.vbr_off: {
10647
- var O = new F();
10648
- g(O, r.brate), $ = O.lowerlimit;
10665
+ var F = new O();
10666
+ g(F, r.brate), $ = F.lowerlimit;
10649
10667
  break;
10650
10668
  }
10651
10669
  case I.vbr_abr: {
10652
- var O = new F();
10653
- g(O, r.VBR_mean_bitrate_kbps), $ = O.lowerlimit;
10670
+ var F = new O();
10671
+ g(F, r.VBR_mean_bitrate_kbps), $ = F.lowerlimit;
10654
10672
  break;
10655
10673
  }
10656
10674
  case I.vbr_rh:
@@ -10738,13 +10756,13 @@ const T0 = /* @__PURE__ */ L0(Ga);
10738
10756
  function X(r, i) {
10739
10757
  (r.in_buffer_0 == null || r.in_buffer_nsamples < i) && (r.in_buffer_0 = E(i), r.in_buffer_1 = E(i), r.in_buffer_nsamples = i);
10740
10758
  }
10741
- this.lame_encode_flush = function(r, i, $, O) {
10759
+ this.lame_encode_flush = function(r, i, $, F) {
10742
10760
  var K = r.internal_flags, ve = Ce([2, 1152]), xe = 0, Me, ze, Ke, We, gt = K.mf_samples_to_encode - o.POSTDELAY, xt = f(r);
10743
10761
  if (K.mf_samples_to_encode < 1)
10744
10762
  return 0;
10745
10763
  for (Me = 0, r.in_samplerate != r.out_samplerate && w(), Ke = r.framesize - gt % r.framesize, Ke < 576 && (Ke += r.framesize), r.encoder_padding = Ke, We = (gt + Ke) / r.framesize; We > 0 && xe >= 0; ) {
10746
10764
  var ft = xt - K.mf_size, pt = r.frameNum;
10747
- ft *= r.in_samplerate, ft /= r.out_samplerate, ft > 1152 && (ft = 1152), ft < 1 && (ft = 1), ze = O - Me, O == 0 && (ze = 0), xe = this.lame_encode_buffer(
10765
+ ft *= r.in_samplerate, ft /= r.out_samplerate, ft > 1152 && (ft = 1152), ft < 1 && (ft = 1), ze = F - Me, F == 0 && (ze = 0), xe = this.lame_encode_buffer(
10748
10766
  r,
10749
10767
  ve[0],
10750
10768
  ve[1],
@@ -10754,27 +10772,27 @@ const T0 = /* @__PURE__ */ L0(Ga);
10754
10772
  ze
10755
10773
  ), $ += xe, Me += xe, We -= pt != r.frameNum ? 1 : 0;
10756
10774
  }
10757
- return K.mf_samples_to_encode = 0, xe < 0 || (ze = O - Me, O == 0 && (ze = 0), fe.flush_bitstream(r), xe = fe.copy_buffer(
10775
+ return K.mf_samples_to_encode = 0, xe < 0 || (ze = F - Me, F == 0 && (ze = 0), fe.flush_bitstream(r), xe = fe.copy_buffer(
10758
10776
  K,
10759
10777
  i,
10760
10778
  $,
10761
10779
  ze,
10762
10780
  1
10763
- ), xe < 0) ? xe : ($ += xe, Me += xe, ze = O - Me, O == 0 && (ze = 0), r.write_id3tag_automatic && w(), Me);
10764
- }, this.lame_encode_buffer = function(r, i, $, O, K, ve, xe) {
10781
+ ), xe < 0) ? xe : ($ += xe, Me += xe, ze = F - Me, F == 0 && (ze = 0), r.write_id3tag_automatic && w(), Me);
10782
+ }, this.lame_encode_buffer = function(r, i, $, F, K, ve, xe) {
10765
10783
  var Me = r.internal_flags, ze = [null, null];
10766
10784
  if (Me.Class_ID != t)
10767
10785
  return -3;
10768
- if (O == 0)
10786
+ if (F == 0)
10769
10787
  return 0;
10770
- X(Me, O), ze[0] = Me.in_buffer_0, ze[1] = Me.in_buffer_1;
10771
- for (var Ke = 0; Ke < O; Ke++)
10788
+ X(Me, F), ze[0] = Me.in_buffer_0, ze[1] = Me.in_buffer_1;
10789
+ for (var Ke = 0; Ke < F; Ke++)
10772
10790
  ze[0][Ke] = i[Ke], Me.channels_in > 1 && (ze[1][Ke] = $[Ke]);
10773
10791
  return m(
10774
10792
  r,
10775
10793
  ze[0],
10776
10794
  ze[1],
10777
- O,
10795
+ F,
10778
10796
  K,
10779
10797
  ve,
10780
10798
  xe
@@ -10784,25 +10802,25 @@ const T0 = /* @__PURE__ */ L0(Ga);
10784
10802
  var i = o.BLKSIZE + r.framesize - o.FFTOFFSET;
10785
10803
  return i = Math.max(i, 512 + r.framesize - 32), i;
10786
10804
  }
10787
- function m(r, i, $, O, K, ve, xe) {
10805
+ function m(r, i, $, F, K, ve, xe) {
10788
10806
  var Me = r.internal_flags, ze = 0, Ke, We, gt, xt, ft, pt = [null, null], Mt = [null, null];
10789
10807
  if (Me.Class_ID != t)
10790
10808
  return -3;
10791
- if (O == 0)
10809
+ if (F == 0)
10792
10810
  return 0;
10793
10811
  if (ft = fe.copy_buffer(Me, K, ve, xe, 0), ft < 0)
10794
10812
  return ft;
10795
10813
  if (ve += ft, ze += ft, Mt[0] = i, Mt[1] = $, Ze.NEQ(r.scale, 0) && Ze.NEQ(r.scale, 1))
10796
- for (We = 0; We < O; ++We)
10814
+ for (We = 0; We < F; ++We)
10797
10815
  Mt[0][We] *= r.scale, Me.channels_out == 2 && (Mt[1][We] *= r.scale);
10798
10816
  if (Ze.NEQ(r.scale_left, 0) && Ze.NEQ(r.scale_left, 1))
10799
- for (We = 0; We < O; ++We)
10817
+ for (We = 0; We < F; ++We)
10800
10818
  Mt[0][We] *= r.scale_left;
10801
10819
  if (Ze.NEQ(r.scale_right, 0) && Ze.NEQ(r.scale_right, 1))
10802
- for (We = 0; We < O; ++We)
10820
+ for (We = 0; We < F; ++We)
10803
10821
  Mt[1][We] *= r.scale_right;
10804
10822
  r.num_channels == 2 && Me.channels_out == 1 && w(), xt = f(r), pt[0] = Me.mfbuf[0], pt[1] = Me.mfbuf[1];
10805
- for (var Ut = 0; O > 0; ) {
10823
+ for (var Ut = 0; F > 0; ) {
10806
10824
  var ne = [null, null], U = 0, ee = 0;
10807
10825
  ne[0] = Mt[0], ne[1] = Mt[1];
10808
10826
  var Ne = new T();
@@ -10811,7 +10829,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
10811
10829
  pt,
10812
10830
  ne,
10813
10831
  Ut,
10814
- O,
10832
+ F,
10815
10833
  Ne
10816
10834
  ), U = Ne.n_in, ee = Ne.n_out, Me.findReplayGain && !Me.decode_on_the_fly && R.AnalyzeSamples(
10817
10835
  Me.rgdata,
@@ -10823,15 +10841,15 @@ const T0 = /* @__PURE__ */ L0(Ga);
10823
10841
  Me.channels_out
10824
10842
  ) == qe.GAIN_ANALYSIS_ERROR)
10825
10843
  return -6;
10826
- if (O -= U, Ut += U, Me.channels_out == 2, Me.mf_size += ee, Me.mf_samples_to_encode < 1 && w(), Me.mf_samples_to_encode += ee, Me.mf_size >= xt) {
10827
- var Oe = xe - ze;
10828
- if (xe == 0 && (Oe = 0), Ke = b(
10844
+ if (F -= U, Ut += U, Me.channels_out == 2, Me.mf_size += ee, Me.mf_samples_to_encode < 1 && w(), Me.mf_samples_to_encode += ee, Me.mf_size >= xt) {
10845
+ var Fe = xe - ze;
10846
+ if (xe == 0 && (Fe = 0), Ke = b(
10829
10847
  r,
10830
10848
  pt[0],
10831
10849
  pt[1],
10832
10850
  K,
10833
10851
  ve,
10834
- Oe
10852
+ Fe
10835
10853
  ), Ke < 0)
10836
10854
  return Ke;
10837
10855
  for (ve += Ke, ze += Ke, Me.mf_size -= r.framesize, Me.mf_samples_to_encode -= r.framesize, gt = 0; gt < Me.channels_out; gt++)
@@ -10841,12 +10859,12 @@ const T0 = /* @__PURE__ */ L0(Ga);
10841
10859
  }
10842
10860
  return ze;
10843
10861
  }
10844
- function b(r, i, $, O, K, ve) {
10862
+ function b(r, i, $, F, K, ve) {
10845
10863
  var xe = c.enc.lame_encode_mp3_frame(
10846
10864
  r,
10847
10865
  i,
10848
10866
  $,
10849
- O,
10867
+ F,
10850
10868
  K,
10851
10869
  ve
10852
10870
  );
@@ -10855,14 +10873,14 @@ const T0 = /* @__PURE__ */ L0(Ga);
10855
10873
  function T() {
10856
10874
  this.n_in = 0, this.n_out = 0;
10857
10875
  }
10858
- function D(r, i, $, O, K, ve) {
10876
+ function D(r, i, $, F, K, ve) {
10859
10877
  var xe = r.internal_flags;
10860
10878
  if (xe.resample_ratio < 0.9999 || xe.resample_ratio > 1.0001)
10861
10879
  w();
10862
10880
  else {
10863
10881
  ve.n_out = Math.min(r.framesize, K), ve.n_in = ve.n_out;
10864
10882
  for (var Me = 0; Me < ve.n_out; ++Me)
10865
- i[0][xe.mf_size + Me] = $[0][O + Me], xe.channels_out == 2 && (i[1][xe.mf_size + Me] = $[1][O + Me]);
10883
+ i[0][xe.mf_size + Me] = $[0][F + Me], xe.channels_out == 2 && (i[1][xe.mf_size + Me] = $[1][F + Me]);
10866
10884
  }
10867
10885
  }
10868
10886
  }
@@ -10882,8 +10900,8 @@ const T0 = /* @__PURE__ */ L0(Ga);
10882
10900
  }
10883
10901
  function oe(c, k, W) {
10884
10902
  c != 1 && w("fix cc: only supports mono");
10885
- var R = new he(), fe = new J(), y = new qe(), z = new Ze(), ue = new je(), H = new e(), ie = new A(), N = new Ve(), pe = new ge(), F = new G(), P = new Ge(), t = new Ye(), u = new ye(), C = new Ae();
10886
- R.setModules(y, z, ue, H, ie, N, pe, F, C), z.setModules(y, C, pe, N), F.setModules(z, pe), ue.setModules(R), ie.setModules(z, P, H, t), H.setModules(t, P, R.enc.psy), P.setModules(z), t.setModules(H), N.setModules(R, z, pe), fe.setModules(u, C), u.setModules(pe, F, ue);
10903
+ var R = new he(), fe = new J(), y = new qe(), z = new Ze(), ue = new je(), H = new e(), ie = new A(), N = new Ve(), pe = new ge(), O = new G(), P = new Ge(), t = new Ye(), u = new ye(), C = new Ae();
10904
+ R.setModules(y, z, ue, H, ie, N, pe, O, C), z.setModules(y, C, pe, N), O.setModules(z, pe), ue.setModules(R), ie.setModules(z, P, H, t), H.setModules(t, P, R.enc.psy), P.setModules(z), t.setModules(H), N.setModules(R, z, pe), fe.setModules(u, C), u.setModules(pe, O, ue);
10887
10905
  var q = R.lame_init();
10888
10906
  q.num_channels = c, q.in_samplerate = k, q.out_samplerate = k, q.brate = W, q.mode = me.STEREO, q.quality = 3, q.bWriteVbrTag = !1, q.disable_reservoir = !0, q.write_id3tag_automatic = !1, R.lame_init_params(q);
10889
10907
  var S = 1152, h = 0 | 1.25 * S + 7200, g = V(h);
@@ -11004,7 +11022,7 @@ const T0 = /* @__PURE__ */ L0(Ga);
11004
11022
  }
11005
11023
  }, a[_] = V;
11006
11024
  });
11007
- const Wa = {
11025
+ const Ga = {
11008
11026
  components: { InlineSvg: Jt },
11009
11027
  props: {
11010
11028
  isMobile: {
@@ -11094,98 +11112,98 @@ const Wa = {
11094
11112
  type: this.blob.type,
11095
11113
  lastModified: s
11096
11114
  });
11097
- ja(w, (V) => {
11115
+ qa(w, (V) => {
11098
11116
  this.text = V;
11099
11117
  });
11100
11118
  }
11101
11119
  }
11102
- }, _r = (a) => (ar("data-v-9be5ddd6"), a = a(), ir(), a), Xa = {
11120
+ }, hr = (a) => (Rr("data-v-9be5ddd6"), a = a(), Tr(), a), Wa = {
11103
11121
  key: 0,
11104
11122
  class: "record-audio-mobile"
11105
- }, Ka = /* @__PURE__ */ _r(() => /* @__PURE__ */ Qe("div", { class: "recwave" }, null, -1)), Za = {
11123
+ }, Xa = /* @__PURE__ */ hr(() => /* @__PURE__ */ Je("div", { class: "recwave" }, null, -1)), Ka = {
11106
11124
  key: 1,
11107
11125
  class: "record-audio"
11108
- }, $a = { class: "main" }, Qa = /* @__PURE__ */ _r(() => /* @__PURE__ */ Qe("div", { class: "recwave" }, null, -1)), Ja = { class: "duration" }, ei = {
11126
+ }, Za = { class: "main" }, $a = /* @__PURE__ */ hr(() => /* @__PURE__ */ Je("div", { class: "recwave" }, null, -1)), Qa = { class: "duration" }, Ja = {
11109
11127
  key: 0,
11110
11128
  class: "audio-item"
11111
- }, ti = ["src"], ri = {
11129
+ }, ei = ["src"], ti = {
11112
11130
  key: 1,
11113
11131
  class: "audio-text"
11114
- }, ai = { class: "buttons" };
11115
- function ii(a, s, x, w, V, _) {
11132
+ }, ri = { class: "buttons" };
11133
+ function ai(a, s, x, w, V, _) {
11116
11134
  const Y = Et("inline-svg");
11117
- return Je(), it("div", {
11135
+ return $e(), it("div", {
11118
11136
  class: "wrap",
11119
11137
  style: Gt({
11120
11138
  width: a.width
11121
11139
  })
11122
11140
  }, [
11123
- x.isMobile ? (Je(), it("div", Xa, [
11124
- a.pending ? (Je(), it("a", {
11141
+ x.isMobile ? ($e(), it("div", Wa, [
11142
+ a.pending ? ($e(), it("a", {
11125
11143
  key: 1,
11126
11144
  onClick: s[1] || (s[1] = (...E) => _.stop && _.stop(...E)),
11127
11145
  title: "停止录制",
11128
11146
  class: "oper"
11129
11147
  }, [
11130
- Rt(Y, {
11148
+ Tt(Y, {
11131
11149
  src: a.icon.stop,
11132
11150
  width: 24,
11133
11151
  height: 24
11134
11152
  }, null, 8, ["src"])
11135
- ])) : (Je(), it("a", {
11153
+ ])) : ($e(), it("a", {
11136
11154
  key: 0,
11137
11155
  onClick: s[0] || (s[0] = (...E) => _.start && _.start(...E)),
11138
11156
  title: "开始录制",
11139
11157
  class: "oper"
11140
11158
  }, [
11141
- Rt(Y, {
11159
+ Tt(Y, {
11142
11160
  src: a.icon.record,
11143
11161
  width: 24,
11144
11162
  height: 24
11145
11163
  }, null, 8, ["src"])
11146
11164
  ])),
11147
- Ka
11148
- ])) : (Je(), it("div", Za, [
11149
- Qe("div", $a, [
11150
- Qa,
11151
- Qe("div", Ja, o0(a.duration), 1)
11165
+ Xa
11166
+ ])) : ($e(), it("div", Ka, [
11167
+ Je("div", Za, [
11168
+ $a,
11169
+ Je("div", Qa, o0(a.duration), 1)
11152
11170
  ]),
11153
- a.url && !x.isMobile ? (Je(), it("div", ei, [
11154
- Qe("audio", {
11171
+ a.url && !x.isMobile ? ($e(), it("div", Ja, [
11172
+ Je("audio", {
11155
11173
  src: a.url,
11156
11174
  controls: "",
11157
11175
  ref: "audio"
11158
- }, null, 8, ti),
11159
- Qe("a", {
11176
+ }, null, 8, ei),
11177
+ Je("a", {
11160
11178
  onClick: s[2] || (s[2] = (...E) => _.handleTranslate && _.handleTranslate(...E))
11161
11179
  }, "转文本")
11162
- ])) : Tt("", !0),
11163
- a.text ? (Je(), it("div", ri, o0(a.text), 1)) : Tt("", !0),
11164
- Qe("div", ai, [
11165
- a.pending ? (Je(), it("a", {
11180
+ ])) : Rt("", !0),
11181
+ a.text ? ($e(), it("div", ti, o0(a.text), 1)) : Rt("", !0),
11182
+ Je("div", ri, [
11183
+ a.pending ? ($e(), it("a", {
11166
11184
  key: 1,
11167
11185
  onClick: s[4] || (s[4] = (...E) => _.stop && _.stop(...E)),
11168
11186
  title: "停止录制",
11169
11187
  class: "oper"
11170
11188
  }, [
11171
- Rt(Y, {
11189
+ Tt(Y, {
11172
11190
  src: a.icon.stop,
11173
11191
  width: 24,
11174
11192
  height: 24
11175
11193
  }, null, 8, ["src"])
11176
- ])) : (Je(), it("a", {
11194
+ ])) : ($e(), it("a", {
11177
11195
  key: 0,
11178
11196
  onClick: s[3] || (s[3] = (...E) => _.start && _.start(...E)),
11179
11197
  title: "开始录制",
11180
11198
  class: "oper"
11181
11199
  }, [
11182
- Rt(Y, {
11200
+ Tt(Y, {
11183
11201
  src: a.icon.record,
11184
11202
  width: 24,
11185
11203
  height: 24
11186
11204
  }, null, 8, ["src"])
11187
11205
  ])),
11188
- Qe("a", {
11206
+ Je("a", {
11189
11207
  onClick: s[5] || (s[5] = (...E) => _.handleFinish && _.handleFinish(...E)),
11190
11208
  class: Pt({
11191
11209
  btn: !0,
@@ -11193,28 +11211,28 @@ function ii(a, s, x, w, V, _) {
11193
11211
  disabled: !a.blob
11194
11212
  })
11195
11213
  }, " 插入音频 ", 2),
11196
- a.text ? (Je(), it("a", {
11214
+ a.text ? ($e(), it("a", {
11197
11215
  key: 2,
11198
11216
  onClick: s[6] || (s[6] = (...E) => _.handleFinishText && _.handleFinishText(...E)),
11199
11217
  class: Pt({
11200
11218
  btn: !0,
11201
11219
  finish: !0
11202
11220
  })
11203
- }, " 插入文本 ")) : Tt("", !0),
11204
- Qe("a", {
11221
+ }, " 插入文本 ")) : Rt("", !0),
11222
+ Je("a", {
11205
11223
  onClick: s[7] || (s[7] = (...E) => _.handleCancel && _.handleCancel(...E)),
11206
11224
  class: "cancel btn"
11207
11225
  }, "取消")
11208
11226
  ])
11209
11227
  ])),
11210
- Qe("div", {
11228
+ Je("div", {
11211
11229
  class: "mask",
11212
11230
  onClick: s[8] || (s[8] = (...E) => _.handleCancel && _.handleCancel(...E))
11213
11231
  })
11214
11232
  ], 4);
11215
11233
  }
11216
- const ni = /* @__PURE__ */ zt(Wa, [["render", ii], ["__scopeId", "data-v-9be5ddd6"]]);
11217
- var mr = { exports: {} };
11234
+ const ii = /* @__PURE__ */ zt(Ga, [["render", ai], ["__scopeId", "data-v-9be5ddd6"]]);
11235
+ var vr = { exports: {} };
11218
11236
  (function(a) {
11219
11237
  /**
11220
11238
  * {@link https://github.com/muaz-khan/RecordRTC|RecordRTC} is a WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows.
@@ -11819,7 +11837,7 @@ var mr = { exports: {} };
11819
11837
  * @param {object} config - {type:"video", disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, video: HTMLVideoElement, getNativeBlob:true, etc.}
11820
11838
  */
11821
11839
  function x(L, e) {
11822
- return !e.recorderType && !e.type && (e.audio && e.video ? e.type = "video" : e.audio && !e.video && (e.type = "audio")), e.recorderType && !e.type && (e.recorderType === j || e.recorderType === Ee || typeof Fe < "u" && e.recorderType === Fe ? e.type = "video" : e.recorderType === rt ? e.type = "gif" : e.recorderType === Ze ? e.type = "audio" : e.recorderType === Ve && (ge(L, "audio").length && ge(L, "video").length || !ge(L, "audio").length && ge(L, "video").length ? e.type = "video" : ge(L, "audio").length && !ge(L, "video").length && (e.type = "audio"))), typeof Ve < "u" && typeof MediaRecorder < "u" && "requestData" in MediaRecorder.prototype && (e.mimeType || (e.mimeType = "video/webm"), e.type || (e.type = e.mimeType.split("/")[0]), e.bitsPerSecond), e.type || (e.mimeType && (e.type = e.mimeType.split("/")[0]), e.type || (e.type = "audio")), e;
11840
+ return !e.recorderType && !e.type && (e.audio && e.video ? e.type = "video" : e.audio && !e.video && (e.type = "audio")), e.recorderType && !e.type && (e.recorderType === j || e.recorderType === Ee || typeof Oe < "u" && e.recorderType === Oe ? e.type = "video" : e.recorderType === rt ? e.type = "gif" : e.recorderType === Ze ? e.type = "audio" : e.recorderType === Ve && (ge(L, "audio").length && ge(L, "video").length || !ge(L, "audio").length && ge(L, "video").length ? e.type = "video" : ge(L, "audio").length && !ge(L, "video").length && (e.type = "audio"))), typeof Ve < "u" && typeof MediaRecorder < "u" && "requestData" in MediaRecorder.prototype && (e.mimeType || (e.mimeType = "video/webm"), e.type || (e.type = e.mimeType.split("/")[0]), e.bitsPerSecond), e.type || (e.mimeType && (e.type = e.mimeType.split("/")[0]), e.type || (e.type = "audio")), e;
11823
11841
  }
11824
11842
  /**
11825
11843
  * {@link GetRecorderType} is an inner/private helper for {@link RecordRTC}.
@@ -11837,7 +11855,7 @@ var mr = { exports: {} };
11837
11855
  */
11838
11856
  function w(L, e) {
11839
11857
  var l;
11840
- return (re || Ce || Te) && (l = Ze), typeof MediaRecorder < "u" && "requestData" in MediaRecorder.prototype && !re && (l = Ve), e.type === "video" && (re || Te) && (l = j, typeof Fe < "u" && typeof ReadableStream < "u" && (l = Fe)), e.type === "gif" && (l = rt), e.type === "canvas" && (l = Ee), Ge() && l !== Ee && l !== rt && typeof MediaRecorder < "u" && "requestData" in MediaRecorder.prototype && (ge(L, "video").length || ge(L, "audio").length) && (e.type === "audio" ? typeof MediaRecorder.isTypeSupported == "function" && MediaRecorder.isTypeSupported("audio/webm") && (l = Ve) : typeof MediaRecorder.isTypeSupported == "function" && MediaRecorder.isTypeSupported("video/webm") && (l = Ve)), L instanceof Array && L.length && (l = yt), e.recorderType && (l = e.recorderType), !e.disableLogs && l && l.name && console.log("Using recorderType:", l.name || l.constructor.name), !l && se && (l = Ve), l;
11858
+ return (re || Ce || Te) && (l = Ze), typeof MediaRecorder < "u" && "requestData" in MediaRecorder.prototype && !re && (l = Ve), e.type === "video" && (re || Te) && (l = j, typeof Oe < "u" && typeof ReadableStream < "u" && (l = Oe)), e.type === "gif" && (l = rt), e.type === "canvas" && (l = Ee), Ge() && l !== Ee && l !== rt && typeof MediaRecorder < "u" && "requestData" in MediaRecorder.prototype && (ge(L, "video").length || ge(L, "audio").length) && (e.type === "audio" ? typeof MediaRecorder.isTypeSupported == "function" && MediaRecorder.isTypeSupported("audio/webm") && (l = Ve) : typeof MediaRecorder.isTypeSupported == "function" && MediaRecorder.isTypeSupported("video/webm") && (l = Ve)), L instanceof Array && L.length && (l = yt), e.recorderType && (l = e.recorderType), !e.disableLogs && l && l.name && console.log("Using recorderType:", l.name || l.constructor.name), !l && se && (l = Ve), l;
11841
11859
  }
11842
11860
  /**
11843
11861
  * MRecordRTC runs on top of {@link RecordRTC} to bring multiple recordings in a single place, by providing simple API.
@@ -12365,40 +12383,40 @@ var mr = { exports: {} };
12365
12383
  };
12366
12384
  function Se(R, fe) {
12367
12385
  function y(ue, H) {
12368
- var ie = ue.numberOfAudioChannels, N = ue.leftBuffers.slice(0), pe = ue.rightBuffers.slice(0), F = ue.sampleRate, P = ue.internalInterleavedLength, t = ue.desiredSampRate;
12369
- ie === 2 && (N = q(N, P), pe = q(pe, P), t && (N = u(N, t, F), pe = u(pe, t, F))), ie === 1 && (N = q(N, P), t && (N = u(N, t, F))), t && (F = t);
12386
+ var ie = ue.numberOfAudioChannels, N = ue.leftBuffers.slice(0), pe = ue.rightBuffers.slice(0), O = ue.sampleRate, P = ue.internalInterleavedLength, t = ue.desiredSampRate;
12387
+ ie === 2 && (N = q(N, P), pe = q(pe, P), t && (N = u(N, t, O), pe = u(pe, t, O))), ie === 1 && (N = q(N, P), t && (N = u(N, t, O))), t && (O = t);
12370
12388
  function u(D, r, i) {
12371
- var $ = Math.round(D.length * (r / i)), O = [], K = Number((D.length - 1) / ($ - 1));
12372
- O[0] = D[0];
12389
+ var $ = Math.round(D.length * (r / i)), F = [], K = Number((D.length - 1) / ($ - 1));
12390
+ F[0] = D[0];
12373
12391
  for (var ve = 1; ve < $ - 1; ve++) {
12374
12392
  var xe = ve * K, Me = Number(Math.floor(xe)).toFixed(), ze = Number(Math.ceil(xe)).toFixed(), Ke = xe - Me;
12375
- O[ve] = C(D[Me], D[ze], Ke);
12393
+ F[ve] = C(D[Me], D[ze], Ke);
12376
12394
  }
12377
- return O[$ - 1] = D[D.length - 1], O;
12395
+ return F[$ - 1] = D[D.length - 1], F;
12378
12396
  }
12379
12397
  function C(D, r, i) {
12380
12398
  return D + (r - D) * i;
12381
12399
  }
12382
12400
  function q(D, r) {
12383
- for (var i = new Float64Array(r), $ = 0, O = D.length, K = 0; K < O; K++) {
12401
+ for (var i = new Float64Array(r), $ = 0, F = D.length, K = 0; K < F; K++) {
12384
12402
  var ve = D[K];
12385
12403
  i.set(ve, $), $ += ve.length;
12386
12404
  }
12387
12405
  return i;
12388
12406
  }
12389
12407
  function S(D, r) {
12390
- for (var i = D.length + r.length, $ = new Float64Array(i), O = 0, K = 0; K < i; )
12391
- $[K++] = D[O], $[K++] = r[O], O++;
12408
+ for (var i = D.length + r.length, $ = new Float64Array(i), F = 0, K = 0; K < i; )
12409
+ $[K++] = D[F], $[K++] = r[F], F++;
12392
12410
  return $;
12393
12411
  }
12394
12412
  function h(D, r, i) {
12395
- for (var $ = i.length, O = 0; O < $; O++)
12396
- D.setUint8(r + O, i.charCodeAt(O));
12413
+ for (var $ = i.length, F = 0; F < $; F++)
12414
+ D.setUint8(r + F, i.charCodeAt(F));
12397
12415
  }
12398
12416
  var g;
12399
12417
  ie === 2 && (g = S(N, pe)), ie === 1 && (g = N);
12400
12418
  var d = g.length, B = 44 + d * 2, n = new ArrayBuffer(B), X = new DataView(n);
12401
- h(X, 0, "RIFF"), X.setUint32(4, 36 + d * 2, !0), h(X, 8, "WAVE"), h(X, 12, "fmt "), X.setUint32(16, 16, !0), X.setUint16(20, 1, !0), X.setUint16(22, ie, !0), X.setUint32(24, F, !0), X.setUint32(28, F * ie * 2, !0), X.setUint16(32, ie * 2, !0), X.setUint16(34, 16, !0), h(X, 36, "data"), X.setUint32(40, d * 2, !0);
12419
+ h(X, 0, "RIFF"), X.setUint32(4, 36 + d * 2, !0), h(X, 8, "WAVE"), h(X, 12, "fmt "), X.setUint32(16, 16, !0), X.setUint16(20, 1, !0), X.setUint16(22, ie, !0), X.setUint32(24, O, !0), X.setUint32(28, O * ie * 2, !0), X.setUint16(32, ie * 2, !0), X.setUint16(34, 16, !0), h(X, 36, "data"), X.setUint32(40, d * 2, !0);
12402
12420
  for (var f = d, m = 44, b = 1, T = 0; T < f; T++)
12403
12421
  X.setInt16(m, g[T] * (32767 * b), !0), m += 2;
12404
12422
  if (H)
@@ -12739,13 +12757,13 @@ var mr = { exports: {} };
12739
12757
  var pe = new Image();
12740
12758
  pe.onload = function() {
12741
12759
  Ae.drawImage(pe, 0, 0, o.width, o.height);
12742
- var F = Ae.getImageData(0, 0, o.width, o.height);
12743
- ue = 0, H = F.data.length, ie = F.data.length / 4;
12760
+ var O = Ae.getImageData(0, 0, o.width, o.height);
12761
+ ue = 0, H = O.data.length, ie = O.data.length / 4;
12744
12762
  for (var P = 0; P < H; P += 4) {
12745
12763
  var t = {
12746
- r: F.data[P],
12747
- g: F.data[P + 1],
12748
- b: F.data[P + 2]
12764
+ r: O.data[P],
12765
+ g: O.data[P + 1],
12766
+ b: O.data[P + 2]
12749
12767
  }, u = Math.sqrt(
12750
12768
  Math.pow(t.r - c.r, 2) + Math.pow(t.g - c.g, 2) + Math.pow(t.b - c.b, 2)
12751
12769
  );
@@ -13670,7 +13688,7 @@ var mr = { exports: {} };
13670
13688
  * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
13671
13689
  * @param {object} config - {webAssemblyPath:'webm-wasm.wasm',workerPath: 'webm-worker.js', frameRate: 30, width: 1920, height: 1080, bitrate: 1024, realtime: true}
13672
13690
  */
13673
- function Fe(L, e) {
13691
+ function Oe(L, e) {
13674
13692
  (typeof ReadableStream > "u" || typeof WritableStream > "u") && console.error("Following polyfill is strongly recommended: https://unpkg.com/@mattiasbuelens/web-streams-polyfill/dist/polyfill.min.js"), e = e || {}, e.width = e.width || 640, e.height = e.height || 480, e.frameRate = e.frameRate || 30, e.bitrate = e.bitrate || 1200, e.realtime = e.realtime || !0;
13675
13693
  var l;
13676
13694
  function v() {
@@ -13761,10 +13779,10 @@ var mr = { exports: {} };
13761
13779
  o = [], Z = !1, this.blob = null;
13762
13780
  }, this.blob = null;
13763
13781
  }
13764
- typeof s < "u" && (s.WebAssemblyRecorder = Fe);
13765
- })(mr);
13766
- var si = mr.exports;
13767
- const oi = {
13782
+ typeof s < "u" && (s.WebAssemblyRecorder = Oe);
13783
+ })(vr);
13784
+ var ni = vr.exports;
13785
+ const si = {
13768
13786
  components: { InlineSvg: Jt },
13769
13787
  props: {
13770
13788
  responsive: {
@@ -13778,7 +13796,7 @@ const oi = {
13778
13796
  audio: !0
13779
13797
  }), this.$nextTick(() => {
13780
13798
  this.prepareVideo();
13781
- }), this.recorder = new si.RecordRTCPromisesHandler(this.stream, {
13799
+ }), this.recorder = new ni.RecordRTCPromisesHandler(this.stream, {
13782
13800
  type: "video",
13783
13801
  mimeType: "video/webm;codecs=vp9"
13784
13802
  });
@@ -13827,67 +13845,67 @@ const oi = {
13827
13845
  this.$emit("cancel");
13828
13846
  }
13829
13847
  }
13830
- }, li = { class: "record-video" }, ui = {
13848
+ }, oi = { class: "record-video" }, li = {
13831
13849
  muted: !1,
13832
13850
  volume: 1,
13833
13851
  controls: "",
13834
13852
  ref: "video",
13835
13853
  class: "video-item"
13836
- }, di = { class: "buttons" };
13837
- function ci(a, s, x, w, V, _) {
13854
+ }, ui = { class: "buttons" };
13855
+ function di(a, s, x, w, V, _) {
13838
13856
  const Y = Et("inline-svg");
13839
- return Je(), it("div", {
13857
+ return $e(), it("div", {
13840
13858
  class: "wrap",
13841
13859
  style: Gt({
13842
13860
  width: a.width
13843
13861
  })
13844
13862
  }, [
13845
- Qe("div", li, [
13846
- Qe("video", ui, null, 512),
13847
- Qe("div", di, [
13848
- a.pending ? (Je(), it("a", {
13863
+ Je("div", oi, [
13864
+ Je("video", li, null, 512),
13865
+ Je("div", ui, [
13866
+ a.pending ? ($e(), it("a", {
13849
13867
  key: 1,
13850
13868
  onClick: s[1] || (s[1] = (...E) => _.stop && _.stop(...E)),
13851
13869
  title: "停止录制",
13852
13870
  class: "oper"
13853
13871
  }, [
13854
- Rt(Y, {
13872
+ Tt(Y, {
13855
13873
  src: a.icon.stop,
13856
13874
  width: 24,
13857
13875
  height: 24
13858
13876
  }, null, 8, ["src"])
13859
- ])) : (Je(), it("a", {
13877
+ ])) : ($e(), it("a", {
13860
13878
  key: 0,
13861
13879
  onClick: s[0] || (s[0] = (...E) => _.start && _.start(...E)),
13862
13880
  title: "开始录制",
13863
13881
  class: "oper"
13864
13882
  }, [
13865
- Rt(Y, {
13883
+ Tt(Y, {
13866
13884
  src: a.icon.record,
13867
13885
  width: 24,
13868
13886
  height: 24
13869
13887
  }, null, 8, ["src"])
13870
13888
  ])),
13871
- Qe("a", {
13889
+ Je("a", {
13872
13890
  onClick: s[2] || (s[2] = (...E) => _.handleFinish && _.handleFinish(...E)),
13873
13891
  class: Pt(["btn", {
13874
13892
  finish: !0,
13875
13893
  disabled: !a.blob
13876
13894
  }])
13877
13895
  }, "完成", 2),
13878
- Qe("a", {
13896
+ Je("a", {
13879
13897
  onClick: s[3] || (s[3] = (...E) => _.handleCancel && _.handleCancel(...E)),
13880
13898
  class: "cancel btn"
13881
13899
  }, "取消")
13882
13900
  ])
13883
13901
  ]),
13884
- Qe("div", {
13902
+ Je("div", {
13885
13903
  class: "mask",
13886
13904
  onClick: s[4] || (s[4] = (...E) => _.handleCancel && _.handleCancel(...E))
13887
13905
  })
13888
13906
  ], 4);
13889
13907
  }
13890
- const fi = /* @__PURE__ */ zt(oi, [["render", ci], ["__scopeId", "data-v-be255be7"]]), hi = {
13908
+ const ci = /* @__PURE__ */ zt(si, [["render", di], ["__scopeId", "data-v-be255be7"]]), fi = {
13891
13909
  components: { InlineSvg: Jt },
13892
13910
  props: {
13893
13911
  responsive: {
@@ -13938,79 +13956,79 @@ const fi = /* @__PURE__ */ zt(oi, [["render", ci], ["__scopeId", "data-v-be255be
13938
13956
  this.$emit("cancel");
13939
13957
  }
13940
13958
  }
13941
- }, vi = { class: "record-video" }, _i = { class: "record-content" }, mi = {
13959
+ }, hi = { class: "record-video" }, vi = { class: "record-content" }, _i = {
13942
13960
  muted: !0,
13943
13961
  volume: 0,
13944
13962
  autoplay: "",
13945
13963
  controls: "",
13946
13964
  ref: "video",
13947
13965
  class: "video-item"
13948
- }, pi = { class: "img-item" }, bi = ["src"], wi = {
13966
+ }, mi = { class: "img-item" }, pi = ["src"], bi = {
13949
13967
  width: "640",
13950
13968
  height: "480",
13951
13969
  style: { display: "none" },
13952
13970
  ref: "canvas"
13953
- }, yi = { class: "buttons" };
13954
- function gi(a, s, x, w, V, _) {
13971
+ }, wi = { class: "buttons" };
13972
+ function yi(a, s, x, w, V, _) {
13955
13973
  const Y = Et("inline-svg");
13956
- return Je(), it("div", {
13974
+ return $e(), it("div", {
13957
13975
  class: "wrap",
13958
13976
  style: Gt({
13959
13977
  width: a.width
13960
13978
  })
13961
13979
  }, [
13962
- Qe("div", vi, [
13963
- Qe("div", _i, [
13964
- Qe("video", mi, null, 512),
13965
- Qe("div", pi, [
13966
- a.url ? (Je(), it("img", {
13980
+ Je("div", hi, [
13981
+ Je("div", vi, [
13982
+ Je("video", _i, null, 512),
13983
+ Je("div", mi, [
13984
+ a.url ? ($e(), it("img", {
13967
13985
  key: 0,
13968
13986
  src: a.url
13969
- }, null, 8, bi)) : Tt("", !0)
13987
+ }, null, 8, pi)) : Rt("", !0)
13970
13988
  ])
13971
13989
  ]),
13972
- Qe("canvas", wi, null, 512),
13973
- Qe("div", yi, [
13974
- a.pending ? Tt("", !0) : (Je(), it("a", {
13990
+ Je("canvas", bi, null, 512),
13991
+ Je("div", wi, [
13992
+ a.pending ? Rt("", !0) : ($e(), it("a", {
13975
13993
  key: 0,
13976
13994
  onClick: s[0] || (s[0] = (...E) => _.start && _.start(...E)),
13977
13995
  title: "拍照",
13978
13996
  class: "oper"
13979
13997
  }, [
13980
- Rt(Y, {
13998
+ Tt(Y, {
13981
13999
  src: a.icon.photo,
13982
14000
  width: 24,
13983
14001
  height: 24
13984
14002
  }, null, 8, ["src"])
13985
14003
  ])),
13986
- Qe("a", {
14004
+ Je("a", {
13987
14005
  onClick: s[1] || (s[1] = (...E) => _.handleFinish && _.handleFinish(...E)),
13988
14006
  class: Pt(["btn", {
13989
14007
  finish: !0,
13990
14008
  disabled: !a.url
13991
14009
  }])
13992
14010
  }, "完成", 2),
13993
- Qe("a", {
14011
+ Je("a", {
13994
14012
  onClick: s[2] || (s[2] = (...E) => _.handleCancel && _.handleCancel(...E)),
13995
14013
  class: "cancel btn"
13996
14014
  }, "取消")
13997
14015
  ])
13998
14016
  ]),
13999
- Qe("div", {
14017
+ Je("div", {
14000
14018
  class: "mask",
14001
14019
  onClick: s[3] || (s[3] = (...E) => _.handleCancel && _.handleCancel(...E))
14002
14020
  })
14003
14021
  ], 4);
14004
14022
  }
14005
- const xi = /* @__PURE__ */ zt(hi, [["render", gi], ["__scopeId", "data-v-d1a4de11"]]), J0 = "KEY_PENDING_NODES", Si = {
14023
+ const gi = /* @__PURE__ */ zt(fi, [["render", yi], ["__scopeId", "data-v-d1a4de11"]]), J0 = "KEY_PENDING_NODES", xi = {
14006
14024
  name: "recordTree",
14007
14025
  components: {
14008
14026
  InlineSvg: Jt,
14009
- TreeEditor: ya,
14010
- RecordTitle: ka,
14011
- RecordAudio: ni,
14012
- RecordVideo: fi,
14013
- RecordPhoto: xi
14027
+ TreeEditor: wa,
14028
+ RecordTitle: Aa,
14029
+ RecordAudio: ii,
14030
+ RecordVideo: ci,
14031
+ RecordPhoto: gi
14014
14032
  },
14015
14033
  props: {
14016
14034
  note: {
@@ -14260,26 +14278,26 @@ const xi = /* @__PURE__ */ zt(hi, [["render", gi], ["__scopeId", "data-v-d1a4de1
14260
14278
  });
14261
14279
  }
14262
14280
  }
14263
- }, Ri = { class: "record-tree-main" }, Ti = { id: "root_tree" }, Mi = {
14281
+ }, Si = { class: "record-tree-main" }, Ri = { id: "root_tree" }, Ti = {
14264
14282
  key: 0,
14265
14283
  class: "record-tree-options"
14266
- }, Ci = { class: "record-tree-option-left" }, Ai = {
14284
+ }, Mi = { class: "record-tree-option-left" }, Ci = {
14267
14285
  key: 0,
14268
14286
  class: "record-tree-option-right"
14269
- }, ki = { style: { display: "none" } };
14270
- function Bi(a, s, x, w, V, _) {
14287
+ }, Ai = { style: { display: "none" } };
14288
+ function ki(a, s, x, w, V, _) {
14271
14289
  const Y = Et("RecordTitle"), E = Et("TreeEditor"), ae = Et("inline-svg"), Q = Et("RecordAudio"), ce = Et("RecordVideo"), Ce = Et("RecordPhoto");
14272
- return Je(), it("div", {
14290
+ return $e(), it("div", {
14273
14291
  class: Pt({
14274
14292
  "record-tree-container": !0,
14275
14293
  "record-tree-mobile": V.isMobile
14276
14294
  })
14277
14295
  }, [
14278
- Qe("div", {
14296
+ Je("div", {
14279
14297
  class: "record-tree",
14280
14298
  onMouseenter: s[1] || (s[1] = (...Te) => _.hideHoverNote && _.hideHoverNote(...Te))
14281
14299
  }, [
14282
- x.showTitle ? (Je(), Nt(Y, {
14300
+ x.showTitle ? ($e(), Nt(Y, {
14283
14301
  key: 0,
14284
14302
  title: x.note.title,
14285
14303
  tags: x.tags,
@@ -14291,10 +14309,10 @@ function Bi(a, s, x, w, V, _) {
14291
14309
  onTagChange: _.handleChangeTag,
14292
14310
  onFile: _.handleTitleFile,
14293
14311
  onDbEnter: _.handleDbEnter
14294
- }, null, 8, ["title", "tags", "tagId", "readOnly", "enableDbEnter", "onFocusContent", "onChange", "onTagChange", "onFile", "onDbEnter"])) : Tt("", !0),
14295
- Qe("div", Ri, [
14296
- Qe("div", Ti, [
14297
- Rt(E, {
14312
+ }, null, 8, ["title", "tags", "tagId", "readOnly", "enableDbEnter", "onFocusContent", "onChange", "onTagChange", "onFile", "onDbEnter"])) : Rt("", !0),
14313
+ Je("div", Si, [
14314
+ Je("div", Ri, [
14315
+ Tt(E, {
14298
14316
  ref: "treeEditor",
14299
14317
  nodes: V.curNodes,
14300
14318
  readOnly: x.readOnly,
@@ -14308,117 +14326,117 @@ function Bi(a, s, x, w, V, _) {
14308
14326
  ])
14309
14327
  ])
14310
14328
  ], 32),
14311
- x.bar ? (Je(), it("div", Mi, [
14312
- Qe("div", Ci, [
14313
- Qe("div", {
14329
+ x.bar ? ($e(), it("div", Ti, [
14330
+ Je("div", Mi, [
14331
+ Je("div", {
14314
14332
  class: "record-tree-option-item",
14315
14333
  onClick: s[2] || (s[2] = (...Te) => _.setToParent && _.setToParent(...Te)),
14316
14334
  title: "左缩进"
14317
14335
  }, [
14318
- Rt(ae, {
14336
+ Tt(ae, {
14319
14337
  src: V.icon.left,
14320
14338
  width: 20,
14321
14339
  height: 20
14322
14340
  }, null, 8, ["src"])
14323
14341
  ]),
14324
- Qe("div", {
14342
+ Je("div", {
14325
14343
  class: "record-tree-option-item",
14326
14344
  onClick: s[3] || (s[3] = (...Te) => _.setToChild && _.setToChild(...Te)),
14327
14345
  title: "右缩进"
14328
14346
  }, [
14329
- Rt(ae, {
14347
+ Tt(ae, {
14330
14348
  src: V.icon.right,
14331
14349
  width: 20,
14332
14350
  height: 20
14333
14351
  }, null, 8, ["src"])
14334
14352
  ]),
14335
- Qe("div", {
14353
+ Je("div", {
14336
14354
  class: "record-tree-option-item",
14337
14355
  onClick: s[4] || (s[4] = (...Te) => _.setToUp && _.setToUp(...Te)),
14338
14356
  title: "上移"
14339
14357
  }, [
14340
- Rt(ae, {
14358
+ Tt(ae, {
14341
14359
  src: V.icon.up,
14342
14360
  width: 20,
14343
14361
  height: 20
14344
14362
  }, null, 8, ["src"])
14345
14363
  ]),
14346
- Qe("div", {
14364
+ Je("div", {
14347
14365
  class: "record-tree-option-item",
14348
14366
  onClick: s[5] || (s[5] = (...Te) => _.setToDown && _.setToDown(...Te)),
14349
14367
  title: "移动"
14350
14368
  }, [
14351
- Rt(ae, {
14369
+ Tt(ae, {
14352
14370
  src: V.icon.down,
14353
14371
  width: 20,
14354
14372
  height: 20
14355
14373
  }, null, 8, ["src"])
14356
14374
  ]),
14357
- Qe("div", {
14375
+ Je("div", {
14358
14376
  class: "record-tree-option-item",
14359
14377
  onClick: s[6] || (s[6] = (...Te) => _.handleSelectFile && _.handleSelectFile(...Te)),
14360
14378
  title: "添加附件"
14361
14379
  }, [
14362
- Rt(ae, {
14380
+ Tt(ae, {
14363
14381
  src: V.icon.attach,
14364
14382
  width: 20,
14365
14383
  height: 20
14366
14384
  }, null, 8, ["src"])
14367
14385
  ]),
14368
- Qe("div", {
14386
+ Je("div", {
14369
14387
  class: "record-tree-option-item",
14370
14388
  onClick: s[7] || (s[7] = (...Te) => _.handleRecordAudio && _.handleRecordAudio(...Te)),
14371
14389
  title: "录制音频"
14372
14390
  }, [
14373
- Rt(ae, {
14391
+ Tt(ae, {
14374
14392
  src: V.icon.audio,
14375
14393
  width: 20,
14376
14394
  height: 20
14377
14395
  }, null, 8, ["src"])
14378
14396
  ]),
14379
- Qe("div", {
14397
+ Je("div", {
14380
14398
  class: "record-tree-option-item",
14381
14399
  onClick: s[8] || (s[8] = (...Te) => _.handleRecordVideo && _.handleRecordVideo(...Te)),
14382
14400
  title: "录制视频"
14383
14401
  }, [
14384
- Rt(ae, {
14402
+ Tt(ae, {
14385
14403
  src: V.icon.video,
14386
14404
  width: 20,
14387
14405
  height: 20
14388
14406
  }, null, 8, ["src"])
14389
14407
  ]),
14390
- Qe("div", {
14408
+ Je("div", {
14391
14409
  class: "record-tree-option-item",
14392
14410
  onClick: s[9] || (s[9] = (...Te) => _.handleRecordPhoto && _.handleRecordPhoto(...Te)),
14393
14411
  title: "拍照"
14394
14412
  }, [
14395
- Rt(ae, {
14413
+ Tt(ae, {
14396
14414
  src: V.icon.photo,
14397
14415
  width: 20,
14398
14416
  height: 20
14399
14417
  }, null, 8, ["src"])
14400
14418
  ])
14401
14419
  ]),
14402
- V.isMobile ? (Je(), it("div", Ai, [
14403
- Qe("div", {
14420
+ V.isMobile ? ($e(), it("div", Ci, [
14421
+ Je("div", {
14404
14422
  class: "record-tree-option-item",
14405
14423
  onClick: s[10] || (s[10] = kt((...Te) => _.handleComplete && _.handleComplete(...Te), ["stop"]))
14406
14424
  }, o0(V.modified || x.note.created_at ? "完成" : "取消"), 1)
14407
- ])) : Tt("", !0),
14408
- Qe("div", ki, [
14409
- Qe("input", {
14425
+ ])) : Rt("", !0),
14426
+ Je("div", Ai, [
14427
+ Je("input", {
14410
14428
  type: "file",
14411
14429
  ref: "selectFile",
14412
14430
  onChange: s[11] || (s[11] = (Te) => _.handleFileUpload(Te.target.files))
14413
14431
  }, null, 544),
14414
- Qe("input", {
14432
+ Je("input", {
14415
14433
  type: "file",
14416
14434
  ref: "selectPhoto",
14417
14435
  accept: "image/*",
14418
14436
  capture: "camera",
14419
14437
  onChange: s[12] || (s[12] = (Te) => _.handleFileUpload(Te.target.files))
14420
14438
  }, null, 544),
14421
- Qe("input", {
14439
+ Je("input", {
14422
14440
  type: "file",
14423
14441
  ref: "selectVideo",
14424
14442
  accept: "video/*",
@@ -14426,32 +14444,33 @@ function Bi(a, s, x, w, V, _) {
14426
14444
  onChange: s[13] || (s[13] = (Te) => _.handleFileUpload(Te.target.files))
14427
14445
  }, null, 544)
14428
14446
  ])
14429
- ])) : Tt("", !0),
14430
- V.recordAudioVisible ? (Je(), Nt(Q, {
14447
+ ])) : Rt("", !0),
14448
+ V.recordAudioVisible ? ($e(), Nt(Q, {
14431
14449
  key: 1,
14432
14450
  isMobile: V.isMobile,
14433
14451
  responsive: x.responsive,
14434
14452
  onFinish: _.handleFinishAudio,
14435
14453
  onCancel: s[14] || (s[14] = (Te) => V.recordAudioVisible = !1)
14436
- }, null, 8, ["isMobile", "responsive", "onFinish"])) : Tt("", !0),
14437
- V.recordVideoVisible ? (Je(), Nt(ce, {
14454
+ }, null, 8, ["isMobile", "responsive", "onFinish"])) : Rt("", !0),
14455
+ V.recordVideoVisible ? ($e(), Nt(ce, {
14438
14456
  key: 2,
14439
14457
  responsive: x.responsive,
14440
14458
  onFinish: _.handleFileUpload,
14441
14459
  onCancel: s[15] || (s[15] = (Te) => V.recordVideoVisible = !1)
14442
- }, null, 8, ["responsive", "onFinish"])) : Tt("", !0),
14443
- V.recordPhotoVisible ? (Je(), Nt(Ce, {
14460
+ }, null, 8, ["responsive", "onFinish"])) : Rt("", !0),
14461
+ V.recordPhotoVisible ? ($e(), Nt(Ce, {
14444
14462
  key: 3,
14445
14463
  responsive: x.responsive,
14446
14464
  onFinish: _.handleFileUpload,
14447
14465
  onCancel: s[16] || (s[16] = (Te) => V.recordPhotoVisible = !1)
14448
- }, null, 8, ["responsive", "onFinish"])) : Tt("", !0)
14466
+ }, null, 8, ["responsive", "onFinish"])) : Rt("", !0)
14449
14467
  ], 2);
14450
14468
  }
14451
- const Pi = /* @__PURE__ */ zt(Si, [["render", Bi]]);
14469
+ const Vi = /* @__PURE__ */ zt(xi, [["render", ki]]);
14452
14470
  export {
14453
- ni as RecordAudio,
14454
- xi as RecordPhoto,
14455
- Pi as RecordTree,
14456
- fi as RecordVideo
14471
+ ii as RecordAudio,
14472
+ gi as RecordPhoto,
14473
+ Vi as RecordTree,
14474
+ ci as RecordVideo,
14475
+ aa as TextEditor
14457
14476
  };