@codernote/record-tree 1.4.3 → 1.4.5

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 +599 -587
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.node-div[data-v-bd3dcd6b]{display:flex;align-items:center;position:relative}.node-text[data-v-bd3dcd6b]{margin-left:5px;flex:1;border:none;outline:none}.node-icon[data-v-bd3dcd6b]{position:relative;width:17px;height:17px;border-radius:10px;background-color:#fff;cursor:pointer;margin-left:5px;align-self:center;top:0}.node-icon-complex[data-v-bd3dcd6b]{align-self:flex-start;top:3px}.node-icon[data-v-bd3dcd6b]:after{content:"";position:absolute;top:5px;left:5px;width:7px;height:7px;border-radius:10px;background-color:#eee}.node-icon[data-v-bd3dcd6b]:hover{background-color:#ccc}.node-complex[data-v-bd3dcd6b]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-bd3dcd6b]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-bd3dcd6b]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-bd3dcd6b]{display:block}.node-image img[data-v-bd3dcd6b]{width:auto;max-height:80px;outline:none}.node-audio[data-v-bd3dcd6b],.node-video[data-v-bd3dcd6b]{width:300px}.node-audio audio[data-v-bd3dcd6b]{width:300px;outline:none}.node-video video[data-v-bd3dcd6b]{width:300px;outline:none}.node-del[data-v-bd3dcd6b]{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-bd3dcd6b]:before,.node-del[data-v-bd3dcd6b]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-bd3dcd6b]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-bd3dcd6b]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-bd3dcd6b]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-bd3dcd6b]{flex:1}.node-file-left h6[data-v-bd3dcd6b]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-bd3dcd6b]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-bd3dcd6b]{color:#52a770;font-size:14px}@keyframes blinkBorder-bd3dcd6b{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-bd3dcd6b]:focus{animation:blinkBorder-bd3dcd6b 1s infinite}.node-ul[data-v-b06218f5]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-b06218f5]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-b06218f5] .sublevel .node-li{margin-left:15px}[data-v-b06218f5] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-b06218f5] .drag-over-center{background-color:#eee}[data-v-b06218f5] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-b06218f5]{display:none}[data-v-b06218f5] .collapsed .node-icon:before{display:none}.tree-title[data-v-b06218f5]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-b06218f5] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-b06218f5] .node-li.dragging .node-icon:before{display:none}[data-v-b06218f5] .has-child>.node-div>.node-icon:before{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-b06218f5] .has-child>.node-div>.node-icon:hover:before{background-color:#52a770}.record-audio[data-v-26b984ff]{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-26b984ff]{width:300px;height:40px}.record-audio .audio-item[data-v-26b984ff]{margin-top:10px}.record-audio .buttons[data-v-26b984ff]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-26b984ff]{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-26b984ff]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-26b984ff]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-26b984ff]{border:1px solid #eee}.record-audio .buttons .oper[data-v-26b984ff]{margin-right:10px}.record-audio .main[data-v-26b984ff]{display:flex;align-items:center}.record-audio .duration[data-v-26b984ff]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-26b984ff]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-26b984ff]{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,.8)}.record-audio-mobile[data-v-26b984ff]{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-26b984ff]{flex:1;height:30px}.record-audio-mobile .oper[data-v-26b984ff]{margin-right:10px}.record-video[data-v-a9fc7189]{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-a9fc7189]{width:300px}.buttons[data-v-a9fc7189]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-a9fc7189]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-a9fc7189]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-a9fc7189]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-a9fc7189]{border:1px solid #eee}.buttons .oper[data-v-a9fc7189]{margin-right:10px}.wrap[data-v-a9fc7189]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-a9fc7189]{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,.8)}.record-video[data-v-91883306]{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-91883306]{width:200px}.img-item[data-v-91883306]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-91883306]{width:200px}.record-content[data-v-91883306]{display:flex}.buttons[data-v-91883306]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-91883306]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-91883306]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-91883306]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-91883306]{border:1px solid #eee}.buttons .oper[data-v-91883306]{margin-right:10px}.wrap[data-v-91883306]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-91883306]{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,.8)}.popper{width:auto;background-color:#fafafa;color:#212121;text-align:center;padding:2px;display:inline-block;border-radius:3px;position:absolute;font-size:14px;font-weight:400;border:1px #ebebeb solid;z-index:200000;box-shadow:#3a3a3a 0 0 6px}.popper .popper__arrow{width:0;height:0;border-style:solid;position:absolute;margin:5px}.popper[x-placement^=top]{margin-bottom:5px}.popper[x-placement^=top] .popper__arrow{border-width:5px 5px 0 5px;border-color:#fafafa transparent transparent transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.popper[x-placement^=bottom]{margin-top:5px}.popper[x-placement^=bottom] .popper__arrow{border-width:0 5px 5px 5px;border-color:transparent transparent #fafafa transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.popper[x-placement^=right]{margin-left:5px}.popper[x-placement^=right] .popper__arrow{border-width:5px 5px 5px 0;border-color:transparent #fafafa transparent transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.popper[x-placement^=left]{margin-right:5px}.popper[x-placement^=left] .popper__arrow{border-width:5px 0 5px 5px;border-color:transparent transparent transparent #fafafa;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}[data-v-7f00d874] .popper{transform:translate3d(0,22px,0)!important}.record-tree-mobile{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;background:#fff;border-top:1px dotted #eee;display:flex}.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-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-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-main{padding-left:15px}.record-tree-popper-content-item{padding:8px 10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.record-tree{position:relative;padding-bottom:40px}.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:0px;left:0px;text-align:center;border-radius:9999px;color:#fff}.record-tree-options{position:fixed;bottom:0px;left:0px;width:100%;display:flex;justify-content:space-between;padding:5px 0;background:rgb(236,236,236)}.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}.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}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.node-div[data-v-8db3bbd0]{display:flex;align-items:center;position:relative}.node-text[data-v-8db3bbd0]{margin-left:5px;flex:1;border:none;outline:none}.node-icon[data-v-8db3bbd0]{position:relative;width:17px;height:17px;border-radius:10px;background-color:#fff;cursor:pointer;margin-left:5px;align-self:center;top:0}.node-icon-complex[data-v-8db3bbd0]{align-self:flex-start;top:3px}.node-icon[data-v-8db3bbd0]:after{content:"";position:absolute;top:5px;left:5px;width:7px;height:7px;border-radius:10px;background-color:#eee}.node-icon[data-v-8db3bbd0]:hover{background-color:#ccc}.node-complex[data-v-8db3bbd0]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-8db3bbd0]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-8db3bbd0]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-8db3bbd0]{display:block}.node-image img[data-v-8db3bbd0]{width:auto;max-height:80px;outline:none}.node-audio[data-v-8db3bbd0],.node-video[data-v-8db3bbd0]{width:300px}.node-audio audio[data-v-8db3bbd0]{width:300px;outline:none}.node-video video[data-v-8db3bbd0]{width:300px;outline:none}.node-del[data-v-8db3bbd0]{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-8db3bbd0]:before,.node-del[data-v-8db3bbd0]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-8db3bbd0]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-8db3bbd0]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-8db3bbd0]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-8db3bbd0]{flex:1}.node-file-left h6[data-v-8db3bbd0]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-8db3bbd0]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-8db3bbd0]{color:#52a770;font-size:14px}@keyframes blinkBorder-8db3bbd0{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-8db3bbd0]:focus{animation:blinkBorder-8db3bbd0 1s infinite}.node-ul[data-v-97a7403f]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-97a7403f]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-97a7403f] .sublevel .node-li{margin-left:15px}[data-v-97a7403f] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-97a7403f] .drag-over-center{background-color:#eee}[data-v-97a7403f] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-97a7403f]{display:none}[data-v-97a7403f] .collapsed .node-icon:before{display:none}.tree-title[data-v-97a7403f]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-97a7403f] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-97a7403f] .node-li.dragging .node-icon:before{display:none}[data-v-97a7403f] .has-child>.node-div>.node-icon:before{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-97a7403f] .has-child>.node-div>.node-icon:hover:before{background-color:#52a770}.record-audio[data-v-26b984ff]{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-26b984ff]{width:300px;height:40px}.record-audio .audio-item[data-v-26b984ff]{margin-top:10px}.record-audio .buttons[data-v-26b984ff]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-26b984ff]{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-26b984ff]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-26b984ff]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-26b984ff]{border:1px solid #eee}.record-audio .buttons .oper[data-v-26b984ff]{margin-right:10px}.record-audio .main[data-v-26b984ff]{display:flex;align-items:center}.record-audio .duration[data-v-26b984ff]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-26b984ff]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-26b984ff]{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,.8)}.record-audio-mobile[data-v-26b984ff]{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-26b984ff]{flex:1;height:30px}.record-audio-mobile .oper[data-v-26b984ff]{margin-right:10px}.record-video[data-v-a9fc7189]{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-a9fc7189]{width:300px}.buttons[data-v-a9fc7189]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-a9fc7189]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-a9fc7189]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-a9fc7189]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-a9fc7189]{border:1px solid #eee}.buttons .oper[data-v-a9fc7189]{margin-right:10px}.wrap[data-v-a9fc7189]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-a9fc7189]{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,.8)}.record-video[data-v-91883306]{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-91883306]{width:200px}.img-item[data-v-91883306]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-91883306]{width:200px}.record-content[data-v-91883306]{display:flex}.buttons[data-v-91883306]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-91883306]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-91883306]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-91883306]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-91883306]{border:1px solid #eee}.buttons .oper[data-v-91883306]{margin-right:10px}.wrap[data-v-91883306]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-91883306]{position:absolute;left:0;top:0;right:0;bottom:0;background:rgba(255,255,255,.8)}.popper{width:auto;background-color:#fafafa;color:#212121;text-align:center;padding:2px;display:inline-block;border-radius:3px;position:absolute;font-size:14px;font-weight:400;border:1px #ebebeb solid;z-index:200000;box-shadow:#3a3a3a 0 0 6px}.popper .popper__arrow{width:0;height:0;border-style:solid;position:absolute;margin:5px}.popper[x-placement^=top]{margin-bottom:5px}.popper[x-placement^=top] .popper__arrow{border-width:5px 5px 0 5px;border-color:#fafafa transparent transparent transparent;bottom:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.popper[x-placement^=bottom]{margin-top:5px}.popper[x-placement^=bottom] .popper__arrow{border-width:0 5px 5px 5px;border-color:transparent transparent #fafafa transparent;top:-5px;left:calc(50% - 5px);margin-top:0;margin-bottom:0}.popper[x-placement^=right]{margin-left:5px}.popper[x-placement^=right] .popper__arrow{border-width:5px 5px 5px 0;border-color:transparent #fafafa transparent transparent;left:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}.popper[x-placement^=left]{margin-right:5px}.popper[x-placement^=left] .popper__arrow{border-width:5px 0 5px 5px;border-color:transparent transparent transparent #fafafa;right:-5px;top:calc(50% - 5px);margin-left:0;margin-right:0}[data-v-7f00d874] .popper{transform:translate3d(0,22px,0)!important}.record-tree-mobile{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;background:#fff;border-top:1px dotted #eee;display:flex}.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-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-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-main{padding-left:15px}.record-tree-popper-content-item{padding:8px 10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.record-tree{position:relative;padding-bottom:40px}.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:0px;left:0px;text-align:center;border-radius:9999px;color:#fff}.record-tree-options{position:fixed;bottom:0px;left:0px;width:100%;display:flex;justify-content:space-between;padding:5px 0;background:rgb(236,236,236)}.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}.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}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
2
  import { uuid as Ct, detectDeviceType as g0, byNameFindIcon as w0, icons as y0, parseMimeType as T0, oss as x0 } from "@codernote/utils";
3
3
  import Gt from "vue-inline-svg";
4
4
  import A0 from "vue-popperjs";
@@ -41,19 +41,19 @@ function Rt(_, r = 0, m = !1) {
41
41
  console.error("Element is not contenteditable");
42
42
  return;
43
43
  }
44
- const J = window.getSelection(), Z = document.createRange();
45
- J.removeAllRanges();
44
+ const $ = window.getSelection(), Z = document.createRange();
45
+ $.removeAllRanges();
46
46
  try {
47
- let re = _;
48
- if (_.childNodes.length > 0 ? re = _.childNodes[0] : (m || r > 0) && (re = document.createTextNode(""), _.appendChild(re)), m)
49
- Z.selectNodeContents(re), Z.collapse(!1);
47
+ let K = _;
48
+ if (_.childNodes.length > 0 ? K = _.childNodes[0] : (m || r > 0) && (K = document.createTextNode(""), _.appendChild(K)), m)
49
+ Z.selectNodeContents(K), Z.collapse(!1);
50
50
  else {
51
- const ie = Math.min(r, re.length || 0);
52
- Z.setStart(re, ie), Z.collapse(!0);
51
+ const ie = Math.min(r, K.length || 0);
52
+ Z.setStart(K, ie), Z.collapse(!0);
53
53
  }
54
- J.addRange(Z);
55
- } catch (re) {
56
- console.error("Error setting focus position:", re);
54
+ $.addRange(Z);
55
+ } catch (K) {
56
+ console.error("Error setting focus position:", K);
57
57
  }
58
58
  }
59
59
  function S0(_) {
@@ -63,9 +63,9 @@ function S0(_) {
63
63
  m.setStart(_.childNodes[0], 0), m.setEnd(_.childNodes[0], _.innerText.length), r.addRange(m);
64
64
  }
65
65
  function p0(_) {
66
- var re;
67
- let m = (((re = _.target) == null ? void 0 : re.querySelector(".node-div")) || _.target).getBoundingClientRect(), p = _.clientY, J = m.top + m.height / 3, Z = m.top + m.height / 3 * 2;
68
- return p < J ? "top" : p < Z ? "center" : "bottom";
66
+ var K;
67
+ let m = (((K = _.target) == null ? void 0 : K.querySelector(".node-div")) || _.target).getBoundingClientRect(), p = _.clientY, $ = m.top + m.height / 3, Z = m.top + m.height / 3 * 2;
68
+ return p < $ ? "top" : p < Z ? "center" : "bottom";
69
69
  }
70
70
  function r0(_) {
71
71
  return /<(img|audio|video)/.test(_.text) || _.type;
@@ -76,8 +76,8 @@ function N0(_) {
76
76
  function Nt(_, r = !1) {
77
77
  const m = N0(_), p = ".node-text";
78
78
  if (r) {
79
- const J = m.querySelectorAll(p);
80
- return J[J.length - 1];
79
+ const $ = m.querySelectorAll(p);
80
+ return $[$.length - 1];
81
81
  }
82
82
  return m == null ? void 0 : m.querySelector(p);
83
83
  }
@@ -87,24 +87,24 @@ function i0() {
87
87
  });
88
88
  }
89
89
  function I0(_, r) {
90
- var re;
90
+ var K;
91
91
  const m = _.currentTarget, p = St.get("dragId") ? document.getElementById(St.get("dragId")) : null;
92
92
  if (!m || St.get("dragId") === r.uuid || p != null && p.querySelector(`[id="${r.uuid}"]`)) {
93
93
  _.dataTransfer.dropEffect = "none";
94
94
  return;
95
95
  }
96
96
  i0();
97
- const J = p0(_), Z = (re = m.querySelector(".node-div")) == null ? void 0 : re.classList;
98
- Z && Z.add(`drag-over-${J}`);
97
+ const $ = p0(_), Z = (K = m.querySelector(".node-div")) == null ? void 0 : K.classList;
98
+ Z && Z.add(`drag-over-${$}`);
99
99
  }
100
100
  function C0(_) {
101
- const m = new DOMParser().parseFromString(_, "text/html"), p = m.querySelector("img"), J = m.querySelector("video"), Z = m.querySelector("audio");
101
+ const m = new DOMParser().parseFromString(_, "text/html"), p = m.querySelector("img"), $ = m.querySelector("video"), Z = m.querySelector("audio");
102
102
  return p ? {
103
103
  type: "image",
104
104
  content: p.src
105
- } : J ? {
105
+ } : $ ? {
106
106
  type: "video",
107
- content: J.src
107
+ content: $.src
108
108
  } : Z ? {
109
109
  type: "audio",
110
110
  content: Z.src
@@ -119,8 +119,8 @@ function n0(_, r) {
119
119
  function R0(_, r = 0) {
120
120
  if (_ === 0)
121
121
  return "0 Bytes";
122
- const m = 1024, p = r < 0 ? 0 : r, J = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], Z = Math.floor(Math.log(_) / Math.log(m));
123
- return parseFloat((_ / Math.pow(m, Z)).toFixed(p)) + " " + J[Z];
122
+ const m = 1024, p = r < 0 ? 0 : r, $ = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], Z = Math.floor(Math.log(_) / Math.log(m));
123
+ return parseFloat((_ / Math.pow(m, Z)).toFixed(p)) + " " + $[Z];
124
124
  }
125
125
  function L0(_, r) {
126
126
  if (_.length <= r)
@@ -131,18 +131,18 @@ function L0(_, r) {
131
131
  function E0(_) {
132
132
  return (_ || "").replace("contenteditable", "temp");
133
133
  }
134
- function zt(_, r, m, p, J, Z, re, ie) {
134
+ function zt(_, r, m, p, $, Z, K, ie) {
135
135
  var ye = typeof _ == "function" ? _.options : _;
136
136
  r && (ye.render = r, ye.staticRenderFns = m, ye._compiled = !0), p && (ye.functional = !0), Z && (ye._scopeId = "data-v-" + Z);
137
137
  var Re;
138
- if (re ? (Re = function(Ve) {
139
- Ve = Ve || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !Ve && typeof __VUE_SSR_CONTEXT__ < "u" && (Ve = __VUE_SSR_CONTEXT__), J && J.call(this, Ve), Ve && Ve._registeredComponents && Ve._registeredComponents.add(re);
140
- }, ye._ssrRegister = Re) : J && (Re = ie ? function() {
141
- J.call(
138
+ if (K ? (Re = function(Ve) {
139
+ Ve = Ve || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !Ve && typeof __VUE_SSR_CONTEXT__ < "u" && (Ve = __VUE_SSR_CONTEXT__), $ && $.call(this, Ve), Ve && Ve._registeredComponents && Ve._registeredComponents.add(K);
140
+ }, ye._ssrRegister = Re) : $ && (Re = ie ? function() {
141
+ $.call(
142
142
  this,
143
143
  (ye.functional ? this.parent : this).$root.$options.shadowRoot
144
144
  );
145
- } : J), Re)
145
+ } : $), Re)
146
146
  if (ye.functional) {
147
147
  ye._injectStyles = Re;
148
148
  var ke = ye.render;
@@ -197,8 +197,8 @@ const k0 = {
197
197
  handleCompositionStart() {
198
198
  this.isComposition = !0;
199
199
  },
200
- handleCompositionEnd() {
201
- this.isComposition = !1;
200
+ handleCompositionEnd(_) {
201
+ this.isComposition = !1, this.isMobile && this.handleKeyup(_);
202
202
  },
203
203
  handleKeyup(_) {
204
204
  const r = this.node;
@@ -207,10 +207,10 @@ const k0 = {
207
207
  if (this.disableInput)
208
208
  return this.disableInput = !1, _.preventDefault(), !1;
209
209
  if (!this.isComposition || _.which === 32) {
210
- const p = kt(), J = r.text !== _.target.innerHTML;
210
+ const p = kt(), $ = r.text !== _.target.innerHTML;
211
211
  r.text = _.target.innerHTML, this.$nextTick(() => {
212
212
  Rt(_.target, p);
213
- }), J && this.update();
213
+ }), $ && this.update();
214
214
  } else
215
215
  this.disableInput = !1;
216
216
  },
@@ -250,8 +250,8 @@ const k0 = {
250
250
  _.preventDefault(), this.$emit("toPrevFocus", r, !0), this.remove();
251
251
  else {
252
252
  const p = window.getSelection();
253
- let J = p.focusOffset - 1;
254
- if (_.target && p && J < 0) {
253
+ let $ = p.focusOffset - 1;
254
+ if (_.target && p && $ < 0) {
255
255
  if (_.preventDefault(), (m = r.children) != null && m.length)
256
256
  return;
257
257
  this.$emit("toPrevFocus", r, !0), this.$emit("remove", r);
@@ -295,8 +295,8 @@ const k0 = {
295
295
  const r = this.node, m = _.currentTarget, p = kt();
296
296
  if (!m)
297
297
  return;
298
- const J = p + 1, Z = m.innerText.length;
299
- !p && r.type ? Rt(m, J, !0) : J > Z ? this.$emit("toNextFocus", r, !0, !0) : Rt(m, J);
298
+ const $ = p + 1, Z = m.innerText.length;
299
+ !p && r.type ? Rt(m, $, !0) : $ > Z ? this.$emit("toNextFocus", r, !0, !0) : Rt(m, $);
300
300
  },
301
301
  handleArrowDown() {
302
302
  this.$emit("toNextFocus", this.node, !1, !0);
@@ -350,7 +350,7 @@ var j0 = function() {
350
350
  B0,
351
351
  !1,
352
352
  null,
353
- "bd3dcd6b",
353
+ "8db3bbd0",
354
354
  null,
355
355
  null
356
356
  );
@@ -423,7 +423,7 @@ const F0 = {
423
423
  this.addFiles(m, r);
424
424
  else {
425
425
  let p = _.dataTransfer.getData("dragNode");
426
- const J = p0(_);
426
+ const $ = p0(_);
427
427
  try {
428
428
  p = JSON.parse(p);
429
429
  } catch {
@@ -434,15 +434,15 @@ const F0 = {
434
434
  n0(p, r))
435
435
  return;
436
436
  let Z = [...this.nodes];
437
- if (Z.find((re) => re.uuid === p.uuid) ? Z = Z.filter((re) => re.uuid !== p.uuid) : St.trigger("dragEnd"), St.remove("dragId"), J === "center" && (this.status[r.uuid].collapsed = !1, r.children ? r.children.push(p) : r.children = [p], this.$nextTick(() => {
437
+ if (Z.find((K) => K.uuid === p.uuid) ? Z = Z.filter((K) => K.uuid !== p.uuid) : St.trigger("dragEnd"), St.remove("dragId"), $ === "center" && (this.status[r.uuid].collapsed = !1, r.children ? r.children.push(p) : r.children = [p], this.$nextTick(() => {
438
438
  this.update(Z);
439
- })), J === "top") {
440
- const re = Z.findIndex((ie) => ie === r);
441
- Z.splice(re, 0, p), this.update(Z);
439
+ })), $ === "top") {
440
+ const K = Z.findIndex((ie) => ie === r);
441
+ Z.splice(K, 0, p), this.update(Z);
442
442
  }
443
- if (J === "bottom") {
444
- const re = Z.findIndex((ie) => ie === r);
445
- Z.splice(re + 1, 0, p), this.update(Z);
443
+ if ($ === "bottom") {
444
+ const K = Z.findIndex((ie) => ie === r);
445
+ Z.splice(K + 1, 0, p), this.update(Z);
446
446
  }
447
447
  }
448
448
  },
@@ -453,16 +453,16 @@ const F0 = {
453
453
  handleTab(_, r) {
454
454
  var Z;
455
455
  _.preventDefault();
456
- const m = [...this.nodes], p = m.findIndex((re) => re === r), J = kt();
456
+ const m = [...this.nodes], p = m.findIndex((K) => K === r), $ = kt();
457
457
  if (_.shiftKey)
458
458
  this.$emit("transfer", r);
459
459
  else if (p > 0) {
460
- const re = this.nodes[p - 1];
461
- (Z = this.status[re.uuid]) != null && Z.collapsed && (this.status[re.uuid].collapsed = !1), re.children ? re.children.push(r) : re.children = [r], m.splice(p, 1), this.update(m);
460
+ const K = this.nodes[p - 1];
461
+ (Z = this.status[K.uuid]) != null && Z.collapsed && (this.status[K.uuid].collapsed = !1), K.children ? K.children.push(r) : K.children = [r], m.splice(p, 1), this.update(m);
462
462
  } else
463
463
  _.target.focus();
464
464
  this.$nextTick(() => {
465
- Rt(Nt(r), J);
465
+ Rt(Nt(r), $);
466
466
  });
467
467
  },
468
468
  handleRemove(_) {
@@ -480,8 +480,8 @@ const F0 = {
480
480
  },
481
481
  // 节点跨父级移动
482
482
  handleTransfer(_, r) {
483
- const m = [...this.nodes], p = m.findIndex((Z) => Z === _), J = _.children.findIndex((Z) => Z === r);
484
- _.children.splice(J, 1), m.splice(p + 1, 0, r), this.update(m);
483
+ const m = [...this.nodes], p = m.findIndex((Z) => Z === _), $ = _.children.findIndex((Z) => Z === r);
484
+ _.children.splice($, 1), m.splice(p + 1, 0, r), this.update(m);
485
485
  },
486
486
  handleEnter(_) {
487
487
  this.enableDbEnter ? this.timeout ? (clearTimeout(this.timeout), this.timeout = null, this.handleDbEnter()) : this.timeout = setTimeout(() => {
@@ -492,27 +492,27 @@ const F0 = {
492
492
  this.$emit("dbEnter");
493
493
  },
494
494
  keyEnter(_) {
495
- const r = r0(_), m = this.nodes.findIndex((re) => re.uuid === _.uuid), p = kt(), J = [...this.nodes], Z = { text: "", uuid: Ct() };
495
+ const r = r0(_), m = this.nodes.findIndex((K) => K.uuid === _.uuid), p = kt(), $ = [...this.nodes], Z = { text: "", uuid: Ct() };
496
496
  if (r)
497
- J.splice(m + 1, 0, Z);
497
+ $.splice(m + 1, 0, Z);
498
498
  else {
499
- let re = _.text.replace(/&nbsp;?/g, " ");
500
- _.text = re.slice(0, p), Z.text = re.slice(p, re.length), J.splice(m + 1, 0, Z);
499
+ let K = _.text.replace(/&nbsp;?/g, " ");
500
+ _.text = K.slice(0, p), Z.text = K.slice(p, K.length), $.splice(m + 1, 0, Z);
501
501
  }
502
- this.update(J), this.$nextTick(() => {
503
- const re = Nt(Z);
504
- re == null || re.focus();
502
+ this.update($), this.$nextTick(() => {
503
+ const K = Nt(Z);
504
+ K == null || K.focus();
505
505
  });
506
506
  },
507
507
  // 聚焦上一节点
508
508
  toPrevFocus(_, r = !1) {
509
- var J;
509
+ var $;
510
510
  let m = kt();
511
511
  const p = this.nodes.findIndex((Z) => Z === _);
512
512
  if (p === 0)
513
513
  this.$emit("focusPrev", r);
514
514
  else {
515
- const Z = this.nodes[p - 1], re = ((J = Z.children) == null ? void 0 : J.length) && !this.status[Z.uuid].collapsed, ie = Nt(this.nodes[p - 1], re), ye = r || m === 1 / 0;
515
+ const Z = this.nodes[p - 1], K = (($ = Z.children) == null ? void 0 : $.length) && !this.status[Z.uuid].collapsed, ie = Nt(this.nodes[p - 1], K), ye = r || m === 1 / 0;
516
516
  Rt(
517
517
  ie,
518
518
  ye ? ie.innerText.length : m,
@@ -523,15 +523,15 @@ const F0 = {
523
523
  // 聚焦下一节点
524
524
  toNextFocus(_, r = !1, m = !1) {
525
525
  var Z;
526
- const p = kt(), J = this.nodes.findIndex((re) => re === _);
526
+ const p = kt(), $ = this.nodes.findIndex((K) => K === _);
527
527
  if (m && ((Z = _.children) != null && Z.length) && !this.status[_.uuid].collapsed) {
528
- const re = Nt(_.children[0]);
529
- Rt(re, r ? 0 : p);
530
- } else if (J + 1 >= this.nodes.length)
528
+ const K = Nt(_.children[0]);
529
+ Rt(K, r ? 0 : p);
530
+ } else if ($ + 1 >= this.nodes.length)
531
531
  this.$emit("focusNext", !0);
532
532
  else {
533
- const re = Nt(this.nodes[J + 1]);
534
- Rt(re, r ? 0 : p);
533
+ const K = Nt(this.nodes[$ + 1]);
534
+ Rt(K, r ? 0 : p);
535
535
  }
536
536
  },
537
537
  // 聚焦到指定节点
@@ -542,18 +542,18 @@ const F0 = {
542
542
  },
543
543
  addFiles(_, r) {
544
544
  if (_) {
545
- const p = Array.from(_).slice(0, 5), J = (Z) => {
546
- const re = [...this.nodes];
547
- let ie = re.findIndex((ye) => ye === r);
545
+ const p = Array.from(_).slice(0, 5), $ = (Z) => {
546
+ const K = [...this.nodes];
547
+ let ie = K.findIndex((ye) => ye === r);
548
548
  Z.forEach((ye, Re) => {
549
- !r.text && !r.content && Re === 0 ? re.splice(ie, 1, {
549
+ !r.text && !r.content && Re === 0 ? K.splice(ie, 1, {
550
550
  ...ye,
551
551
  uuid: r.uuid,
552
552
  children: r.children
553
- }) : re.splice(ie + 1, 0, ye), ie++;
554
- }), this.update(re);
553
+ }) : K.splice(ie + 1, 0, ye), ie++;
554
+ }), this.update(K);
555
555
  };
556
- this.$emit("fileUpload", p, J);
556
+ this.$emit("fileUpload", p, $);
557
557
  }
558
558
  },
559
559
  handleCollapse(_, r) {
@@ -569,23 +569,35 @@ const F0 = {
569
569
  },
570
570
  // dfs查找并追加节点
571
571
  appendNode(_, r = !1, m = this.nodes) {
572
- const p = St.get("currentId"), J = [...m];
572
+ const p = St.get("currentId"), $ = [...m];
573
573
  if (!r && (!p || !document.getElementById(p))) {
574
- J.push(_), this.update(J);
574
+ const K = $[$.length - 1];
575
+ !(K != null && K.type) && !K.text ? $[$.length - 1] = {
576
+ ...K,
577
+ ..._
578
+ } : $.push(_), this.update($);
575
579
  return;
576
580
  }
577
- const Z = J.findIndex((re) => re.uuid === p);
578
- return Z >= 0 ? J.splice(Z + 1, 0, _) : J.forEach((re) => {
579
- var ie;
580
- (ie = re.children) != null && ie.length && (re.children = this.appendNode(_, !0, re.children));
581
- }), r || this.update(J), J;
581
+ const Z = $.findIndex((K) => K.uuid === p);
582
+ if (Z >= 0) {
583
+ const K = $[Z];
584
+ !(K != null && K.type) && !K.text ? $[Z] = {
585
+ ...K,
586
+ ..._
587
+ } : $.splice(Z + 1, 0, _);
588
+ } else
589
+ $.forEach((K) => {
590
+ var ie;
591
+ (ie = K.children) != null && ie.length && (K.children = this.appendNode(_, !0, K.children));
592
+ });
593
+ return r || this.update($), $;
582
594
  },
583
595
  // dfs查找并更新节点
584
596
  updateNode(_, r = !1, m = this.nodes) {
585
- const p = [...m], J = p.findIndex((Z) => Z.uuid === _.uuid);
586
- return J >= 0 ? p[J] = _ : p.forEach((Z) => {
587
- var re;
588
- (re = Z.children) != null && re.length && (Z.children = this.updateNode(_, !0, Z.children));
597
+ const p = [...m], $ = p.findIndex((Z) => Z.uuid === _.uuid);
598
+ return $ >= 0 ? p[$] = _ : p.forEach((Z) => {
599
+ var K;
600
+ (K = Z.children) != null && K.length && (Z.children = this.updateNode(_, !0, Z.children));
589
601
  }), r || this.update(p), p;
590
602
  },
591
603
  filterNodes(_) {
@@ -643,19 +655,19 @@ var U0 = function() {
643
655
  "node-li": !0,
644
656
  collapsed: r.status[p.uuid] ? r.status[p.uuid].collapsed : !1,
645
657
  "has-child": !!(p.children || []).length
646
- }, attrs: { id: `${p.uuid}`, draggable: "true" }, on: { dragstart: function(J) {
647
- return J.stopPropagation(), r.handleDragStart(J, p);
648
- }, dragover: function(J) {
649
- return J.stopPropagation(), J.preventDefault(), r.handleDragOver(J, p);
650
- }, dragend: function(J) {
651
- return J.stopPropagation(), J.preventDefault(), r.handleDragEnd(J, p);
652
- }, drop: function(J) {
653
- return J.stopPropagation(), r.handleDrop(J, p);
654
- }, dragleave: function(J) {
655
- return J.stopPropagation(), r.handleDragLeave(J, p);
656
- }, paste: function(J) {
657
- return J.stopPropagation(), J.preventDefault(), r.handlePaste(J, p);
658
- } } }, [m("Node", { attrs: { node: p, isMobile: r.isMobile }, on: { change: r.handleNodeChange, toPrevFocus: r.toPrevFocus, toNextFocus: r.toNextFocus, toFocus: r.toFocus, collapse: r.handleCollapse, enter: r.handleEnter, tab: r.handleTab, remove: r.handleRemove } }), (p.children || []).length ? m("tree-editor", { attrs: { nodes: p.children, enableDbEnter: r.enableDbEnter, hash: r.hash, isMobile: r.isMobile, allowEmpty: !0, sublevel: !0 }, on: { change: (J) => r.handleChangeChildren(p, J), focusPrev: (J) => r.toFocus(p, J), focusNext: (J) => r.toNextFocus(p, J), transfer: (J) => r.handleTransfer(p, J), fileUpload: (...J) => r.$emit("fileUpload", ...J), dbEnter: r.handleDbEnter } }) : r._e()], 1);
658
+ }, attrs: { id: `${p.uuid}`, draggable: "true" }, on: { dragstart: function($) {
659
+ return $.stopPropagation(), r.handleDragStart($, p);
660
+ }, dragover: function($) {
661
+ return $.stopPropagation(), $.preventDefault(), r.handleDragOver($, p);
662
+ }, dragend: function($) {
663
+ return $.stopPropagation(), $.preventDefault(), r.handleDragEnd($, p);
664
+ }, drop: function($) {
665
+ return $.stopPropagation(), r.handleDrop($, p);
666
+ }, dragleave: function($) {
667
+ return $.stopPropagation(), r.handleDragLeave($, p);
668
+ }, paste: function($) {
669
+ return $.stopPropagation(), $.preventDefault(), r.handlePaste($, p);
670
+ } } }, [m("Node", { attrs: { node: p, isMobile: r.isMobile }, on: { change: r.handleNodeChange, toPrevFocus: r.toPrevFocus, toNextFocus: r.toNextFocus, toFocus: r.toFocus, collapse: r.handleCollapse, enter: r.handleEnter, tab: r.handleTab, remove: r.handleRemove } }), (p.children || []).length ? m("tree-editor", { attrs: { nodes: p.children, enableDbEnter: r.enableDbEnter, hash: r.hash, isMobile: r.isMobile, allowEmpty: !0, sublevel: !0 }, on: { change: ($) => r.handleChangeChildren(p, $), focusPrev: ($) => r.toFocus(p, $), focusNext: ($) => r.toNextFocus(p, $), transfer: ($) => r.handleTransfer(p, $), fileUpload: (...$) => r.$emit("fileUpload", ...$), dbEnter: r.handleDbEnter } }) : r._e()], 1);
659
671
  }), 0);
660
672
  }, P0 = [], H0 = /* @__PURE__ */ zt(
661
673
  F0,
@@ -663,7 +675,7 @@ var U0 = function() {
663
675
  P0,
664
676
  !1,
665
677
  null,
666
- "b06218f5",
678
+ "97a7403f",
667
679
  null,
668
680
  null
669
681
  );
@@ -693,12 +705,12 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
693
705
  r(p, m), _.exports && (_.exports = p.Recorder);
694
706
  })(function(r, m) {
695
707
  var p = function() {
696
- }, J = function(e) {
708
+ }, $ = function(e) {
697
709
  return typeof e == "number";
698
710
  }, Z = function(e) {
699
711
  return new V(e);
700
- }, re = Z.LM = "2023-12-24 18:09", ie = "https://github.com/xiangyuecn/Recorder", ye = "Recorder", Re = "getUserMedia", ke = "srcSampleRate", Oe = "sampleRate", Ve = "bitRate", Ze = "catch", ue = r[ye];
701
- if (ue && ue.LM == re) {
712
+ }, K = Z.LM = "2023-12-24 18:09", ie = "https://github.com/xiangyuecn/Recorder", ye = "Recorder", Re = "getUserMedia", ke = "srcSampleRate", Oe = "sampleRate", Ve = "bitRate", Ze = "catch", ue = r[ye];
713
+ if (ue && ue.LM == K) {
702
714
  ue.CLog(ue.i18n.$T("K8zP::重复导入{1}", 0, ye), 3);
703
715
  return;
704
716
  }
@@ -770,21 +782,21 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
770
782
  var Y = function(P) {
771
783
  var T = b._m = S.createMediaStreamSource(b), oe = S.destination, g = "createMediaStreamDestination";
772
784
  S[g] && (oe = b._d = S[g]()), T.connect(P), P.connect(oe);
773
- }, D, s, q, te = "", me = b._call, be = function(P) {
785
+ }, D, s, q, ae = "", me = b._call, be = function(P) {
774
786
  for (var T in me) {
775
- for (var oe = P.length, g = new Int16Array(oe), z = 0, ae = 0; ae < oe; ae++) {
776
- var j = Math.max(-1, Math.min(1, P[ae]));
777
- j = j < 0 ? j * 32768 : j * 32767, g[ae] = j, z += Math.abs(j);
787
+ for (var oe = P.length, g = new Int16Array(oe), z = 0, re = 0; re < oe; re++) {
788
+ var j = Math.max(-1, Math.min(1, P[re]));
789
+ j = j < 0 ? j * 32768 : j * 32767, g[re] = j, z += Math.abs(j);
778
790
  }
779
- for (var K in me)
780
- me[K](g, z);
791
+ for (var ee in me)
792
+ me[ee](g, z);
781
793
  return;
782
794
  }
783
- }, ne = "ScriptProcessor", ce = "audioWorklet", pe = ye + " " + ce, se = "RecProc", G = "MediaRecorder", ve = G + ".WebM.PCM", we = S.createScriptProcessor || S.createJavaScriptNode, U = De("ZGlf::。由于{1}内部1秒375次回调,在移动端可能会有性能问题导致回调丢失录音变短,PC端无影响,暂不建议开启{1}。", 0, ce), ee = function() {
795
+ }, ne = "ScriptProcessor", ce = "audioWorklet", pe = ye + " " + ce, se = "RecProc", G = "MediaRecorder", ve = G + ".WebM.PCM", we = S.createScriptProcessor || S.createJavaScriptNode, U = De("ZGlf::。由于{1}内部1秒375次回调,在移动端可能会有性能问题导致回调丢失录音变短,PC端无影响,暂不建议开启{1}。", 0, ce), te = function() {
784
796
  s = b.isWorklet = !1, $e(b), Fe(De("7TU0::Connect采用老的{1},", 0, ne) + ft.get(
785
797
  Z[de] ? De("JwCL::但已设置{1}尝试启用{2}", 2) : De("VGjB::可设置{1}尝试启用{2}", 2),
786
798
  [ye + "." + de + "=true", ce]
787
- ) + te + U, 3);
799
+ ) + ae + U, 3);
788
800
  var P = b._p = we.call(S, h, 1, 1);
789
801
  Y(P), P.onaudioprocess = function(T) {
790
802
  var oe = T.inputBuffer.getChannelData(0);
@@ -794,23 +806,23 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
794
806
  D = b.isWebM = !1, Ke(b), s = b.isWorklet = !we || Z[de];
795
807
  var P = window.AudioWorkletNode;
796
808
  if (!(s && S[ce] && P)) {
797
- ee();
809
+ te();
798
810
  return;
799
811
  }
800
812
  var T = function() {
801
- var ae = function(K) {
802
- return K.toString().replace(/^function|DEL_/g, "").replace(/\$RA/g, pe);
813
+ var re = function(ee) {
814
+ return ee.toString().replace(/^function|DEL_/g, "").replace(/\$RA/g, pe);
803
815
  }, j = "class " + se + " extends AudioWorkletProcessor{";
804
- return j += "constructor " + ae(function(K) {
805
- DEL_super(K);
806
- var k = this, fe = K.processorOptions.bufferSize;
816
+ return j += "constructor " + re(function(ee) {
817
+ DEL_super(ee);
818
+ var k = this, fe = ee.processorOptions.bufferSize;
807
819
  k.bufferSize = fe, k.buffer = new Float32Array(fe * 2), k.pos = 0, k.port.onmessage = function(E) {
808
820
  E.data.kill && (k.kill = !0, $C.log("$RA kill call"));
809
- }, $C.log("$RA .ctor call", K);
810
- }), j += "process " + ae(function(K, k, fe) {
821
+ }, $C.log("$RA .ctor call", ee);
822
+ }), j += "process " + re(function(ee, k, fe) {
811
823
  var E = this, B = E.bufferSize, t = E.buffer, l = E.pos;
812
- if (K = (K[0] || [])[0] || [], K.length) {
813
- t.set(K, l), l += K.length;
824
+ if (ee = (ee[0] || [])[0] || [], ee.length) {
825
+ t.set(ee, l), l += ee.length;
814
826
  var A = ~~(l / B) * B;
815
827
  if (A) {
816
828
  this.port.postMessage({ val: t.slice(0, A) });
@@ -825,16 +837,16 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
825
837
  return s && b._na;
826
838
  }, g = b._na = function() {
827
839
  q !== "" && (clearTimeout(q), q = setTimeout(function() {
828
- q = 0, oe() && (Fe(De("MxX1::{1}未返回任何音频,恢复使用{2}", 0, ce, ne), 3), we && ee());
840
+ q = 0, oe() && (Fe(De("MxX1::{1}未返回任何音频,恢复使用{2}", 0, ce, ne), 3), we && te());
829
841
  }, 500));
830
842
  }, z = function() {
831
843
  if (oe()) {
832
- var ae = b._n = new P(S, se, {
844
+ var re = b._n = new P(S, se, {
833
845
  processorOptions: { bufferSize: h }
834
846
  });
835
- Y(ae), ae.port.onmessage = function(j) {
847
+ Y(re), re.port.onmessage = function(j) {
836
848
  q && (clearTimeout(q), q = ""), oe() ? be(j.data.val) : s || Fe(De("XUap::{1}多余回调", 0, ce), 3);
837
- }, Fe(De("yOta::Connect采用{1},设置{2}可恢复老式{3}", 0, ce, ye + "." + de + "=false", ne) + te + U, 3);
849
+ }, Fe(De("yOta::Connect采用{1},设置{2}可恢复老式{3}", 0, ce, ye + "." + de + "=false", ne) + ae + U, 3);
838
850
  }
839
851
  };
840
852
  S.resume()[me && "finally"](function() {
@@ -843,11 +855,11 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
843
855
  z();
844
856
  return;
845
857
  }
846
- var ae = T();
847
- S[ce].addModule(ae).then(function(j) {
858
+ var re = T();
859
+ S[ce].addModule(re).then(function(j) {
848
860
  oe() && (S[se] = 1, z(), q && g());
849
861
  })[Ze](function(j) {
850
- Fe(ce + ".addModule Error", 1, j), oe() && ee();
862
+ Fe(ce + ".addModule Error", 1, j), oe() && te();
851
863
  });
852
864
  }
853
865
  });
@@ -855,7 +867,7 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
855
867
  var P = window[G], T = "ondataavailable", oe = "audio/webm; codecs=pcm";
856
868
  D = b.isWebM = Z[Ye];
857
869
  var g = P && T in P.prototype && P.isTypeSupported(oe);
858
- if (te = g ? "" : De("VwPd::(此浏览器不支持{1})", 0, ve), !o || !D || !g) {
870
+ if (ae = g ? "" : De("VwPd::(此浏览器不支持{1})", 0, ve), !o || !D || !g) {
859
871
  c();
860
872
  return;
861
873
  }
@@ -867,12 +879,12 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
867
879
  z() && (Fe(De("vHnb::{1}未返回任何音频,降级使用{2}", 0, G, ce), 3), c());
868
880
  }, 500));
869
881
  };
870
- var ae = Object.assign({ mimeType: oe }, Z.ConnectWebMOptions), j = b._r = new P(b, ae), K = b._rd = { sampleRate: S[Oe] };
882
+ var re = Object.assign({ mimeType: oe }, Z.ConnectWebMOptions), j = b._r = new P(b, re), ee = b._rd = { sampleRate: S[Oe] };
871
883
  j[T] = function(k) {
872
884
  var fe = new FileReader();
873
885
  fe.onloadend = function() {
874
886
  if (z()) {
875
- var E = pt(new Uint8Array(fe.result), K);
887
+ var E = pt(new Uint8Array(fe.result), ee);
876
888
  if (!E)
877
889
  return;
878
890
  if (E == -1) {
@@ -908,8 +920,8 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
908
920
  b || (b = {});
909
921
  var D = b.index || 0, s = b.offset || 0, q = b.filter;
910
922
  if (q && q.fn && q.sr != o && (q = null, Fe(De("d48C::{1}的filter采样率变了,重设滤波", 0, Y), 3)), !q) {
911
- var te = h > o * 3 / 4 ? 0 : h / 2 * 3 / 4;
912
- q = { fn: te ? Z.IIRFilter(!0, o, te) : 0 };
923
+ var ae = h > o * 3 / 4 ? 0 : h / 2 * 3 / 4;
924
+ q = { fn: ae ? Z.IIRFilter(!0, o, ae) : 0 };
913
925
  }
914
926
  q.sr = o;
915
927
  var me = q.fn, be = b.frameNext || [];
@@ -926,18 +938,18 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
926
938
  for (var ve = new Int16Array(pe), we = 0, se = 0; se < be.length; se++)
927
939
  ve[we] = be[se], we++;
928
940
  for (; D < ce; D++) {
929
- for (var U = e[D], se = s, ee = U.length, c = me && me.Embed, N = 0, P = 0, T = 0, oe = 0, g = 0, z = 0; g < ee; g++, z++) {
930
- if (z < ee && (c ? (T = U[z], oe = c.b0 * T + c.b1 * c.x1 + c.b0 * c.x2 - c.a1 * c.y1 - c.a2 * c.y2, c.x2 = c.x1, c.x1 = T, c.y2 = c.y1, c.y1 = oe) : oe = me ? me(U[z]) : U[z]), N = P, P = oe, z == 0) {
941
+ for (var U = e[D], se = s, te = U.length, c = me && me.Embed, N = 0, P = 0, T = 0, oe = 0, g = 0, z = 0; g < te; g++, z++) {
942
+ if (z < te && (c ? (T = U[z], oe = c.b0 * T + c.b1 * c.x1 + c.b0 * c.x2 - c.a1 * c.y1 - c.a2 * c.y2, c.x2 = c.x1, c.x1 = T, c.y2 = c.y1, c.y1 = oe) : oe = me ? me(U[z]) : U[z]), N = P, P = oe, z == 0) {
931
943
  g--;
932
944
  continue;
933
945
  }
934
- var ae = Math.floor(se);
935
- if (g == ae) {
936
- var j = Math.ceil(se), K = se - ae, k = N, fe = j < ee ? P : k, E = k + (fe - k) * K;
946
+ var re = Math.floor(se);
947
+ if (g == re) {
948
+ var j = Math.ceil(se), ee = se - re, k = N, fe = j < te ? P : k, E = k + (fe - k) * ee;
937
949
  E > 32767 ? E = 32767 : E < -32768 && (E = -32768), ve[we] = E, we++, se += G;
938
950
  }
939
951
  }
940
- s = Math.max(0, se - ee);
952
+ s = Math.max(0, se - te);
941
953
  }
942
954
  be = null;
943
955
  var B = ve.length % ne;
@@ -954,15 +966,15 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
954
966
  data: ve
955
967
  };
956
968
  }, Z.IIRFilter = function(e, o, h) {
957
- var b = 2 * Math.PI * h / o, S = Math.sin(b), Y = Math.cos(b), D = S / 2, s = 1 + D, q = -2 * Y / s, te = (1 - D) / s;
969
+ var b = 2 * Math.PI * h / o, S = Math.sin(b), Y = Math.cos(b), D = S / 2, s = 1 + D, q = -2 * Y / s, ae = (1 - D) / s;
958
970
  if (e)
959
971
  var me = (1 - Y) / 2 / s, be = (1 - Y) / s;
960
972
  else
961
973
  var me = (1 + Y) / 2 / s, be = -(1 + Y) / s;
962
974
  var ne = 0, ce = 0, pe = 0, se = 0, G = 0, ve = function(we) {
963
- return pe = me * we + be * ne + me * ce - q * se - te * G, ce = ne, ne = we, G = se, se = pe, pe;
975
+ return pe = me * we + be * ne + me * ce - q * se - ae * G, ce = ne, ne = we, G = se, se = pe, pe;
964
976
  };
965
- return ve.Embed = { x1: 0, x2: 0, y1: 0, y2: 0, b0: me, b1: be, a1: q, a2: te }, ve;
977
+ return ve.Embed = { x1: 0, x2: 0, y1: 0, y2: 0, b0: me, b1: be, a1: q, a2: ae }, ve;
966
978
  }, Z.PowerLevel = function(e, o) {
967
979
  var h = e / o || 0, b;
968
980
  return h < 1251 ? b = Math.round(h / 1250 * 10) : b = Math.round(Math.min(100, Math.max(0, (1 + Math.log(h / 1e4) / Math.log(10)) * 100))), b;
@@ -971,10 +983,10 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
971
983
  return o = Math.min(o, h), o = 20 * Math.log(o / h) / Math.log(10), Math.max(-100, Math.round(o));
972
984
  }, Z.CLog = function(e, o) {
973
985
  if (typeof console == "object") {
974
- var h = new Date(), b = ("0" + h.getMinutes()).substr(-2) + ":" + ("0" + h.getSeconds()).substr(-2) + "." + ("00" + h.getMilliseconds()).substr(-3), S = this && this.envIn && this.envCheck && this.id, Y = ["[" + b + " " + ye + (S ? ":" + S : "") + "]" + e], D = arguments, s = Z.CLog, q = 2, te = s.log || console.log;
975
- for (J(o) ? te = o == 1 ? s.error || console.error : o == 3 ? s.warn || console.warn : te : q = 1; q < D.length; q++)
986
+ var h = new Date(), b = ("0" + h.getMinutes()).substr(-2) + ":" + ("0" + h.getSeconds()).substr(-2) + "." + ("00" + h.getMilliseconds()).substr(-3), S = this && this.envIn && this.envCheck && this.id, Y = ["[" + b + " " + ye + (S ? ":" + S : "") + "]" + e], D = arguments, s = Z.CLog, q = 2, ae = s.log || console.log;
987
+ for ($(o) ? ae = o == 1 ? s.error || console.error : o == 3 ? s.warn || console.warn : ae : q = 1; q < D.length; q++)
976
988
  Y.push(D[q]);
977
- Xe ? te && te("[IsLoser]" + Y[0], Y.length > 1 ? Y : "") : te.apply(console, Y);
989
+ Xe ? ae && ae("[IsLoser]" + Y[0], Y.length > 1 ? Y : "") : ae.apply(console, Y);
978
990
  }
979
991
  };
980
992
  var Fe = function() {
@@ -1014,7 +1026,7 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1014
1026
  h[b] = e[b];
1015
1027
  o.set = h;
1016
1028
  var S = h[Ve], Y = h[Oe];
1017
- (S && !J(S) || Y && !J(Y)) && o.CLog(De.G("IllegalArgs-1", [De("VtS4::{1}和{2}必须是数值", 0, Oe, Ve)]), 1, e), h[Ve] = +S || 16, h[Oe] = +Y || 16e3, o.state = 0, o._S = 9, o.Sync = { O: 9, C: 9 };
1029
+ (S && !$(S) || Y && !$(Y)) && o.CLog(De.G("IllegalArgs-1", [De("VtS4::{1}和{2}必须是数值", 0, Oe, Ve)]), 1, e), h[Ve] = +S || 16, h[Oe] = +Y || 16e3, o.state = 0, o._S = 9, o.Sync = { O: 9, C: 9 };
1018
1030
  }
1019
1031
  Z.Sync = {
1020
1032
  /*open*/
@@ -1039,12 +1051,12 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1039
1051
  h._streamTag = Re;
1040
1052
  var s = function() {
1041
1053
  h.CLog("open ok, id:" + h.id + " stream:" + h._streamTag), e(), h._SO = 0;
1042
- }, q = S.Sync, te = ++q.O, me = q.C;
1043
- h._O = h._O_ = te, h._SO = h._S;
1054
+ }, q = S.Sync, ae = ++q.O, me = q.C;
1055
+ h._O = h._O_ = ae, h._SO = h._S;
1044
1056
  var be = function() {
1045
1057
  if (me != q.C || !h._O) {
1046
1058
  var c = De("dFm8::open被取消");
1047
- return te == q.O ? h.close() : c = De("VtJO::open被中断"), D(c), !0;
1059
+ return ae == q.O ? h.close() : c = De("VtJO::open被中断"), D(c), !0;
1048
1060
  }
1049
1061
  };
1050
1062
  if (!m) {
@@ -1105,11 +1117,11 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1105
1117
  we[Oe] = se[Oe];
1106
1118
  var U = { audio: we };
1107
1119
  try {
1108
- var ee = Z.Scope[Re](U, G, ve);
1120
+ var te = Z.Scope[Re](U, G, ve);
1109
1121
  } catch (c) {
1110
- h.CLog(Re, 3, c), U = { audio: !0 }, ee = Z.Scope[Re](U, G, ve);
1122
+ h.CLog(Re, 3, c), U = { audio: !0 }, te = Z.Scope[Re](U, G, ve);
1111
1123
  }
1112
- h.CLog(Re + "(" + JSON.stringify(U) + ") " + Ce(se) + De("RiWe::,未配置noiseSuppression和echoCancellation时浏览器可能会自动打开降噪和回声消除,移动端可能会降低系统播放音量(关闭录音后可恢复),请参阅文档中audioTrackSet配置") + "(" + ie + ") LM:" + re + " UA:" + navigator.userAgent), ee && ee.then && ee.then(G)[Ze](ve);
1124
+ h.CLog(Re + "(" + JSON.stringify(U) + ") " + Ce(se) + De("RiWe::,未配置noiseSuppression和echoCancellation时浏览器可能会自动打开降噪和回声消除,移动端可能会降低系统播放音量(关闭录音后可恢复),请参阅文档中audioTrackSet配置") + "(" + ie + ") LM:" + K + " UA:" + navigator.userAgent), te && te.then && te.then(G)[Ze](ve);
1113
1125
  },
1114
1126
  close: function(e) {
1115
1127
  e = e || p;
@@ -1154,9 +1166,9 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1154
1166
  h.state || h.CLog("envIn at state=0", 3);
1155
1167
  return;
1156
1168
  }
1157
- var Y = h[ke], D = e.length, s = Z.PowerLevel(o, D), q = h.buffers, te = q.length;
1169
+ var Y = h[ke], D = e.length, s = Z.PowerLevel(o, D), q = h.buffers, ae = q.length;
1158
1170
  q.push(e);
1159
- var me = q, be = te, ne = Date.now(), ce = Math.round(D / Y * 1e3);
1171
+ var me = q, be = ae, ne = Date.now(), ce = Math.round(D / Y * 1e3);
1160
1172
  h.envInLast = ne, h.buffers.length == 1 && (h.envInFirst = ne - ce);
1161
1173
  var pe = h.envInFixTs;
1162
1174
  pe.splice(0, 0, { t: ne, d: ce });
@@ -1168,8 +1180,8 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1168
1180
  }
1169
1181
  se = we.t, G += we.d;
1170
1182
  }
1171
- var U = pe[1], ee = ne - se, c = ee - G;
1172
- if (c > ee / 3 && (U && ee > 1e3 || pe.length >= 6)) {
1183
+ var U = pe[1], te = ne - se, c = te - G;
1184
+ if (c > te / 3 && (U && te > 1e3 || pe.length >= 6)) {
1173
1185
  var N = ne - U.t - ce;
1174
1186
  if (N > ce / 5) {
1175
1187
  var P = !b.disableEnvInFix;
@@ -1181,11 +1193,11 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1181
1193
  }
1182
1194
  var oe = h.recSize, g = D, z = oe + g;
1183
1195
  if (h.recSize = z, S) {
1184
- var ae = Z.SampleData(q, Y, b[Oe], S.chunkInfo);
1185
- S.chunkInfo = ae, oe = S.pcmSize, g = ae.data.length, z = oe + g, S.pcmSize = z, q = S.pcmDatas, te = q.length, q.push(ae.data), Y = ae[Oe];
1196
+ var re = Z.SampleData(q, Y, b[Oe], S.chunkInfo);
1197
+ S.chunkInfo = re, oe = S.pcmSize, g = re.data.length, z = oe + g, S.pcmSize = z, q = S.pcmDatas, ae = q.length, q.push(re.data), Y = re[Oe];
1186
1198
  }
1187
- var j = Math.round(z / Y * 1e3), K = q.length, k = me.length, fe = function() {
1188
- for (var A = E ? 0 : -g, F = q[0] == null, y = te; y < K; y++) {
1199
+ var j = Math.round(z / Y * 1e3), ee = q.length, k = me.length, fe = function() {
1200
+ for (var A = E ? 0 : -g, F = q[0] == null, y = ae; y < ee; y++) {
1189
1201
  var f = q[y];
1190
1202
  f == null ? F = 1 : (A += f.length, S && f.length && h[b.type + "_encode"](S, f));
1191
1203
  }
@@ -1197,13 +1209,13 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1197
1209
  F && (A = E ? g : 0, q[0] = null), S ? S.pcmSize += A : h.recSize += A;
1198
1210
  }, E = 0, B = "rec.set.onProcess";
1199
1211
  try {
1200
- E = b.onProcess(q, s, j, Y, te, fe);
1212
+ E = b.onProcess(q, s, j, Y, ae, fe);
1201
1213
  } catch (A) {
1202
1214
  console.error(B + De("gFUF::回调出错是不允许的,需保证不会抛异常"), A);
1203
1215
  }
1204
1216
  var t = Date.now() - ne;
1205
1217
  if (t > 10 && h.envInFirst - ne > 1e3 && h.CLog(B + De("2ghS::低性能,耗时{1}ms", 0, t), 3), E === !0) {
1206
- for (var l = 0, ve = te; ve < K; ve++)
1218
+ for (var l = 0, ve = ae; ve < ee; ve++)
1207
1219
  q[ve] == null ? l = 1 : q[ve] = new Int16Array(0);
1208
1220
  l ? h.CLog(De("ufqH::未进入异步前不能清除buffers"), 3) : S ? S.pcmSize -= g : h.recSize -= g;
1209
1221
  } else
@@ -1250,59 +1262,59 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1250
1262
  },
1251
1263
  stop: function(e, o, h) {
1252
1264
  var b = this, S = b.set, Y, D = b.envInLast - b.envInFirst, s = D && b.buffers.length;
1253
- b.CLog(De("Xq4s::stop 和start时差:") + (D ? D + "ms " + De("3CQP::补偿:") + b.envInFix + "ms envIn:" + s + " fps:" + (s / D * 1e3).toFixed(1) : "-") + " stream:" + b._streamTag + " (" + ie + ") LM:" + re);
1265
+ b.CLog(De("Xq4s::stop 和start时差:") + (D ? D + "ms " + De("3CQP::补偿:") + b.envInFix + "ms envIn:" + s + " fps:" + (s / D * 1e3).toFixed(1) : "-") + " stream:" + b._streamTag + " (" + ie + ") LM:" + K);
1254
1266
  var q = function() {
1255
1267
  b._stop(), h && b.close();
1256
- }, te = function(we) {
1268
+ }, ae = function(we) {
1257
1269
  b.CLog(De("u8JG::结束录音失败:") + we, 1), o && o(we), q();
1258
- }, me = function(we, U, ee) {
1259
- var c = "blob", N = "arraybuffer", P = "dataType", T = "DefaultDataType", oe = b[P] || Z[T] || c, g = P + "=" + oe, z = we instanceof ArrayBuffer, ae = 0, j = z ? we.byteLength : we.size;
1260
- if (oe == N ? z || (ae = 1) : oe == c ? typeof Blob != "function" ? ae = De.G("NonBrowser-1", [g]) + De("1skY::,请设置{1}", 0, ye + "." + T + '="' + N + '"') : (z && (we = new Blob([we], { type: U })), we instanceof Blob || (ae = 1), U = we.type || U) : ae = De.G("NotSupport-1", [g]), b.CLog(De("Wv7l::结束录音 编码花{1}ms 音频时长{2}ms 文件大小{3}b", 0, Date.now() - Y, ee, j) + " " + g + "," + U), ae) {
1261
- te(ae != 1 ? ae : De("Vkbd::{1}编码器返回的不是{2}", 0, S.type, oe) + ", " + g);
1270
+ }, me = function(we, U, te) {
1271
+ var c = "blob", N = "arraybuffer", P = "dataType", T = "DefaultDataType", oe = b[P] || Z[T] || c, g = P + "=" + oe, z = we instanceof ArrayBuffer, re = 0, j = z ? we.byteLength : we.size;
1272
+ if (oe == N ? z || (re = 1) : oe == c ? typeof Blob != "function" ? re = De.G("NonBrowser-1", [g]) + De("1skY::,请设置{1}", 0, ye + "." + T + '="' + N + '"') : (z && (we = new Blob([we], { type: U })), we instanceof Blob || (re = 1), U = we.type || U) : re = De.G("NotSupport-1", [g]), b.CLog(De("Wv7l::结束录音 编码花{1}ms 音频时长{2}ms 文件大小{3}b", 0, Date.now() - Y, te, j) + " " + g + "," + U), re) {
1273
+ ae(re != 1 ? re : De("Vkbd::{1}编码器返回的不是{2}", 0, S.type, oe) + ", " + g);
1262
1274
  return;
1263
1275
  }
1264
1276
  if (S.takeoffEncodeChunk)
1265
1277
  b.CLog(De("QWnr::启用takeoffEncodeChunk后stop返回的blob长度为0不提供音频数据"), 3);
1266
- else if (j < Math.max(50, ee / 5)) {
1267
- te(De("Sz2H::生成的{1}无效", 0, S.type));
1278
+ else if (j < Math.max(50, te / 5)) {
1279
+ ae(De("Sz2H::生成的{1}无效", 0, S.type));
1268
1280
  return;
1269
1281
  }
1270
- e && e(we, ee, U), q();
1282
+ e && e(we, te, U), q();
1271
1283
  };
1272
1284
  if (!b.isMock) {
1273
1285
  var be = b.state == 3;
1274
1286
  if (!b.state || be) {
1275
- te(De("wf9t::未开始录音") + (be ? De("Dl2c::,开始录音前无用户交互导致AudioContext未运行") : ""));
1287
+ ae(De("wf9t::未开始录音") + (be ? De("Dl2c::,开始录音前无用户交互导致AudioContext未运行") : ""));
1276
1288
  return;
1277
1289
  }
1278
1290
  }
1279
1291
  b._stop(!0);
1280
1292
  var ne = b.recSize;
1281
1293
  if (!ne) {
1282
- te(De("Ltz3::未采集到录音"));
1294
+ ae(De("Ltz3::未采集到录音"));
1283
1295
  return;
1284
1296
  }
1285
1297
  if (!b[S.type]) {
1286
- te(De("xGuI::未加载{1}编码器,请尝试到{2}的src/engine内找到{1}的编码器并加载", 0, S.type, ye));
1298
+ ae(De("xGuI::未加载{1}编码器,请尝试到{2}的src/engine内找到{1}的编码器并加载", 0, S.type, ye));
1287
1299
  return;
1288
1300
  }
1289
1301
  if (b.isMock) {
1290
1302
  var ce = b.envCheck(b.mockEnvInfo || { envName: "mock", canProcess: !1 });
1291
1303
  if (ce) {
1292
- te(De("AxOH::录音错误:") + ce);
1304
+ ae(De("AxOH::录音错误:") + ce);
1293
1305
  return;
1294
1306
  }
1295
1307
  }
1296
1308
  var pe = b.engineCtx;
1297
1309
  if (b[S.type + "_complete"] && pe) {
1298
1310
  var ve = Math.round(pe.pcmSize / S[Oe] * 1e3);
1299
- Y = Date.now(), b[S.type + "_complete"](pe, function(U, ee) {
1300
- me(U, ee, ve);
1301
- }, te);
1311
+ Y = Date.now(), b[S.type + "_complete"](pe, function(U, te) {
1312
+ me(U, te, ve);
1313
+ }, ae);
1302
1314
  return;
1303
1315
  }
1304
1316
  if (Y = Date.now(), !b.buffers[0]) {
1305
- te(De("xkKd::音频buffers被释放"));
1317
+ ae(De("xkKd::音频buffers被释放"));
1306
1318
  return;
1307
1319
  }
1308
1320
  var se = Z.SampleData(b.buffers, b[ke], S[Oe]);
@@ -1312,7 +1324,7 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1312
1324
  Y = Date.now(), b[S.type](G, function(we, U) {
1313
1325
  me(we, U, ve);
1314
1326
  }, function(we) {
1315
- te(we);
1327
+ ae(we);
1316
1328
  });
1317
1329
  });
1318
1330
  }
@@ -1326,12 +1338,12 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1326
1338
  if (_t(D, b), Mt(D, b), !rt(_t(D, b), [24, 83, 128, 103]))
1327
1339
  return;
1328
1340
  for (_t(D, b); b[0] < D.length; ) {
1329
- var s = _t(D, b), q = Mt(D, b), te = [0], me = 0;
1341
+ var s = _t(D, b), q = Mt(D, b), ae = [0], me = 0;
1330
1342
  if (!q)
1331
1343
  return;
1332
1344
  if (rt(s, [22, 84, 174, 107])) {
1333
- for (; te[0] < q.length; ) {
1334
- var be = _t(q, te), ne = Mt(q, te), ce = [0], pe = { channels: 0, sampleRate: 0 };
1345
+ for (; ae[0] < q.length; ) {
1346
+ var be = _t(q, ae), ne = Mt(q, ae), ce = [0], pe = { channels: 0, sampleRate: 0 };
1335
1347
  if (rt(be, [174]))
1336
1348
  for (; ce[0] < ne.length; ) {
1337
1349
  var se = _t(ne, ce), G = Mt(ne, ce), ve = [0];
@@ -1342,8 +1354,8 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1342
1354
  var we = qe(G);
1343
1355
  we == 1 ? pe.type = "video" : we == 2 ? (pe.type = "audio", me || (o.track0 = pe), pe.idx = me++) : pe.type = "Type-" + we;
1344
1356
  } else if (rt(se, [134])) {
1345
- for (var U = "", ee = 0; ee < G.length; ee++)
1346
- U += String.fromCharCode(G[ee]);
1357
+ for (var U = "", te = 0; te < G.length; te++)
1358
+ U += String.fromCharCode(G[te]);
1347
1359
  pe.codec = U;
1348
1360
  } else if (rt(se, [225]))
1349
1361
  for (; ve[0] < G.length; ) {
@@ -1374,9 +1386,9 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1374
1386
  if (!pe)
1375
1387
  Fe("WebM !Track" + z, 1, h);
1376
1388
  else if (pe.idx === 0) {
1377
- for (var ae = new Uint8Array(ne.length - 4), ee = 4; ee < ne.length; ee++)
1378
- ae[ee - 4] = ne[ee];
1379
- oe.push(ae), g += ae.length;
1389
+ for (var re = new Uint8Array(ne.length - 4), te = 4; te < ne.length; te++)
1390
+ re[te - 4] = ne[te];
1391
+ oe.push(re), g += re.length;
1380
1392
  }
1381
1393
  }
1382
1394
  S();
@@ -1384,12 +1396,12 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1384
1396
  if (g) {
1385
1397
  var j = new Uint8Array(D.length - o.pos[0]);
1386
1398
  j.set(D.subarray(o.pos[0])), o.bytes = j, o.pos[0] = 0;
1387
- for (var ae = new Uint8Array(g), ee = 0, K = 0; ee < oe.length; ee++)
1388
- ae.set(oe[ee], K), K += oe[ee].length;
1389
- var P = new Float32Array(ae.buffer);
1399
+ for (var re = new Uint8Array(g), te = 0, ee = 0; te < oe.length; te++)
1400
+ re.set(oe[te], ee), ee += oe[te].length;
1401
+ var P = new Float32Array(re.buffer);
1390
1402
  if (T.channels > 1) {
1391
- for (var k = [], ee = 0; ee < P.length; )
1392
- k.push(P[ee]), ee += T.channels;
1403
+ for (var k = [], te = 0; te < P.length; )
1404
+ k.push(P[te]), te += T.channels;
1393
1405
  P = new Float32Array(k);
1394
1406
  }
1395
1407
  return P;
@@ -1417,8 +1429,8 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1417
1429
  if (D) {
1418
1430
  var s = D[1].length, q = [];
1419
1431
  if (!(b + s > e.length)) {
1420
- for (var te = 0; te < s; te++)
1421
- q[te] = e[b], b++;
1432
+ for (var ae = 0; ae < s; ae++)
1433
+ q[ae] = e[b], b++;
1422
1434
  return h && (q[0] = parseInt(D[2] || "0", 2)), o[0] = b, q;
1423
1435
  }
1424
1436
  }
@@ -1454,8 +1466,8 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1454
1466
  Fe(h + "'key:'? " + me, 3, e);
1455
1467
  continue;
1456
1468
  }
1457
- var te = s[1], me = me.substr(te.length + 1);
1458
- !b && Y[te] || (Y[te] = me);
1469
+ var ae = s[1], me = me.substr(ae.length + 1);
1470
+ !b && Y[ae] || (Y[ae] = me);
1459
1471
  }
1460
1472
  },
1461
1473
  get: function() {
@@ -1486,15 +1498,15 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1486
1498
  throw new Error(S + " bad args");
1487
1499
  if (q === 0)
1488
1500
  b = -1;
1489
- else if (J(q)) {
1501
+ else if ($(q)) {
1490
1502
  if (q < 1)
1491
1503
  throw new Error(S + " bad args");
1492
1504
  b = q;
1493
1505
  } else {
1494
- var te = s == 1 ? "en" : s ? "" : "zh";
1495
- if (D = Y.exec(q), D && (te = D[1] || te, q = q.substr(D[1].length + 1)), !D || !te)
1506
+ var ae = s == 1 ? "en" : s ? "" : "zh";
1507
+ if (D = Y.exec(q), D && (ae = D[1] || ae, q = q.substr(D[1].length + 1)), !D || !ae)
1496
1508
  throw new Error(S + s + " 'lang:'?");
1497
- ft.put({ lang: te, overwrite: !1 }, [o + ":" + q]);
1509
+ ft.put({ lang: ae, overwrite: !1 }, [o + ":" + q]);
1498
1510
  }
1499
1511
  }
1500
1512
  }
@@ -1521,25 +1533,25 @@ var bt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
1521
1533
  })(ea);
1522
1534
  const a0 = s0;
1523
1535
  (function(_) {
1524
- var r = typeof window == "object" && !!window.document, m = r ? window : Object, p = m.Recorder, J = p.i18n;
1525
- _(p, J, J.$T, r);
1536
+ var r = typeof window == "object" && !!window.document, m = r ? window : Object, p = m.Recorder, $ = p.i18n;
1537
+ _(p, $, $.$T, r);
1526
1538
  })(function(_, r, m, p) {
1527
- var J = "48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000", Z = "8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, 192, 224, 256, 320";
1539
+ var $ = "48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000", Z = "8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, 192, 224, 256, 320";
1528
1540
  _.prototype.enc_mp3 = {
1529
1541
  stable: !0,
1530
1542
  takeEC: "full",
1531
1543
  getTestMsg: function() {
1532
- return m("Zm7L::采样率范围:{1};比特率范围:{2}(不同比特率支持的采样率范围不同,小于32kbps时采样率需小于32000)", 0, J, Z);
1544
+ return m("Zm7L::采样率范围:{1};比特率范围:{2}(不同比特率支持的采样率范围不同,小于32kbps时采样率需小于32000)", 0, $, Z);
1533
1545
  }
1534
1546
  };
1535
- var re = function(ue) {
1547
+ var K = function(ue) {
1536
1548
  var ge = ue.bitRate, Ce = ue.sampleRate, Ye = Ce;
1537
- if ((" " + Z + ",").indexOf(" " + ge + ",") == -1 && _.CLog(m("eGB9::{1}不在mp3支持的取值范围:{2}", 0, "bitRate=" + ge, Z), 3), (" " + J + ",").indexOf(" " + Ce + ",") == -1) {
1538
- for (var de = J.split(", "), ze = [], Be = 0; Be < de.length; Be++)
1549
+ if ((" " + Z + ",").indexOf(" " + ge + ",") == -1 && _.CLog(m("eGB9::{1}不在mp3支持的取值范围:{2}", 0, "bitRate=" + ge, Z), 3), (" " + $ + ",").indexOf(" " + Ce + ",") == -1) {
1550
+ for (var de = $.split(", "), ze = [], Be = 0; Be < de.length; Be++)
1539
1551
  ze.push({ v: +de[Be], s: Math.abs(de[Be] - Ce) });
1540
1552
  ze.sort(function($e, Ke) {
1541
1553
  return $e.s - Ke.s;
1542
- }), Ye = ze[0].v, ue.sampleRate = Ye, _.CLog(m("zLTa::sampleRate已更新为{1},因为{2}不在mp3支持的取值范围:{3}", 0, Ye, Ce, J), 3);
1554
+ }), Ye = ze[0].v, ue.sampleRate = Ye, _.CLog(m("zLTa::sampleRate已更新为{1},因为{2}不在mp3支持的取值范围:{3}", 0, Ye, Ce, $), 3);
1543
1555
  }
1544
1556
  }, ie = function() {
1545
1557
  return m.G("NeedImport-2", ["mp3.js", "src/engine/mp3-engine.js"]);
@@ -1560,7 +1572,7 @@ const a0 = s0;
1560
1572
  Ye.mp3_stop(Be);
1561
1573
  }
1562
1574
  }
1563
- re(de);
1575
+ K(de);
1564
1576
  var $e = new _.lamejs.Mp3Encoder(1, de.sampleRate, de.bitRate), Ke = 57600, at = new Int8Array(5e5), Je = 0, Fe = 0, Xe = function() {
1565
1577
  try {
1566
1578
  if (Fe < ze)
@@ -1665,7 +1677,7 @@ const a0 = s0;
1665
1677
  };
1666
1678
  }, de = function() {
1667
1679
  var Xe = { worker: Be, set: ue };
1668
- return ue ? (Xe.id = ++ke.id, ke[Xe.id] = Xe, re(ue), Be.postMessage({
1680
+ return ue ? (Xe.id = ++ke.id, ke[Xe.id] = Xe, K(ue), Be.postMessage({
1669
1681
  action: "init",
1670
1682
  id: Xe.id,
1671
1683
  sampleRate: ue.sampleRate,
@@ -1819,13 +1831,13 @@ const a0 = s0;
1819
1831
  }, p = function(c) {
1820
1832
  throw new Error("abort(" + c + ")");
1821
1833
  };
1822
- function J(c) {
1834
+ function $(c) {
1823
1835
  return new Int8Array(c);
1824
1836
  }
1825
1837
  function Z(c) {
1826
1838
  return new Int16Array(c);
1827
1839
  }
1828
- function re(c) {
1840
+ function K(c) {
1829
1841
  return new Int32Array(c);
1830
1842
  }
1831
1843
  function ie(c) {
@@ -1845,7 +1857,7 @@ const a0 = s0;
1845
1857
  }
1846
1858
  function ke(c) {
1847
1859
  if (c.length == 1)
1848
- return re(c[0]);
1860
+ return K(c[0]);
1849
1861
  var N = c[0];
1850
1862
  c = c.slice(1);
1851
1863
  for (var P = [], T = 0; T < N; T++)
@@ -2043,7 +2055,7 @@ const a0 = s0;
2043
2055
  } while (v < M);
2044
2056
  return x < C && (x = C), x;
2045
2057
  }
2046
- function ae(d, v, M, x, C, a) {
2058
+ function re(d, v, M, x, C, a) {
2047
2059
  var i = V.ht[x].xlen * 65536 + V.ht[C].xlen, W = 0, L;
2048
2060
  do {
2049
2061
  var Q = d[v++], le = d[v++];
@@ -2059,7 +2071,7 @@ const a0 = s0;
2059
2071
  } while (v < M);
2060
2072
  return x.bits += C, 1;
2061
2073
  }
2062
- function K(d, v, M, x, C) {
2074
+ function ee(d, v, M, x, C) {
2063
2075
  var a = 0, i, W = V.ht[x].xlen, L;
2064
2076
  x == 2 ? L = V.table23 : L = V.table56;
2065
2077
  do {
@@ -2103,7 +2115,7 @@ const a0 = s0;
2103
2115
  return j(d, v, M, x);
2104
2116
  case 2:
2105
2117
  case 3:
2106
- return K(
2118
+ return ee(
2107
2119
  d,
2108
2120
  v,
2109
2121
  M,
@@ -2137,7 +2149,7 @@ const a0 = s0;
2137
2149
  var i;
2138
2150
  for (i = a - 8; i < 24 && !(V.ht[i].linmax >= C); i++)
2139
2151
  ;
2140
- return ae(d, v, M, i, a, x);
2152
+ return re(d, v, M, i, a, x);
2141
2153
  }
2142
2154
  }
2143
2155
  this.noquant_count_bits = function(d, v, M) {
@@ -2214,7 +2226,7 @@ const a0 = s0;
2214
2226
  }
2215
2227
  }
2216
2228
  this.best_huffman_divide = function(d, v) {
2217
- var M = new h(), x = v.l3_enc, C = re(7 + 15 + 1), a = re(7 + 15 + 1), i = re(7 + 15 + 1), W = re(7 + 15 + 1);
2229
+ var M = new h(), x = v.l3_enc, C = K(7 + 15 + 1), a = K(7 + 15 + 1), i = K(7 + 15 + 1), W = K(7 + 15 + 1);
2218
2230
  if (!(v.block_type == s.SHORT_TYPE && d.mode_gr == 1)) {
2219
2231
  M.assign(v), v.block_type == s.NORM_TYPE && (B(d, v, x, C, a, i, W), t(
2220
2232
  d,
@@ -2394,7 +2406,7 @@ const a0 = s0;
2394
2406
  [3, 3, 0, 0]
2395
2407
  ];
2396
2408
  this.scale_bitcount_lsf = function(d, v) {
2397
- var M, x, C, a, i, W, L, Q, le = re(4), _e = v.scalefac;
2409
+ var M, x, C, a, i, W, L, Q, le = K(4), _e = v.scalefac;
2398
2410
  for (v.preflag != 0 ? M = 2 : M = 0, L = 0; L < 4; L++)
2399
2411
  le[L] = 0;
2400
2412
  if (v.block_type == s.SHORT_TYPE) {
@@ -2468,14 +2480,14 @@ const a0 = s0;
2468
2480
  function Ke() {
2469
2481
  }
2470
2482
  function at() {
2471
- function c(g, z, ae, j, K, k, fe, E, B, t, l, A, F, y) {
2472
- this.quant_comp = z, this.quant_comp_s = ae, this.safejoint = j, this.nsmsfix = K, this.st_lrm = k, this.st_s = fe, this.nsbass = E, this.scale = B, this.masking_adj = t, this.ath_lower = l, this.ath_curve = A, this.interch = F, this.sfscale = y;
2483
+ function c(g, z, re, j, ee, k, fe, E, B, t, l, A, F, y) {
2484
+ this.quant_comp = z, this.quant_comp_s = re, this.safejoint = j, this.nsmsfix = ee, this.st_lrm = k, this.st_s = fe, this.nsbass = E, this.scale = B, this.masking_adj = t, this.ath_lower = l, this.ath_curve = A, this.interch = F, this.sfscale = y;
2473
2485
  }
2474
2486
  var N;
2475
2487
  this.setModules = function(g) {
2476
2488
  N = g;
2477
2489
  };
2478
- function P(g, z, ae) {
2490
+ function P(g, z, re) {
2479
2491
  p();
2480
2492
  }
2481
2493
  var T = [
@@ -2514,15 +2526,15 @@ const a0 = s0;
2514
2526
  new c(320, 9, 9, 1, 0.9, 5.2, 125, 0, 1, -10, 12, 0, 0, 0)
2515
2527
  /* 320 */
2516
2528
  ];
2517
- function oe(g, z, ae) {
2518
- var j = z, K = N.nearestBitrateFullIndex(z);
2519
- if (g.VBR = de.vbr_abr, g.VBR_mean_bitrate_kbps = j, g.VBR_mean_bitrate_kbps = Math.min(g.VBR_mean_bitrate_kbps, 320), g.VBR_mean_bitrate_kbps = Math.max(g.VBR_mean_bitrate_kbps, 8), g.brate = g.VBR_mean_bitrate_kbps, g.VBR_mean_bitrate_kbps > 320 && (g.disable_reservoir = !0), T[K].safejoint > 0 && (g.exp_nspsytune = g.exp_nspsytune | 2), T[K].sfscale > 0 && (g.internal_flags.noise_shaping = 2), Math.abs(T[K].nsbass) > 0) {
2520
- var k = int(T[K].nsbass * 4);
2529
+ function oe(g, z, re) {
2530
+ var j = z, ee = N.nearestBitrateFullIndex(z);
2531
+ if (g.VBR = de.vbr_abr, g.VBR_mean_bitrate_kbps = j, g.VBR_mean_bitrate_kbps = Math.min(g.VBR_mean_bitrate_kbps, 320), g.VBR_mean_bitrate_kbps = Math.max(g.VBR_mean_bitrate_kbps, 8), g.brate = g.VBR_mean_bitrate_kbps, g.VBR_mean_bitrate_kbps > 320 && (g.disable_reservoir = !0), T[ee].safejoint > 0 && (g.exp_nspsytune = g.exp_nspsytune | 2), T[ee].sfscale > 0 && (g.internal_flags.noise_shaping = 2), Math.abs(T[ee].nsbass) > 0) {
2532
+ var k = int(T[ee].nsbass * 4);
2521
2533
  k < 0 && (k += 64), g.exp_nspsytune = g.exp_nspsytune | k << 2;
2522
2534
  }
2523
- return ae != 0 ? g.quant_comp = T[K].quant_comp : Math.abs(g.quant_comp - -1) > 0 || (g.quant_comp = T[K].quant_comp), ae != 0 ? g.quant_comp_short = T[K].quant_comp_s : Math.abs(g.quant_comp_short - -1) > 0 || (g.quant_comp_short = T[K].quant_comp_s), ae != 0 ? g.msfix = T[K].nsmsfix : Math.abs(g.msfix - -1) > 0 || (g.msfix = T[K].nsmsfix), ae != 0 ? g.internal_flags.nsPsy.attackthre = T[K].st_lrm : Math.abs(g.internal_flags.nsPsy.attackthre - -1) > 0 || (g.internal_flags.nsPsy.attackthre = T[K].st_lrm), ae != 0 ? g.internal_flags.nsPsy.attackthre_s = T[K].st_s : Math.abs(g.internal_flags.nsPsy.attackthre_s - -1) > 0 || (g.internal_flags.nsPsy.attackthre_s = T[K].st_s), ae != 0 ? g.scale = T[K].scale : Math.abs(g.scale - -1) > 0 || (g.scale = T[K].scale), ae != 0 ? g.maskingadjust = T[K].masking_adj : Math.abs(g.maskingadjust - 0) > 0 || (g.maskingadjust = T[K].masking_adj), T[K].masking_adj > 0 ? ae != 0 ? g.maskingadjust_short = T[K].masking_adj * 0.9 : Math.abs(g.maskingadjust_short - 0) > 0 || (g.maskingadjust_short = T[K].masking_adj * 0.9) : ae != 0 ? g.maskingadjust_short = T[K].masking_adj * 1.1 : Math.abs(g.maskingadjust_short - 0) > 0 || (g.maskingadjust_short = T[K].masking_adj * 1.1), ae != 0 ? g.ATHlower = -T[K].ath_lower / 10 : Math.abs(-g.ATHlower * 10 - 0) > 0 || (g.ATHlower = -T[K].ath_lower / 10), ae != 0 ? g.ATHcurve = T[K].ath_curve : Math.abs(g.ATHcurve - -1) > 0 || (g.ATHcurve = T[K].ath_curve), ae != 0 ? g.interChRatio = T[K].interch : Math.abs(g.interChRatio - -1) > 0 || (g.interChRatio = T[K].interch), z;
2535
+ return re != 0 ? g.quant_comp = T[ee].quant_comp : Math.abs(g.quant_comp - -1) > 0 || (g.quant_comp = T[ee].quant_comp), re != 0 ? g.quant_comp_short = T[ee].quant_comp_s : Math.abs(g.quant_comp_short - -1) > 0 || (g.quant_comp_short = T[ee].quant_comp_s), re != 0 ? g.msfix = T[ee].nsmsfix : Math.abs(g.msfix - -1) > 0 || (g.msfix = T[ee].nsmsfix), re != 0 ? g.internal_flags.nsPsy.attackthre = T[ee].st_lrm : Math.abs(g.internal_flags.nsPsy.attackthre - -1) > 0 || (g.internal_flags.nsPsy.attackthre = T[ee].st_lrm), re != 0 ? g.internal_flags.nsPsy.attackthre_s = T[ee].st_s : Math.abs(g.internal_flags.nsPsy.attackthre_s - -1) > 0 || (g.internal_flags.nsPsy.attackthre_s = T[ee].st_s), re != 0 ? g.scale = T[ee].scale : Math.abs(g.scale - -1) > 0 || (g.scale = T[ee].scale), re != 0 ? g.maskingadjust = T[ee].masking_adj : Math.abs(g.maskingadjust - 0) > 0 || (g.maskingadjust = T[ee].masking_adj), T[ee].masking_adj > 0 ? re != 0 ? g.maskingadjust_short = T[ee].masking_adj * 0.9 : Math.abs(g.maskingadjust_short - 0) > 0 || (g.maskingadjust_short = T[ee].masking_adj * 0.9) : re != 0 ? g.maskingadjust_short = T[ee].masking_adj * 1.1 : Math.abs(g.maskingadjust_short - 0) > 0 || (g.maskingadjust_short = T[ee].masking_adj * 1.1), re != 0 ? g.ATHlower = -T[ee].ath_lower / 10 : Math.abs(-g.ATHlower * 10 - 0) > 0 || (g.ATHlower = -T[ee].ath_lower / 10), re != 0 ? g.ATHcurve = T[ee].ath_curve : Math.abs(g.ATHcurve - -1) > 0 || (g.ATHcurve = T[ee].ath_curve), re != 0 ? g.interChRatio = T[ee].interch : Math.abs(g.interChRatio - -1) > 0 || (g.interChRatio = T[ee].interch), z;
2524
2536
  }
2525
- this.apply_preset = function(g, z, ae) {
2537
+ this.apply_preset = function(g, z, re) {
2526
2538
  switch (z) {
2527
2539
  case se.R3MIX: {
2528
2540
  z = se.V3, g.VBR = de.vbr_mtrh;
@@ -2553,7 +2565,7 @@ const a0 = s0;
2553
2565
  break;
2554
2566
  }
2555
2567
  case se.INSANE:
2556
- return z = 320, g.preset = z, oe(g, z, ae), g.VBR = de.vbr_off, z;
2568
+ return z = 320, g.preset = z, oe(g, z, re), g.VBR = de.vbr_off, z;
2557
2569
  }
2558
2570
  switch (g.preset = z, z) {
2559
2571
  case se.V9:
@@ -2577,7 +2589,7 @@ const a0 = s0;
2577
2589
  case se.V0:
2578
2590
  return P(), z;
2579
2591
  }
2580
- return 8 <= z && z <= 320 ? oe(g, z, ae) : (g.preset = 0, z);
2592
+ return 8 <= z && z <= 320 ? oe(g, z, re) : (g.preset = 0, z);
2581
2593
  };
2582
2594
  }
2583
2595
  function Je() {
@@ -2587,15 +2599,15 @@ const a0 = s0;
2587
2599
  }, this.ResvFrameBegin = function(N, P) {
2588
2600
  var T = N.internal_flags, oe, g = T.l3_side, z = c.getframebits(N);
2589
2601
  P.bits = (z - T.sideinfo_len * 8) / T.mode_gr;
2590
- var ae = 8 * 256 * T.mode_gr - 8;
2591
- N.brate > 320 ? p() : (oe = 8 * 1440, N.strict_ISO && p()), T.ResvMax = oe - z, T.ResvMax > ae && (T.ResvMax = ae), (T.ResvMax < 0 || N.disable_reservoir) && (T.ResvMax = 0);
2602
+ var re = 8 * 256 * T.mode_gr - 8;
2603
+ N.brate > 320 ? p() : (oe = 8 * 1440, N.strict_ISO && p()), T.ResvMax = oe - z, T.ResvMax > re && (T.ResvMax = re), (T.ResvMax < 0 || N.disable_reservoir) && (T.ResvMax = 0);
2592
2604
  var j = P.bits * T.mode_gr + Math.min(T.ResvSize, T.ResvMax);
2593
2605
  return j > oe && (j = oe), g.resvDrain_pre = 0, T.pinfo != null && p(), j;
2594
2606
  }, this.ResvMaxBits = function(N, P, T, oe) {
2595
- var g = N.internal_flags, z, ae = g.ResvSize, j = g.ResvMax;
2596
- oe != 0 && (ae += P), g.substep_shaping & 1 && (j *= 0.9), T.bits = P, ae * 10 > j * 9 ? (z = ae - j * 9 / 10, T.bits += z, g.substep_shaping |= 128) : (z = 0, g.substep_shaping &= 127, !N.disable_reservoir && !(g.substep_shaping & 1) && (T.bits -= 0.1 * P));
2597
- var K = ae < g.ResvMax * 6 / 10 ? ae : g.ResvMax * 6 / 10;
2598
- return K -= z, K < 0 && (K = 0), K;
2607
+ var g = N.internal_flags, z, re = g.ResvSize, j = g.ResvMax;
2608
+ oe != 0 && (re += P), g.substep_shaping & 1 && (j *= 0.9), T.bits = P, re * 10 > j * 9 ? (z = re - j * 9 / 10, T.bits += z, g.substep_shaping |= 128) : (z = 0, g.substep_shaping &= 127, !N.disable_reservoir && !(g.substep_shaping & 1) && (T.bits -= 0.1 * P));
2609
+ var ee = re < g.ResvMax * 6 / 10 ? re : g.ResvMax * 6 / 10;
2610
+ return ee -= z, ee < 0 && (ee = 0), ee;
2599
2611
  }, this.ResvAdjust = function(N, P) {
2600
2612
  N.ResvSize -= P.part2_3_length + P.part2_length;
2601
2613
  }, this.ResvFrameEnd = function(N, P) {
@@ -2898,16 +2910,16 @@ const a0 = s0;
2898
2910
  var I = 0 | (f.version + 1) * 72e3 * u / f.out_samplerate + w.padding;
2899
2911
  return 8 * I;
2900
2912
  };
2901
- function ae(f) {
2913
+ function re(f) {
2902
2914
  ue.arraycopy(f.header[f.w_ptr].buf, 0, T, g, f.sideinfo_len), g += f.sideinfo_len, oe += f.sideinfo_len * 8, f.w_ptr = f.w_ptr + 1 & ne.MAX_HEADER_BUF - 1;
2903
2915
  }
2904
2916
  function j(f, w, u) {
2905
2917
  for (; u > 0; ) {
2906
2918
  var I;
2907
- z == 0 && (z = 8, g++, f.header[f.w_ptr].write_timing == oe && ae(f), T[g] = 0), I = Math.min(u, z), u -= I, z -= I, T[g] |= w >> u << z, oe += I;
2919
+ z == 0 && (z = 8, g++, f.header[f.w_ptr].write_timing == oe && re(f), T[g] = 0), I = Math.min(u, z), u -= I, z -= I, T[g] |= w >> u << z, oe += I;
2908
2920
  }
2909
2921
  }
2910
- function K(f, w) {
2922
+ function ee(f, w) {
2911
2923
  var u = f.internal_flags, I;
2912
2924
  if (w >= 8 && (j(u, 76, 8), w -= 8), w >= 8 && (j(u, 65, 8), w -= 8), w >= 8 && (j(u, 77, 8), w -= 8), w >= 8 && (j(u, 69, 8), w -= 8), w >= 32) {
2913
2925
  var n = N.getLameShortVersion();
@@ -3063,14 +3075,14 @@ const a0 = s0;
3063
3075
  }
3064
3076
  this.flush_bitstream = function(f) {
3065
3077
  var w = f.internal_flags, u, I;
3066
- w.h_ptr - 1, u = w.l3_side, !((I = y(f, new F())) < 0) && (K(f, I), w.ResvSize = 0, u.main_data_begin = 0, w.findReplayGain && p(), w.findPeakSample && p());
3078
+ w.h_ptr - 1, u = w.l3_side, !((I = y(f, new F())) < 0) && (ee(f, I), w.ResvSize = 0, u.main_data_begin = 0, w.findReplayGain && p(), w.findPeakSample && p());
3067
3079
  }, this.format_bitstream = function(f) {
3068
3080
  var w = f.internal_flags, u;
3069
3081
  u = w.l3_side;
3070
3082
  var I = this.getframebits(f);
3071
- K(f, u.resvDrain_pre), fe(f, I);
3083
+ ee(f, u.resvDrain_pre), fe(f, I);
3072
3084
  var n = 8 * w.sideinfo_len;
3073
- if (n += A(f), K(f, u.resvDrain_post), n += u.resvDrain_post, u.main_data_begin += (I - n) / 8, y(f, new F()) != w.ResvSize, u.main_data_begin * 8 != w.ResvSize && (w.ResvSize = u.main_data_begin * 8), oe > 1e9) {
3085
+ if (n += A(f), ee(f, u.resvDrain_post), n += u.resvDrain_post, u.main_data_begin += (I - n) / 8, y(f, new F()) != w.ResvSize, u.main_data_begin * 8 != w.ResvSize && (w.ResvSize = u.main_data_begin * 8), oe > 1e9) {
3074
3086
  var H;
3075
3087
  for (H = 0; H < ne.MAX_HEADER_BUF; ++H)
3076
3088
  w.header[H].write_timing -= oe;
@@ -3084,12 +3096,12 @@ const a0 = s0;
3084
3096
  if (I != 0 && H > I)
3085
3097
  return -1;
3086
3098
  if (ue.arraycopy(T, 0, w, u, H), g = -1, z = 0, n != 0) {
3087
- var d = re(1);
3099
+ var d = K(1);
3088
3100
  d[0] = f.nMusicCRC, P.updateMusicCRC(d, w, u, H), f.nMusicCRC = d[0], H > 0 && (f.VBR_seek_table.nBytesWritten += H), f.decode_on_the_fly && p();
3089
3101
  }
3090
3102
  return H;
3091
3103
  }, this.init_bit_stream_w = function(f) {
3092
- T = J(se.LAME_MAXMP3BUFFER), f.h_ptr = f.w_ptr = 0, f.header[f.h_ptr].write_timing = 0, g = -1, z = 0, oe = 0;
3104
+ T = $(se.LAME_MAXMP3BUFFER), f.h_ptr = f.w_ptr = 0, f.header[f.h_ptr].write_timing = 0, g = -1, z = 0, oe = 0;
3093
3105
  };
3094
3106
  }
3095
3107
  function Le(c, N, P, T) {
@@ -6560,13 +6572,13 @@ const a0 = s0;
6560
6572
  function ft(c) {
6561
6573
  var N = c;
6562
6574
  this.quantize = N, this.iteration_loop = function(P, T, oe, g) {
6563
- var z = P.internal_flags, ae = ie(b.SFBMAX), j = ie(576), K = re(2), k = 0, fe = z.l3_side, E = new pt(k);
6575
+ var z = P.internal_flags, re = ie(b.SFBMAX), j = ie(576), ee = K(2), k = 0, fe = z.l3_side, E = new pt(k);
6564
6576
  this.quantize.rv.ResvFrameBegin(P, E), k = E.bits;
6565
6577
  for (var B = 0; B < z.mode_gr; B++) {
6566
6578
  this.quantize.qupvt.on_pe(
6567
6579
  P,
6568
6580
  T,
6569
- K,
6581
+ ee,
6570
6582
  k,
6571
6583
  B,
6572
6584
  B
@@ -6580,14 +6592,14 @@ const a0 = s0;
6580
6592
  P,
6581
6593
  g[B][t],
6582
6594
  F,
6583
- ae
6595
+ re
6584
6596
  ), this.quantize.outer_loop(
6585
6597
  P,
6586
6598
  F,
6587
- ae,
6599
+ re,
6588
6600
  j,
6589
6601
  t,
6590
- K[t]
6602
+ ee[t]
6591
6603
  )), this.quantize.iteration_finish_one(z, B, t);
6592
6604
  }
6593
6605
  }
@@ -6597,7 +6609,7 @@ const a0 = s0;
6597
6609
  function De() {
6598
6610
  }
6599
6611
  function R(c, N, P, T) {
6600
- this.l = re(1 + s.SBMAX_l), this.s = re(1 + s.SBMAX_s), this.psfb21 = re(1 + s.PSFB21), this.psfb12 = re(1 + s.PSFB12);
6612
+ this.l = K(1 + s.SBMAX_l), this.s = K(1 + s.SBMAX_s), this.psfb21 = K(1 + s.PSFB21), this.psfb12 = K(1 + s.PSFB12);
6601
6613
  var oe = this.l, g = this.s;
6602
6614
  arguments.length == 4 && (this.arrL = arguments[0], this.arrS = arguments[1], this.arr21 = arguments[2], this.arr12 = arguments[3], ue.arraycopy(this.arrL, 0, oe, 0, Math.min(this.arrL.length, this.l.length)), ue.arraycopy(this.arrS, 0, g, 0, Math.min(this.arrS.length, this.s.length)), ue.arraycopy(this.arr21, 0, this.psfb21, 0, Math.min(this.arr21.length, this.psfb21.length)), ue.arraycopy(this.arr12, 0, this.psfb12, 0, Math.min(this.arr12.length, this.psfb12.length)));
6603
6615
  }
@@ -6613,7 +6625,7 @@ const a0 = s0;
6613
6625
  this.IPOW20 = function(y) {
6614
6626
  return E[y];
6615
6627
  };
6616
- var oe = 2220446049250313e-31, g = e.IXMAX_VAL, z = g + 2, ae = e.Q_MAX, j = e.Q_MAX2, K = 100;
6628
+ var oe = 2220446049250313e-31, g = e.IXMAX_VAL, z = g + 2, re = e.Q_MAX, j = e.Q_MAX2, ee = 100;
6617
6629
  this.nr_of_sfb_block = [
6618
6630
  [[6, 5, 5, 5], [9, 9, 9, 9], [6, 9, 9, 9]],
6619
6631
  [[6, 5, 7, 3], [9, 9, 12, 6], [6, 9, 12, 6]],
@@ -6982,11 +6994,11 @@ const a0 = s0;
6982
6994
  /* sfb12 pseudo sub bands */
6983
6995
  )
6984
6996
  ];
6985
- var fe = ie(ae + j + 1), E = ie(ae), B = ie(z), t = ie(z);
6997
+ var fe = ie(re + j + 1), E = ie(re), B = ie(z), t = ie(z);
6986
6998
  this.adj43 = t;
6987
6999
  function l(y, f) {
6988
7000
  var w = P.ATHformula(f, y);
6989
- return w -= K, w = Math.pow(10, w / 10 + y.ATHlower), w;
7001
+ return w -= ee, w = Math.pow(10, w / 10 + y.ATHlower), w;
6990
7002
  }
6991
7003
  function A(y) {
6992
7004
  for (var f = y.internal_flags.ATH.l, w = y.internal_flags.ATH.psfb21, u = y.internal_flags.ATH.s, I = y.internal_flags.ATH.psfb12, n = y.internal_flags, H = y.out_samplerate, d = 0; d < s.SBMAX_l; d++) {
@@ -7035,9 +7047,9 @@ const a0 = s0;
7035
7047
  0.5 * (B[u] + B[u + 1]),
7036
7048
  0.75
7037
7049
  );
7038
- for (t[u] = 0.5, u = 0; u < ae; u++)
7050
+ for (t[u] = 0.5, u = 0; u < re; u++)
7039
7051
  E[u] = Math.pow(2, (u - 210) * -0.1875);
7040
- for (u = 0; u <= ae + j; u++)
7052
+ for (u = 0; u <= re + j; u++)
7041
7053
  fe[u] = Math.pow(2, (u - 210 - j) * 0.25);
7042
7054
  c.huffman_init(f);
7043
7055
  {
@@ -7053,7 +7065,7 @@ const a0 = s0;
7053
7065
  }
7054
7066
  }
7055
7067
  }, this.on_pe = function(y, f, w, u, I, n) {
7056
- var H = y.internal_flags, d = 0, v, M = re(2), x, C = new pt(d), a = N.ResvMaxBits(y, u, C, n);
7068
+ var H = y.internal_flags, d = 0, v, M = K(2), x, C = new pt(d), a = N.ResvMaxBits(y, u, C, n);
7057
7069
  d = C.bits;
7058
7070
  var i = d + a;
7059
7071
  for (i > ne.MAX_BITS_PER_GRANULE && (i = ne.MAX_BITS_PER_GRANULE), v = 0, x = 0; x < H.channels_out; ++x)
@@ -7167,10 +7179,10 @@ const a0 = s0;
7167
7179
  };
7168
7180
  }
7169
7181
  function o() {
7170
- this.global_gain = 0, this.sfb_count1 = 0, this.step = re(39), this.noise = ie(39), this.noise_log = ie(39);
7182
+ this.global_gain = 0, this.sfb_count1 = 0, this.step = K(39), this.noise = ie(39), this.noise_log = ie(39);
7171
7183
  }
7172
7184
  function h() {
7173
- this.xr = ie(576), this.l3_enc = re(576), this.scalefac = re(b.SFBMAX), this.xrpow_max = 0, this.part2_3_length = 0, this.big_values = 0, this.count1 = 0, this.global_gain = 0, this.scalefac_compress = 0, this.block_type = 0, this.mixed_block_flag = 0, this.table_select = re(3), this.subblock_gain = re(3 + 1), this.region0_count = 0, this.region1_count = 0, this.preflag = 0, this.scalefac_scale = 0, this.count1table_select = 0, this.part2_length = 0, this.sfb_lmax = 0, this.sfb_smin = 0, this.psy_lmax = 0, this.sfbmax = 0, this.psymax = 0, this.sfbdivide = 0, this.width = re(b.SFBMAX), this.window = re(b.SFBMAX), this.count1bits = 0, this.sfb_partition_table = null, this.slen = re(4), this.max_nonzero_coeff = 0;
7185
+ this.xr = ie(576), this.l3_enc = K(576), this.scalefac = K(b.SFBMAX), this.xrpow_max = 0, this.part2_3_length = 0, this.big_values = 0, this.count1 = 0, this.global_gain = 0, this.scalefac_compress = 0, this.block_type = 0, this.mixed_block_flag = 0, this.table_select = K(3), this.subblock_gain = K(3 + 1), this.region0_count = 0, this.region1_count = 0, this.preflag = 0, this.scalefac_scale = 0, this.count1table_select = 0, this.part2_length = 0, this.sfb_lmax = 0, this.sfb_smin = 0, this.psy_lmax = 0, this.sfbmax = 0, this.psymax = 0, this.sfbdivide = 0, this.width = K(b.SFBMAX), this.window = K(b.SFBMAX), this.count1bits = 0, this.sfb_partition_table = null, this.slen = K(4), this.max_nonzero_coeff = 0;
7174
7186
  var c = this;
7175
7187
  function N(T) {
7176
7188
  return new Int32Array(T);
@@ -7269,7 +7281,7 @@ const a0 = s0;
7269
7281
  this.ordinal = t;
7270
7282
  }
7271
7283
  z.BINSEARCH_NONE = new z(0), z.BINSEARCH_UP = new z(1), z.BINSEARCH_DOWN = new z(2);
7272
- function ae(t, l, A, F, y) {
7284
+ function re(t, l, A, F, y) {
7273
7285
  var f, w = t.CurrentStep[F], u = !1, I = t.OldValue[F], n = z.BINSEARCH_NONE;
7274
7286
  for (l.global_gain = I, A -= l.part2_length; ; ) {
7275
7287
  var H;
@@ -7287,7 +7299,7 @@ const a0 = s0;
7287
7299
  return !1;
7288
7300
  return !0;
7289
7301
  }
7290
- function K(t, l, A, F, y) {
7302
+ function ee(t, l, A, F, y) {
7291
7303
  var f;
7292
7304
  switch (t) {
7293
7305
  default:
@@ -7413,7 +7425,7 @@ const a0 = s0;
7413
7425
  }
7414
7426
  this.outer_loop = function(t, l, A, F, y, f) {
7415
7427
  var w = t.internal_flags, u = new h(), I = ie(576), n = ie(b.SFBMAX), H = new rt(), d, v = new o(), M = 9999999, x = !1, C = !1, a = 0;
7416
- if (ae(w, l, f, y, F), w.noise_shaping == 0)
7428
+ if (re(w, l, f, y, F), w.noise_shaping == 0)
7417
7429
  return 100;
7418
7430
  N.calc_noise(
7419
7431
  l,
@@ -7458,7 +7470,7 @@ const a0 = s0;
7458
7470
  n,
7459
7471
  W,
7460
7472
  v
7461
- ), W.bits = u.part2_3_length, l.block_type != s.SHORT_TYPE ? d = t.quant_comp : d = t.quant_comp_short, d = K(d, H, W) ? 1 : 0, d != 0)
7473
+ ), W.bits = u.part2_3_length, l.block_type != s.SHORT_TYPE ? d = t.quant_comp : d = t.quant_comp_short, d = ee(d, H, W) ? 1 : 0, d != 0)
7462
7474
  M = l.part2_3_length, H = W, l.assign(u), i = 0, ue.arraycopy(F, 0, I, 0, 576);
7463
7475
  else if (w.full_outer_loop == 0 && (++i > L && H.over_count == 0 || w.noise_shaping_amp == 3 && C && i > 30 || w.noise_shaping_amp == 3 && C && u.global_gain - a > 15))
7464
7476
  break;
@@ -7930,7 +7942,7 @@ const a0 = s0;
7930
7942
  -6423305872147841e-28,
7931
7943
  -2382191739347918e-28
7932
7944
  ]
7933
- ], oe = T[s.SHORT_TYPE], g = T[s.SHORT_TYPE], z = T[s.SHORT_TYPE], ae = T[s.SHORT_TYPE], j = [
7945
+ ], oe = T[s.SHORT_TYPE], g = T[s.SHORT_TYPE], z = T[s.SHORT_TYPE], re = T[s.SHORT_TYPE], j = [
7934
7946
  0,
7935
7947
  1,
7936
7948
  16,
@@ -7964,7 +7976,7 @@ const a0 = s0;
7964
7976
  30,
7965
7977
  31
7966
7978
  ];
7967
- function K(E, B, t) {
7979
+ function ee(E, B, t) {
7968
7980
  for (var l = 10, A = B + 238 - 14 - 286, F = -15; F < 0; F++) {
7969
7981
  var y, f, w;
7970
7982
  y = c[l + -10], f = E[A + -224] * y, w = E[B + 224] * y, y = c[l + -9], f += E[A + -160] * y, w += E[B + 160] * y, y = c[l + -8], f += E[A + -96] * y, w += E[B + 96] * y, y = c[l + -7], f += E[A + -32] * y, w += E[B + 32] * y, y = c[l + -6], f += E[A + 32] * y, w += E[B + -32] * y, y = c[l + -5], f += E[A + 96] * y, w += E[B + -96] * y, y = c[l + -4], f += E[A + 160] * y, w += E[B + -160] * y, y = c[l + -3], f += E[A + 224] * y, w += E[B + -224] * y, y = c[l + -2], f += E[B + -256] * y, w -= E[A + 256] * y, y = c[l + -1], f += E[B + -192] * y, w -= E[A + 192] * y, y = c[l + 0], f += E[B + -128] * y, w -= E[A + 128] * y, y = c[l + 1], f += E[B + -64] * y, w -= E[A + 64] * y, y = c[l + 2], f += E[B + 0] * y, w -= E[A + 0] * y, y = c[l + 3], f += E[B + 64] * y, w -= E[A + -64] * y, y = c[l + 4], f += E[B + 128] * y, w -= E[A + -128] * y, y = c[l + 5], f += E[B + 192] * y, w -= E[A + -192] * y, f *= c[l + 6], y = w - f, t[30 + F * 2] = w + f, t[31 + F * 2] = c[l + 7] * y, l += 18, B--, A++;
@@ -7999,7 +8011,7 @@ const a0 = s0;
7999
8011
  for (var l = B, A = 286, F = 0; F < E.channels_out; F++) {
8000
8012
  for (var y = 0; y < E.mode_gr; y++) {
8001
8013
  for (var f, w = E.l3_side.tt[y][F], u = w.xr, I = 0, n = E.sb_sample[F][1 - y], H = 0, d = 0; d < 18 / 2; d++)
8002
- for (K(l, A, n[H]), K(l, A + 32, n[H + 1]), H += 2, A += 64, f = 1; f < 32; f += 2)
8014
+ for (ee(l, A, n[H]), ee(l, A + 32, n[H + 1]), H += 2, A += 64, f = 1; f < 32; f += 2)
8003
8015
  n[H - 1][f] *= -1;
8004
8016
  for (f = 0; f < 32; f++, I += 18) {
8005
8017
  var v = w.block_type, M = E.sb_sample[F][y], x = E.sb_sample[F][1 - y];
@@ -8026,7 +8038,7 @@ const a0 = s0;
8026
8038
  if (v != s.SHORT_TYPE && f != 0)
8027
8039
  for (var d = 7; d >= 0; --d) {
8028
8040
  var L, Q;
8029
- L = u[I + d] * z[20 + d] + u[I + -1 - d] * ae[28 + d], Q = u[I + d] * ae[28 + d] - u[I + -1 - d] * z[20 + d], u[I + -1 - d] = L, u[I + d] = Q;
8041
+ L = u[I + d] * z[20 + d] + u[I + -1 - d] * re[28 + d], Q = u[I + d] * re[28 + d] - u[I + -1 - d] * z[20 + d], u[I + -1 - d] = L, u[I + d] = Q;
8030
8042
  }
8031
8043
  }
8032
8044
  }
@@ -8060,17 +8072,17 @@ const a0 = s0;
8060
8072
  var c = s.MPG_MD_MS_LR, N = null;
8061
8073
  this.psy = null;
8062
8074
  var P = null, T = null;
8063
- this.setModules = function(j, K, k, fe) {
8064
- N = j, this.psy = K, P = K, T = fe;
8075
+ this.setModules = function(j, ee, k, fe) {
8076
+ N = j, this.psy = ee, P = ee, T = fe;
8065
8077
  };
8066
8078
  var oe = new Y();
8067
8079
  function g(j) {
8068
- var K, k;
8080
+ var ee, k;
8069
8081
  if (j.ATH.useAdjust == 0) {
8070
8082
  j.ATH.adjust = 1;
8071
8083
  return;
8072
8084
  }
8073
- if (k = j.loudness_sq[0][0], K = j.loudness_sq[1][0], j.channels_out == 2 ? p() : (k += k, K += K), j.mode_gr == 2 && (k = Math.max(k, K)), k *= 0.5, k *= j.ATH.aaSensitivityP, k > 0.03125)
8085
+ if (k = j.loudness_sq[0][0], ee = j.loudness_sq[1][0], j.channels_out == 2 ? p() : (k += k, ee += ee), j.mode_gr == 2 && (k = Math.max(k, ee)), k *= 0.5, k *= j.ATH.aaSensitivityP, k > 0.03125)
8074
8086
  j.ATH.adjust >= 1 ? j.ATH.adjust = 1 : j.ATH.adjust < j.ATH.adjustLimit && (j.ATH.adjust = j.ATH.adjustLimit), j.ATH.adjustLimit = 1;
8075
8087
  else {
8076
8088
  var fe = 31.98 * k + 625e-6;
@@ -8078,33 +8090,33 @@ const a0 = s0;
8078
8090
  }
8079
8091
  }
8080
8092
  function z(j) {
8081
- var K, k;
8082
- for (j.bitrate_stereoMode_Hist[j.bitrate_index][4]++, j.bitrate_stereoMode_Hist[15][4]++, j.channels_out == 2 && p(), K = 0; K < j.mode_gr; ++K)
8093
+ var ee, k;
8094
+ for (j.bitrate_stereoMode_Hist[j.bitrate_index][4]++, j.bitrate_stereoMode_Hist[15][4]++, j.channels_out == 2 && p(), ee = 0; ee < j.mode_gr; ++ee)
8083
8095
  for (k = 0; k < j.channels_out; ++k) {
8084
- var fe = j.l3_side.tt[K][k].block_type | 0;
8085
- j.l3_side.tt[K][k].mixed_block_flag != 0 && (fe = 4), j.bitrate_blockType_Hist[j.bitrate_index][fe]++, j.bitrate_blockType_Hist[j.bitrate_index][5]++, j.bitrate_blockType_Hist[15][fe]++, j.bitrate_blockType_Hist[15][5]++;
8096
+ var fe = j.l3_side.tt[ee][k].block_type | 0;
8097
+ j.l3_side.tt[ee][k].mixed_block_flag != 0 && (fe = 4), j.bitrate_blockType_Hist[j.bitrate_index][fe]++, j.bitrate_blockType_Hist[j.bitrate_index][5]++, j.bitrate_blockType_Hist[15][fe]++, j.bitrate_blockType_Hist[15][5]++;
8086
8098
  }
8087
8099
  }
8088
- function ae(j, K) {
8100
+ function re(j, ee) {
8089
8101
  var k = j.internal_flags, fe, E;
8090
8102
  if (k.lame_encode_frame_init == 0) {
8091
8103
  var B, t, l = ie(2014), A = ie(286 + 1152 + 576);
8092
8104
  for (k.lame_encode_frame_init = 1, B = 0, t = 0; B < 286 + 576 * (1 + k.mode_gr); ++B)
8093
- B < 576 * k.mode_gr ? (l[B] = 0, k.channels_out == 2 && (A[B] = 0)) : (l[B] = K[0][t], k.channels_out == 2 && (A[B] = K[1][t]), ++t);
8105
+ B < 576 * k.mode_gr ? (l[B] = 0, k.channels_out == 2 && (A[B] = 0)) : (l[B] = ee[0][t], k.channels_out == 2 && (A[B] = ee[1][t]), ++t);
8094
8106
  for (E = 0; E < k.mode_gr; E++)
8095
8107
  for (fe = 0; fe < k.channels_out; fe++)
8096
8108
  k.l3_side.tt[E][fe].block_type = s.SHORT_TYPE;
8097
8109
  oe.mdct_sub48(k, l, A);
8098
8110
  }
8099
8111
  }
8100
- this.lame_encode_mp3_frame = function(j, K, k, fe, E, B) {
8112
+ this.lame_encode_mp3_frame = function(j, ee, k, fe, E, B) {
8101
8113
  var t, l = Ve([2, 2]);
8102
8114
  l[0][0] = new D(), l[0][1] = new D(), l[1][0] = new D(), l[1][1] = new D();
8103
8115
  var A = Ve([2, 2]);
8104
8116
  A[0][0] = new D(), A[0][1] = new D(), A[1][0] = new D(), A[1][1] = new D();
8105
8117
  var F, y = [null, null], f = j.internal_flags, w = Re([2, 4]), u = [0.5, 0.5], I = [[0, 0], [0, 0]], n = [[0, 0], [0, 0]], H, d, v;
8106
- if (y[0] = K, y[1] = k, f.lame_encode_frame_init == 0 && ae(j, y), f.padding = 0, (f.slot_lag -= f.frac_SpF) < 0 && (f.slot_lag += j.out_samplerate, f.padding = 1), f.psymodel != 0) {
8107
- var M, x = [null, null], C = 0, a = re(2);
8118
+ if (y[0] = ee, y[1] = k, f.lame_encode_frame_init == 0 && re(j, y), f.padding = 0, (f.slot_lag -= f.frac_SpF) < 0 && (f.slot_lag += j.out_samplerate, f.padding = 1), f.psymodel != 0) {
8119
+ var M, x = [null, null], C = 0, a = K(2);
8108
8120
  for (v = 0; v < f.mode_gr; v++) {
8109
8121
  for (d = 0; d < f.channels_out; d++)
8110
8122
  x[d] = y[d], C = 576 + v * 576 - s.FFTOFFSET;
@@ -8147,8 +8159,8 @@ const a0 = s0;
8147
8159
  function q() {
8148
8160
  this.sum = 0, this.seen = 0, this.want = 0, this.pos = 0, this.size = 0, this.bag = null, this.nVbrNumFrames = 0, this.nBytesWritten = 0, this.TotalFrameSize = 0;
8149
8161
  }
8150
- function te() {
8151
- this.tt = [[null, null], [null, null]], this.main_data_begin = 0, this.private_bits = 0, this.resvDrain_pre = 0, this.resvDrain_post = 0, this.scfsi = [re(4), re(4)];
8162
+ function ae() {
8163
+ this.tt = [[null, null], [null, null]], this.main_data_begin = 0, this.private_bits = 0, this.resvDrain_pre = 0, this.resvDrain_post = 0, this.scfsi = [K(4), K(4)];
8152
8164
  for (var c = 0; c < 2; c++)
8153
8165
  for (var N = 0; N < 2; N++)
8154
8166
  this.tt[c][N] = new h();
@@ -8164,16 +8176,16 @@ const a0 = s0;
8164
8176
  };
8165
8177
  }
8166
8178
  function be() {
8167
- this.last_en_subshort = Re([4, 9]), this.lastAttacks = re(4), this.pefirbuf = ie(19), this.longfact = ie(s.SBMAX_l), this.shortfact = ie(s.SBMAX_s), this.attackthre = 0, this.attackthre_s = 0;
8179
+ this.last_en_subshort = Re([4, 9]), this.lastAttacks = K(4), this.pefirbuf = ie(19), this.longfact = ie(s.SBMAX_l), this.shortfact = ie(s.SBMAX_s), this.attackthre = 0, this.attackthre_s = 0;
8168
8180
  }
8169
8181
  ne.MFSIZE = 3 * 1152 + s.ENCDELAY - s.MDCTDELAY, ne.MAX_HEADER_BUF = 256, ne.MAX_BITS_PER_CHANNEL = 4095, ne.MAX_BITS_PER_GRANULE = 7680, ne.BPC = 320;
8170
8182
  function ne() {
8171
8183
  var c = 40;
8172
- this.Class_ID = 0, this.lame_encode_frame_init = 0, this.iteration_init_init = 0, this.fill_buffer_resample_init = 0, this.mfbuf = Re([2, ne.MFSIZE]), this.mode_gr = 0, this.channels_in = 0, this.channels_out = 0, this.resample_ratio = 0, this.mf_samples_to_encode = 0, this.mf_size = 0, this.VBR_min_bitrate = 0, this.VBR_max_bitrate = 0, this.bitrate_index = 0, this.samplerate_index = 0, this.mode_ext = 0, this.lowpass1 = 0, this.lowpass2 = 0, this.highpass1 = 0, this.highpass2 = 0, this.noise_shaping = 0, this.noise_shaping_amp = 0, this.substep_shaping = 0, this.psymodel = 0, this.noise_shaping_stop = 0, this.subblock_gain = 0, this.use_best_huffman = 0, this.full_outer_loop = 0, this.l3_side = new te(), this.ms_ratio = ie(2), this.padding = 0, this.frac_SpF = 0, this.slot_lag = 0, this.tag_spec = null, this.nMusicCRC = 0, this.OldValue = re(2), this.CurrentStep = re(2), this.masking_lower = 0, this.bv_scf = re(576), this.pseudohalf = re(b.SFBMAX), this.sfb21_extra = !1, this.inbuf_old = new Array(2), this.blackfilt = new Array(2 * ne.BPC + 1), this.itime = ye(2), this.sideinfo_len = 0, this.sb_sample = Re([2, 2, 18, s.SBLIMIT]), this.amp_filter = ie(32);
8184
+ this.Class_ID = 0, this.lame_encode_frame_init = 0, this.iteration_init_init = 0, this.fill_buffer_resample_init = 0, this.mfbuf = Re([2, ne.MFSIZE]), this.mode_gr = 0, this.channels_in = 0, this.channels_out = 0, this.resample_ratio = 0, this.mf_samples_to_encode = 0, this.mf_size = 0, this.VBR_min_bitrate = 0, this.VBR_max_bitrate = 0, this.bitrate_index = 0, this.samplerate_index = 0, this.mode_ext = 0, this.lowpass1 = 0, this.lowpass2 = 0, this.highpass1 = 0, this.highpass2 = 0, this.noise_shaping = 0, this.noise_shaping_amp = 0, this.substep_shaping = 0, this.psymodel = 0, this.noise_shaping_stop = 0, this.subblock_gain = 0, this.use_best_huffman = 0, this.full_outer_loop = 0, this.l3_side = new ae(), this.ms_ratio = ie(2), this.padding = 0, this.frac_SpF = 0, this.slot_lag = 0, this.tag_spec = null, this.nMusicCRC = 0, this.OldValue = K(2), this.CurrentStep = K(2), this.masking_lower = 0, this.bv_scf = K(576), this.pseudohalf = K(b.SFBMAX), this.sfb21_extra = !1, this.inbuf_old = new Array(2), this.blackfilt = new Array(2 * ne.BPC + 1), this.itime = ye(2), this.sideinfo_len = 0, this.sb_sample = Re([2, 2, 18, s.SBLIMIT]), this.amp_filter = ie(32);
8173
8185
  function N() {
8174
- this.write_timing = 0, this.ptr = 0, this.buf = J(c);
8186
+ this.write_timing = 0, this.ptr = 0, this.buf = $(c);
8175
8187
  }
8176
- this.header = new Array(ne.MAX_HEADER_BUF), this.h_ptr = 0, this.w_ptr = 0, this.ancillary_flag = 0, this.ResvSize = 0, this.ResvMax = 0, this.scalefac_band = new R(), this.minval_l = ie(s.CBANDS), this.minval_s = ie(s.CBANDS), this.nb_1 = Re([4, s.CBANDS]), this.nb_2 = Re([4, s.CBANDS]), this.nb_s1 = Re([4, s.CBANDS]), this.nb_s2 = Re([4, s.CBANDS]), this.s3_ss = null, this.s3_ll = null, this.decay = 0, this.thm = new Array(4), this.en = new Array(4), this.tot_ener = ie(4), this.loudness_sq = Re([2, 2]), this.loudness_sq_save = ie(2), this.mld_l = ie(s.SBMAX_l), this.mld_s = ie(s.SBMAX_s), this.bm_l = re(s.SBMAX_l), this.bo_l = re(s.SBMAX_l), this.bm_s = re(s.SBMAX_s), this.bo_s = re(s.SBMAX_s), this.npart_l = 0, this.npart_s = 0, this.s3ind = ke([s.CBANDS, 2]), this.s3ind_s = ke([s.CBANDS, 2]), this.numlines_s = re(s.CBANDS), this.numlines_l = re(s.CBANDS), this.rnumlines_l = ie(s.CBANDS), this.mld_cb_l = ie(s.CBANDS), this.mld_cb_s = ie(s.CBANDS), this.numlines_s_num1 = 0, this.numlines_l_num1 = 0, this.pe = ie(4), this.ms_ratio_s_old = 0, this.ms_ratio_l_old = 0, this.ms_ener_ratio_old = 0, this.blocktype_old = re(2), this.nsPsy = new be(), this.VBR_seek_table = new q(), this.ATH = null, this.PSY = null, this.nogap_total = 0, this.nogap_current = 0, this.decode_on_the_fly = !0, this.findReplayGain = !0, this.findPeakSample = !0, this.PeakSample = 0, this.RadioGain = 0, this.AudiophileGain = 0, this.rgdata = null, this.noclipGainChange = 0, this.noclipScale = 0, this.bitrate_stereoMode_Hist = ke([16, 4 + 1]), this.bitrate_blockType_Hist = ke([16, 4 + 1 + 1]), this.pinfo = null, this.hip = null, this.in_buffer_nsamples = 0, this.in_buffer_0 = null, this.in_buffer_1 = null, this.iteration_loop = null;
8188
+ this.header = new Array(ne.MAX_HEADER_BUF), this.h_ptr = 0, this.w_ptr = 0, this.ancillary_flag = 0, this.ResvSize = 0, this.ResvMax = 0, this.scalefac_band = new R(), this.minval_l = ie(s.CBANDS), this.minval_s = ie(s.CBANDS), this.nb_1 = Re([4, s.CBANDS]), this.nb_2 = Re([4, s.CBANDS]), this.nb_s1 = Re([4, s.CBANDS]), this.nb_s2 = Re([4, s.CBANDS]), this.s3_ss = null, this.s3_ll = null, this.decay = 0, this.thm = new Array(4), this.en = new Array(4), this.tot_ener = ie(4), this.loudness_sq = Re([2, 2]), this.loudness_sq_save = ie(2), this.mld_l = ie(s.SBMAX_l), this.mld_s = ie(s.SBMAX_s), this.bm_l = K(s.SBMAX_l), this.bo_l = K(s.SBMAX_l), this.bm_s = K(s.SBMAX_s), this.bo_s = K(s.SBMAX_s), this.npart_l = 0, this.npart_s = 0, this.s3ind = ke([s.CBANDS, 2]), this.s3ind_s = ke([s.CBANDS, 2]), this.numlines_s = K(s.CBANDS), this.numlines_l = K(s.CBANDS), this.rnumlines_l = ie(s.CBANDS), this.mld_cb_l = ie(s.CBANDS), this.mld_cb_s = ie(s.CBANDS), this.numlines_s_num1 = 0, this.numlines_l_num1 = 0, this.pe = ie(4), this.ms_ratio_s_old = 0, this.ms_ratio_l_old = 0, this.ms_ener_ratio_old = 0, this.blocktype_old = K(2), this.nsPsy = new be(), this.VBR_seek_table = new q(), this.ATH = null, this.PSY = null, this.nogap_total = 0, this.nogap_current = 0, this.decode_on_the_fly = !0, this.findReplayGain = !0, this.findPeakSample = !0, this.PeakSample = 0, this.RadioGain = 0, this.AudiophileGain = 0, this.rgdata = null, this.noclipGainChange = 0, this.noclipScale = 0, this.bitrate_stereoMode_Hist = ke([16, 4 + 1]), this.bitrate_blockType_Hist = ke([16, 4 + 1 + 1]), this.pinfo = null, this.hip = null, this.in_buffer_nsamples = 0, this.in_buffer_0 = null, this.in_buffer_1 = null, this.iteration_loop = null;
8177
8189
  for (var P = 0; P < this.en.length; P++)
8178
8190
  this.en[P] = new me();
8179
8191
  for (var P = 0; P < this.thm.length; P++)
@@ -8192,29 +8204,29 @@ const a0 = s0;
8192
8204
  0.9999811752826011,
8193
8205
  0.006135884649154475
8194
8206
  ];
8195
- function T(g, z, ae) {
8196
- var j = 0, K, k, fe;
8197
- ae <<= 1;
8198
- var E = z + ae;
8199
- K = 4;
8207
+ function T(g, z, re) {
8208
+ var j = 0, ee, k, fe;
8209
+ re <<= 1;
8210
+ var E = z + re;
8211
+ ee = 4;
8200
8212
  do {
8201
8213
  var B, t, l, A, F, y, f;
8202
- f = K >> 1, A = K, F = K << 1, y = F + A, K = F << 1, k = z, fe = k + f;
8214
+ f = ee >> 1, A = ee, F = ee << 1, y = F + A, ee = F << 1, k = z, fe = k + f;
8203
8215
  do {
8204
8216
  var w, u, I, n;
8205
- u = g[k + 0] - g[k + A], w = g[k + 0] + g[k + A], n = g[k + F] - g[k + y], I = g[k + F] + g[k + y], g[k + F] = w - I, g[k + 0] = w + I, g[k + y] = u - n, g[k + A] = u + n, u = g[fe + 0] - g[fe + A], w = g[fe + 0] + g[fe + A], n = ge.SQRT2 * g[fe + y], I = ge.SQRT2 * g[fe + F], g[fe + F] = w - I, g[fe + 0] = w + I, g[fe + y] = u - n, g[fe + A] = u + n, fe += K, k += K;
8217
+ u = g[k + 0] - g[k + A], w = g[k + 0] + g[k + A], n = g[k + F] - g[k + y], I = g[k + F] + g[k + y], g[k + F] = w - I, g[k + 0] = w + I, g[k + y] = u - n, g[k + A] = u + n, u = g[fe + 0] - g[fe + A], w = g[fe + 0] + g[fe + A], n = ge.SQRT2 * g[fe + y], I = ge.SQRT2 * g[fe + F], g[fe + F] = w - I, g[fe + 0] = w + I, g[fe + y] = u - n, g[fe + A] = u + n, fe += ee, k += ee;
8206
8218
  } while (k < E);
8207
8219
  for (t = P[j + 0], B = P[j + 1], l = 1; l < f; l++) {
8208
8220
  var H, d;
8209
8221
  H = 1 - 2 * B * B, d = 2 * B * t, k = z + l, fe = z + A - l;
8210
8222
  do {
8211
8223
  var v, M, x, w, u, C, I, a, n, i;
8212
- M = d * g[k + A] - H * g[fe + A], v = H * g[k + A] + d * g[fe + A], u = g[k + 0] - v, w = g[k + 0] + v, C = g[fe + 0] - M, x = g[fe + 0] + M, M = d * g[k + y] - H * g[fe + y], v = H * g[k + y] + d * g[fe + y], n = g[k + F] - v, I = g[k + F] + v, i = g[fe + F] - M, a = g[fe + F] + M, M = B * I - t * i, v = t * I + B * i, g[k + F] = w - v, g[k + 0] = w + v, g[fe + y] = C - M, g[fe + A] = C + M, M = t * a - B * n, v = B * a + t * n, g[fe + F] = x - v, g[fe + 0] = x + v, g[k + y] = u - M, g[k + A] = u + M, fe += K, k += K;
8224
+ M = d * g[k + A] - H * g[fe + A], v = H * g[k + A] + d * g[fe + A], u = g[k + 0] - v, w = g[k + 0] + v, C = g[fe + 0] - M, x = g[fe + 0] + M, M = d * g[k + y] - H * g[fe + y], v = H * g[k + y] + d * g[fe + y], n = g[k + F] - v, I = g[k + F] + v, i = g[fe + F] - M, a = g[fe + F] + M, M = B * I - t * i, v = t * I + B * i, g[k + F] = w - v, g[k + 0] = w + v, g[fe + y] = C - M, g[fe + A] = C + M, M = t * a - B * n, v = B * a + t * n, g[fe + F] = x - v, g[fe + 0] = x + v, g[k + y] = u - M, g[k + A] = u + M, fe += ee, k += ee;
8213
8225
  } while (k < E);
8214
8226
  H = t, t = H * P[j + 0] - B * P[j + 1], B = H * P[j + 1] + B * P[j + 0];
8215
8227
  }
8216
8228
  j += 2;
8217
- } while (K < ae);
8229
+ } while (ee < re);
8218
8230
  }
8219
8231
  var oe = [
8220
8232
  0,
@@ -8346,20 +8358,20 @@ const a0 = s0;
8346
8358
  126,
8347
8359
  254
8348
8360
  ];
8349
- this.fft_short = function(g, z, ae, j, K) {
8361
+ this.fft_short = function(g, z, re, j, ee) {
8350
8362
  for (var k = 0; k < 3; k++) {
8351
8363
  var fe = s.BLKSIZE_s / 2, E = 65535 & 576 / 3 * (k + 1), B = s.BLKSIZE_s / 8 - 1;
8352
8364
  do {
8353
8365
  var t, l, A, F, y, f = oe[B << 2] & 255;
8354
- t = N[f] * j[ae][K + f + E], y = N[127 - f] * j[ae][K + f + E + 128], l = t - y, t = t + y, A = N[f + 64] * j[ae][K + f + E + 64], y = N[63 - f] * j[ae][K + f + E + 192], F = A - y, A = A + y, fe -= 4, z[k][fe + 0] = t + A, z[k][fe + 2] = t - A, z[k][fe + 1] = l + F, z[k][fe + 3] = l - F, t = N[f + 1] * j[ae][K + f + E + 1], y = N[126 - f] * j[ae][K + f + E + 129], l = t - y, t = t + y, A = N[f + 65] * j[ae][K + f + E + 65], y = N[62 - f] * j[ae][K + f + E + 193], F = A - y, A = A + y, z[k][fe + s.BLKSIZE_s / 2 + 0] = t + A, z[k][fe + s.BLKSIZE_s / 2 + 2] = t - A, z[k][fe + s.BLKSIZE_s / 2 + 1] = l + F, z[k][fe + s.BLKSIZE_s / 2 + 3] = l - F;
8366
+ t = N[f] * j[re][ee + f + E], y = N[127 - f] * j[re][ee + f + E + 128], l = t - y, t = t + y, A = N[f + 64] * j[re][ee + f + E + 64], y = N[63 - f] * j[re][ee + f + E + 192], F = A - y, A = A + y, fe -= 4, z[k][fe + 0] = t + A, z[k][fe + 2] = t - A, z[k][fe + 1] = l + F, z[k][fe + 3] = l - F, t = N[f + 1] * j[re][ee + f + E + 1], y = N[126 - f] * j[re][ee + f + E + 129], l = t - y, t = t + y, A = N[f + 65] * j[re][ee + f + E + 65], y = N[62 - f] * j[re][ee + f + E + 193], F = A - y, A = A + y, z[k][fe + s.BLKSIZE_s / 2 + 0] = t + A, z[k][fe + s.BLKSIZE_s / 2 + 2] = t - A, z[k][fe + s.BLKSIZE_s / 2 + 1] = l + F, z[k][fe + s.BLKSIZE_s / 2 + 3] = l - F;
8355
8367
  } while (--B >= 0);
8356
8368
  T(z[k], fe, s.BLKSIZE_s / 2);
8357
8369
  }
8358
- }, this.fft_long = function(g, z, ae, j, K) {
8370
+ }, this.fft_long = function(g, z, re, j, ee) {
8359
8371
  var k = s.BLKSIZE / 8 - 1, fe = s.BLKSIZE / 2;
8360
8372
  do {
8361
8373
  var E, B, t, l, A, F = oe[k] & 255;
8362
- E = c[F] * j[ae][K + F], A = c[F + 512] * j[ae][K + F + 512], B = E - A, E = E + A, t = c[F + 256] * j[ae][K + F + 256], A = c[F + 768] * j[ae][K + F + 768], l = t - A, t = t + A, fe -= 4, z[fe + 0] = E + t, z[fe + 2] = E - t, z[fe + 1] = B + l, z[fe + 3] = B - l, E = c[F + 1] * j[ae][K + F + 1], A = c[F + 513] * j[ae][K + F + 513], B = E - A, E = E + A, t = c[F + 257] * j[ae][K + F + 257], A = c[F + 769] * j[ae][K + F + 769], l = t - A, t = t + A, z[fe + s.BLKSIZE / 2 + 0] = E + t, z[fe + s.BLKSIZE / 2 + 2] = E - t, z[fe + s.BLKSIZE / 2 + 1] = B + l, z[fe + s.BLKSIZE / 2 + 3] = B - l;
8374
+ E = c[F] * j[re][ee + F], A = c[F + 512] * j[re][ee + F + 512], B = E - A, E = E + A, t = c[F + 256] * j[re][ee + F + 256], A = c[F + 768] * j[re][ee + F + 768], l = t - A, t = t + A, fe -= 4, z[fe + 0] = E + t, z[fe + 2] = E - t, z[fe + 1] = B + l, z[fe + 3] = B - l, E = c[F + 1] * j[re][ee + F + 1], A = c[F + 513] * j[re][ee + F + 513], B = E - A, E = E + A, t = c[F + 257] * j[re][ee + F + 257], A = c[F + 769] * j[re][ee + F + 769], l = t - A, t = t + A, z[fe + s.BLKSIZE / 2 + 0] = E + t, z[fe + s.BLKSIZE / 2 + 2] = E - t, z[fe + s.BLKSIZE / 2 + 1] = B + l, z[fe + s.BLKSIZE / 2 + 3] = B - l;
8363
8375
  } while (--k >= 0);
8364
8376
  T(z, fe, s.BLKSIZE / 2);
8365
8377
  }, this.init_fft = function(g) {
@@ -8370,14 +8382,14 @@ const a0 = s0;
8370
8382
  };
8371
8383
  }
8372
8384
  function pe() {
8373
- var c = new ce(), N = 2.302585092994046, P = 2, T = 16, oe = 2, g = 16, z = 0.34, ae = 1 / (14752 * 14752) / (s.BLKSIZE / 2), j = 0.01, K = 0.8, k = 0.6, fe = 0.3, E = 3.5, B = 21, t = 0.2302585093;
8374
- function l($, O) {
8385
+ var c = new ce(), N = 2.302585092994046, P = 2, T = 16, oe = 2, g = 16, z = 0.34, re = 1 / (14752 * 14752) / (s.BLKSIZE / 2), j = 0.01, ee = 0.8, k = 0.6, fe = 0.3, E = 3.5, B = 21, t = 0.2302585093;
8386
+ function l(J, O) {
8375
8387
  for (var X = 0, Se = 0; Se < s.BLKSIZE / 2; ++Se)
8376
- X += $[Se] * O.ATH.eql_w[Se];
8377
- return X *= ae, X;
8388
+ X += J[Se] * O.ATH.eql_w[Se];
8389
+ return X *= re, X;
8378
8390
  }
8379
- function A($, O, X, Se, Te, he, xe, Ae, Ne, We, Ie) {
8380
- var lt = $.internal_flags;
8391
+ function A(J, O, X, Se, Te, he, xe, Ae, Ne, We, Ie) {
8392
+ var lt = J.internal_flags;
8381
8393
  Ne < 2 ? (c.fft_long(lt, Se[Te], Ne, We, Ie), c.fft_short(lt, he[xe], Ne, We, Ie)) : Ne == 2 && p(), O[0] = Se[Te + 0][0], O[0] *= O[0];
8382
8394
  for (var et = s.BLKSIZE / 2 - 1; et >= 0; --et) {
8383
8395
  var st = Se[Te + 0][s.BLKSIZE / 2 - et], dt = Se[Te + 0][s.BLKSIZE / 2 + et];
@@ -8395,7 +8407,7 @@ const a0 = s0;
8395
8407
  Qe += O[et];
8396
8408
  lt.tot_ener[Ne] = Qe;
8397
8409
  }
8398
- $.analysis && p(), $.athaa_loudapprox == 2 && Ne < 2 && (lt.loudness_sq[Ae][Ne] = lt.loudness_sq_save[Ne], lt.loudness_sq_save[Ne] = l(O, lt));
8410
+ J.analysis && p(), J.athaa_loudapprox == 2 && Ne < 2 && (lt.loudness_sq[Ae][Ne] = lt.loudness_sq_save[Ne], lt.loudness_sq_save[Ne] = l(O, lt));
8399
8411
  }
8400
8412
  var F = 8, y = 23, f = 15, w, u, I, n = [
8401
8413
  1,
@@ -8464,70 +8476,70 @@ const a0 = s0;
8464
8476
  1.11084 * 1.11084,
8465
8477
  1.03826 * 1.03826
8466
8478
  ];
8467
- function x($, O, X, Se, Te, he) {
8479
+ function x(J, O, X, Se, Te, he) {
8468
8480
  var xe;
8469
- if (O > $)
8470
- if (O < $ * u)
8471
- xe = O / $;
8481
+ if (O > J)
8482
+ if (O < J * u)
8483
+ xe = O / J;
8472
8484
  else
8473
- return $ + O;
8485
+ return J + O;
8474
8486
  else {
8475
- if ($ >= O * u)
8476
- return $ + O;
8477
- xe = $ / O;
8487
+ if (J >= O * u)
8488
+ return J + O;
8489
+ xe = J / O;
8478
8490
  }
8479
- if ($ += O, Se + 3 <= 3 + 3) {
8491
+ if (J += O, Se + 3 <= 3 + 3) {
8480
8492
  if (xe >= w)
8481
- return $;
8493
+ return J;
8482
8494
  var Ae = 0 | ge.FAST_LOG10_X(xe, 16);
8483
- return $ * v[Ae];
8495
+ return J * v[Ae];
8484
8496
  }
8485
8497
  var Ae = 0 | ge.FAST_LOG10_X(xe, 16);
8486
- if (he != 0 ? O = Te.ATH.cb_s[X] * Te.ATH.adjust : O = Te.ATH.cb_l[X] * Te.ATH.adjust, $ < I * O) {
8487
- if ($ > O) {
8498
+ if (he != 0 ? O = Te.ATH.cb_s[X] * Te.ATH.adjust : O = Te.ATH.cb_l[X] * Te.ATH.adjust, J < I * O) {
8499
+ if (J > O) {
8488
8500
  var Ne, We;
8489
- return Ne = 1, Ae <= 13 && (Ne = M[Ae]), We = ge.FAST_LOG10_X($ / O, 10 / 15), $ * ((d[Ae] - Ne) * We + Ne);
8501
+ return Ne = 1, Ae <= 13 && (Ne = M[Ae]), We = ge.FAST_LOG10_X(J / O, 10 / 15), J * ((d[Ae] - Ne) * We + Ne);
8490
8502
  }
8491
- return Ae > 13 ? $ : $ * M[Ae];
8503
+ return Ae > 13 ? J : J * M[Ae];
8492
8504
  }
8493
- return $ * d[Ae];
8505
+ return J * d[Ae];
8494
8506
  }
8495
- function C($, O, X, Se, Te) {
8507
+ function C(J, O, X, Se, Te) {
8496
8508
  var he, xe, Ae = 0, Ne = 0;
8497
8509
  for (he = xe = 0; he < s.SBMAX_s; ++xe, ++he) {
8498
- for (var We = $.bo_s[he], Ie = $.npart_s, lt = We < Ie ? We : Ie; xe < lt; )
8510
+ for (var We = J.bo_s[he], Ie = J.npart_s, lt = We < Ie ? We : Ie; xe < lt; )
8499
8511
  Ae += O[xe], Ne += X[xe], xe++;
8500
- if ($.en[Se].s[he][Te] = Ae, $.thm[Se].s[he][Te] = Ne, xe >= Ie) {
8512
+ if (J.en[Se].s[he][Te] = Ae, J.thm[Se].s[he][Te] = Ne, xe >= Ie) {
8501
8513
  ++he;
8502
8514
  break;
8503
8515
  }
8504
8516
  {
8505
- var et = $.PSY.bo_s_weight[he], st = 1 - et;
8506
- Ae = et * O[xe], Ne = et * X[xe], $.en[Se].s[he][Te] += Ae, $.thm[Se].s[he][Te] += Ne, Ae = st * O[xe], Ne = st * X[xe];
8517
+ var et = J.PSY.bo_s_weight[he], st = 1 - et;
8518
+ Ae = et * O[xe], Ne = et * X[xe], J.en[Se].s[he][Te] += Ae, J.thm[Se].s[he][Te] += Ne, Ae = st * O[xe], Ne = st * X[xe];
8507
8519
  }
8508
8520
  }
8509
8521
  for (; he < s.SBMAX_s; ++he)
8510
- $.en[Se].s[he][Te] = 0, $.thm[Se].s[he][Te] = 0;
8522
+ J.en[Se].s[he][Te] = 0, J.thm[Se].s[he][Te] = 0;
8511
8523
  }
8512
- function a($, O, X, Se) {
8524
+ function a(J, O, X, Se) {
8513
8525
  var Te, he, xe = 0, Ae = 0;
8514
8526
  for (Te = he = 0; Te < s.SBMAX_l; ++he, ++Te) {
8515
- for (var Ne = $.bo_l[Te], We = $.npart_l, Ie = Ne < We ? Ne : We; he < Ie; )
8527
+ for (var Ne = J.bo_l[Te], We = J.npart_l, Ie = Ne < We ? Ne : We; he < Ie; )
8516
8528
  xe += O[he], Ae += X[he], he++;
8517
- if ($.en[Se].l[Te] = xe, $.thm[Se].l[Te] = Ae, he >= We) {
8529
+ if (J.en[Se].l[Te] = xe, J.thm[Se].l[Te] = Ae, he >= We) {
8518
8530
  ++Te;
8519
8531
  break;
8520
8532
  }
8521
8533
  {
8522
- var lt = $.PSY.bo_l_weight[Te], et = 1 - lt;
8523
- xe = lt * O[he], Ae = lt * X[he], $.en[Se].l[Te] += xe, $.thm[Se].l[Te] += Ae, xe = et * O[he], Ae = et * X[he];
8534
+ var lt = J.PSY.bo_l_weight[Te], et = 1 - lt;
8535
+ xe = lt * O[he], Ae = lt * X[he], J.en[Se].l[Te] += xe, J.thm[Se].l[Te] += Ae, xe = et * O[he], Ae = et * X[he];
8524
8536
  }
8525
8537
  }
8526
8538
  for (; Te < s.SBMAX_l; ++Te)
8527
- $.en[Se].l[Te] = 0, $.thm[Se].l[Te] = 0;
8539
+ J.en[Se].l[Te] = 0, J.thm[Se].l[Te] = 0;
8528
8540
  }
8529
- function i($, O, X, Se, Te, he) {
8530
- var xe = $.internal_flags, Ae, Ne;
8541
+ function i(J, O, X, Se, Te, he) {
8542
+ var xe = J.internal_flags, Ae, Ne;
8531
8543
  for (Ne = Ae = 0; Ne < xe.npart_s; ++Ne) {
8532
8544
  for (var We = 0, Ie = xe.numlines_s[Ne], lt = 0; lt < Ie; ++lt, ++Ae) {
8533
8545
  var et = O[he][Ae];
@@ -8552,14 +8564,14 @@ const a0 = s0;
8552
8564
  for (; Ne <= s.CBANDS; ++Ne)
8553
8565
  X[Ne] = 0, Se[Ne] = 0;
8554
8566
  }
8555
- function W($, O, X, Se) {
8556
- var Te = $.internal_flags;
8557
- $.short_blocks == Ce.short_block_coupled && !(O[0] != 0 && O[1] != 0) && (O[0] = O[1] = 0);
8567
+ function W(J, O, X, Se) {
8568
+ var Te = J.internal_flags;
8569
+ J.short_blocks == Ce.short_block_coupled && !(O[0] != 0 && O[1] != 0) && (O[0] = O[1] = 0);
8558
8570
  for (var he = 0; he < Te.channels_out; he++)
8559
- Se[he] = s.NORM_TYPE, $.short_blocks == Ce.short_block_dispensed && (O[he] = 1), $.short_blocks == Ce.short_block_forced && (O[he] = 0), O[he] != 0 ? Te.blocktype_old[he] == s.SHORT_TYPE && (Se[he] = s.STOP_TYPE) : (Se[he] = s.SHORT_TYPE, Te.blocktype_old[he] == s.NORM_TYPE && (Te.blocktype_old[he] = s.START_TYPE), Te.blocktype_old[he] == s.STOP_TYPE && (Te.blocktype_old[he] = s.SHORT_TYPE)), X[he] = Te.blocktype_old[he], Te.blocktype_old[he] = Se[he];
8571
+ Se[he] = s.NORM_TYPE, J.short_blocks == Ce.short_block_dispensed && (O[he] = 1), J.short_blocks == Ce.short_block_forced && (O[he] = 0), O[he] != 0 ? Te.blocktype_old[he] == s.SHORT_TYPE && (Se[he] = s.STOP_TYPE) : (Se[he] = s.SHORT_TYPE, Te.blocktype_old[he] == s.NORM_TYPE && (Te.blocktype_old[he] = s.START_TYPE), Te.blocktype_old[he] == s.STOP_TYPE && (Te.blocktype_old[he] = s.SHORT_TYPE)), X[he] = Te.blocktype_old[he], Te.blocktype_old[he] = Se[he];
8560
8572
  }
8561
- function L($, O, X) {
8562
- return X >= 1 ? $ : X <= 0 ? O : O > 0 ? Math.pow($ / O, X) * O : 0;
8573
+ function L(J, O, X) {
8574
+ return X >= 1 ? J : X <= 0 ? O : O > 0 ? Math.pow(J / O, X) * O : 0;
8563
8575
  }
8564
8576
  var Q = [
8565
8577
  11.8,
@@ -8576,12 +8588,12 @@ const a0 = s0;
8576
8588
  130
8577
8589
  /* 255.8 */
8578
8590
  ];
8579
- function le($, O) {
8591
+ function le(J, O) {
8580
8592
  for (var X = 309.07, Se = 0; Se < s.SBMAX_s - 1; Se++)
8581
8593
  for (var Te = 0; Te < 3; Te++) {
8582
- var he = $.thm.s[Se][Te];
8594
+ var he = J.thm.s[Se][Te];
8583
8595
  if (he > 0) {
8584
- var xe = he * O, Ae = $.en.s[Se][Te];
8596
+ var xe = he * O, Ae = J.en.s[Se][Te];
8585
8597
  Ae > xe && (Ae > xe * 1e10 ? X += Q[Se] * (10 * N) : X += Q[Se] * ge.FAST_LOG10(Ae / xe));
8586
8598
  }
8587
8599
  }
@@ -8611,47 +8623,47 @@ const a0 = s0;
8611
8623
  126.1
8612
8624
  /* 241.3 */
8613
8625
  ];
8614
- function Me($, O) {
8626
+ function Me(J, O) {
8615
8627
  for (var X = 281.0575, Se = 0; Se < s.SBMAX_l - 1; Se++) {
8616
- var Te = $.thm.l[Se];
8628
+ var Te = J.thm.l[Se];
8617
8629
  if (Te > 0) {
8618
- var he = Te * O, xe = $.en.l[Se];
8630
+ var he = Te * O, xe = J.en.l[Se];
8619
8631
  xe > he && (xe > he * 1e10 ? X += _e[Se] * (10 * N) : X += _e[Se] * ge.FAST_LOG10(xe / he));
8620
8632
  }
8621
8633
  }
8622
8634
  return X;
8623
8635
  }
8624
- function je($, O, X, Se, Te) {
8636
+ function je(J, O, X, Se, Te) {
8625
8637
  var he, xe;
8626
- for (he = xe = 0; he < $.npart_l; ++he) {
8638
+ for (he = xe = 0; he < J.npart_l; ++he) {
8627
8639
  var Ae = 0, Ne = 0, We;
8628
- for (We = 0; We < $.numlines_l[he]; ++We, ++xe) {
8640
+ for (We = 0; We < J.numlines_l[he]; ++We, ++xe) {
8629
8641
  var Ie = O[xe];
8630
8642
  Ae += Ie, Ne < Ie && (Ne = Ie);
8631
8643
  }
8632
- X[he] = Ae, Se[he] = Ne, Te[he] = Ae * $.rnumlines_l[he];
8644
+ X[he] = Ae, Se[he] = Ne, Te[he] = Ae * J.rnumlines_l[he];
8633
8645
  }
8634
8646
  }
8635
- function He($, O, X, Se) {
8647
+ function He(J, O, X, Se) {
8636
8648
  var Te = n.length - 1, he = 0, xe = X[he] + X[he + 1];
8637
8649
  if (xe > 0) {
8638
8650
  var Ae = O[he];
8639
- Ae < O[he + 1] && (Ae = O[he + 1]), xe = 20 * (Ae * 2 - xe) / (xe * ($.numlines_l[he] + $.numlines_l[he + 1] - 1));
8651
+ Ae < O[he + 1] && (Ae = O[he + 1]), xe = 20 * (Ae * 2 - xe) / (xe * (J.numlines_l[he] + J.numlines_l[he + 1] - 1));
8640
8652
  var Ne = 0 | xe;
8641
8653
  Ne > Te && (Ne = Te), Se[he] = Ne;
8642
8654
  } else
8643
8655
  Se[he] = 0;
8644
- for (he = 1; he < $.npart_l - 1; he++)
8656
+ for (he = 1; he < J.npart_l - 1; he++)
8645
8657
  if (xe = X[he - 1] + X[he] + X[he + 1], xe > 0) {
8646
8658
  var Ae = O[he - 1];
8647
- Ae < O[he] && (Ae = O[he]), Ae < O[he + 1] && (Ae = O[he + 1]), xe = 20 * (Ae * 3 - xe) / (xe * ($.numlines_l[he - 1] + $.numlines_l[he] + $.numlines_l[he + 1] - 1));
8659
+ Ae < O[he] && (Ae = O[he]), Ae < O[he + 1] && (Ae = O[he + 1]), xe = 20 * (Ae * 3 - xe) / (xe * (J.numlines_l[he - 1] + J.numlines_l[he] + J.numlines_l[he + 1] - 1));
8648
8660
  var Ne = 0 | xe;
8649
8661
  Ne > Te && (Ne = Te), Se[he] = Ne;
8650
8662
  } else
8651
8663
  Se[he] = 0;
8652
8664
  if (xe = X[he - 1] + X[he], xe > 0) {
8653
8665
  var Ae = O[he - 1];
8654
- Ae < O[he] && (Ae = O[he]), xe = 20 * (Ae * 2 - xe) / (xe * ($.numlines_l[he - 1] + $.numlines_l[he] - 1));
8666
+ Ae < O[he] && (Ae = O[he]), xe = 20 * (Ae * 2 - xe) / (xe * (J.numlines_l[he - 1] + J.numlines_l[he] - 1));
8655
8667
  var Ne = 0 | xe;
8656
8668
  Ne > Te && (Ne = Te), Se[he] = Ne;
8657
8669
  } else
@@ -8669,9 +8681,9 @@ const a0 = s0;
8669
8681
  -552212e-22 * 2,
8670
8682
  -0.313819 * 2
8671
8683
  ];
8672
- this.L3psycho_anal_ns = function($, O, X, Se, Te, he, xe, Ae, Ne, We) {
8673
- var Ie = $.internal_flags, lt = Re([2, s.BLKSIZE]), et = Re([2, 3, s.BLKSIZE_s]), st = ie(s.CBANDS + 1), dt = ie(s.CBANDS + 1), tt = ie(s.CBANDS + 2), Qe = re(2), nt = re(2), wt, Ee, Ge, Pe, ut, Lt, Tt, it, Yt = Re([2, 576]), At, jt = re(s.CBANDS + 2), Ft = re(s.CBANDS + 2);
8674
- for (Ze.fill(Ft, 0), wt = Ie.channels_out, $.mode == ze.JOINT_STEREO && (wt = 4), $.VBR == de.vbr_off ? At = Ie.ResvMax == 0 ? 0 : Ie.ResvSize / Ie.ResvMax * 0.5 : $.VBR == de.vbr_rh || $.VBR == de.vbr_mtrh || $.VBR == de.vbr_mt ? At = 0.6 : At = 1, Ee = 0; Ee < Ie.channels_out; Ee++) {
8684
+ this.L3psycho_anal_ns = function(J, O, X, Se, Te, he, xe, Ae, Ne, We) {
8685
+ var Ie = J.internal_flags, lt = Re([2, s.BLKSIZE]), et = Re([2, 3, s.BLKSIZE_s]), st = ie(s.CBANDS + 1), dt = ie(s.CBANDS + 1), tt = ie(s.CBANDS + 2), Qe = K(2), nt = K(2), wt, Ee, Ge, Pe, ut, Lt, Tt, it, Yt = Re([2, 576]), At, jt = K(s.CBANDS + 2), Ft = K(s.CBANDS + 2);
8686
+ for (Ze.fill(Ft, 0), wt = Ie.channels_out, J.mode == ze.JOINT_STEREO && (wt = 4), J.VBR == de.vbr_off ? At = Ie.ResvMax == 0 ? 0 : Ie.ResvSize / Ie.ResvMax * 0.5 : J.VBR == de.vbr_rh || J.VBR == de.vbr_mtrh || J.VBR == de.vbr_mt ? At = 0.6 : At = 1, Ee = 0; Ee < Ie.channels_out; Ee++) {
8675
8687
  var Ut = O[Ee], Pt = X + 576 - 350 - B + 192;
8676
8688
  for (Pe = 0; Pe < 576; Pe++) {
8677
8689
  var Xt, qt;
@@ -8694,14 +8706,14 @@ const a0 = s0;
8694
8706
  Ie.nsPsy.last_en_subshort[Ee][Pe] = Dt[Pe + 3] = yt, Et[1 + Pe / 3] += yt, yt > Dt[Pe + 3 - 2] ? yt = yt / Dt[Pe + 3 - 2] : Dt[Pe + 3 - 2] > yt * 10 ? yt = Dt[Pe + 3 - 2] / (yt * 10) : yt = 0, $t[Pe + 3] = yt;
8695
8707
  }
8696
8708
  }
8697
- for ($.analysis && p(), d0 = Ee == 3 ? Ie.nsPsy.attackthre_s : Ie.nsPsy.attackthre, Pe = 0; Pe < 12; Pe++)
8709
+ for (J.analysis && p(), d0 = Ee == 3 ? Ie.nsPsy.attackthre_s : Ie.nsPsy.attackthre, Pe = 0; Pe < 12; Pe++)
8698
8710
  mt[Pe / 3] == 0 && $t[Pe] > d0 && (mt[Pe / 3] = Pe % 3 + 1);
8699
8711
  for (Pe = 1; Pe < 4; Pe++) {
8700
8712
  var Kt;
8701
8713
  Et[Pe - 1] > Et[Pe] ? Kt = Et[Pe - 1] / Et[Pe] : Kt = Et[Pe] / Et[Pe - 1], Kt < 1.7 && (mt[Pe] = 0, Pe == 1 && (mt[0] = 0));
8702
8714
  }
8703
8715
  for (mt[0] != 0 && Ie.nsPsy.lastAttacks[Ee] != 0 && (mt[0] = 0), (Ie.nsPsy.lastAttacks[Ee] == 3 || mt[0] + mt[1] + mt[2] + mt[3] != 0) && (c0 = 0, mt[1] != 0 && mt[0] != 0 && (mt[1] = 0), mt[2] != 0 && mt[1] != 0 && (mt[2] = 0), mt[3] != 0 && mt[2] != 0 && (mt[3] = 0)), Ee < 2 ? nt[Ee] = c0 : p(), Ne[Ee] = Ie.tot_ener[Ee], u0 = et, l0 = lt, A(
8704
- $,
8716
+ J,
8705
8717
  v0,
8706
8718
  _0,
8707
8719
  l0,
@@ -8714,8 +8726,8 @@ const a0 = s0;
8714
8726
  X
8715
8727
  ), je(Ie, v0, st, f0, h0), He(Ie, f0, h0, jt), it = 0; it < 3; it++) {
8716
8728
  var Jt, xt;
8717
- for (i($, _0, dt, tt, Ee, it), C(Ie, dt, tt, Ee, it), Tt = 0; Tt < s.SBMAX_s; Tt++) {
8718
- if (xt = Ie.thm[Ee].s[Tt][it], xt *= K, mt[it] >= 2 || mt[it + 1] == 1) {
8729
+ for (i(J, _0, dt, tt, Ee, it), C(Ie, dt, tt, Ee, it), Tt = 0; Tt < s.SBMAX_s; Tt++) {
8730
+ if (xt = Ie.thm[Ee].s[Tt][it], xt *= ee, mt[it] >= 2 || mt[it + 1] == 1) {
8719
8731
  var Qt = it != 0 ? it - 1 : 2, yt = L(
8720
8732
  Ie.thm[Ee].s[Tt][Qt],
8721
8733
  xt,
@@ -8761,28 +8773,28 @@ const a0 = s0;
8761
8773
  st[Ge] = 0, tt[Ge] = 0;
8762
8774
  a(Ie, st, tt, Ee);
8763
8775
  }
8764
- for (($.mode == ze.STEREO || $.mode == ze.JOINT_STEREO) && p(), $.mode == ze.JOINT_STEREO && p(), W($, nt, We, Qe), Ee = 0; Ee < wt; Ee++) {
8776
+ for ((J.mode == ze.STEREO || J.mode == ze.JOINT_STEREO) && p(), J.mode == ze.JOINT_STEREO && p(), W(J, nt, We, Qe), Ee = 0; Ee < wt; Ee++) {
8765
8777
  var Vt, Wt = 0, b0, t0;
8766
- Ee > 1 ? p() : (Vt = xe, Wt = 0, b0 = We[Ee], t0 = Te[Se][Ee]), b0 == s.SHORT_TYPE ? Vt[Wt + Ee] = le(t0, Ie.masking_lower) : Vt[Wt + Ee] = Me(t0, Ie.masking_lower), $.analysis && (Ie.pinfo.pe[Se][Ee] = Vt[Wt + Ee]);
8778
+ Ee > 1 ? p() : (Vt = xe, Wt = 0, b0 = We[Ee], t0 = Te[Se][Ee]), b0 == s.SHORT_TYPE ? Vt[Wt + Ee] = le(t0, Ie.masking_lower) : Vt[Wt + Ee] = Me(t0, Ie.masking_lower), J.analysis && (Ie.pinfo.pe[Se][Ee] = Vt[Wt + Ee]);
8767
8779
  }
8768
8780
  return 0;
8769
8781
  };
8770
- function ht($) {
8782
+ function ht(J) {
8771
8783
  var O, X, Se, Te;
8772
- return O = $, O >= 0 ? O *= 3 : O *= 1.5, O >= 0.5 && O <= 2.5 ? (Te = O - 0.5, X = 8 * (Te * Te - 2 * Te)) : X = 0, O += 0.474, Se = 15.811389 + 7.5 * O - 17.5 * Math.sqrt(1 + O * O), Se <= -60 ? 0 : (O = Math.exp((X + Se) * t), O /= 0.6609193, O);
8784
+ return O = J, O >= 0 ? O *= 3 : O *= 1.5, O >= 0.5 && O <= 2.5 ? (Te = O - 0.5, X = 8 * (Te * Te - 2 * Te)) : X = 0, O += 0.474, Se = 15.811389 + 7.5 * O - 17.5 * Math.sqrt(1 + O * O), Se <= -60 ? 0 : (O = Math.exp((X + Se) * t), O /= 0.6609193, O);
8773
8785
  }
8774
- function vt($) {
8775
- return $ < 0 && ($ = 0), $ = $ * 1e-3, 13 * Math.atan(0.76 * $) + 3.5 * Math.atan($ * $ / (7.5 * 7.5));
8786
+ function vt(J) {
8787
+ return J < 0 && (J = 0), J = J * 1e-3, 13 * Math.atan(0.76 * J) + 3.5 * Math.atan(J * J / (7.5 * 7.5));
8776
8788
  }
8777
- function ot($, O, X, Se, Te, he, xe, Ae, Ne, We, Ie, lt) {
8778
- var et = ie(s.CBANDS + 1), st = Ae / (lt > 15 ? 2 * 576 : 2 * 192), dt = re(s.HBLKSIZE), tt;
8789
+ function ot(J, O, X, Se, Te, he, xe, Ae, Ne, We, Ie, lt) {
8790
+ var et = ie(s.CBANDS + 1), st = Ae / (lt > 15 ? 2 * 576 : 2 * 192), dt = K(s.HBLKSIZE), tt;
8779
8791
  Ae /= Ne;
8780
8792
  var Qe = 0, nt = 0;
8781
8793
  for (tt = 0; tt < s.CBANDS; tt++) {
8782
8794
  var wt, Ee;
8783
8795
  for (wt = vt(Ae * Qe), et[tt] = Ae * Qe, Ee = Qe; vt(Ae * Ee) - wt < z && Ee <= Ne / 2; Ee++)
8784
8796
  ;
8785
- for ($[tt] = Ee - Qe, nt = tt + 1; Qe < Ee; )
8797
+ for (J[tt] = Ee - Qe, nt = tt + 1; Qe < Ee; )
8786
8798
  dt[Qe++] = tt;
8787
8799
  if (Qe > Ne / 2) {
8788
8800
  Qe = Ne / 2, ++tt;
@@ -8801,12 +8813,12 @@ const a0 = s0;
8801
8813
  }
8802
8814
  Qe = 0;
8803
8815
  for (var At = 0; At < nt; At++) {
8804
- var jt = $[At], wt, Ft;
8816
+ var jt = J[At], wt, Ft;
8805
8817
  wt = vt(Ae * Qe), Ft = vt(Ae * (Qe + jt - 1)), Se[At] = 0.5 * (wt + Ft), wt = vt(Ae * (Qe - 0.5)), Ft = vt(Ae * (Qe + jt - 0.5)), Te[At] = Ft - wt, Qe += jt;
8806
8818
  }
8807
8819
  return nt;
8808
8820
  }
8809
- function ct($, O, X, Se, Te, he) {
8821
+ function ct(J, O, X, Se, Te, he) {
8810
8822
  var xe = Re([s.CBANDS, s.CBANDS]), Ae, Ne = 0;
8811
8823
  if (he)
8812
8824
  for (var We = 0; We < O; We++)
@@ -8819,31 +8831,31 @@ const a0 = s0;
8819
8831
  for (var We = 0; We < O; We++) {
8820
8832
  for (Ae = 0; Ae < O && !(xe[We][Ae] > 0); Ae++)
8821
8833
  ;
8822
- for ($[We][0] = Ae, Ae = O - 1; Ae > 0 && !(xe[We][Ae] > 0); Ae--)
8834
+ for (J[We][0] = Ae, Ae = O - 1; Ae > 0 && !(xe[We][Ae] > 0); Ae--)
8823
8835
  ;
8824
- $[We][1] = Ae, Ne += $[We][1] - $[We][0] + 1;
8836
+ J[We][1] = Ae, Ne += J[We][1] - J[We][0] + 1;
8825
8837
  }
8826
8838
  for (var lt = ie(Ne), et = 0, We = 0; We < O; We++)
8827
- for (Ae = $[We][0]; Ae <= $[We][1]; Ae++)
8839
+ for (Ae = J[We][0]; Ae <= J[We][1]; Ae++)
8828
8840
  lt[et++] = xe[We][Ae];
8829
8841
  return lt;
8830
8842
  }
8831
- function gt($) {
8832
- var O = vt($);
8843
+ function gt(J) {
8844
+ var O = vt(J);
8833
8845
  return O = Math.min(O, 15.5) / 15.5, Math.pow(
8834
8846
  10,
8835
8847
  1.25 * (1 - Math.cos(Math.PI * O)) - 2.5
8836
8848
  );
8837
8849
  }
8838
- this.psymodel_init = function($) {
8839
- var O = $.internal_flags, X, Se = !0, Te = 13, he = 24, xe = 0, Ae = 0, Ne = -8.25, We = -4.5, Ie = ie(s.CBANDS), lt = ie(s.CBANDS), et = ie(s.CBANDS), st = $.out_samplerate;
8840
- switch ($.experimentalZ) {
8850
+ this.psymodel_init = function(J) {
8851
+ var O = J.internal_flags, X, Se = !0, Te = 13, he = 24, xe = 0, Ae = 0, Ne = -8.25, We = -4.5, Ie = ie(s.CBANDS), lt = ie(s.CBANDS), et = ie(s.CBANDS), st = J.out_samplerate;
8852
+ switch (J.experimentalZ) {
8841
8853
  default:
8842
8854
  case 0:
8843
8855
  Se = !0;
8844
8856
  break;
8845
8857
  case 1:
8846
- Se = !($.VBR == de.vbr_mtrh || $.VBR == de.vbr_mt);
8858
+ Se = !(J.VBR == de.vbr_mtrh || J.VBR == de.vbr_mt);
8847
8859
  break;
8848
8860
  case 2:
8849
8861
  Se = !1;
@@ -8896,7 +8908,7 @@ const a0 = s0;
8896
8908
  nt = Ye.MAX_VALUE;
8897
8909
  for (var wt = 0; wt < O.numlines_l[X]; wt++, Qe++) {
8898
8910
  var Ee = st * Qe / (1e3 * s.BLKSIZE), Ge;
8899
- Ge = this.ATHformula(Ee * 1e3, $) - 20, Ge = Math.pow(10, 0.1 * Ge), Ge *= O.numlines_l[X], nt > Ge && (nt = Ge);
8911
+ Ge = this.ATHformula(Ee * 1e3, J) - 20, Ge = Math.pow(10, 0.1 * Ge), Ge *= O.numlines_l[X], nt > Ge && (nt = Ge);
8900
8912
  }
8901
8913
  O.ATH.cb_l[X] = nt, nt = -20 + Ie[X] * 20 / 10, nt > 6 && (nt = 100), nt < -15 && (nt = -15), nt -= 8, O.minval_l[X] = Math.pow(10, nt / 10) * O.numlines_l[X];
8902
8914
  }
@@ -8918,7 +8930,7 @@ const a0 = s0;
8918
8930
  Ie[X] >= Te && (tt = We * (Ie[X] - Te) / (he - Te) + Ne * (he - Ie[X]) / (he - Te)), et[X] = Math.pow(10, tt / 10), nt = Ye.MAX_VALUE;
8919
8931
  for (var wt = 0; wt < O.numlines_s[X]; wt++, Qe++) {
8920
8932
  var Ee = st * Qe / (1e3 * s.BLKSIZE_s), Ge;
8921
- Ge = this.ATHformula(Ee * 1e3, $) - 20, Ge = Math.pow(10, 0.1 * Ge), Ge *= O.numlines_s[X], nt > Ge && (nt = Ge);
8933
+ Ge = this.ATHformula(Ee * 1e3, J) - 20, Ge = Math.pow(10, 0.1 * Ge), Ge *= O.numlines_s[X], nt > Ge && (nt = Ge);
8922
8934
  }
8923
8935
  O.ATH.cb_s[X] = nt, nt = -7 + Ie[X] * 7 / 12, Ie[X] > 12 && (nt *= 1 + Math.log(1 + nt) * 3.1), Ie[X] < 12 && (nt *= 1 + Math.log(1 - nt) * 2.3), nt < -15 && (nt = -15), nt -= 8, O.minval_s[X] = Math.pow(10, nt / 10) * O.numlines_s[X];
8924
8936
  }
@@ -8932,15 +8944,15 @@ const a0 = s0;
8932
8944
  ), H(), c.init_fft(O), O.decay = Math.exp(-1 * N / (j * st / 192));
8933
8945
  {
8934
8946
  var Pe;
8935
- Pe = E, $.exp_nspsytune & 2 && (Pe = 1), Math.abs($.msfix) > 0 && (Pe = $.msfix), $.msfix = Pe;
8947
+ Pe = E, J.exp_nspsytune & 2 && (Pe = 1), Math.abs(J.msfix) > 0 && (Pe = J.msfix), J.msfix = Pe;
8936
8948
  for (var ut = 0; ut < O.npart_l; ut++)
8937
8949
  O.s3ind[ut][1] > O.npart_l - 1 && (O.s3ind[ut][1] = O.npart_l - 1);
8938
8950
  }
8939
8951
  var Lt = 576 * O.mode_gr / st;
8940
- if (O.ATH.decay = Math.pow(10, -12 / 10 * Lt), O.ATH.adjust = 0.01, O.ATH.adjustLimit = 1, $.ATHtype != -1) {
8941
- var Ee, Tt = $.out_samplerate / s.BLKSIZE, it = 0;
8952
+ if (O.ATH.decay = Math.pow(10, -12 / 10 * Lt), O.ATH.adjust = 0.01, O.ATH.adjustLimit = 1, J.ATHtype != -1) {
8953
+ var Ee, Tt = J.out_samplerate / s.BLKSIZE, it = 0;
8942
8954
  for (Ee = 0, X = 0; X < s.BLKSIZE / 2; ++X)
8943
- Ee += Tt, O.ATH.eql_w[X] = 1 / Math.pow(10, this.ATHformula(Ee, $) / 10), it += O.ATH.eql_w[X];
8955
+ Ee += Tt, O.ATH.eql_w[X] = 1 / Math.pow(10, this.ATHformula(Ee, J) / 10), it += O.ATH.eql_w[X];
8944
8956
  for (it = 1 / it, X = s.BLKSIZE / 2; --X >= 0; )
8945
8957
  O.ATH.eql_w[X] *= it;
8946
8958
  }
@@ -8966,31 +8978,31 @@ const a0 = s0;
8966
8978
  O.mld_cb_s[X] = 1;
8967
8979
  return 0;
8968
8980
  };
8969
- function It($, O) {
8970
- $ < -0.3 && ($ = 3410), $ /= 1e3, $ = Math.max(0.1, $);
8971
- var X = 3.64 * Math.pow($, -0.8) - 6.8 * Math.exp(-0.6 * Math.pow($ - 3.4, 2)) + 6 * Math.exp(-0.15 * Math.pow($ - 8.7, 2)) + (0.6 + 0.04 * O) * 1e-3 * Math.pow($, 4);
8981
+ function It(J, O) {
8982
+ J < -0.3 && (J = 3410), J /= 1e3, J = Math.max(0.1, J);
8983
+ var X = 3.64 * Math.pow(J, -0.8) - 6.8 * Math.exp(-0.6 * Math.pow(J - 3.4, 2)) + 6 * Math.exp(-0.15 * Math.pow(J - 8.7, 2)) + (0.6 + 0.04 * O) * 1e-3 * Math.pow(J, 4);
8972
8984
  return X;
8973
8985
  }
8974
- this.ATHformula = function($, O) {
8986
+ this.ATHformula = function(J, O) {
8975
8987
  var X;
8976
8988
  switch (O.ATHtype) {
8977
8989
  case 0:
8978
- X = It($, 9);
8990
+ X = It(J, 9);
8979
8991
  break;
8980
8992
  case 1:
8981
- X = It($, -1);
8993
+ X = It(J, -1);
8982
8994
  break;
8983
8995
  case 2:
8984
- X = It($, 0);
8996
+ X = It(J, 0);
8985
8997
  break;
8986
8998
  case 3:
8987
- X = It($, 1) + 6;
8999
+ X = It(J, 1) + 6;
8988
9000
  break;
8989
9001
  case 4:
8990
- X = It($, O.ATHcurve);
9002
+ X = It(J, O.ATHcurve);
8991
9003
  break;
8992
9004
  default:
8993
- X = It($, 0);
9005
+ X = It(J, 0);
8994
9006
  break;
8995
9007
  }
8996
9008
  return X;
@@ -9001,9 +9013,9 @@ const a0 = s0;
9001
9013
  se.V9 = 410, se.V8 = 420, se.V7 = 430, se.V6 = 440, se.V5 = 450, se.V4 = 460, se.V3 = 470, se.V2 = 480, se.V1 = 490, se.V0 = 500, se.R3MIX = 1e3, se.STANDARD = 1001, se.EXTREME = 1002, se.INSANE = 1003, se.STANDARD_FAST = 1004, se.EXTREME_FAST = 1005, se.MEDIUM = 1006, se.MEDIUM_FAST = 1007;
9002
9014
  var P = 16384 + N;
9003
9015
  se.LAME_MAXMP3BUFFER = P;
9004
- var T, oe, g, z, ae, j = new pe(), K, k;
9016
+ var T, oe, g, z, re, j = new pe(), ee, k;
9005
9017
  this.enc = new s(), this.setModules = function(a, i, W, L, Q, le, _e, Me, je) {
9006
- T = a, oe = i, g = W, z = L, ae = Q, K = le, k = Me, this.enc.setModules(oe, j, z, K);
9018
+ T = a, oe = i, g = W, z = L, re = Q, ee = le, k = Me, this.enc.setModules(oe, j, z, ee);
9007
9019
  };
9008
9020
  function fe() {
9009
9021
  this.mask_adjust = 0, this.mask_adjust_short = 0, this.bo_l_weight = ie(s.SBMAX_l), this.bo_s_weight = ie(s.SBMAX_s);
@@ -9165,7 +9177,7 @@ const a0 = s0;
9165
9177
  }
9166
9178
  function n(a) {
9167
9179
  var i = a.internal_flags;
9168
- a.frameNum = 0, a.write_id3tag_automatic && k.id3tag_write_v2(a), i.bitrate_stereoMode_Hist = ke([16, 4 + 1]), i.bitrate_blockType_Hist = ke([16, 4 + 1 + 1]), i.PeakSample = 0, a.bWriteVbrTag && K.InitVbrTag(a);
9180
+ a.frameNum = 0, a.write_id3tag_automatic && k.id3tag_write_v2(a), i.bitrate_stereoMode_Hist = ke([16, 4 + 1]), i.bitrate_blockType_Hist = ke([16, 4 + 1 + 1]), i.PeakSample = 0, a.bWriteVbrTag && ee.InitVbrTag(a);
9169
9181
  }
9170
9182
  this.lame_init_params = function(a) {
9171
9183
  var i = a.internal_flags;
@@ -9267,16 +9279,16 @@ const a0 = s0;
9267
9279
  case de.vbr_mt:
9268
9280
  a.VBR = de.vbr_mtrh;
9269
9281
  case de.vbr_mtrh: {
9270
- a.useTemporal == null && (a.useTemporal = !1), g.apply_preset(a, 500 - a.VBR_q * 10, 0), a.quality < 0 && (a.quality = LAME_DEFAULT_QUALITY), a.quality < 5 && (a.quality = 0), a.quality > 5 && (a.quality = 5), i.PSY.mask_adjust = a.maskingadjust, i.PSY.mask_adjust_short = a.maskingadjust_short, a.experimentalY ? i.sfb21_extra = !1 : i.sfb21_extra = a.out_samplerate > 44e3, i.iteration_loop = new VBRNewIterationLoop(ae);
9282
+ a.useTemporal == null && (a.useTemporal = !1), g.apply_preset(a, 500 - a.VBR_q * 10, 0), a.quality < 0 && (a.quality = LAME_DEFAULT_QUALITY), a.quality < 5 && (a.quality = 0), a.quality > 5 && (a.quality = 5), i.PSY.mask_adjust = a.maskingadjust, i.PSY.mask_adjust_short = a.maskingadjust_short, a.experimentalY ? i.sfb21_extra = !1 : i.sfb21_extra = a.out_samplerate > 44e3, i.iteration_loop = new VBRNewIterationLoop(re);
9271
9283
  break;
9272
9284
  }
9273
9285
  case de.vbr_rh: {
9274
- g.apply_preset(a, 500 - a.VBR_q * 10, 0), i.PSY.mask_adjust = a.maskingadjust, i.PSY.mask_adjust_short = a.maskingadjust_short, a.experimentalY ? i.sfb21_extra = !1 : i.sfb21_extra = a.out_samplerate > 44e3, a.quality > 6 && (a.quality = 6), a.quality < 0 && (a.quality = LAME_DEFAULT_QUALITY), i.iteration_loop = new VBROldIterationLoop(ae);
9286
+ g.apply_preset(a, 500 - a.VBR_q * 10, 0), i.PSY.mask_adjust = a.maskingadjust, i.PSY.mask_adjust_short = a.maskingadjust_short, a.experimentalY ? i.sfb21_extra = !1 : i.sfb21_extra = a.out_samplerate > 44e3, a.quality > 6 && (a.quality = 6), a.quality < 0 && (a.quality = LAME_DEFAULT_QUALITY), i.iteration_loop = new VBROldIterationLoop(re);
9275
9287
  break;
9276
9288
  }
9277
9289
  default: {
9278
9290
  var Ue;
9279
- i.sfb21_extra = !1, a.quality < 0 && (a.quality = LAME_DEFAULT_QUALITY), Ue = a.VBR, Ue == de.vbr_off && (a.VBR_mean_bitrate_kbps = a.brate), g.apply_preset(a, a.VBR_mean_bitrate_kbps, 0), a.VBR = Ue, i.PSY.mask_adjust = a.maskingadjust, i.PSY.mask_adjust_short = a.maskingadjust_short, Ue == de.vbr_off ? i.iteration_loop = new ft(ae) : p();
9291
+ i.sfb21_extra = !1, a.quality < 0 && (a.quality = LAME_DEFAULT_QUALITY), Ue = a.VBR, Ue == de.vbr_off && (a.VBR_mean_bitrate_kbps = a.brate), g.apply_preset(a, a.VBR_mean_bitrate_kbps, 0), a.VBR = Ue, i.PSY.mask_adjust = a.maskingadjust, i.PSY.mask_adjust_short = a.maskingadjust_short, Ue == de.vbr_off ? i.iteration_loop = new ft(re) : p();
9280
9292
  break;
9281
9293
  }
9282
9294
  }
@@ -9350,13 +9362,13 @@ const a0 = s0;
9350
9362
  gt[1][Ue] *= a.scale_right;
9351
9363
  a.num_channels == 2 && Me.channels_out == 1 && p(), vt = d(a), ct[0] = Me.mfbuf[0], ct[1] = Me.mfbuf[1];
9352
9364
  for (var It = 0; L > 0; ) {
9353
- var $ = [null, null], O = 0, X = 0;
9354
- $[0] = gt[0], $[1] = gt[1];
9365
+ var J = [null, null], O = 0, X = 0;
9366
+ J[0] = gt[0], J[1] = gt[1];
9355
9367
  var Se = new x();
9356
9368
  if (C(
9357
9369
  a,
9358
9370
  ct,
9359
- $,
9371
+ J,
9360
9372
  It,
9361
9373
  L,
9362
9374
  Se
@@ -9427,15 +9439,15 @@ const a0 = s0;
9427
9439
  this.setModules = function(c, N) {
9428
9440
  };
9429
9441
  }
9430
- function ee(c, N, P) {
9442
+ function te(c, N, P) {
9431
9443
  c != 1 && p("fix cc: only supports mono");
9432
- var T = new se(), oe = new G(), g = new Ke(), z = new Xe(), ae = new at(), j = new e(), K = new S(), k = new Fe(), fe = new Be(), E = new U(), B = new Je(), t = new $e(), l = new ve(), A = new we();
9433
- T.setModules(g, z, ae, j, K, k, fe, E, A), z.setModules(g, A, fe, k), E.setModules(z, fe), ae.setModules(T), K.setModules(z, B, j, t), j.setModules(t, B, T.enc.psy), B.setModules(z), t.setModules(j), k.setModules(T, z, fe), oe.setModules(l, A), l.setModules(fe, E, ae);
9444
+ var T = new se(), oe = new G(), g = new Ke(), z = new Xe(), re = new at(), j = new e(), ee = new S(), k = new Fe(), fe = new Be(), E = new U(), B = new Je(), t = new $e(), l = new ve(), A = new we();
9445
+ T.setModules(g, z, re, j, ee, k, fe, E, A), z.setModules(g, A, fe, k), E.setModules(z, fe), re.setModules(T), ee.setModules(z, B, j, t), j.setModules(t, B, T.enc.psy), B.setModules(z), t.setModules(j), k.setModules(T, z, fe), oe.setModules(l, A), l.setModules(fe, E, re);
9434
9446
  var F = T.lame_init();
9435
9447
  F.num_channels = c, F.in_samplerate = N, F.out_samplerate = N, F.brate = P, F.mode = ze.STEREO, F.quality = 3, F.bWriteVbrTag = !1, F.disable_reservoir = !0, F.write_id3tag_automatic = !1, T.lame_init_params(F);
9436
- var y = 1152, f = 0 | 1.25 * y + 7200, w = J(f);
9448
+ var y = 1152, f = 0 | 1.25 * y + 7200, w = $(f);
9437
9449
  this.encodeBuffer = function(u, I) {
9438
- c == 1 && (I = u), u.length > y && (y = u.length, f = 0 | 1.25 * y + 7200, w = J(f));
9450
+ c == 1 && (I = u), u.length > y && (y = u.length, f = 0 | 1.25 * y + 7200, w = $(f));
9439
9451
  var n = T.lame_encode_buffer(F, u, I, u.length, w, 0, f);
9440
9452
  return new Int8Array(w.subarray(0, n));
9441
9453
  }, this.flush = function() {
@@ -9443,17 +9455,17 @@ const a0 = s0;
9443
9455
  return new Int8Array(w.subarray(0, u));
9444
9456
  };
9445
9457
  }
9446
- b.SFBMAX = s.SBMAX_s * 3, r.Mp3Encoder = ee;
9458
+ b.SFBMAX = s.SBMAX_s * 3, r.Mp3Encoder = te;
9447
9459
  }
9448
9460
  r(), _.lamejs = r;
9449
9461
  });
9450
9462
  (function(_) {
9451
- var r = typeof window == "object" && !!window.document, m = r ? window : Object, p = m.Recorder, J = p.i18n;
9452
- _(p, J, J.$T, r);
9463
+ var r = typeof window == "object" && !!window.document, m = r ? window : Object, p = m.Recorder, $ = p.i18n;
9464
+ _(p, $, $.$T, r);
9453
9465
  })(function(_, r, m, p) {
9454
- var J = function(ie) {
9455
- return new re(ie);
9456
- }, Z = "WaveView", re = function(ie) {
9466
+ var $ = function(ie) {
9467
+ return new K(ie);
9468
+ }, Z = "WaveView", K = function(ie) {
9457
9469
  var ye = this, Re = {
9458
9470
  /*
9459
9471
  elem:"css selector" //自动显示到dom,并以此dom大小为显示大小
@@ -9502,7 +9514,7 @@ const a0 = s0;
9502
9514
  var de = ye.ctx = Ve.getContext("2d");
9503
9515
  ye.linear1 = ye.genLinear(de, Ce, ie.linear1), ye.linear2 = ye.genLinear(de, Ce, ie.linear2), ye.linearBg = ye.genLinear(de, Ye, ie.linearBg, !0), ye._phase = 0;
9504
9516
  };
9505
- re.prototype = J.prototype = {
9517
+ K.prototype = $.prototype = {
9506
9518
  genLinear: function(ie, ye, Re, ke) {
9507
9519
  for (var Oe = ie.createLinearGradient(0, 0, ke ? 0 : ye, ke ? ye : 0), Ve = 0; Ve < Re.length; )
9508
9520
  Oe.addColorStop(Re[Ve++], Re[Ve++]);
@@ -9549,7 +9561,7 @@ const a0 = s0;
9549
9561
  ge == 0 ? Oe.moveTo(ge, ie[ue]) : Oe.lineTo(ge, ie[ue]);
9550
9562
  Oe.lineWidth = ke.lineWidth * Ve, Oe.strokeStyle = ye, Oe.stroke();
9551
9563
  }
9552
- }, _[Z] = J;
9564
+ }, _[Z] = $;
9553
9565
  });
9554
9566
  const ta = {
9555
9567
  components: { InlineSvg: Gt },
@@ -9602,8 +9614,8 @@ const ta = {
9602
9614
  },
9603
9615
  methods: {
9604
9616
  formatMilliseconds(_) {
9605
- const r = Math.floor(_ / 1e3), m = Math.floor(r / 60), p = r % 60, J = m.toString().padStart(2, "0"), Z = p.toString().padStart(2, "0");
9606
- return `${J}:${Z}`;
9617
+ const r = Math.floor(_ / 1e3), m = Math.floor(r / 60), p = r % 60, $ = m.toString().padStart(2, "0"), Z = p.toString().padStart(2, "0");
9618
+ return `${$}:${Z}`;
9607
9619
  },
9608
9620
  start() {
9609
9621
  this.ready && (this.pending = !0, this.rec.start());
@@ -9685,8 +9697,8 @@ var o0 = {}, sa = {
9685
9697
  }, e = new m(R, e);
9686
9698
  var o = this;
9687
9699
  function h(G) {
9688
- return e.disableLogs || console.log("RecordRTC version: ", o.version), G && (e = new m(R, G)), e.disableLogs || console.log("started recording " + e.type + " stream."), ce ? (ce.clearRecordedData(), ce.record(), me("recording"), o.recordingDuration && te(), o) : (b(function() {
9689
- o.recordingDuration && te();
9700
+ return e.disableLogs || console.log("RecordRTC version: ", o.version), G && (e = new m(R, G)), e.disableLogs || console.log("started recording " + e.type + " stream."), ce ? (ce.clearRecordedData(), ce.record(), me("recording"), o.recordingDuration && ae(), o) : (b(function() {
9701
+ o.recordingDuration && ae();
9690
9702
  }), o);
9691
9703
  }
9692
9704
  function b(G) {
@@ -9724,12 +9736,12 @@ var o0 = {}, sa = {
9724
9736
  else
9725
9737
  throw "Recording failed.";
9726
9738
  if (U && !e.disableLogs && console.log(U.type, "->", Ye(U.size)), G) {
9727
- var ee;
9739
+ var te;
9728
9740
  try {
9729
- ee = ke.createObjectURL(U);
9741
+ te = ke.createObjectURL(U);
9730
9742
  } catch {
9731
9743
  }
9732
- typeof G.call == "function" ? G.call(o, ee) : G(ee);
9744
+ typeof G.call == "function" ? G.call(o, te) : G(te);
9733
9745
  }
9734
9746
  e.autoWriteToDisk && q(function(c) {
9735
9747
  var N = {};
@@ -9778,8 +9790,8 @@ var o0 = {}, sa = {
9778
9790
  G(N.data);
9779
9791
  }, U.postMessage(we);
9780
9792
  } else {
9781
- var ee = new FileReader();
9782
- ee.readAsDataURL(we), ee.onload = function(N) {
9793
+ var te = new FileReader();
9794
+ te.readAsDataURL(we), te.onload = function(N) {
9783
9795
  G(N.target.result);
9784
9796
  };
9785
9797
  }
@@ -9796,10 +9808,10 @@ var o0 = {}, sa = {
9796
9808
  }
9797
9809
  }
9798
9810
  }
9799
- function te(G) {
9811
+ function ae(G) {
9800
9812
  if (G = G || 0, o.state === "paused") {
9801
9813
  setTimeout(function() {
9802
- te(G);
9814
+ ae(G);
9803
9815
  }, 1e3);
9804
9816
  return;
9805
9817
  }
@@ -9809,7 +9821,7 @@ var o0 = {}, sa = {
9809
9821
  return;
9810
9822
  }
9811
9823
  G += 1e3, setTimeout(function() {
9812
- te(G);
9824
+ ae(G);
9813
9825
  }, 1e3);
9814
9826
  }
9815
9827
  }
@@ -10309,7 +10321,7 @@ var o0 = {}, sa = {
10309
10321
  * @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
10310
10322
  * @requires {@link RecordRTC}
10311
10323
  */
10312
- function J(R) {
10324
+ function $(R) {
10313
10325
  this.addStream = function(e) {
10314
10326
  e && (R = e);
10315
10327
  }, this.mediaType = {
@@ -10455,7 +10467,7 @@ var o0 = {}, sa = {
10455
10467
  }, e.audio && this.audioRecorder && this.audioRecorder.save(typeof e.audio == "string" ? e.audio : ""), e.video && this.videoRecorder && this.videoRecorder.save(typeof e.video == "string" ? e.video : ""), e.gif && this.gifRecorder && this.gifRecorder.save(typeof e.gif == "string" ? e.gif : "");
10456
10468
  };
10457
10469
  }
10458
- J.getFromDisk = r.getFromDisk, J.writeToDisk = r.writeToDisk, typeof r < "u" && (r.MRecordRTC = J);
10470
+ $.getFromDisk = r.getFromDisk, $.writeToDisk = r.writeToDisk, typeof r < "u" && (r.MRecordRTC = $);
10459
10471
  var Z = "Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";
10460
10472
  (function(R) {
10461
10473
  R && (typeof window < "u" || typeof bt > "u" || (bt.navigator = {
@@ -10504,17 +10516,17 @@ var o0 = {}, sa = {
10504
10516
  }
10505
10517
  }), R.window = bt));
10506
10518
  })(typeof bt < "u" ? bt : null);
10507
- var re = window.requestAnimationFrame;
10508
- if (typeof re > "u") {
10519
+ var K = window.requestAnimationFrame;
10520
+ if (typeof K > "u") {
10509
10521
  if (typeof webkitRequestAnimationFrame < "u")
10510
- re = webkitRequestAnimationFrame;
10522
+ K = webkitRequestAnimationFrame;
10511
10523
  else if (typeof mozRequestAnimationFrame < "u")
10512
- re = mozRequestAnimationFrame;
10524
+ K = mozRequestAnimationFrame;
10513
10525
  else if (typeof msRequestAnimationFrame < "u")
10514
- re = msRequestAnimationFrame;
10515
- else if (typeof re > "u") {
10526
+ K = msRequestAnimationFrame;
10527
+ else if (typeof K > "u") {
10516
10528
  var ie = 0;
10517
- re = function(R, e) {
10529
+ K = function(R, e) {
10518
10530
  var o = new Date().getTime(), h = Math.max(0, 16 - (o - ie)), b = setTimeout(function() {
10519
10531
  R(o + h);
10520
10532
  }, h);
@@ -10590,10 +10602,10 @@ var o0 = {}, sa = {
10590
10602
  D.forEach(function(me) {
10591
10603
  o.read(me);
10592
10604
  }), o.stop();
10593
- var s = b.makeMetadataSeekable(o.metadatas, o.duration, o.cues), q = this.result.slice(o.metadataSize), te = new Blob([s, q], {
10605
+ var s = b.makeMetadataSeekable(o.metadatas, o.duration, o.cues), q = this.result.slice(o.metadataSize), ae = new Blob([s, q], {
10594
10606
  type: "video/webm"
10595
10607
  });
10596
- e(te);
10608
+ e(ae);
10597
10609
  }, S.readAsArrayBuffer(R);
10598
10610
  }
10599
10611
  typeof r < "u" && (r.invokeSaveAsDialog = de, r.getTracks = Be, r.getSeekableBlob = Ke, r.bytesToSize = Ye, r.isElectron = ze);
@@ -10645,7 +10657,7 @@ var o0 = {}, sa = {
10645
10657
  * @throws Will throw an error if first argument "MediaStream" is missing. Also throws error if "MediaRecorder API" are not supported by the browser.
10646
10658
  */
10647
10659
  function Fe(R, e) {
10648
- var te = this;
10660
+ var ae = this;
10649
10661
  if (typeof R > "u")
10650
10662
  throw 'First argument "MediaStream" is required.';
10651
10663
  if (typeof MediaRecorder > "u")
@@ -10664,7 +10676,7 @@ var o0 = {}, sa = {
10664
10676
  this.getArrayOfBlobs = function() {
10665
10677
  return h;
10666
10678
  }, this.record = function() {
10667
- te.blob = null, te.clearRecordedData(), te.timestamps = [], q = [], h = [];
10679
+ ae.blob = null, ae.clearRecordedData(), ae.timestamps = [], q = [], h = [];
10668
10680
  var me = e;
10669
10681
  e.disableLogs || console.log("Passing following config over MediaRecorder API.", me), D && (D = null), ue && !Je() && (me = "video/vp8"), typeof MediaRecorder.isTypeSupported == "function" && me.mimeType && (MediaRecorder.isTypeSupported(me.mimeType) || (e.disableLogs || console.warn("MediaRecorder API seems unable to record mimeType:", me.mimeType), me.mimeType = e.type === "audio" ? "audio/webm" : "video/webm"));
10670
10682
  try {
@@ -10682,15 +10694,15 @@ var o0 = {}, sa = {
10682
10694
  }
10683
10695
  return;
10684
10696
  }
10685
- if (!be.data || !be.data.size || be.data.size < 100 || te.blob) {
10686
- te.recordingCallback && (te.recordingCallback(new Blob([], {
10697
+ if (!be.data || !be.data.size || be.data.size < 100 || ae.blob) {
10698
+ ae.recordingCallback && (ae.recordingCallback(new Blob([], {
10687
10699
  type: S(me)
10688
- })), te.recordingCallback = null);
10700
+ })), ae.recordingCallback = null);
10689
10701
  return;
10690
10702
  }
10691
- te.blob = e.getNativeBlob ? be.data : new Blob([be.data], {
10703
+ ae.blob = e.getNativeBlob ? be.data : new Blob([be.data], {
10692
10704
  type: S(me)
10693
- }), te.recordingCallback && (te.recordingCallback(te.blob), te.recordingCallback = null);
10705
+ }), ae.recordingCallback && (ae.recordingCallback(ae.blob), ae.recordingCallback = null);
10694
10706
  }, D.onstart = function() {
10695
10707
  q.push("started");
10696
10708
  }, D.onpause = function() {
@@ -10701,7 +10713,7 @@ var o0 = {}, sa = {
10701
10713
  q.push("stopped");
10702
10714
  }, D.onerror = function(be) {
10703
10715
  be && (be.name || (be.name = "UnknownError"), q.push("error: " + be), e.disableLogs || (be.name.toString().toLowerCase().indexOf("invalidstate") !== -1 ? console.error("The MediaRecorder is not in a state in which the proposed operation is allowed to be executed.", be) : be.name.toString().toLowerCase().indexOf("notsupported") !== -1 ? console.error("MIME type (", me.mimeType, ") is not supported.", be) : be.name.toString().toLowerCase().indexOf("security") !== -1 ? console.error("MediaRecorder security error", be) : be.name === "OutOfMemory" ? console.error("The UA has exhaused the available memory. User agents SHOULD provide as much additional information as possible in the message attribute.", be) : be.name === "IllegalStreamModification" ? console.error("A modification to the stream has occurred that makes it impossible to continue recording. An example would be the addition of a Track while recording is occurring. User agents SHOULD provide as much additional information as possible in the message attribute.", be) : be.name === "OtherRecordingError" ? console.error("Used for an fatal error other than those listed above. User agents SHOULD provide as much additional information as possible in the message attribute.", be) : be.name === "GenericError" ? console.error("The UA cannot provide the codec or recording option that has been requested.", be) : console.error("MediaRecorder Error", be)), function(ne) {
10704
- if (!te.manuallyStopped && D && D.state === "inactive") {
10716
+ if (!ae.manuallyStopped && D && D.state === "inactive") {
10705
10717
  delete e.timeslice, D.start(10 * 60 * 1e3);
10706
10718
  return;
10707
10719
  }
@@ -10710,27 +10722,27 @@ var o0 = {}, sa = {
10710
10722
  }, typeof e.timeSlice == "number" ? (b(), D.start(e.timeSlice)) : D.start(36e5), e.initCallback && e.initCallback();
10711
10723
  }, this.timestamps = [];
10712
10724
  function b() {
10713
- te.timestamps.push(new Date().getTime()), typeof e.onTimeStamp == "function" && e.onTimeStamp(te.timestamps[te.timestamps.length - 1], te.timestamps);
10725
+ ae.timestamps.push(new Date().getTime()), typeof e.onTimeStamp == "function" && e.onTimeStamp(ae.timestamps[ae.timestamps.length - 1], ae.timestamps);
10714
10726
  }
10715
10727
  function S(me) {
10716
10728
  return D && D.mimeType ? D.mimeType : me.mimeType || "video/webm";
10717
10729
  }
10718
10730
  this.stop = function(me) {
10719
10731
  me = me || function() {
10720
- }, te.manuallyStopped = !0, D && (this.recordingCallback = me, D.state === "recording" && D.stop(), typeof e.timeSlice == "number" && setTimeout(function() {
10721
- te.blob = new Blob(h, {
10732
+ }, ae.manuallyStopped = !0, D && (this.recordingCallback = me, D.state === "recording" && D.stop(), typeof e.timeSlice == "number" && setTimeout(function() {
10733
+ ae.blob = new Blob(h, {
10722
10734
  type: S(e)
10723
- }), te.recordingCallback(te.blob);
10735
+ }), ae.recordingCallback(ae.blob);
10724
10736
  }, 100));
10725
10737
  }, this.pause = function() {
10726
10738
  D && D.state === "recording" && D.pause();
10727
10739
  }, this.resume = function() {
10728
10740
  D && D.state === "paused" && D.resume();
10729
10741
  }, this.clearRecordedData = function() {
10730
- D && D.state === "recording" && te.stop(Y), Y();
10742
+ D && D.state === "recording" && ae.stop(Y), Y();
10731
10743
  };
10732
10744
  function Y() {
10733
- h = [], D = null, te.timestamps = [];
10745
+ h = [], D = null, ae.timestamps = [];
10734
10746
  }
10735
10747
  var D;
10736
10748
  this.getInternalRecorder = function() {
@@ -10751,11 +10763,11 @@ var o0 = {}, sa = {
10751
10763
  this.getAllStates = function() {
10752
10764
  return q;
10753
10765
  }, typeof e.checkForInactiveTracks > "u" && (e.checkForInactiveTracks = !1);
10754
- var te = this;
10766
+ var ae = this;
10755
10767
  (function me() {
10756
10768
  if (!(!D || e.checkForInactiveTracks === !1)) {
10757
10769
  if (s() === !1) {
10758
- e.disableLogs || console.log("MediaStream seems stopped."), te.stop();
10770
+ e.disableLogs || console.log("MediaStream seems stopped."), ae.stop();
10759
10771
  return;
10760
10772
  }
10761
10773
  setTimeout(me, 1e3);
@@ -10791,7 +10803,7 @@ var o0 = {}, sa = {
10791
10803
  e = e || {};
10792
10804
  var o = this, h = [], b = [], S = !1, Y = 0, D, s = 2, q = e.desiredSampRate;
10793
10805
  e.leftChannel === !0 && (s = 1), e.numberOfAudioChannels === 1 && (s = 1), (!s || s < 1) && (s = 2), e.disableLogs || console.log("StereoAudioRecorder is set to record number of channels: " + s), typeof e.checkForInactiveTracks > "u" && (e.checkForInactiveTracks = !0);
10794
- function te() {
10806
+ function ae() {
10795
10807
  if (e.checkForInactiveTracks === !1)
10796
10808
  return !0;
10797
10809
  if ("active" in R) {
@@ -10802,14 +10814,14 @@ var o0 = {}, sa = {
10802
10814
  return !0;
10803
10815
  }
10804
10816
  this.record = function() {
10805
- if (te() === !1)
10817
+ if (ae() === !1)
10806
10818
  throw "Please make sure MediaStream is active.";
10807
- we(), ee = ve = !1, S = !0, typeof e.timeSlice < "u" && P();
10819
+ we(), te = ve = !1, S = !0, typeof e.timeSlice < "u" && P();
10808
10820
  };
10809
10821
  function me(T, oe) {
10810
- function g(ae, j) {
10811
- var K = ae.numberOfAudioChannels, k = ae.leftBuffers.slice(0), fe = ae.rightBuffers.slice(0), E = ae.sampleRate, B = ae.internalInterleavedLength, t = ae.desiredSampRate;
10812
- K === 2 && (k = F(k, B), fe = F(fe, B), t && (k = l(k, t, E), fe = l(fe, t, E))), K === 1 && (k = F(k, B), t && (k = l(k, t, E))), t && (E = t);
10822
+ function g(re, j) {
10823
+ var ee = re.numberOfAudioChannels, k = re.leftBuffers.slice(0), fe = re.rightBuffers.slice(0), E = re.sampleRate, B = re.internalInterleavedLength, t = re.desiredSampRate;
10824
+ ee === 2 && (k = F(k, B), fe = F(fe, B), t && (k = l(k, t, E), fe = l(fe, t, E))), ee === 1 && (k = F(k, B), t && (k = l(k, t, E))), t && (E = t);
10813
10825
  function l(C, a, i) {
10814
10826
  var W = Math.round(C.length * (a / i)), L = [], Q = Number((C.length - 1) / (W - 1));
10815
10827
  L[0] = C[0];
@@ -10839,9 +10851,9 @@ var o0 = {}, sa = {
10839
10851
  C.setUint8(a + L, i.charCodeAt(L));
10840
10852
  }
10841
10853
  var w;
10842
- K === 2 && (w = y(k, fe)), K === 1 && (w = k);
10854
+ ee === 2 && (w = y(k, fe)), ee === 1 && (w = k);
10843
10855
  var u = w.length, I = 44 + u * 2, n = new ArrayBuffer(I), H = new DataView(n);
10844
- f(H, 0, "RIFF"), H.setUint32(4, 36 + u * 2, !0), f(H, 8, "WAVE"), f(H, 12, "fmt "), H.setUint32(16, 16, !0), H.setUint16(20, 1, !0), H.setUint16(22, K, !0), H.setUint32(24, E, !0), H.setUint32(28, E * K * 2, !0), H.setUint16(32, K * 2, !0), H.setUint16(34, 16, !0), f(H, 36, "data"), H.setUint32(40, u * 2, !0);
10856
+ f(H, 0, "RIFF"), H.setUint32(4, 36 + u * 2, !0), f(H, 8, "WAVE"), f(H, 12, "fmt "), H.setUint32(16, 16, !0), H.setUint16(20, 1, !0), H.setUint16(22, ee, !0), H.setUint32(24, E, !0), H.setUint32(28, E * ee * 2, !0), H.setUint16(32, ee * 2, !0), H.setUint16(34, 16, !0), f(H, 36, "data"), H.setUint32(40, u * 2, !0);
10845
10857
  for (var d = u, v = 44, M = 1, x = 0; x < d; x++)
10846
10858
  H.setInt16(v, w[x] * (32767 * M), !0), v += 2;
10847
10859
  if (j)
@@ -10855,14 +10867,14 @@ var o0 = {}, sa = {
10855
10867
  });
10856
10868
  }
10857
10869
  if (T.noWorker) {
10858
- g(T, function(ae) {
10859
- oe(ae.buffer, ae.view);
10870
+ g(T, function(re) {
10871
+ oe(re.buffer, re.view);
10860
10872
  });
10861
10873
  return;
10862
10874
  }
10863
10875
  var z = be(g);
10864
- z.onmessage = function(ae) {
10865
- oe(ae.data.buffer, ae.data.view), ke.revokeObjectURL(z.workerURL), z.terminate();
10876
+ z.onmessage = function(re) {
10877
+ oe(re.data.buffer, re.data.view), ke.revokeObjectURL(z.workerURL), z.terminate();
10866
10878
  }, z.postMessage(T);
10867
10879
  }
10868
10880
  function be(T) {
@@ -10887,7 +10899,7 @@ var o0 = {}, sa = {
10887
10899
  }, function(oe, g) {
10888
10900
  o.blob = new Blob([g], {
10889
10901
  type: "audio/wav"
10890
- }), o.buffer = new ArrayBuffer(g.buffer.byteLength), o.view = g, o.sampleRate = q || G, o.bufferSize = se, o.length = Y, ee = !1, T && T(o.blob);
10902
+ }), o.buffer = new ArrayBuffer(g.buffer.byteLength), o.view = g, o.sampleRate = q || G, o.bufferSize = se, o.length = Y, te = !1, T && T(o.blob);
10891
10903
  });
10892
10904
  }, typeof r.Storage > "u" && (r.Storage = {
10893
10905
  AudioContextConstructor: null,
@@ -10907,7 +10919,7 @@ var o0 = {}, sa = {
10907
10919
  this.pause = function() {
10908
10920
  ve = !0;
10909
10921
  }, this.resume = function() {
10910
- if (te() === !1)
10922
+ if (ae() === !1)
10911
10923
  throw "Please make sure MediaStream is active.";
10912
10924
  if (!S) {
10913
10925
  e.disableLogs || console.log("Seems recording has been restarted."), this.record();
@@ -10918,7 +10930,7 @@ var o0 = {}, sa = {
10918
10930
  e.checkForInactiveTracks = !1, S && this.stop(U), U();
10919
10931
  };
10920
10932
  function we() {
10921
- h = [], b = [], Y = 0, ee = !1, S = !1, ve = !1, ne = null, o.leftchannel = h, o.rightchannel = b, o.numberOfAudioChannels = s, o.desiredSampRate = q, o.sampleRate = G, o.recordingLength = Y, N = {
10933
+ h = [], b = [], Y = 0, te = !1, S = !1, ve = !1, ne = null, o.leftchannel = h, o.rightchannel = b, o.numberOfAudioChannels = s, o.desiredSampRate = q, o.sampleRate = G, o.recordingLength = Y, N = {
10922
10934
  left: [],
10923
10935
  right: [],
10924
10936
  recordingLength: 0
@@ -10930,20 +10942,20 @@ var o0 = {}, sa = {
10930
10942
  this.name = "StereoAudioRecorder", this.toString = function() {
10931
10943
  return this.name;
10932
10944
  };
10933
- var ee = !1;
10945
+ var te = !1;
10934
10946
  function c(T) {
10935
10947
  if (!ve) {
10936
- if (te() === !1 && (e.disableLogs || console.log("MediaStream seems stopped."), D.disconnect(), S = !1), !S) {
10948
+ if (ae() === !1 && (e.disableLogs || console.log("MediaStream seems stopped."), D.disconnect(), S = !1), !S) {
10937
10949
  ce && (ce.disconnect(), ce = null);
10938
10950
  return;
10939
10951
  }
10940
- ee || (ee = !0, e.onAudioProcessStarted && e.onAudioProcessStarted(), e.initCallback && e.initCallback());
10952
+ te || (te = !0, e.onAudioProcessStarted && e.onAudioProcessStarted(), e.initCallback && e.initCallback());
10941
10953
  var oe = T.inputBuffer.getChannelData(0), g = new Float32Array(oe);
10942
10954
  if (h.push(g), s === 2) {
10943
- var z = T.inputBuffer.getChannelData(1), ae = new Float32Array(z);
10944
- b.push(ae);
10955
+ var z = T.inputBuffer.getChannelData(1), re = new Float32Array(z);
10956
+ b.push(re);
10945
10957
  }
10946
- Y += se, o.recordingLength = Y, typeof e.timeSlice < "u" && (N.recordingLength += se, N.left.push(g), s === 2 && N.right.push(ae));
10958
+ Y += se, o.recordingLength = Y, typeof e.timeSlice < "u" && (N.recordingLength += se, N.left.push(g), s === 2 && N.right.push(re));
10947
10959
  }
10948
10960
  }
10949
10961
  D.onaudioprocess = c, ne.createMediaStreamDestination ? D.connect(ne.createMediaStreamDestination()) : D.connect(ne.destination), this.leftchannel = h, this.rightchannel = b, this.numberOfAudioChannels = s, this.desiredSampRate = q, this.sampleRate = G, o.recordingLength = Y;
@@ -11068,9 +11080,9 @@ var o0 = {}, sa = {
11068
11080
  }
11069
11081
  s || this.record();
11070
11082
  }, this.clearRecordedData = function() {
11071
- s && this.stop(te), te();
11083
+ s && this.stop(ae), ae();
11072
11084
  };
11073
- function te() {
11085
+ function ae() {
11074
11086
  ce.frames = [], s = !1, q = !1;
11075
11087
  }
11076
11088
  this.name = "CanvasRecorder", this.toString = function() {
@@ -11132,9 +11144,9 @@ var o0 = {}, sa = {
11132
11144
  }), e.canvas || (e.canvas = {
11133
11145
  width: e.width,
11134
11146
  height: e.height
11135
- }), s.width = e.canvas.width || 320, s.height = e.canvas.height || 240, q = s.getContext("2d"), e.video && e.video instanceof HTMLVideoElement ? (te = e.video.cloneNode(), e.initCallback && e.initCallback()) : (te = document.createElement("video"), $e(R, te), te.onloadedmetadata = function() {
11147
+ }), s.width = e.canvas.width || 320, s.height = e.canvas.height || 240, q = s.getContext("2d"), e.video && e.video instanceof HTMLVideoElement ? (ae = e.video.cloneNode(), e.initCallback && e.initCallback()) : (ae = document.createElement("video"), $e(R, ae), ae.onloadedmetadata = function() {
11136
11148
  e.initCallback && e.initCallback();
11137
- }, te.width = e.video.width, te.height = e.video.height), te.muted = !0, te.play(), me = new Date().getTime(), be = new pt.Video(), e.disableLogs || (console.log("canvas resolutions", s.width, "*", s.height), console.log("video width/height", te.width || s.width, "*", te.height || s.height)), o(e.frameInterval);
11149
+ }, ae.width = e.video.width, ae.height = e.video.height), ae.muted = !0, ae.play(), me = new Date().getTime(), be = new pt.Video(), e.disableLogs || (console.log("canvas resolutions", s.width, "*", s.height), console.log("video width/height", ae.width || s.width, "*", ae.height || s.height)), o(e.frameInterval);
11138
11150
  };
11139
11151
  function o(ne) {
11140
11152
  ne = typeof ne < "u" ? ne : 10;
@@ -11143,7 +11155,7 @@ var o0 = {}, sa = {
11143
11155
  return setTimeout(o, ne, ne);
11144
11156
  if (Y)
11145
11157
  return me = new Date().getTime(), setTimeout(o, 100);
11146
- me = new Date().getTime(), te.paused && te.play(), q.drawImage(te, 0, 0, s.width, s.height), be.frames.push({
11158
+ me = new Date().getTime(), ae.paused && ae.play(), q.drawImage(ae, 0, 0, s.width, s.height), be.frames.push({
11147
11159
  duration: ce,
11148
11160
  image: s.toDataURL("image/webp")
11149
11161
  }), S || setTimeout(o, ne, ne);
@@ -11163,7 +11175,7 @@ var o0 = {}, sa = {
11163
11175
  function b(ne, ce, pe, se, G) {
11164
11176
  var ve = document.createElement("canvas");
11165
11177
  ve.width = s.width, ve.height = s.height;
11166
- var we = ve.getContext("2d"), U = [], ee = ce === -1, c = ce && ce > 0 && ce <= ne.length ? ce : ne.length, N = {
11178
+ var we = ve.getContext("2d"), U = [], te = ce === -1, c = ce && ce > 0 && ce <= ne.length ? ce : ne.length, N = {
11167
11179
  r: 0,
11168
11180
  g: 0,
11169
11181
  b: 0
@@ -11172,9 +11184,9 @@ var o0 = {}, sa = {
11172
11184
  ), T = pe && pe >= 0 && pe <= 1 ? pe : 0, oe = se && se >= 0 && se <= 1 ? se : 0, g = !1;
11173
11185
  h({
11174
11186
  length: c,
11175
- functionToLoop: function(z, ae) {
11176
- var j, K, k, fe = function() {
11177
- !g && k - j <= k * oe || (ee && (g = !0), U.push(ne[ae])), z();
11187
+ functionToLoop: function(z, re) {
11188
+ var j, ee, k, fe = function() {
11189
+ !g && k - j <= k * oe || (te && (g = !0), U.push(ne[re])), z();
11178
11190
  };
11179
11191
  if (g)
11180
11192
  fe();
@@ -11183,8 +11195,8 @@ var o0 = {}, sa = {
11183
11195
  E.onload = function() {
11184
11196
  we.drawImage(E, 0, 0, s.width, s.height);
11185
11197
  var B = we.getImageData(0, 0, s.width, s.height);
11186
- j = 0, K = B.data.length, k = B.data.length / 4;
11187
- for (var t = 0; t < K; t += 4) {
11198
+ j = 0, ee = B.data.length, k = B.data.length / 4;
11199
+ for (var t = 0; t < ee; t += 4) {
11188
11200
  var l = {
11189
11201
  r: B.data[t],
11190
11202
  g: B.data[t + 1],
@@ -11195,7 +11207,7 @@ var o0 = {}, sa = {
11195
11207
  A <= P * T && j++;
11196
11208
  }
11197
11209
  fe();
11198
- }, E.src = ne[ae].image;
11210
+ }, E.src = ne[re].image;
11199
11211
  }
11200
11212
  },
11201
11213
  callback: function() {
@@ -11232,7 +11244,7 @@ var o0 = {}, sa = {
11232
11244
  this.name = "WhammyRecorder", this.toString = function() {
11233
11245
  return this.name;
11234
11246
  };
11235
- var s = document.createElement("canvas"), q = s.getContext("2d"), te, me, be;
11247
+ var s = document.createElement("canvas"), q = s.getContext("2d"), ae, me, be;
11236
11248
  }
11237
11249
  typeof r < "u" && (r.WhammyRecorder = V);
11238
11250
  /**
@@ -11379,11 +11391,11 @@ var o0 = {}, sa = {
11379
11391
  }]
11380
11392
  }]
11381
11393
  }]
11382
- }], ee = 0, c = 0; ee < G.length; ) {
11394
+ }], te = 0, c = 0; te < G.length; ) {
11383
11395
  var N = [], P = 0;
11384
11396
  do
11385
- N.push(G[ee]), P += G[ee].duration, ee++;
11386
- while (ee < G.length && P < we);
11397
+ N.push(G[te]), P += G[te].duration, te++;
11398
+ while (te < G.length && P < we);
11387
11399
  var T = 0, oe = {
11388
11400
  id: 524531317,
11389
11401
  // Cluster
@@ -11391,7 +11403,7 @@ var o0 = {}, sa = {
11391
11403
  };
11392
11404
  U[1].data.push(oe), c += P;
11393
11405
  }
11394
- return te(U);
11406
+ return ae(U);
11395
11407
  }
11396
11408
  function S(G, ve, we) {
11397
11409
  return [{
@@ -11399,7 +11411,7 @@ var o0 = {}, sa = {
11399
11411
  id: 231
11400
11412
  // Timecode
11401
11413
  }].concat(we.map(function(U) {
11402
- var ee = me({
11414
+ var te = me({
11403
11415
  discardable: 0,
11404
11416
  frame: U.data.slice(4),
11405
11417
  invisible: 0,
@@ -11409,7 +11421,7 @@ var o0 = {}, sa = {
11409
11421
  timecode: Math.round(ve)
11410
11422
  });
11411
11423
  return ve += U.duration, {
11412
- data: ee,
11424
+ data: te,
11413
11425
  id: 163
11414
11426
  };
11415
11427
  }));
@@ -11421,8 +11433,8 @@ var o0 = {}, sa = {
11421
11433
  });
11422
11434
  return;
11423
11435
  }
11424
- for (var ve = G[0].width, we = G[0].height, U = G[0].duration, ee = 1; ee < G.length; ee++)
11425
- U += G[ee].duration;
11436
+ for (var ve = G[0].width, we = G[0].height, U = G[0].duration, te = 1; te < G.length; te++)
11437
+ U += G[te].duration;
11426
11438
  return {
11427
11439
  duration: U,
11428
11440
  width: ve,
@@ -11446,11 +11458,11 @@ var o0 = {}, sa = {
11446
11458
  ve.push(parseInt(G.substr(U, 8), 2));
11447
11459
  return new Uint8Array(ve);
11448
11460
  }
11449
- function te(G) {
11461
+ function ae(G) {
11450
11462
  for (var ve = [], we = 0; we < G.length; we++) {
11451
11463
  var U = G[we].data;
11452
- typeof U == "object" && (U = te(U)), typeof U == "number" && (U = q(U.toString(2))), typeof U == "string" && (U = s(U));
11453
- var ee = U.size || U.byteLength || U.length, c = Math.ceil(Math.ceil(Math.log(ee) / Math.log(2)) / 8), N = ee.toString(2), P = new Array(c * 7 + 7 + 1 - N.length).join("0") + N, T = new Array(c).join("0") + "1" + P;
11464
+ typeof U == "object" && (U = ae(U)), typeof U == "number" && (U = q(U.toString(2))), typeof U == "string" && (U = s(U));
11465
+ var te = U.size || U.byteLength || U.length, c = Math.ceil(Math.ceil(Math.log(te) / Math.log(2)) / 8), N = te.toString(2), P = new Array(c * 7 + 7 + 1 - N.length).join("0") + N, T = new Array(c).join("0") + "1" + P;
11454
11466
  ve.push(D(G[we].id)), ve.push(q(T)), ve.push(U);
11455
11467
  }
11456
11468
  return new Blob(ve, {
@@ -11467,10 +11479,10 @@ var o0 = {}, sa = {
11467
11479
  return we;
11468
11480
  }
11469
11481
  function be(G) {
11470
- for (var ve = G.RIFF[0].WEBP[0], we = ve.indexOf("*"), U = 0, ee = []; U < 4; U++)
11471
- ee[U] = ve.charCodeAt(we + 3 + U);
11482
+ for (var ve = G.RIFF[0].WEBP[0], we = ve.indexOf("*"), U = 0, te = []; U < 4; U++)
11483
+ te[U] = ve.charCodeAt(we + 3 + U);
11472
11484
  var c, N, P;
11473
- return P = ee[1] << 8 | ee[0], c = P & 16383, P = ee[3] << 8 | ee[2], N = P & 16383, {
11485
+ return P = te[1] << 8 | te[0], c = P & 16383, P = te[3] << 8 | te[2], N = P & 16383, {
11474
11486
  width: c,
11475
11487
  height: N,
11476
11488
  data: ve,
@@ -11485,8 +11497,8 @@ var o0 = {}, sa = {
11485
11497
  }
11486
11498
  function ce(G) {
11487
11499
  for (var ve = 0, we = {}; ve < G.length; ) {
11488
- var U = G.substr(ve, 4), ee = ne(G, ve), c = G.substr(ve + 4 + 4, ee);
11489
- ve += 4 + 4 + ee, we[U] = we[U] || [], U === "RIFF" || U === "LIST" ? we[U].push(ce(c)) : we[U].push(c);
11500
+ var U = G.substr(ve, 4), te = ne(G, ve), c = G.substr(ve + 4 + 4, te);
11501
+ ve += 4 + 4 + te, we[U] = we[U] || [], U === "RIFF" || U === "LIST" ? we[U].push(ce(c)) : we[U].push(c);
11490
11502
  }
11491
11503
  return we;
11492
11504
  }
@@ -11575,8 +11587,8 @@ var o0 = {}, sa = {
11575
11587
  var D = h.transaction([R.dataStoreName], "readwrite");
11576
11588
  R.videoBlob && D.objectStore(R.dataStoreName).put(R.videoBlob, "videoBlob"), R.gifBlob && D.objectStore(R.dataStoreName).put(R.gifBlob, "gifBlob"), R.audioBlob && D.objectStore(R.dataStoreName).put(R.audioBlob, "audioBlob");
11577
11589
  function s(q) {
11578
- D.objectStore(R.dataStoreName).get(q).onsuccess = function(te) {
11579
- R.callback && R.callback(te.target.result, q);
11590
+ D.objectStore(R.dataStoreName).get(q).onsuccess = function(ae) {
11591
+ R.callback && R.callback(ae.target.result, q);
11580
11592
  };
11581
11593
  }
11582
11594
  s("audioBlob"), s("videoBlob"), s("gifBlob");
@@ -11695,13 +11707,13 @@ var o0 = {}, sa = {
11695
11707
  return setTimeout(function() {
11696
11708
  ce(pe);
11697
11709
  }, 100);
11698
- te = re(ce), typeof me === void 0 && (me = pe), !(pe - me < 90) && (!h && q.paused && q.play(), h || D.drawImage(q, 0, 0, Y.width, Y.height), e.onGifPreview && e.onGifPreview(Y.toDataURL("image/png")), be.addFrame(D), me = pe);
11710
+ ae = K(ce), typeof me === void 0 && (me = pe), !(pe - me < 90) && (!h && q.paused && q.play(), h || D.drawImage(q, 0, 0, Y.width, Y.height), e.onGifPreview && e.onGifPreview(Y.toDataURL("image/png")), be.addFrame(D), me = pe);
11699
11711
  }
11700
11712
  }
11701
- te = re(ce), e.initCallback && e.initCallback();
11713
+ ae = K(ce), e.initCallback && e.initCallback();
11702
11714
  }, this.stop = function(ce) {
11703
11715
  ce = ce || function() {
11704
- }, te && ye(te), this.blob = new Blob([new Uint8Array(be.stream().bin)], {
11716
+ }, ae && ye(ae), this.blob = new Blob([new Uint8Array(be.stream().bin)], {
11705
11717
  type: "image/gif"
11706
11718
  }), ce(this.blob), be.stream().bin = [];
11707
11719
  };
@@ -11728,7 +11740,7 @@ var o0 = {}, sa = {
11728
11740
  s = !0;
11729
11741
  }, $e(R, q), q.play();
11730
11742
  }
11731
- var te = null, me, be, ne = this;
11743
+ var ae = null, me, be, ne = this;
11732
11744
  }
11733
11745
  typeof r < "u" && (r.GifRecorder = qe);
11734
11746
  function _t(R, e) {
@@ -11747,9 +11759,9 @@ var o0 = {}, sa = {
11747
11759
  }
11748
11760
  }
11749
11761
  }, document.createElement = document.captureStream = document.mozCaptureStream = function() {
11750
- var ee = {
11762
+ var te = {
11751
11763
  getContext: function() {
11752
- return ee;
11764
+ return te;
11753
11765
  },
11754
11766
  play: function() {
11755
11767
  },
@@ -11762,7 +11774,7 @@ var o0 = {}, sa = {
11762
11774
  },
11763
11775
  style: {}
11764
11776
  };
11765
- return ee;
11777
+ return te;
11766
11778
  }, U.HTMLVideoElement = function() {
11767
11779
  }), typeof location > "u" && (U.location = {
11768
11780
  protocol: "file:",
@@ -11786,48 +11798,48 @@ var o0 = {}, sa = {
11786
11798
  typeof s > "u" && (typeof webkitAudioContext < "u" && (s = webkitAudioContext), typeof mozAudioContext < "u" && (s = mozAudioContext));
11787
11799
  var q = window.URL;
11788
11800
  typeof q > "u" && typeof webkitURL < "u" && (q = webkitURL), typeof navigator < "u" && typeof navigator.getUserMedia > "u" && (typeof navigator.webkitGetUserMedia < "u" && (navigator.getUserMedia = navigator.webkitGetUserMedia), typeof navigator.mozGetUserMedia < "u" && (navigator.getUserMedia = navigator.mozGetUserMedia));
11789
- var te = window.MediaStream;
11790
- typeof te > "u" && typeof webkitMediaStream < "u" && (te = webkitMediaStream), typeof te < "u" && typeof te.prototype.stop > "u" && (te.prototype.stop = function() {
11801
+ var ae = window.MediaStream;
11802
+ typeof ae > "u" && typeof webkitMediaStream < "u" && (ae = webkitMediaStream), typeof ae < "u" && typeof ae.prototype.stop > "u" && (ae.prototype.stop = function() {
11791
11803
  this.getTracks().forEach(function(U) {
11792
11804
  U.stop();
11793
11805
  });
11794
11806
  });
11795
11807
  var me = {};
11796
11808
  typeof s < "u" ? me.AudioContext = s : typeof webkitAudioContext < "u" && (me.AudioContext = webkitAudioContext);
11797
- function be(U, ee) {
11798
- "srcObject" in ee ? ee.srcObject = U : "mozSrcObject" in ee ? ee.mozSrcObject = U : ee.srcObject = U;
11809
+ function be(U, te) {
11810
+ "srcObject" in te ? te.srcObject = U : "mozSrcObject" in te ? te.mozSrcObject = U : te.srcObject = U;
11799
11811
  }
11800
11812
  this.startDrawingFrames = function() {
11801
11813
  ne();
11802
11814
  };
11803
11815
  function ne() {
11804
11816
  if (!b) {
11805
- var U = h.length, ee = !1, c = [];
11817
+ var U = h.length, te = !1, c = [];
11806
11818
  if (h.forEach(function(P) {
11807
- P.stream || (P.stream = {}), P.stream.fullcanvas ? ee = P : c.push(P);
11808
- }), ee)
11809
- S.width = ee.stream.width, S.height = ee.stream.height;
11819
+ P.stream || (P.stream = {}), P.stream.fullcanvas ? te = P : c.push(P);
11820
+ }), te)
11821
+ S.width = te.stream.width, S.height = te.stream.height;
11810
11822
  else if (c.length) {
11811
11823
  S.width = U > 1 ? c[0].width * 2 : c[0].width;
11812
11824
  var N = 1;
11813
11825
  (U === 3 || U === 4) && (N = 2), (U === 5 || U === 6) && (N = 3), (U === 7 || U === 8) && (N = 4), (U === 9 || U === 10) && (N = 5), S.height = c[0].height * N;
11814
11826
  } else
11815
11827
  S.width = D.width || 360, S.height = D.height || 240;
11816
- ee && ee instanceof HTMLVideoElement && ce(ee), c.forEach(function(P, T) {
11828
+ te && te instanceof HTMLVideoElement && ce(te), c.forEach(function(P, T) {
11817
11829
  ce(P, T);
11818
11830
  }), setTimeout(ne, D.frameInterval);
11819
11831
  }
11820
11832
  }
11821
- function ce(U, ee) {
11833
+ function ce(U, te) {
11822
11834
  if (!b) {
11823
11835
  var c = 0, N = 0, P = U.width, T = U.height;
11824
- ee === 1 && (c = U.width), ee === 2 && (N = U.height), ee === 3 && (c = U.width, N = U.height), ee === 4 && (N = U.height * 2), ee === 5 && (c = U.width, N = U.height * 2), ee === 6 && (N = U.height * 3), ee === 7 && (c = U.width, N = U.height * 3), typeof U.stream.left < "u" && (c = U.stream.left), typeof U.stream.top < "u" && (N = U.stream.top), typeof U.stream.width < "u" && (P = U.stream.width), typeof U.stream.height < "u" && (T = U.stream.height), Y.drawImage(U, c, N, P, T), typeof U.stream.onRender == "function" && U.stream.onRender(Y, c, N, P, T, ee);
11836
+ te === 1 && (c = U.width), te === 2 && (N = U.height), te === 3 && (c = U.width, N = U.height), te === 4 && (N = U.height * 2), te === 5 && (c = U.width, N = U.height * 2), te === 6 && (N = U.height * 3), te === 7 && (c = U.width, N = U.height * 3), typeof U.stream.left < "u" && (c = U.stream.left), typeof U.stream.top < "u" && (N = U.stream.top), typeof U.stream.width < "u" && (P = U.stream.width), typeof U.stream.height < "u" && (T = U.stream.height), Y.drawImage(U, c, N, P, T), typeof U.stream.onRender == "function" && U.stream.onRender(Y, c, N, P, T, te);
11825
11837
  }
11826
11838
  }
11827
11839
  function pe() {
11828
11840
  b = !1;
11829
- var U = se(), ee = G();
11830
- return ee && ee.getTracks().filter(function(c) {
11841
+ var U = se(), te = G();
11842
+ return te && te.getTracks().filter(function(c) {
11831
11843
  return c.kind === "audio";
11832
11844
  }).forEach(function(c) {
11833
11845
  U.addTrack(c);
@@ -11839,50 +11851,50 @@ var o0 = {}, sa = {
11839
11851
  we();
11840
11852
  var U;
11841
11853
  "captureStream" in S ? U = S.captureStream() : "mozCaptureStream" in S ? U = S.mozCaptureStream() : D.disableLogs || console.error("Upgrade to latest Chrome or otherwise enable this flag: chrome://flags/#enable-experimental-web-platform-features");
11842
- var ee = new te();
11854
+ var te = new ae();
11843
11855
  return U.getTracks().filter(function(c) {
11844
11856
  return c.kind === "video";
11845
11857
  }).forEach(function(c) {
11846
- ee.addTrack(c);
11847
- }), S.stream = ee, ee;
11858
+ te.addTrack(c);
11859
+ }), S.stream = te, te;
11848
11860
  }
11849
11861
  function G() {
11850
11862
  me.AudioContextConstructor || (me.AudioContextConstructor = new me.AudioContext()), D.audioContext = me.AudioContextConstructor, D.audioSources = [], D.useGainNode === !0 && (D.gainNode = D.audioContext.createGain(), D.gainNode.connect(D.audioContext.destination), D.gainNode.gain.value = 0);
11851
11863
  var U = 0;
11852
- if (R.forEach(function(ee) {
11853
- if (ee.getTracks().filter(function(N) {
11864
+ if (R.forEach(function(te) {
11865
+ if (te.getTracks().filter(function(N) {
11854
11866
  return N.kind === "audio";
11855
11867
  }).length) {
11856
11868
  U++;
11857
- var c = D.audioContext.createMediaStreamSource(ee);
11869
+ var c = D.audioContext.createMediaStreamSource(te);
11858
11870
  D.useGainNode === !0 && c.connect(D.gainNode), D.audioSources.push(c);
11859
11871
  }
11860
11872
  }), !!U)
11861
- return D.audioDestination = D.audioContext.createMediaStreamDestination(), D.audioSources.forEach(function(ee) {
11862
- ee.connect(D.audioDestination);
11873
+ return D.audioDestination = D.audioContext.createMediaStreamDestination(), D.audioSources.forEach(function(te) {
11874
+ te.connect(D.audioDestination);
11863
11875
  }), D.audioDestination.stream;
11864
11876
  }
11865
11877
  function ve(U) {
11866
- var ee = document.createElement("video");
11867
- return be(U, ee), ee.className = e, ee.muted = !0, ee.volume = 0, ee.width = U.width || D.width || 360, ee.height = U.height || D.height || 240, ee.play(), ee;
11878
+ var te = document.createElement("video");
11879
+ return be(U, te), te.className = e, te.muted = !0, te.volume = 0, te.width = U.width || D.width || 360, te.height = U.height || D.height || 240, te.play(), te;
11868
11880
  }
11869
11881
  this.appendStreams = function(U) {
11870
11882
  if (!U)
11871
11883
  throw "First parameter is required.";
11872
- U instanceof Array || (U = [U]), U.forEach(function(ee) {
11873
- var c = new te();
11874
- if (ee.getTracks().filter(function(T) {
11884
+ U instanceof Array || (U = [U]), U.forEach(function(te) {
11885
+ var c = new ae();
11886
+ if (te.getTracks().filter(function(T) {
11875
11887
  return T.kind === "video";
11876
11888
  }).length) {
11877
- var N = ve(ee);
11878
- N.stream = ee, h.push(N), c.addTrack(ee.getTracks().filter(function(T) {
11889
+ var N = ve(te);
11890
+ N.stream = te, h.push(N), c.addTrack(te.getTracks().filter(function(T) {
11879
11891
  return T.kind === "video";
11880
11892
  })[0]);
11881
11893
  }
11882
- if (ee.getTracks().filter(function(T) {
11894
+ if (te.getTracks().filter(function(T) {
11883
11895
  return T.kind === "audio";
11884
11896
  }).length) {
11885
- var P = D.audioContext.createMediaStreamSource(ee);
11897
+ var P = D.audioContext.createMediaStreamSource(te);
11886
11898
  D.audioDestination = D.audioContext.createMediaStreamDestination(), P.connect(D.audioDestination), c.addTrack(D.audioDestination.stream.getTracks().filter(function(T) {
11887
11899
  return T.kind === "audio";
11888
11900
  })[0]);
@@ -11897,12 +11909,12 @@ var o0 = {}, sa = {
11897
11909
  U && !(U instanceof Array) && (U = [U]), we(U);
11898
11910
  };
11899
11911
  function we(U) {
11900
- h = [], U = U || R, U.forEach(function(ee) {
11901
- if (ee.getTracks().filter(function(N) {
11912
+ h = [], U = U || R, U.forEach(function(te) {
11913
+ if (te.getTracks().filter(function(N) {
11902
11914
  return N.kind === "video";
11903
11915
  }).length) {
11904
- var c = ve(ee);
11905
- c.stream = ee, h.push(c);
11916
+ var c = ve(te);
11917
+ c.stream = te, h.push(c);
11906
11918
  }
11907
11919
  });
11908
11920
  }
@@ -12119,10 +12131,10 @@ var o0 = {}, sa = {
12119
12131
  function h() {
12120
12132
  return new ReadableStream({
12121
12133
  start: function(q) {
12122
- var te = document.createElement("canvas"), me = document.createElement("video"), be = !0;
12134
+ var ae = document.createElement("canvas"), me = document.createElement("video"), be = !0;
12123
12135
  me.srcObject = R, me.muted = !0, me.height = e.height, me.width = e.width, me.volume = 0, me.onplaying = function() {
12124
- te.width = e.width, te.height = e.height;
12125
- var ne = te.getContext("2d"), ce = 1e3 / e.frameRate, pe = setInterval(function() {
12136
+ ae.width = e.width, ae.height = e.height;
12137
+ var ne = ae.getContext("2d"), ce = 1e3 / e.frameRate, pe = setInterval(function() {
12126
12138
  if (o && (clearInterval(pe), q.close()), be && (be = !1, e.onVideoProcessStarted && e.onVideoProcessStarted()), ne.drawImage(me, 0, 0), q._controlledReadableStream.state !== "closed")
12127
12139
  try {
12128
12140
  q.enqueue(
@@ -12136,8 +12148,8 @@ var o0 = {}, sa = {
12136
12148
  });
12137
12149
  }
12138
12150
  var b;
12139
- function S(q, te) {
12140
- if (!e.workerPath && !te) {
12151
+ function S(q, ae) {
12152
+ if (!e.workerPath && !ae) {
12141
12153
  o = !1, fetch(
12142
12154
  "https://unpkg.com/webm-wasm@latest/dist/webm-worker.js"
12143
12155
  ).then(function(be) {
@@ -12147,8 +12159,8 @@ var o0 = {}, sa = {
12147
12159
  });
12148
12160
  return;
12149
12161
  }
12150
- if (!e.workerPath && te instanceof ArrayBuffer) {
12151
- var me = new Blob([te], {
12162
+ if (!e.workerPath && ae instanceof ArrayBuffer) {
12163
+ var me = new Blob([ae], {
12152
12164
  type: "text/javascript"
12153
12165
  });
12154
12166
  e.workerPath = ke.createObjectURL(me);
@@ -12185,18 +12197,18 @@ var o0 = {}, sa = {
12185
12197
  q && q();
12186
12198
  return;
12187
12199
  }
12188
- b.addEventListener("message", function(te) {
12189
- te.data === null && (b.terminate(), b = null, q && q());
12200
+ b.addEventListener("message", function(ae) {
12201
+ ae.data === null && (b.terminate(), b = null, q && q());
12190
12202
  }), b.postMessage(null);
12191
12203
  }
12192
12204
  var s = [];
12193
12205
  this.stop = function(q) {
12194
12206
  o = !0;
12195
- var te = this;
12207
+ var ae = this;
12196
12208
  D(function() {
12197
- te.blob = new Blob(s, {
12209
+ ae.blob = new Blob(s, {
12198
12210
  type: "video/webm"
12199
- }), q(te.blob);
12211
+ }), q(ae.blob);
12200
12212
  });
12201
12213
  }, this.name = "WebAssemblyRecorder", this.toString = function() {
12202
12214
  return this.name;
@@ -12318,10 +12330,10 @@ const fa = {
12318
12330
  this.$emit("finish", [m]), this.$emit("cancel");
12319
12331
  },
12320
12332
  dataURLtoFile(_, r) {
12321
- let m = _.split(","), p = m[0].match(/:(.*?);/)[1], J = atob(m[1]), Z = J.length, re = new Uint8Array(Z);
12333
+ let m = _.split(","), p = m[0].match(/:(.*?);/)[1], $ = atob(m[1]), Z = $.length, K = new Uint8Array(Z);
12322
12334
  for (; Z--; )
12323
- re[Z] = J.charCodeAt(Z);
12324
- return new File([re], r, { type: p });
12335
+ K[Z] = $.charCodeAt(Z);
12336
+ return new File([K], r, { type: p });
12325
12337
  },
12326
12338
  handleCancel() {
12327
12339
  this.$emit("cancel");
@@ -12489,7 +12501,7 @@ const ya = {
12489
12501
  this.$emit("change", r);
12490
12502
  },
12491
12503
  // 标题失去焦点
12492
- titleBlur(_) {
12504
+ handleTitleBlur(_) {
12493
12505
  this.$emit("change", {
12494
12506
  type: "title",
12495
12507
  data: {
@@ -12531,46 +12543,46 @@ const ya = {
12531
12543
  },
12532
12544
  // 移动端=====================
12533
12545
  setToParent() {
12534
- var J;
12546
+ var $;
12535
12547
  let _ = new KeyboardEvent("keydown", {
12536
12548
  bubbles: !0,
12537
12549
  cancelable: !0,
12538
12550
  key: "Tab",
12539
12551
  shiftKey: !0
12540
- }), m = (J = window.getSelection().baseNode) == null ? void 0 : J.parentNode;
12552
+ }), m = ($ = window.getSelection().baseNode) == null ? void 0 : $.parentNode;
12541
12553
  const p = St.get("currentId");
12542
12554
  !m && p && (m = Nt({ uuid: p })), m.dispatchEvent(_);
12543
12555
  },
12544
12556
  setToChild() {
12545
- var J;
12557
+ var $;
12546
12558
  let _ = new KeyboardEvent("keydown", {
12547
12559
  bubbles: !0,
12548
12560
  cancelable: !0,
12549
12561
  key: "Tab",
12550
12562
  shiftKey: !1
12551
- }), m = (J = window.getSelection().baseNode) == null ? void 0 : J.parentNode;
12563
+ }), m = ($ = window.getSelection().baseNode) == null ? void 0 : $.parentNode;
12552
12564
  const p = St.get("currentId");
12553
12565
  !m && p && (m = Nt({ uuid: p })), m.dispatchEvent(_);
12554
12566
  },
12555
12567
  setToUp() {
12556
- var J;
12568
+ var $;
12557
12569
  let _ = new KeyboardEvent("keydown", {
12558
12570
  bubbles: !0,
12559
12571
  cancelable: !0,
12560
12572
  key: "ArrowUp",
12561
12573
  shiftKey: !1
12562
- }), m = (J = window.getSelection().baseNode) == null ? void 0 : J.parentNode;
12574
+ }), m = ($ = window.getSelection().baseNode) == null ? void 0 : $.parentNode;
12563
12575
  const p = St.get("currentId");
12564
12576
  !m && p && (m = Nt({ uuid: p })), m.dispatchEvent(_);
12565
12577
  },
12566
12578
  setToDown() {
12567
- var J;
12579
+ var $;
12568
12580
  let _ = new KeyboardEvent("keydown", {
12569
12581
  bubbles: !0,
12570
12582
  cancelable: !0,
12571
12583
  key: "ArrowDown",
12572
12584
  shiftKey: !1
12573
- }), m = (J = window.getSelection().baseNode) == null ? void 0 : J.parentNode;
12585
+ }), m = ($ = window.getSelection().baseNode) == null ? void 0 : $.parentNode;
12574
12586
  const p = St.get("currentId");
12575
12587
  !m && p && (m = Nt({ uuid: p })), m.dispatchEvent(_);
12576
12588
  },
@@ -12593,14 +12605,14 @@ const ya = {
12593
12605
  if (!_.length)
12594
12606
  return;
12595
12607
  const m = Array.from(_).map((p) => {
12596
- const J = T0(p.type), Z = URL.createObjectURL(p);
12597
- switch (J.mainType) {
12608
+ const $ = T0(p.type), Z = URL.createObjectURL(p);
12609
+ switch ($.mainType) {
12598
12610
  case "image":
12599
12611
  case "audio":
12600
12612
  case "video":
12601
12613
  return {
12602
12614
  uuid: Ct(),
12603
- type: J.mainType,
12615
+ type: $.mainType,
12604
12616
  content: Z,
12605
12617
  pending: !0,
12606
12618
  hash: this.hash
@@ -12619,9 +12631,9 @@ const ya = {
12619
12631
  });
12620
12632
  r ? r(m) : m.forEach((p) => {
12621
12633
  this.$refs.treeEditor.appendNode(p);
12622
- }), x0.uploadFile(_, (p, J) => {
12623
- J && J.forEach((Z, re) => {
12624
- const ie = m[re], ye = Z.data;
12634
+ }), x0.uploadFile(_, (p, $) => {
12635
+ $ && $.forEach((Z, K) => {
12636
+ const ie = m[K], ye = Z.data;
12625
12637
  if (Z.code === 0) {
12626
12638
  const { pending: Re, hash: ke, ...Oe } = ie;
12627
12639
  switch (Oe.content = ye.url, this.$refs.treeEditor.updateNode(Oe), ie.type) {
@@ -12647,8 +12659,8 @@ var xa = function() {
12647
12659
  "record-tree": !0,
12648
12660
  "record-tree-mobile": r.isMobile
12649
12661
  }, on: { mouseenter: r.hideHoverNote } }, [r._t("default"), m("div", { staticClass: "record-tree-title-bar" }, [r.tags.length ? m("Picker", { scopedSlots: r._u([r.readOnly ? null : { key: "default", fn: function() {
12650
- return [m("div", { staticClass: "record-tree-popper-content", style: { width: r.tagConfig.popW, height: r.tagConfig.popH } }, r._l(r.tags, function(p, J) {
12651
- return m("span", { key: J, staticClass: "record-tree-popper-content-item", on: { click: function(Z) {
12662
+ return [m("div", { staticClass: "record-tree-popper-content", style: { width: r.tagConfig.popW, height: r.tagConfig.popH } }, r._l(r.tags, function(p, $) {
12663
+ return m("span", { key: $, staticClass: "record-tree-popper-content-item", on: { click: function(Z) {
12652
12664
  return r.tagSelect(p);
12653
12665
  } } }, [r.getSvgUrl(p) ? m("inline-svg", { staticClass: "record-tree-svg", style: { backgroundColor: p.color }, attrs: { src: r.getSvgUrl(p), width: r.tagConfig.tagSize, height: r.tagConfig.tagSize } }) : m("span", { staticClass: "record-tree-empty-icon", style: {
12654
12666
  width: r.tagConfig.tagSize + "px",
@@ -12668,7 +12680,7 @@ var xa = function() {
12668
12680
  } })], 1)];
12669
12681
  }, proxy: !0 }], null, !0) }) : r._e(), r.isMobile && r.titleEmpty ? m("div", { staticClass: "record-tree-placeholder", on: { click: function(p) {
12670
12682
  return r.$refs.treeTitle.focus();
12671
- } } }, [r._v(" 请输入标题 ")]) : r._e(), m("div", { ref: "treeTitle", staticClass: "record-tree-title", attrs: { contenteditable: !r.readOnly, id: "tree_title" }, domProps: { innerHTML: r._s(r.note.title) }, on: { blur: r.titleBlur, click: function(p) {
12683
+ } } }, [r._v(" 请输入标题 ")]) : r._e(), m("div", { ref: "treeTitle", staticClass: "record-tree-title", attrs: { contenteditable: !r.readOnly, id: "tree_title" }, domProps: { innerHTML: r._s(r.note.title) }, on: { blur: r.handleTitleBlur, click: function(p) {
12672
12684
  p.stopPropagation();
12673
12685
  }, keydown: function(p) {
12674
12686
  return !p.type.indexOf("key") && r._k(p.keyCode, "enter", 13, p.key, "Enter") ? null : (p.preventDefault(), r.handleTitleEnter.apply(null, arguments));