@codernote/record-tree 2.5.6 → 2.5.8
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.
- package/dist/index.js +399 -391
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.color-panel[data-v-d2cde42f]{background:#fff;border:1px solid #f2f2f2;width:164px;padding:5px 5px 0}.color-panel ul[data-v-d2cde42f]{list-style-type:none;margin:0}.color-panel ul li[data-v-d2cde42f]{display:inline-block;margin:0 5px;width:20px;height:20px;border-radius:100%;border:1px solid #f2f2f2;display:inline-flex;align-items:center;justify-content:center}.node-complex[data-v-d8fa8371]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-d8fa8371]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-d8fa8371]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-d8fa8371]{display:block}.node-image img[data-v-d8fa8371]{outline:none}.node-audio[data-v-d8fa8371]{width:300px}.node-audio audio[data-v-d8fa8371]{width:300px;outline:none}.node-video video[data-v-d8fa8371]{outline:none;-o-object-fit:cover;object-fit:cover;background-color:#000}.node-del[data-v-d8fa8371]{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-d8fa8371]:before,.node-del[data-v-d8fa8371]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-d8fa8371]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-d8fa8371]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-d8fa8371]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-d8fa8371]{flex:1}.node-file-left h6[data-v-d8fa8371]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-d8fa8371]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-d8fa8371]{color:#52a770;font-size:14px}@keyframes blinkBorder-d8fa8371{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-d8fa8371]:focus{animation:blinkBorder-d8fa8371 1s infinite}.fullscreen-handle[data-v-d8fa8371]{width:15px;height:15px;position:absolute;bottom:0;right:16px;cursor:pointer;background:#fff9}.resize-handle[data-v-d8fa8371]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:#fff9}.resize-handle svg[data-v-d8fa8371]{cursor:se-resize}.ProseMirror{outline:none}.node-div[data-v-00a3cb25]{display:flex;align-items:center;position:relative;margin-bottom:8px}.node-div>div[data-v-00a3cb25]{flex:1}.node-icon[data-v-00a3cb25]{touch-action:manipulation;position:relative;width:21px;height:21px;border-radius:100%;box-sizing:border-box;border:5px solid #fff;background-color:#fff;cursor:pointer;align-self:flex-start}.node-icon-with-children[data-v-00a3cb25]:before{content:"";position:absolute;top:-20px;right:-30px;bottom:-10px;left:-20px;z-index:5}.node-icon-todo[data-v-00a3cb25]{border-radius:0}.node-icon .node-circle[data-v-00a3cb25]{display:block;position:absolute;width:7px;height:7px;left:50%;top:50%;transform:translate(-50%) translateY(-50%);border-radius:10px;background-color:#eee}.node-finished[data-v-00a3cb25]{text-decoration:line-through;color:#999}.node-ul[data-v-0b727349]{display:grid;grid-template-rows:1fr;transition:.25s grid-template-rows ease}.node-ul ul[data-v-0b727349]{background-color:#fff;margin:0;padding:0;list-style:none;overflow:hidden}.node-li[data-v-0b727349]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-0b727349] .sublevel .node-li{margin-left:15px}[data-v-0b727349] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute;z-index:100}[data-v-0b727349] .drag-over-center{background-color:#eee}[data-v-0b727349] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0;z-index:100}[data-v-0b727349] .has-child:not(.collapsed) .drag-over-bottom:after{left:15px}.collapsed>.node-ul[data-v-0b727349]{grid-template-rows:0fr}[data-v-0b727349] .collapsed .node-icon .node-line{display:none}[data-v-0b727349] .collapsed.has-child>.node-div>.node-icon{background-color:#ddd}.tree-title[data-v-0b727349]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-0b727349] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-0b727349] .node-li.dragging .node-icon .node-line{display:none}[data-v-0b727349] .has-child>.node-div>.node-icon .node-line{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-0b727349] .has-child>.node-div>.node-icon:hover .node-line{background-color:var(--line-color)}.record-tree-popper-content{display:flex;flex-wrap:wrap;padding:10px;box-shadow:0 2px 12px #1d1c1c1f;border:1px solid rgba(29,28,28,.12);border-radius:5px;overflow:hidden;background:#fff;z-index:9999}.record-tree-popper-content-item{padding:8px 10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.record-tree-popper-content-item.active{background:#f2f2f2}.record-tree-title-bar{position:relative;display:flex;margin-bottom:10px}.record-tree-title{padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%}.record-tree-popper-reference{display:flex;position:absolute;top:0;left:0;text-align:center;border-radius:9999px;color:#fff}.record-tree-empty-icon{display:inline-block;border-radius:9999px}.record-tree-title .node-text{margin-left:0!important}.record-tree-title-bar .popper{transform:translate3d(0,22px,0)!important}.record-tree-title-finished{text-decoration:line-through;color:#999}.record-audio[data-v-e59bd63b]{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-e59bd63b]{width:300px;height:40px}.record-audio .audio-item[data-v-e59bd63b]{margin-top:10px;display:flex;align-items:center}.record-audio .audio-item a[data-v-e59bd63b]{color:#52a770;margin-left:10px;font-size:12px;cursor:pointer}.record-audio .audio-text[data-v-e59bd63b]{background:#f5f5f5;margin-top:10px;padding:8px 12px;border-radius:5px}.record-audio .buttons[data-v-e59bd63b]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-e59bd63b]{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-e59bd63b]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-e59bd63b]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-e59bd63b]{border:1px solid #eee}.record-audio .buttons .oper[data-v-e59bd63b]{margin-right:10px}.record-audio .main[data-v-e59bd63b]{display:flex;align-items:center}.record-audio .duration[data-v-e59bd63b]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-e59bd63b]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-e59bd63b]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-audio-mobile[data-v-e59bd63b]{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-e59bd63b]{flex:1;height:30px}.record-audio-mobile .oper[data-v-e59bd63b]{margin-right:10px}.record-video[data-v-9c809fcc]{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-9c809fcc]{width:300px}.buttons[data-v-9c809fcc]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-9c809fcc]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-9c809fcc]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-9c809fcc]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-9c809fcc]{border:1px solid #eee}.buttons .oper[data-v-9c809fcc]{margin-right:10px}.wrap[data-v-9c809fcc]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-9c809fcc]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-video[data-v-69fc6ef1]{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-69fc6ef1]{width:200px}.img-item[data-v-69fc6ef1]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-69fc6ef1]{width:200px}.record-content[data-v-69fc6ef1]{display:flex}.buttons[data-v-69fc6ef1]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-69fc6ef1]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-69fc6ef1]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-69fc6ef1]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-69fc6ef1]{border:1px solid #eee}.buttons .oper[data-v-69fc6ef1]{margin-right:10px}.wrap[data-v-69fc6ef1]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-69fc6ef1]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-tree-mobile .record-tree{height:calc(100vh - 45px);overflow-y:scroll}.record-tree-mobile .record-tree-main{padding-left:0;padding-right:0}.record-tree-mobile .record-tree-options{padding:12px 0;display:flex;position:fixed}.record-tree-mobile .node-icon{margin-right:8px;border:3px solid #fff}.record-tree-mobile .node-icon .node-circle{width:10px;height:10px}.record-tree-mobile .node-file-wrap{width:200px}.record-tree-mobile .node-file-right{display:none}.record-tree-mobile .node-image img{width:auto;max-height:80px}.record-tree-mobile .node-audio,.record-tree-mobile .node-video{width:200px}.record-tree-mobile .node-audio audio{width:200px;outline:none}.record-tree-mobile .node-video video{width:200px;outline:none}.record-tree-container{position:relative;height:100%}.record-tree-main{padding-left:15px;padding-right:15px;overflow:scroll;flex:1}.record-tree{position:relative;padding-bottom:40px;display:flex;flex-direction:column;overflow:hidden;height:100%}.record-tree.record-tree-nobar{padding-bottom:0}.record-tree-options{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-between;padding:5px 0;background:#fff;border-top:1px dotted #ddd;align-items:center}.record-tree-option-left{display:flex;flex:1;overflow:hidden}.record-tree-option-left-fixed{display:flex;position:relative;align-items:center;padding:0 10px}.record-tree-option-left-fixed:after{content:"";position:absolute;right:0;width:1px;background:#eee;height:20px;top:50%;transform:translateY(-50%)}.record-tree-option-left-scroll{display:flex;padding:0 10px;flex:1;overflow-x:scroll;align-items:center}.record-tree-option-left-scroll::-webkit-scrollbar{display:none}.record-tree-option-right{display:flex;align-items:center;justify-content:center;padding:0 10px;font-size:16px;position:relative}.record-tree-option-right:before{content:"";position:absolute;left:0;width:1px;background:#eee;height:20px;top:50%;transform:translateY(-50%)}.record-tree-option-item{margin:0 5px;cursor:pointer;display:flex;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}img:-webkit-full-screen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain}img:fullscreen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;-o-object-fit:contain;object-fit:contain}.record-tree .node-text{flex:1;border:none;outline:none;word-break:break-all;overflow:hidden;-webkit-user-select:text;-moz-user-select:text;user-select:text}.record-tree .node-text a{color:#0076ff;cursor:pointer}.record-tree .node-text mark{background-color:transparent;text-decoration:underline;text-decoration-color:#9acd32;text-decoration-thickness:2px;text-underline-offset:2px}.record-tree .node-text p{line-height:1.3}.date-popover{display:block;padding:5px 10px;background:#333;border-radius:4px;position:fixed;z-index:9999;transform:translate(-50%,-120%);font-size:12px;color:#666;text-align:center;transition:opacity .3s;color:#fff}.date-popover:after{content:"";position:absolute;top:95%;left:50%;transform:translate(-50%);border-width:6px;border-style:solid;border-color:#333 transparent transparent transparent}.tiptap p.is-editor-empty:first-child:before{color:#adb5bd;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.top-bar{display:flex}.top-bar-left{flex:1}.top-bar-right{width:50px;display:flex;justify-content:center}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import { openBlock as st, createElementBlock as ft, createElementVNode as et, createVNode as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.color-panel[data-v-d2cde42f]{background:#fff;border:1px solid #f2f2f2;width:164px;padding:5px 5px 0}.color-panel ul[data-v-d2cde42f]{list-style-type:none;margin:0}.color-panel ul li[data-v-d2cde42f]{display:inline-block;margin:0 5px;width:20px;height:20px;border-radius:100%;border:1px solid #f2f2f2;display:inline-flex;align-items:center;justify-content:center}.node-complex[data-v-d8fa8371]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-d8fa8371]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-d8fa8371]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-d8fa8371]{display:block}.node-image img[data-v-d8fa8371]{outline:none}.node-audio[data-v-d8fa8371]{width:300px}.node-audio audio[data-v-d8fa8371]{width:300px;outline:none}.node-video video[data-v-d8fa8371]{outline:none;-o-object-fit:cover;object-fit:cover;background-color:#000}.node-del[data-v-d8fa8371]{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-d8fa8371]:before,.node-del[data-v-d8fa8371]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-d8fa8371]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-d8fa8371]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-d8fa8371]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-d8fa8371]{flex:1}.node-file-left h6[data-v-d8fa8371]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-d8fa8371]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-d8fa8371]{color:#52a770;font-size:14px}@keyframes blinkBorder-d8fa8371{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-d8fa8371]:focus{animation:blinkBorder-d8fa8371 1s infinite}.fullscreen-handle[data-v-d8fa8371]{width:15px;height:15px;position:absolute;bottom:0;right:16px;cursor:pointer;background:#fff9}.resize-handle[data-v-d8fa8371]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:#fff9}.resize-handle svg[data-v-d8fa8371]{cursor:se-resize}.ProseMirror{outline:none}.node-div[data-v-00a3cb25]{display:flex;align-items:center;position:relative;margin-bottom:8px}.node-div>div[data-v-00a3cb25]{flex:1}.node-icon[data-v-00a3cb25]{touch-action:manipulation;position:relative;width:21px;height:21px;border-radius:100%;box-sizing:border-box;border:5px solid #fff;background-color:#fff;cursor:pointer;align-self:flex-start}.node-icon-with-children[data-v-00a3cb25]:before{content:"";position:absolute;top:-20px;right:-30px;bottom:-10px;left:-20px;z-index:5}.node-icon-todo[data-v-00a3cb25]{border-radius:0}.node-icon .node-circle[data-v-00a3cb25]{display:block;position:absolute;width:7px;height:7px;left:50%;top:50%;transform:translate(-50%) translateY(-50%);border-radius:10px;background-color:#eee}.node-finished[data-v-00a3cb25]{text-decoration:line-through;color:#999}.node-ul[data-v-f0322506]{display:grid;grid-template-rows:1fr;transition:.25s grid-template-rows ease}.node-ul ul[data-v-f0322506]{background-color:#fff;margin:0;padding:0;list-style:none;overflow:hidden}.node-li[data-v-f0322506]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-f0322506] .sublevel .node-li{margin-left:15px}[data-v-f0322506] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute;z-index:100}[data-v-f0322506] .drag-over-center{background-color:#eee}[data-v-f0322506] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0;z-index:100}[data-v-f0322506] .has-child:not(.collapsed) .drag-over-bottom:after{left:15px}.collapsed>.node-ul[data-v-f0322506]{grid-template-rows:0fr}[data-v-f0322506] .collapsed .node-icon .node-line{display:none}[data-v-f0322506] .collapsed.has-child>.node-div>.node-icon{background-color:#ddd}.tree-title[data-v-f0322506]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-f0322506] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-f0322506] .node-li.dragging .node-icon .node-line{display:none}[data-v-f0322506] .has-child>.node-div>.node-icon .node-line{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-f0322506] .has-child>.node-div>.node-icon:hover .node-line{background-color:var(--line-color)}.record-tree-popper-content{display:flex;flex-wrap:wrap;padding:10px;box-shadow:0 2px 12px #1d1c1c1f;border:1px solid rgba(29,28,28,.12);border-radius:5px;overflow:hidden;background:#fff;z-index:9999}.record-tree-popper-content-item{padding:8px 10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.record-tree-popper-content-item.active{background:#f2f2f2}.record-tree-title-bar{position:relative;display:flex;margin-bottom:10px}.record-tree-title{padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%}.record-tree-popper-reference{display:flex;position:absolute;top:0;left:0;text-align:center;border-radius:9999px;color:#fff}.record-tree-empty-icon{display:inline-block;border-radius:9999px}.record-tree-title .node-text{margin-left:0!important}.record-tree-title-bar .popper{transform:translate3d(0,22px,0)!important}.record-tree-title-finished{text-decoration:line-through;color:#999}.record-audio[data-v-e59bd63b]{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-e59bd63b]{width:300px;height:40px}.record-audio .audio-item[data-v-e59bd63b]{margin-top:10px;display:flex;align-items:center}.record-audio .audio-item a[data-v-e59bd63b]{color:#52a770;margin-left:10px;font-size:12px;cursor:pointer}.record-audio .audio-text[data-v-e59bd63b]{background:#f5f5f5;margin-top:10px;padding:8px 12px;border-radius:5px}.record-audio .buttons[data-v-e59bd63b]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-e59bd63b]{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-e59bd63b]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-e59bd63b]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-e59bd63b]{border:1px solid #eee}.record-audio .buttons .oper[data-v-e59bd63b]{margin-right:10px}.record-audio .main[data-v-e59bd63b]{display:flex;align-items:center}.record-audio .duration[data-v-e59bd63b]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-e59bd63b]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-e59bd63b]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-audio-mobile[data-v-e59bd63b]{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-e59bd63b]{flex:1;height:30px}.record-audio-mobile .oper[data-v-e59bd63b]{margin-right:10px}.record-video[data-v-9c809fcc]{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-9c809fcc]{width:300px}.buttons[data-v-9c809fcc]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-9c809fcc]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-9c809fcc]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-9c809fcc]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-9c809fcc]{border:1px solid #eee}.buttons .oper[data-v-9c809fcc]{margin-right:10px}.wrap[data-v-9c809fcc]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-9c809fcc]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-video[data-v-69fc6ef1]{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-69fc6ef1]{width:200px}.img-item[data-v-69fc6ef1]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-69fc6ef1]{width:200px}.record-content[data-v-69fc6ef1]{display:flex}.buttons[data-v-69fc6ef1]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-69fc6ef1]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-69fc6ef1]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-69fc6ef1]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-69fc6ef1]{border:1px solid #eee}.buttons .oper[data-v-69fc6ef1]{margin-right:10px}.wrap[data-v-69fc6ef1]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-69fc6ef1]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-tree-mobile .record-tree{height:calc(100vh - 45px);overflow-y:scroll}.record-tree-mobile .record-tree-main{padding-left:0;padding-right:0}.record-tree-mobile .record-tree-options{padding:12px 0;display:flex;position:fixed}.record-tree-mobile .node-icon{margin-right:8px;border:3px solid #fff}.record-tree-mobile .node-icon .node-circle{width:10px;height:10px}.record-tree-mobile .node-file-wrap{width:200px}.record-tree-mobile .node-file-right{display:none}.record-tree-mobile .node-image img{width:auto;max-height:80px}.record-tree-mobile .node-audio,.record-tree-mobile .node-video{width:200px}.record-tree-mobile .node-audio audio{width:200px;outline:none}.record-tree-mobile .node-video video{width:200px;outline:none}.record-tree-container{position:relative;height:100%}.record-tree-main{padding-left:15px;padding-right:15px;overflow:scroll;flex:1}.record-tree{position:relative;padding-bottom:40px;display:flex;flex-direction:column;overflow:hidden;height:100%}.record-tree.record-tree-nobar{padding-bottom:0}.record-tree-options{position:absolute;bottom:0;left:0;width:100%;display:flex;justify-content:space-between;padding:5px 0;background:#fff;border-top:1px dotted #ddd;align-items:center}.record-tree-option-left{display:flex;flex:1;overflow:hidden}.record-tree-option-left-fixed{display:flex;position:relative;align-items:center;padding:0 10px}.record-tree-option-left-fixed:after{content:"";position:absolute;right:0;width:1px;background:#eee;height:20px;top:50%;transform:translateY(-50%)}.record-tree-option-left-scroll{display:flex;padding:0 10px;flex:1;overflow-x:scroll;align-items:center}.record-tree-option-left-scroll::-webkit-scrollbar{display:none}.record-tree-option-right{display:flex;align-items:center;justify-content:center;padding:0 10px;font-size:16px;position:relative}.record-tree-option-right:before{content:"";position:absolute;left:0;width:1px;background:#eee;height:20px;top:50%;transform:translateY(-50%)}.record-tree-option-item{margin:0 5px;cursor:pointer;display:flex;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}img:-webkit-full-screen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain}img:fullscreen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;-o-object-fit:contain;object-fit:contain}.record-tree .node-text{flex:1;border:none;outline:none;word-break:break-all;overflow:hidden;-webkit-user-select:text;-moz-user-select:text;user-select:text}.record-tree .node-text a{color:#0076ff;cursor:pointer}.record-tree .node-text mark{background-color:transparent;text-decoration:underline;text-decoration-color:#9acd32;text-decoration-thickness:2px;text-underline-offset:2px}.record-tree .node-text p{line-height:1.3}.date-popover{display:block;padding:5px 10px;background:#333;border-radius:4px;position:fixed;z-index:9999;transform:translate(-50%,-120%);font-size:12px;color:#666;text-align:center;transition:opacity .3s;color:#fff}.date-popover:after{content:"";position:absolute;top:95%;left:50%;transform:translate(-50%);border-width:6px;border-style:solid;border-color:#333 transparent transparent transparent}.tiptap p.is-editor-empty:first-child:before{color:#adb5bd;content:attr(data-placeholder);float:left;height:0;pointer-events:none}.top-bar{display:flex}.top-bar-left{flex:1}.top-bar-right{width:50px;display:flex;justify-content:center}.record-tree-lock{position:absolute;left:0;right:0;top:0;background:#fff6;pointer-events:none;height:100vh}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
import { openBlock as st, createElementBlock as ft, createElementVNode as et, createVNode as gt, unref as Ke, Fragment as b0, renderList as w0, normalizeStyle as qt, reactive as Ta, ref as ct, withModifiers as It, normalizeClass as Ft, createCommentVNode as Ct, toDisplayString as u0, nextTick as Ot, watch as a0, onMounted as F0, onBeforeUnmount as Ma, createBlock as jt, onUnmounted as f0, computed as l0, resolveComponent as Ra, createSlots as Ca, withCtx as y0, pushScopeId as ka, popScopeId as Aa } from "vue";
|
|
3
3
|
import na from "vue3-popper";
|
|
4
4
|
import Bt from "vue-inline-svg";
|
|
5
5
|
import { detectDeviceType as N0, truncateString as Ba, formatBytes as Ea, getTag as ia, isTodoTag as sa, getExt as L0, getTagStyle as oa, uuid as Ut, getTagStyleById as Da, parseMimeType as la, getSize as ua, oss as ca } from "@codernote/utils";
|
|
@@ -74,7 +74,7 @@ const qa = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
74
74
|
return (F, _e) => (st(), ft("div", or, [
|
|
75
75
|
et("ul", null, [
|
|
76
76
|
et("li", null, [
|
|
77
|
-
|
|
77
|
+
gt(Ke(Bt), {
|
|
78
78
|
src: Ke(At).clear,
|
|
79
79
|
width: 16,
|
|
80
80
|
height: 16,
|
|
@@ -83,7 +83,7 @@ const qa = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
83
83
|
]),
|
|
84
84
|
(st(), ft(b0, null, w0(b, (N) => et("li", {
|
|
85
85
|
key: N,
|
|
86
|
-
style:
|
|
86
|
+
style: qt({ backgroundColor: N }),
|
|
87
87
|
onClick: (we) => ue(N)
|
|
88
88
|
}, null, 12, lr)), 64))
|
|
89
89
|
])
|
|
@@ -200,7 +200,7 @@ const hr = ["contenteditable"], vr = {
|
|
|
200
200
|
_e.value.focus();
|
|
201
201
|
}
|
|
202
202
|
});
|
|
203
|
-
function
|
|
203
|
+
function Ne() {
|
|
204
204
|
be.value && be.value.focus();
|
|
205
205
|
}
|
|
206
206
|
function ge(J) {
|
|
@@ -239,9 +239,9 @@ const hr = ["contenteditable"], vr = {
|
|
|
239
239
|
), Ve = ee / ke;
|
|
240
240
|
let Ue = ee, Je = ke;
|
|
241
241
|
const Oe = (Ae) => {
|
|
242
|
-
let He = ee + Ae.clientX - he,
|
|
242
|
+
let He = ee + Ae.clientX - he, Me = ke + Ae.clientY - ie;
|
|
243
243
|
const { origWidth: Pe, origHeight: tt } = F.data.size || {};
|
|
244
|
-
Pe && tt && (He = Math.min(He, Pe),
|
|
244
|
+
Pe && tt && (He = Math.min(He, Pe), Me = Math.min(Me, tt)), He = Math.max(He, 50), Me = Math.max(Me, 50), He / Me > Ve ? (Ue = Me * Ve, Je = Me, we.value.style.height = Je + "px", we.value.style.width = Ue + "px") : (Ue = He, Je = He / Ve, we.value.style.width = He + "px", we.value.style.height = Je + "px");
|
|
245
245
|
}, M = () => {
|
|
246
246
|
document.documentElement.removeEventListener("mousemove", Oe, !1), document.documentElement.removeEventListener("mouseup", M, !1), ue("change", {
|
|
247
247
|
...F.data,
|
|
@@ -264,13 +264,13 @@ const hr = ["contenteditable"], vr = {
|
|
|
264
264
|
contenteditable: !w.readOnly,
|
|
265
265
|
onKeydown: It(ge, ["stop"]),
|
|
266
266
|
onFocusin: It(q, ["stop"]),
|
|
267
|
-
onClick: It(
|
|
267
|
+
onClick: It(Ne, ["stop"])
|
|
268
268
|
}, [
|
|
269
269
|
et("div", {
|
|
270
270
|
contenteditable: !1,
|
|
271
271
|
class: Ft(`node-complex node-${w.data.type}`)
|
|
272
272
|
}, [
|
|
273
|
-
w.readOnly ?
|
|
273
|
+
w.readOnly ? Ct("", !0) : (st(), ft("span", vr)),
|
|
274
274
|
et("div", _r, [
|
|
275
275
|
w.data.type === "image" ? (st(), ft("img", {
|
|
276
276
|
key: 0,
|
|
@@ -279,7 +279,7 @@ const hr = ["contenteditable"], vr = {
|
|
|
279
279
|
src: T(w.data.content),
|
|
280
280
|
width: w.data.size ? w.data.size.width : 80,
|
|
281
281
|
height: w.data.size ? w.data.size.height : 80
|
|
282
|
-
}, null, 8, mr)) :
|
|
282
|
+
}, null, 8, mr)) : Ct("", !0),
|
|
283
283
|
w.data.type === "audio" ? (st(), ft("audio", {
|
|
284
284
|
key: 1,
|
|
285
285
|
ref_key: "resource",
|
|
@@ -287,7 +287,7 @@ const hr = ["contenteditable"], vr = {
|
|
|
287
287
|
src: T(w.data.content),
|
|
288
288
|
controls: "",
|
|
289
289
|
width: "300"
|
|
290
|
-
}, null, 8, pr)) :
|
|
290
|
+
}, null, 8, pr)) : Ct("", !0),
|
|
291
291
|
w.data.type === "video" ? (st(), ft("video", {
|
|
292
292
|
key: 2,
|
|
293
293
|
ref_key: "resource",
|
|
@@ -296,7 +296,7 @@ const hr = ["contenteditable"], vr = {
|
|
|
296
296
|
controls: "",
|
|
297
297
|
width: w.data.size ? w.data.size.width : 300,
|
|
298
298
|
height: w.data.size ? w.data.size.width : 300
|
|
299
|
-
}, null, 8, br)) :
|
|
299
|
+
}, null, 8, br)) : Ct("", !0),
|
|
300
300
|
w.data.type === "file" ? (st(), ft("div", wr, [
|
|
301
301
|
et("div", yr, [
|
|
302
302
|
et("h6", null, u0(Ke(Ba)(w.data.name, 20)), 1),
|
|
@@ -309,7 +309,7 @@ const hr = ["contenteditable"], vr = {
|
|
|
309
309
|
tabindex: "-1"
|
|
310
310
|
}, "下载", 8, xr)
|
|
311
311
|
])
|
|
312
|
-
])) :
|
|
312
|
+
])) : Ct("", !0),
|
|
313
313
|
!w.readOnly && !Ke(b) && (w.data.type === "image" || w.data.type === "video") ? (st(), ft("div", {
|
|
314
314
|
key: 4,
|
|
315
315
|
class: "resize-handle",
|
|
@@ -317,12 +317,12 @@ const hr = ["contenteditable"], vr = {
|
|
|
317
317
|
ref: N,
|
|
318
318
|
onMousedown: It(Ce, ["prevent", "stop"])
|
|
319
319
|
}, [
|
|
320
|
-
|
|
320
|
+
gt(Ke(Bt), {
|
|
321
321
|
src: Ke(At).resize,
|
|
322
322
|
width: 15,
|
|
323
323
|
height: 15
|
|
324
324
|
}, null, 8, ["src"])
|
|
325
|
-
], 544)) :
|
|
325
|
+
], 544)) : Ct("", !0),
|
|
326
326
|
!w.readOnly && !Ke(b) && w.data.type === "image" ? (st(), ft("div", {
|
|
327
327
|
key: 5,
|
|
328
328
|
class: "fullscreen-handle",
|
|
@@ -330,19 +330,19 @@ const hr = ["contenteditable"], vr = {
|
|
|
330
330
|
ref: ve,
|
|
331
331
|
onMousedown: It(ae, ["prevent", "stop"])
|
|
332
332
|
}, [
|
|
333
|
-
|
|
333
|
+
gt(Ke(Bt), {
|
|
334
334
|
src: Ke(At).fullscreen,
|
|
335
335
|
width: 15,
|
|
336
336
|
height: 15
|
|
337
337
|
}, null, 8, ["src"])
|
|
338
|
-
], 544)) :
|
|
339
|
-
w.readOnly ?
|
|
338
|
+
], 544)) : Ct("", !0),
|
|
339
|
+
w.readOnly ? Ct("", !0) : (st(), ft("div", {
|
|
340
340
|
key: 6,
|
|
341
341
|
class: "node-del",
|
|
342
342
|
onClick: It(I, ["stop"])
|
|
343
343
|
}))
|
|
344
344
|
]),
|
|
345
|
-
w.readOnly ?
|
|
345
|
+
w.readOnly ? Ct("", !0) : (st(), ft("span", {
|
|
346
346
|
key: 1,
|
|
347
347
|
ref_key: "holderRight",
|
|
348
348
|
ref: be,
|
|
@@ -596,17 +596,17 @@ const va = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
|
|
|
596
596
|
}), Ma(() => {
|
|
597
597
|
N.value.destroy(), _0.uninstall(b.value.rootEl);
|
|
598
598
|
});
|
|
599
|
-
function
|
|
599
|
+
function Ne(I) {
|
|
600
600
|
const ae = Ee();
|
|
601
601
|
N.value.commands.selectAll(), typeof I == "function" && I(), be(ae), N.value.commands.setTextSelection(ae);
|
|
602
602
|
}
|
|
603
603
|
function ge() {
|
|
604
|
-
|
|
604
|
+
Ne(() => {
|
|
605
605
|
N.value.commands.toggleBold();
|
|
606
606
|
});
|
|
607
607
|
}
|
|
608
608
|
function q(I) {
|
|
609
|
-
|
|
609
|
+
Ne(() => {
|
|
610
610
|
I ? N.value.commands.setColor(I) : N.value.commands.unsetColor();
|
|
611
611
|
});
|
|
612
612
|
}
|
|
@@ -614,7 +614,7 @@ const va = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
|
|
|
614
614
|
focus: be,
|
|
615
615
|
bold: ge,
|
|
616
616
|
color: q
|
|
617
|
-
}), (I, ae) => (st(),
|
|
617
|
+
}), (I, ae) => (st(), jt(Ke(Oa), {
|
|
618
618
|
editor: Ke(N),
|
|
619
619
|
ref_key: "container",
|
|
620
620
|
ref: b,
|
|
@@ -678,14 +678,14 @@ const va = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
|
|
|
678
678
|
function Ee(ge) {
|
|
679
679
|
return (ge || "").replace("contenteditable", "temp");
|
|
680
680
|
}
|
|
681
|
-
function
|
|
681
|
+
function Ne(ge, ...q) {
|
|
682
682
|
var I, ae, Ce, T;
|
|
683
683
|
F.data.type ? (I = ue.value) != null && I[ge] && ((ae = ue.value) == null || ae[ge](...q)) : (Ce = b.value) != null && Ce[ge] && ((T = b.value) == null || T[ge](...q));
|
|
684
684
|
}
|
|
685
685
|
return Q({
|
|
686
686
|
focus,
|
|
687
|
-
dispatch:
|
|
688
|
-
}), (ge, q) => w.data.type ? (st(),
|
|
687
|
+
dispatch: Ne
|
|
688
|
+
}), (ge, q) => w.data.type ? (st(), jt(Ke(Tr), {
|
|
689
689
|
key: 0,
|
|
690
690
|
ref_key: "mediaEditor",
|
|
691
691
|
ref: ue,
|
|
@@ -695,7 +695,7 @@ const va = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
|
|
|
695
695
|
onKeydown: N,
|
|
696
696
|
onFocus: we,
|
|
697
697
|
onRemove: be
|
|
698
|
-
}, null, 8, ["data", "readOnly"])) : (st(),
|
|
698
|
+
}, null, 8, ["data", "readOnly"])) : (st(), jt(Ke(Cr), {
|
|
699
699
|
key: 1,
|
|
700
700
|
ref_key: "textEditor",
|
|
701
701
|
ref: b,
|
|
@@ -779,7 +779,7 @@ const va = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
|
|
|
779
779
|
const ee = ne.node;
|
|
780
780
|
_t.currentId = ee.uuid, _t.isMobile && fa();
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function Ne(ee, ...ke) {
|
|
783
783
|
switch (ee.key) {
|
|
784
784
|
case "Backspace":
|
|
785
785
|
ge(ee, ...ke);
|
|
@@ -863,16 +863,16 @@ const va = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
|
|
|
863
863
|
}, [
|
|
864
864
|
et("span", {
|
|
865
865
|
class: "node-circle",
|
|
866
|
-
style:
|
|
866
|
+
style: qt(Ke(oa)(N.value, w.node))
|
|
867
867
|
}, null, 4),
|
|
868
868
|
et("span", {
|
|
869
869
|
class: "node-line",
|
|
870
|
-
style:
|
|
870
|
+
style: qt({
|
|
871
871
|
"--line-color": N.value ? N.value.color : "#eee"
|
|
872
872
|
})
|
|
873
873
|
}, null, 4)
|
|
874
874
|
], 2),
|
|
875
|
-
|
|
875
|
+
gt(Ke(_a), {
|
|
876
876
|
ref_key: "editor",
|
|
877
877
|
ref: _e,
|
|
878
878
|
class: Ft({
|
|
@@ -882,7 +882,7 @@ const va = (w) => w.tagName.toLowerCase() === "mark", Y0 = () => {
|
|
|
882
882
|
data: w.node,
|
|
883
883
|
tags: w.tags,
|
|
884
884
|
onChange: ie,
|
|
885
|
-
onKeydown:
|
|
885
|
+
onKeydown: Ne,
|
|
886
886
|
onFocus: Ee,
|
|
887
887
|
onRemove: he
|
|
888
888
|
}, null, 8, ["class", "readOnly", "data", "tags"])
|
|
@@ -1004,7 +1004,7 @@ const Lr = {
|
|
|
1004
1004
|
);
|
|
1005
1005
|
function _e(M, Ae) {
|
|
1006
1006
|
M.currentTarget.classList.add("dragging"), M.dataTransfer.setData("dragNode", JSON.stringify(Ae)), K0.on("dragEnd", () => {
|
|
1007
|
-
const He = b.nodes.filter((
|
|
1007
|
+
const He = b.nodes.filter((Me) => Me !== Ae);
|
|
1008
1008
|
Oe(He);
|
|
1009
1009
|
}), _t.dragId = Ae.uuid;
|
|
1010
1010
|
}
|
|
@@ -1012,7 +1012,7 @@ const Lr = {
|
|
|
1012
1012
|
M.currentTarget.classList.remove("dragging");
|
|
1013
1013
|
}
|
|
1014
1014
|
function we(M, Ae) {
|
|
1015
|
-
var
|
|
1015
|
+
var Me, Pe, tt;
|
|
1016
1016
|
M.stopPropagation();
|
|
1017
1017
|
const He = M.dataTransfer.files;
|
|
1018
1018
|
if (O0(), He.length)
|
|
@@ -1029,7 +1029,7 @@ const Lr = {
|
|
|
1029
1029
|
Ae.uuid === Xe.uuid || // 拖拽到自己的子节点
|
|
1030
1030
|
m0(Ae, Xe) || // 拖拽到自己的父节点
|
|
1031
1031
|
m0(Xe, Ae, !1) && Fe === "center" || // 拖拽到父节点
|
|
1032
|
-
m0(Xe, Ae, !1) && Fe === "bottom" && ((Pe = (
|
|
1032
|
+
m0(Xe, Ae, !1) && Fe === "bottom" && ((Pe = (Me = Ae.children) == null ? void 0 : Me[0]) == null ? void 0 : Pe.uuid) === Xe.uuid
|
|
1033
1033
|
)
|
|
1034
1034
|
return;
|
|
1035
1035
|
let k = [...b.nodes];
|
|
@@ -1060,12 +1060,12 @@ const Lr = {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
function be(M, Ae) {
|
|
1062
1062
|
M.preventDefault();
|
|
1063
|
-
const He = [...b.nodes],
|
|
1063
|
+
const He = [...b.nodes], Me = He.findIndex((tt) => tt === Ae), Pe = o0();
|
|
1064
1064
|
if (M.shiftKey)
|
|
1065
1065
|
ue("transfer", Ae);
|
|
1066
|
-
else if (
|
|
1067
|
-
const tt = b.nodes[
|
|
1068
|
-
tt.collapsed && (tt.collapsed = !1), tt.children ? tt.children.push(Ae) : tt.children = [Ae], He.splice(
|
|
1066
|
+
else if (Me > 0) {
|
|
1067
|
+
const tt = b.nodes[Me - 1];
|
|
1068
|
+
tt.collapsed && (tt.collapsed = !1), tt.children ? tt.children.push(Ae) : tt.children = [Ae], He.splice(Me, 1), Oe(He);
|
|
1069
1069
|
} else
|
|
1070
1070
|
M.target.focus();
|
|
1071
1071
|
Ot(() => {
|
|
@@ -1085,9 +1085,9 @@ const Lr = {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
Oe(Ae);
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1089
|
-
const He = [...b.nodes],
|
|
1090
|
-
M.children = M.children.filter((Pe) => Pe !== Ae), He.splice(
|
|
1088
|
+
function Ne(M, Ae) {
|
|
1089
|
+
const He = [...b.nodes], Me = He.findIndex((Pe) => Pe === M);
|
|
1090
|
+
M.children = M.children.filter((Pe) => Pe !== Ae), He.splice(Me + 1, 0, Ae), Oe(He);
|
|
1091
1091
|
}
|
|
1092
1092
|
function ge(M) {
|
|
1093
1093
|
b.enableDbEnter ? F ? (clearTimeout(F), F = null, q()) : F = setTimeout(() => {
|
|
@@ -1098,20 +1098,20 @@ const Lr = {
|
|
|
1098
1098
|
ue("dbEnter");
|
|
1099
1099
|
}
|
|
1100
1100
|
function I(M) {
|
|
1101
|
-
const Ae = b.nodes.findIndex((Pe) => Pe.uuid === M.uuid), He = [...b.nodes],
|
|
1102
|
-
He.splice(Ae + 1, 0,
|
|
1103
|
-
const Pe = Pt(
|
|
1101
|
+
const Ae = b.nodes.findIndex((Pe) => Pe.uuid === M.uuid), He = [...b.nodes], Me = { text: "", uuid: Ut() };
|
|
1102
|
+
He.splice(Ae + 1, 0, Me), Oe(He), Ot(() => {
|
|
1103
|
+
const Pe = Pt(Me);
|
|
1104
1104
|
Pe == null || Pe.focus();
|
|
1105
1105
|
});
|
|
1106
1106
|
}
|
|
1107
1107
|
function ae(M, Ae = !1) {
|
|
1108
1108
|
var Pe;
|
|
1109
1109
|
let He = o0();
|
|
1110
|
-
const
|
|
1111
|
-
if (
|
|
1110
|
+
const Me = b.nodes.findIndex((tt) => tt === M);
|
|
1111
|
+
if (Me === 0)
|
|
1112
1112
|
ue("focusPrev", Ae);
|
|
1113
1113
|
else {
|
|
1114
|
-
const tt = b.nodes[
|
|
1114
|
+
const tt = b.nodes[Me - 1], Xe = ((Pe = tt.children) == null ? void 0 : Pe.length) && !tt.collapsed, Fe = Pt(tt, Xe), k = Ae || He === 1 / 0;
|
|
1115
1115
|
Qt(
|
|
1116
1116
|
Fe,
|
|
1117
1117
|
k ? Fe.innerText.length : He,
|
|
@@ -1121,21 +1121,21 @@ const Lr = {
|
|
|
1121
1121
|
}
|
|
1122
1122
|
function Ce(M, Ae = !1, He = !1) {
|
|
1123
1123
|
var tt;
|
|
1124
|
-
const
|
|
1124
|
+
const Me = o0(), Pe = b.nodes.findIndex((Xe) => Xe === M);
|
|
1125
1125
|
if (He && ((tt = M.children) != null && tt.length) && !M.collapsed) {
|
|
1126
1126
|
const Xe = Pt(M.children[0]);
|
|
1127
|
-
Qt(Xe, Ae ? 0 :
|
|
1127
|
+
Qt(Xe, Ae ? 0 : Me);
|
|
1128
1128
|
} else if (Pe + 1 >= b.nodes.length)
|
|
1129
1129
|
ue("focusNext", !0);
|
|
1130
1130
|
else {
|
|
1131
1131
|
const Xe = Pt(b.nodes[Pe + 1]);
|
|
1132
|
-
Qt(Xe, Ae ? 0 :
|
|
1132
|
+
Qt(Xe, Ae ? 0 : Me);
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
1135
|
function T(M, Ae = !1) {
|
|
1136
1136
|
let He = o0();
|
|
1137
|
-
const
|
|
1138
|
-
Qt(
|
|
1137
|
+
const Me = Pt(M);
|
|
1138
|
+
Qt(Me, He, Ae);
|
|
1139
1139
|
}
|
|
1140
1140
|
function J(M, Ae, He = 0) {
|
|
1141
1141
|
if (M) {
|
|
@@ -1162,8 +1162,8 @@ const Lr = {
|
|
|
1162
1162
|
return Ae;
|
|
1163
1163
|
}
|
|
1164
1164
|
function ie(M, Ae = !1, He = b.nodes) {
|
|
1165
|
-
const
|
|
1166
|
-
if (!Ae && (!
|
|
1165
|
+
const Me = _t.currentId, Pe = [...He];
|
|
1166
|
+
if (!Ae && (!Me || !document.getElementById(Me))) {
|
|
1167
1167
|
const Xe = Pe[Pe.length - 1];
|
|
1168
1168
|
!(Xe != null && Xe.type) && !Xe.text ? Pe[Pe.length - 1] = {
|
|
1169
1169
|
...Xe,
|
|
@@ -1171,7 +1171,7 @@ const Lr = {
|
|
|
1171
1171
|
} : Pe.push(M), Oe(Pe);
|
|
1172
1172
|
return;
|
|
1173
1173
|
}
|
|
1174
|
-
const tt = Pe.findIndex((Xe) => Xe.uuid ===
|
|
1174
|
+
const tt = Pe.findIndex((Xe) => Xe.uuid === Me);
|
|
1175
1175
|
if (tt >= 0) {
|
|
1176
1176
|
const Xe = Pe[tt];
|
|
1177
1177
|
!(Xe != null && Xe.type) && !Xe.text ? Pe[tt] = {
|
|
@@ -1186,11 +1186,11 @@ const Lr = {
|
|
|
1186
1186
|
return Ae || Oe(Pe), Pe;
|
|
1187
1187
|
}
|
|
1188
1188
|
function ee(M, Ae = !1, He = b.nodes) {
|
|
1189
|
-
const
|
|
1190
|
-
return Pe >= 0 ?
|
|
1189
|
+
const Me = [...He], Pe = Me.findIndex((tt) => tt.uuid === M.uuid);
|
|
1190
|
+
return Pe >= 0 ? Me[Pe] = M : Me.forEach((tt) => {
|
|
1191
1191
|
var Xe;
|
|
1192
1192
|
(Xe = tt.children) != null && Xe.length && (tt.children = ee(M, !0, tt.children));
|
|
1193
|
-
}), Ae || Oe(
|
|
1193
|
+
}), Ae || Oe(Me), Me;
|
|
1194
1194
|
}
|
|
1195
1195
|
function ke(M) {
|
|
1196
1196
|
return process.env.NODE_ENV === "development" ? M : M.filter((Ae) => !Ae.pending || Ae.hash === b.hash);
|
|
@@ -1218,51 +1218,52 @@ const Lr = {
|
|
|
1218
1218
|
const He = Ra("tree-editor");
|
|
1219
1219
|
return w.readOnly ? (st(), ft("div", Lr, [
|
|
1220
1220
|
et("ul", null, [
|
|
1221
|
-
(st(!0), ft(b0, null, w0(ke(w.nodes), (
|
|
1222
|
-
key:
|
|
1223
|
-
id: `${
|
|
1221
|
+
(st(!0), ft(b0, null, w0(ke(w.nodes), (Me) => (st(), ft("li", {
|
|
1222
|
+
key: Me.uuid,
|
|
1223
|
+
id: `${Me.uuid}`,
|
|
1224
1224
|
class: Ft({
|
|
1225
1225
|
"node-li": !0,
|
|
1226
|
-
collapsed:
|
|
1227
|
-
"has-child": !!(
|
|
1226
|
+
collapsed: Me.collapsed || !1,
|
|
1227
|
+
"has-child": !!(Me.children || []).length
|
|
1228
1228
|
})
|
|
1229
1229
|
}, [
|
|
1230
|
-
|
|
1230
|
+
gt(Ke(J0), {
|
|
1231
1231
|
readOnly: "",
|
|
1232
1232
|
tags: w.tags,
|
|
1233
|
-
node:
|
|
1233
|
+
node: Me,
|
|
1234
1234
|
onChange: Je
|
|
1235
1235
|
}, null, 8, ["tags", "node"]),
|
|
1236
|
-
(
|
|
1236
|
+
(Me.children || []).length ? (st(), jt(He, {
|
|
1237
1237
|
key: 0,
|
|
1238
1238
|
readOnly: "",
|
|
1239
|
-
|
|
1239
|
+
onChange: (Pe) => Ue(Me, Pe),
|
|
1240
|
+
nodes: Me.children,
|
|
1240
1241
|
sublevel: !0
|
|
1241
|
-
}, null, 8, ["nodes"])) :
|
|
1242
|
+
}, null, 8, ["onChange", "nodes"])) : Ct("", !0)
|
|
1242
1243
|
], 10, Ir))), 128))
|
|
1243
1244
|
])
|
|
1244
1245
|
])) : (st(), ft("div", Or, [
|
|
1245
1246
|
et("ul", null, [
|
|
1246
|
-
(st(!0), ft(b0, null, w0(ke(w.nodes), (
|
|
1247
|
-
key:
|
|
1248
|
-
id: `${
|
|
1247
|
+
(st(!0), ft(b0, null, w0(ke(w.nodes), (Me) => (st(), ft("li", {
|
|
1248
|
+
key: Me.uuid,
|
|
1249
|
+
id: `${Me.uuid}`,
|
|
1249
1250
|
ref_for: !0,
|
|
1250
1251
|
ref: "elements",
|
|
1251
1252
|
draggable: "true",
|
|
1252
1253
|
class: Ft({
|
|
1253
1254
|
"node-li": !0,
|
|
1254
|
-
collapsed:
|
|
1255
|
-
"has-child": !!(
|
|
1255
|
+
collapsed: Me.collapsed || !1,
|
|
1256
|
+
"has-child": !!(Me.children || []).length
|
|
1256
1257
|
}),
|
|
1257
|
-
onDragstart: It((Pe) => _e(Pe,
|
|
1258
|
-
onDragover: It((Pe) => Ke(Er)(Pe,
|
|
1258
|
+
onDragstart: It((Pe) => _e(Pe, Me), ["stop"]),
|
|
1259
|
+
onDragover: It((Pe) => Ke(Er)(Pe, Me), ["stop", "prevent"]),
|
|
1259
1260
|
onDragend: It((Pe) => N(Pe), ["stop", "prevent"]),
|
|
1260
|
-
onDrop: It((Pe) => we(Pe,
|
|
1261
|
-
onDragleave: It((Pe) => Ke(O0)(Pe,
|
|
1262
|
-
onPaste: It((Pe) => ve(Pe,
|
|
1261
|
+
onDrop: It((Pe) => we(Pe, Me), ["stop"]),
|
|
1262
|
+
onDragleave: It((Pe) => Ke(O0)(Pe, Me), ["stop"]),
|
|
1263
|
+
onPaste: It((Pe) => ve(Pe, Me), ["stop"])
|
|
1263
1264
|
}, [
|
|
1264
|
-
|
|
1265
|
-
node:
|
|
1265
|
+
gt(Ke(J0), {
|
|
1266
|
+
node: Me,
|
|
1266
1267
|
tags: w.tags,
|
|
1267
1268
|
onChange: Je,
|
|
1268
1269
|
onToPrevFocus: ae,
|
|
@@ -1272,27 +1273,27 @@ const Lr = {
|
|
|
1272
1273
|
onTab: be,
|
|
1273
1274
|
onRemove: Ee
|
|
1274
1275
|
}, null, 8, ["node", "tags"]),
|
|
1275
|
-
(
|
|
1276
|
+
(Me.children || []).length ? (st(), jt(He, {
|
|
1276
1277
|
key: 0,
|
|
1277
|
-
nodes:
|
|
1278
|
+
nodes: Me.children,
|
|
1278
1279
|
tags: w.tags,
|
|
1279
1280
|
enableDbEnter: w.enableDbEnter,
|
|
1280
1281
|
hash: w.hash,
|
|
1281
1282
|
allowEmpty: !0,
|
|
1282
1283
|
sublevel: !0,
|
|
1283
|
-
onChange: (Pe) => Ue(
|
|
1284
|
-
onFocusPrev: (Pe) => T(
|
|
1285
|
-
onFocusNext: (Pe) => Ce(
|
|
1286
|
-
onTransfer: (Pe) =>
|
|
1284
|
+
onChange: (Pe) => Ue(Me, Pe),
|
|
1285
|
+
onFocusPrev: (Pe) => T(Me, Pe),
|
|
1286
|
+
onFocusNext: (Pe) => Ce(Me, Pe),
|
|
1287
|
+
onTransfer: (Pe) => Ne(Me, Pe),
|
|
1287
1288
|
onFileUpload: Ae[0] || (Ae[0] = (...Pe) => M.$emit("fileUpload", ...Pe)),
|
|
1288
1289
|
onDbEnter: q
|
|
1289
|
-
}, null, 8, ["nodes", "tags", "enableDbEnter", "hash", "onChange", "onFocusPrev", "onFocusNext", "onTransfer"])) :
|
|
1290
|
+
}, null, 8, ["nodes", "tags", "enableDbEnter", "hash", "onChange", "onFocusPrev", "onFocusNext", "onTransfer"])) : Ct("", !0)
|
|
1290
1291
|
], 42, Fr))), 128))
|
|
1291
1292
|
])
|
|
1292
1293
|
]));
|
|
1293
1294
|
};
|
|
1294
1295
|
}
|
|
1295
|
-
}), Hr = /* @__PURE__ */ Jt(Yr, [["__scopeId", "data-v-
|
|
1296
|
+
}), Hr = /* @__PURE__ */ Jt(Yr, [["__scopeId", "data-v-f0322506"]]), Vr = { class: "record-tree-title-bar" }, Pr = ["onClick"], Ur = {
|
|
1296
1297
|
__name: "index",
|
|
1297
1298
|
props: {
|
|
1298
1299
|
readOnly: {
|
|
@@ -1340,7 +1341,7 @@ const Lr = {
|
|
|
1340
1341
|
tagT: "3px"
|
|
1341
1342
|
// 图标定位top值
|
|
1342
1343
|
}, ue = ct(null), F = w, _e = ne;
|
|
1343
|
-
Q({ focus:
|
|
1344
|
+
Q({ focus: Ne });
|
|
1344
1345
|
const N = ct(null), we = N0() === "mobile", ve = ct(!1), be = l0(() => {
|
|
1345
1346
|
try {
|
|
1346
1347
|
const ie = JSON.parse(F.note.title);
|
|
@@ -1371,7 +1372,7 @@ const Lr = {
|
|
|
1371
1372
|
}), f0(() => {
|
|
1372
1373
|
delete c0.tree_title;
|
|
1373
1374
|
});
|
|
1374
|
-
function
|
|
1375
|
+
function Ne(ie = "end") {
|
|
1375
1376
|
ue.value.dispatch("focus", ie);
|
|
1376
1377
|
}
|
|
1377
1378
|
function ge(ie) {
|
|
@@ -1393,7 +1394,7 @@ const Lr = {
|
|
|
1393
1394
|
}
|
|
1394
1395
|
function ae() {
|
|
1395
1396
|
_e("change", ""), setTimeout(() => {
|
|
1396
|
-
|
|
1397
|
+
Ne();
|
|
1397
1398
|
}, 200);
|
|
1398
1399
|
}
|
|
1399
1400
|
function Ce(ie) {
|
|
@@ -1453,11 +1454,11 @@ const Lr = {
|
|
|
1453
1454
|
});
|
|
1454
1455
|
}
|
|
1455
1456
|
return (ie, ee) => (st(), ft("div", Vr, [
|
|
1456
|
-
w.tags.length ? (st(),
|
|
1457
|
+
w.tags.length ? (st(), jt(Ke(na), { key: 0 }, Ca({
|
|
1457
1458
|
default: y0(() => [
|
|
1458
1459
|
et("span", {
|
|
1459
1460
|
class: "record-tree-popper-reference",
|
|
1460
|
-
style:
|
|
1461
|
+
style: qt({
|
|
1461
1462
|
top: b.tagT,
|
|
1462
1463
|
left: b.tagL,
|
|
1463
1464
|
width: b.tagSize + "px",
|
|
@@ -1473,7 +1474,7 @@ const Lr = {
|
|
|
1473
1474
|
fn: y0(() => [
|
|
1474
1475
|
et("div", {
|
|
1475
1476
|
class: "record-tree-popper-content",
|
|
1476
|
-
style:
|
|
1477
|
+
style: qt({ width: b.popW, height: b.popH })
|
|
1477
1478
|
}, [
|
|
1478
1479
|
(st(!0), ft(b0, null, w0(w.tags, (ke) => (st(), ft("span", {
|
|
1479
1480
|
class: Ft(["record-tree-popper-content-item", {
|
|
@@ -1484,7 +1485,7 @@ const Lr = {
|
|
|
1484
1485
|
}, [
|
|
1485
1486
|
et("span", {
|
|
1486
1487
|
class: "record-tree-empty-icon",
|
|
1487
|
-
style:
|
|
1488
|
+
style: qt({
|
|
1488
1489
|
width: b.tagSize + "px",
|
|
1489
1490
|
height: b.tagSize + "px",
|
|
1490
1491
|
...Ke(oa)(ke)
|
|
@@ -1495,8 +1496,8 @@ const Lr = {
|
|
|
1495
1496
|
]),
|
|
1496
1497
|
key: "0"
|
|
1497
1498
|
}
|
|
1498
|
-
]), 1024)) :
|
|
1499
|
-
|
|
1499
|
+
]), 1024)) : Ct("", !0),
|
|
1500
|
+
gt(Ke(_a), {
|
|
1500
1501
|
id: "tree_title",
|
|
1501
1502
|
ref_key: "recordTitle",
|
|
1502
1503
|
ref: ue,
|
|
@@ -1768,7 +1769,7 @@ function g0() {
|
|
|
1768
1769
|
J.push(_e());
|
|
1769
1770
|
return new Ee.init(J, T);
|
|
1770
1771
|
}
|
|
1771
|
-
}),
|
|
1772
|
+
}), Ne = we.enc = {}, ge = Ne.Hex = {
|
|
1772
1773
|
/**
|
|
1773
1774
|
* Converts a word array to a hex string.
|
|
1774
1775
|
*
|
|
@@ -1807,7 +1808,7 @@ function g0() {
|
|
|
1807
1808
|
he[ie >>> 3] |= parseInt(T.substr(ie, 2), 16) << 24 - ie % 8 * 4;
|
|
1808
1809
|
return new Ee.init(he, J / 2);
|
|
1809
1810
|
}
|
|
1810
|
-
}, q =
|
|
1811
|
+
}, q = Ne.Latin1 = {
|
|
1811
1812
|
/**
|
|
1812
1813
|
* Converts a word array to a Latin1 string.
|
|
1813
1814
|
*
|
|
@@ -1846,7 +1847,7 @@ function g0() {
|
|
|
1846
1847
|
he[ie >>> 2] |= (T.charCodeAt(ie) & 255) << 24 - ie % 4 * 8;
|
|
1847
1848
|
return new Ee.init(he, J);
|
|
1848
1849
|
}
|
|
1849
|
-
}, I =
|
|
1850
|
+
}, I = Ne.Utf8 = {
|
|
1850
1851
|
/**
|
|
1851
1852
|
* Converts a word array to a UTF-8 string.
|
|
1852
1853
|
*
|
|
@@ -2074,7 +2075,7 @@ function Xr() {
|
|
|
2074
2075
|
for (var I = 2, ae = 0; ae < 64; )
|
|
2075
2076
|
ge(I) && (ae < 8 && (ve[ae] = q(b.pow(I, 1 / 2))), be[ae] = q(b.pow(I, 1 / 3)), ae++), I++;
|
|
2076
2077
|
})();
|
|
2077
|
-
var Ee = [],
|
|
2078
|
+
var Ee = [], Ne = we.SHA256 = N.extend({
|
|
2078
2079
|
_doReset: function() {
|
|
2079
2080
|
this._hash = new _e.init(ve.slice(0));
|
|
2080
2081
|
},
|
|
@@ -2086,7 +2087,7 @@ function Xr() {
|
|
|
2086
2087
|
var Ue = Ee[Ve - 15], Je = (Ue << 25 | Ue >>> 7) ^ (Ue << 14 | Ue >>> 18) ^ Ue >>> 3, Oe = Ee[Ve - 2], M = (Oe << 15 | Oe >>> 17) ^ (Oe << 13 | Oe >>> 19) ^ Oe >>> 10;
|
|
2087
2088
|
Ee[Ve] = Je + Ee[Ve - 7] + M + Ee[Ve - 16];
|
|
2088
2089
|
}
|
|
2089
|
-
var Ae = he & ie ^ ~he & ee, He = ae & Ce ^ ae & T ^ Ce & T,
|
|
2090
|
+
var Ae = he & ie ^ ~he & ee, He = ae & Ce ^ ae & T ^ Ce & T, Me = (ae << 30 | ae >>> 2) ^ (ae << 19 | ae >>> 13) ^ (ae << 10 | ae >>> 22), Pe = (he << 26 | he >>> 6) ^ (he << 21 | he >>> 11) ^ (he << 7 | he >>> 25), tt = ke + Pe + Ae + be[Ve] + Ee[Ve], Xe = Me + He;
|
|
2090
2091
|
ke = ee, ee = ie, ie = he, he = J + tt | 0, J = T, T = Ce, Ce = ae, ae = tt + Xe | 0;
|
|
2091
2092
|
}
|
|
2092
2093
|
I[0] = I[0] + ae | 0, I[1] = I[1] + Ce | 0, I[2] = I[2] + T | 0, I[3] = I[3] + J | 0, I[4] = I[4] + he | 0, I[5] = I[5] + ie | 0, I[6] = I[6] + ee | 0, I[7] = I[7] + ke | 0;
|
|
@@ -2100,7 +2101,7 @@ function Xr() {
|
|
|
2100
2101
|
return ge._hash = this._hash.clone(), ge;
|
|
2101
2102
|
}
|
|
2102
2103
|
});
|
|
2103
|
-
ue.SHA256 = N._createHelper(
|
|
2104
|
+
ue.SHA256 = N._createHelper(Ne), ue.HmacSHA256 = N._createHmacHelper(Ne);
|
|
2104
2105
|
}(Math), ne.SHA256;
|
|
2105
2106
|
});
|
|
2106
2107
|
}(B0)), B0.exports;
|
|
@@ -2126,11 +2127,11 @@ function $r() {
|
|
|
2126
2127
|
*/
|
|
2127
2128
|
init: function(ve, be) {
|
|
2128
2129
|
ve = this._hasher = new ve.init(), typeof be == "string" && (be = N.parse(be));
|
|
2129
|
-
var Ee = ve.blockSize,
|
|
2130
|
-
be.sigBytes >
|
|
2130
|
+
var Ee = ve.blockSize, Ne = Ee * 4;
|
|
2131
|
+
be.sigBytes > Ne && (be = ve.finalize(be)), be.clamp();
|
|
2131
2132
|
for (var ge = this._oKey = be.clone(), q = this._iKey = be.clone(), I = ge.words, ae = q.words, Ce = 0; Ce < Ee; Ce++)
|
|
2132
2133
|
I[Ce] ^= 1549556828, ae[Ce] ^= 909522486;
|
|
2133
|
-
ge.sigBytes = q.sigBytes =
|
|
2134
|
+
ge.sigBytes = q.sigBytes = Ne, this.reset();
|
|
2134
2135
|
},
|
|
2135
2136
|
/**
|
|
2136
2137
|
* Resets this HMAC to its initial state.
|
|
@@ -2175,8 +2176,8 @@ function $r() {
|
|
|
2175
2176
|
finalize: function(ve) {
|
|
2176
2177
|
var be = this._hasher, Ee = be.finalize(ve);
|
|
2177
2178
|
be.reset();
|
|
2178
|
-
var
|
|
2179
|
-
return
|
|
2179
|
+
var Ne = be.finalize(this._oKey.clone().concat(Ee));
|
|
2180
|
+
return Ne;
|
|
2180
2181
|
}
|
|
2181
2182
|
});
|
|
2182
2183
|
})();
|
|
@@ -2216,14 +2217,14 @@ var ba = { exports: {} };
|
|
|
2216
2217
|
stringify: function(we) {
|
|
2217
2218
|
var ve = we.words, be = we.sigBytes, Ee = this._map;
|
|
2218
2219
|
we.clamp();
|
|
2219
|
-
for (var
|
|
2220
|
+
for (var Ne = [], ge = 0; ge < be; ge += 3)
|
|
2220
2221
|
for (var q = ve[ge >>> 2] >>> 24 - ge % 4 * 8 & 255, I = ve[ge + 1 >>> 2] >>> 24 - (ge + 1) % 4 * 8 & 255, ae = ve[ge + 2 >>> 2] >>> 24 - (ge + 2) % 4 * 8 & 255, Ce = q << 16 | I << 8 | ae, T = 0; T < 4 && ge + T * 0.75 < be; T++)
|
|
2221
|
-
|
|
2222
|
+
Ne.push(Ee.charAt(Ce >>> 6 * (3 - T) & 63));
|
|
2222
2223
|
var J = Ee.charAt(64);
|
|
2223
2224
|
if (J)
|
|
2224
|
-
for (;
|
|
2225
|
-
|
|
2226
|
-
return
|
|
2225
|
+
for (; Ne.length % 4; )
|
|
2226
|
+
Ne.push(J);
|
|
2227
|
+
return Ne.join("");
|
|
2227
2228
|
},
|
|
2228
2229
|
/**
|
|
2229
2230
|
* Converts a Base64 string to a word array.
|
|
@@ -2242,8 +2243,8 @@ var ba = { exports: {} };
|
|
|
2242
2243
|
var ve = we.length, be = this._map, Ee = this._reverseMap;
|
|
2243
2244
|
if (!Ee) {
|
|
2244
2245
|
Ee = this._reverseMap = [];
|
|
2245
|
-
for (var
|
|
2246
|
-
Ee[be.charCodeAt(
|
|
2246
|
+
for (var Ne = 0; Ne < be.length; Ne++)
|
|
2247
|
+
Ee[be.charCodeAt(Ne)] = Ne;
|
|
2247
2248
|
}
|
|
2248
2249
|
var ge = be.charAt(64);
|
|
2249
2250
|
if (ge) {
|
|
@@ -2255,12 +2256,12 @@ var ba = { exports: {} };
|
|
|
2255
2256
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
2256
2257
|
};
|
|
2257
2258
|
function N(we, ve, be) {
|
|
2258
|
-
for (var Ee = [],
|
|
2259
|
+
for (var Ee = [], Ne = 0, ge = 0; ge < ve; ge++)
|
|
2259
2260
|
if (ge % 4) {
|
|
2260
2261
|
var q = be[we.charCodeAt(ge - 1)] << ge % 4 * 2, I = be[we.charCodeAt(ge)] >>> 6 - ge % 4 * 2, ae = q | I;
|
|
2261
|
-
Ee[
|
|
2262
|
+
Ee[Ne >>> 2] |= ae << 24 - Ne % 4 * 8, Ne++;
|
|
2262
2263
|
}
|
|
2263
|
-
return F.create(Ee,
|
|
2264
|
+
return F.create(Ee, Ne);
|
|
2264
2265
|
}
|
|
2265
2266
|
}(), ne.enc.Base64;
|
|
2266
2267
|
});
|
|
@@ -2353,7 +2354,7 @@ var ya = { exports: {} };
|
|
|
2353
2354
|
return typeof e == "number";
|
|
2354
2355
|
}, F = function(e) {
|
|
2355
2356
|
return new M(e);
|
|
2356
|
-
}, _e = F.LM = "2023-12-24 18:09", N = "https://github.com/xiangyuecn/Recorder", we = "Recorder", ve = "getUserMedia", be = "srcSampleRate", Ee = "sampleRate",
|
|
2357
|
+
}, _e = F.LM = "2023-12-24 18:09", N = "https://github.com/xiangyuecn/Recorder", we = "Recorder", ve = "getUserMedia", be = "srcSampleRate", Ee = "sampleRate", Ne = "bitRate", ge = "catch", q = Q[we];
|
|
2357
2358
|
if (q && q.LM == _e) {
|
|
2358
2359
|
q.CLog(q.i18n.$T("K8zP::重复导入{1}", 0, we), 3);
|
|
2359
2360
|
return;
|
|
@@ -2669,8 +2670,8 @@ var ya = { exports: {} };
|
|
|
2669
2670
|
for (var v in e)
|
|
2670
2671
|
d[v] = e[v];
|
|
2671
2672
|
s.set = d;
|
|
2672
|
-
var C = d[
|
|
2673
|
-
(C && !ue(C) || W && !ue(W)) && s.CLog(Fe.G("IllegalArgs-1", [Fe("VtS4::{1}和{2}必须是数值", 0, Ee,
|
|
2673
|
+
var C = d[Ne], W = d[Ee];
|
|
2674
|
+
(C && !ue(C) || W && !ue(W)) && s.CLog(Fe.G("IllegalArgs-1", [Fe("VtS4::{1}和{2}必须是数值", 0, Ee, Ne)]), 1, e), d[Ne] = +C || 16, d[Ee] = +W || 16e3, s.state = 0, s._S = 9, s.Sync = { O: 9, C: 9 };
|
|
2674
2675
|
}
|
|
2675
2676
|
F.Sync = {
|
|
2676
2677
|
/*open*/
|
|
@@ -2992,10 +2993,10 @@ var ya = { exports: {} };
|
|
|
2992
2993
|
for (; le[0] < G.length; ) {
|
|
2993
2994
|
var pe = Pe(G, le), Z = tt(G, le), Se = [0];
|
|
2994
2995
|
if (He(pe, [215])) {
|
|
2995
|
-
var Be =
|
|
2996
|
+
var Be = Me(Z);
|
|
2996
2997
|
Ie.number = Be, d[Be] = Ie;
|
|
2997
2998
|
} else if (He(pe, [131])) {
|
|
2998
|
-
var Be =
|
|
2999
|
+
var Be = Me(Z);
|
|
2999
3000
|
Be == 1 ? Ie.type = "video" : Be == 2 ? (Ie.type = "audio", De || (s.track0 = Ie), Ie.idx = De++) : Ie.type = "Type-" + Be;
|
|
3000
3001
|
} else if (He(pe, [134])) {
|
|
3001
3002
|
for (var z = "", oe = 0; oe < Z.length; oe++)
|
|
@@ -3008,7 +3009,7 @@ var ya = { exports: {} };
|
|
|
3008
3009
|
var Be = 0, j = new Uint8Array(A.reverse()).buffer;
|
|
3009
3010
|
A.length == 4 ? Be = new Float32Array(j)[0] : A.length == 8 ? Be = new Float64Array(j)[0] : Ue("WebM Track !Float", 1, A), Ie[Ee] = Math.round(Be);
|
|
3010
3011
|
} else
|
|
3011
|
-
He(l, [98, 100]) ? Ie.bitDepth =
|
|
3012
|
+
He(l, [98, 100]) ? Ie.bitDepth = Me(A) : He(l, [159]) && (Ie.channels = Me(A));
|
|
3012
3013
|
}
|
|
3013
3014
|
}
|
|
3014
3015
|
}
|
|
@@ -3060,7 +3061,7 @@ var ya = { exports: {} };
|
|
|
3060
3061
|
if (e[d] != s[d])
|
|
3061
3062
|
return !1;
|
|
3062
3063
|
return !0;
|
|
3063
|
-
},
|
|
3064
|
+
}, Me = function(e) {
|
|
3064
3065
|
for (var s = "", d = 0; d < e.length; d++) {
|
|
3065
3066
|
var v = e[d];
|
|
3066
3067
|
s += (v < 16 ? "0" : "") + v.toString(16);
|
|
@@ -3082,7 +3083,7 @@ var ya = { exports: {} };
|
|
|
3082
3083
|
}, tt = function(e, s) {
|
|
3083
3084
|
var d = Pe(e, s, 1);
|
|
3084
3085
|
if (d) {
|
|
3085
|
-
var v =
|
|
3086
|
+
var v = Me(d), C = s[0], W = [];
|
|
3086
3087
|
if (v < 2147483647) {
|
|
3087
3088
|
if (C + v > e.length)
|
|
3088
3089
|
return;
|
|
@@ -3239,8 +3240,8 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
3239
3240
|
if (Ue < J)
|
|
3240
3241
|
Ue += ee, setTimeout(Je);
|
|
3241
3242
|
else {
|
|
3242
|
-
var He = [ke.buffer.slice(0, Ve)],
|
|
3243
|
-
ge(
|
|
3243
|
+
var He = [ke.buffer.slice(0, Ve)], Me = Ne.fn(He, Ve, J, T.sampleRate);
|
|
3244
|
+
ge(Me, T), I(He[0] || new ArrayBuffer(0), "audio/mp3");
|
|
3244
3245
|
}
|
|
3245
3246
|
};
|
|
3246
3247
|
Je();
|
|
@@ -3256,7 +3257,7 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
3256
3257
|
};
|
|
3257
3258
|
var be = { id: 0 }, Ee = function(q, I) {
|
|
3258
3259
|
var ae = function(Je) {
|
|
3259
|
-
var Oe = Je.data, M = J.wkScope.wk_ctxs, Ae = J.wkScope.wk_lame, He = J.wkScope.wk_mp3TrimFix,
|
|
3260
|
+
var Oe = Je.data, M = J.wkScope.wk_ctxs, Ae = J.wkScope.wk_lame, He = J.wkScope.wk_mp3TrimFix, Me = M[Oe.id];
|
|
3260
3261
|
if (Oe.action == "init")
|
|
3261
3262
|
M[Oe.id] = {
|
|
3262
3263
|
sampleRate: Oe.sampleRate,
|
|
@@ -3267,44 +3268,44 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
3267
3268
|
mOffset: 0,
|
|
3268
3269
|
encObj: new Ae.Mp3Encoder(1, Oe.sampleRate, Oe.bitRate)
|
|
3269
3270
|
};
|
|
3270
|
-
else if (!
|
|
3271
|
+
else if (!Me)
|
|
3271
3272
|
return;
|
|
3272
3273
|
var Pe = function(k) {
|
|
3273
3274
|
var e = k.length;
|
|
3274
|
-
if (
|
|
3275
|
-
var s = new Int8Array(
|
|
3276
|
-
s.set(
|
|
3275
|
+
if (Me.mOffset + e > Me.memory.length) {
|
|
3276
|
+
var s = new Int8Array(Me.memory.length + Math.max(5e5, e));
|
|
3277
|
+
s.set(Me.memory.subarray(0, Me.mOffset)), Me.memory = s;
|
|
3277
3278
|
}
|
|
3278
|
-
|
|
3279
|
+
Me.memory.set(k, Me.mOffset), Me.mOffset += e;
|
|
3279
3280
|
};
|
|
3280
3281
|
switch (Oe.action) {
|
|
3281
3282
|
case "stop":
|
|
3282
|
-
|
|
3283
|
+
Me.encObj = null, delete M[Oe.id];
|
|
3283
3284
|
break;
|
|
3284
3285
|
case "encode":
|
|
3285
|
-
|
|
3286
|
+
Me.pcmSize += Oe.pcm.length;
|
|
3286
3287
|
try {
|
|
3287
|
-
var tt =
|
|
3288
|
+
var tt = Me.encObj.encodeBuffer(Oe.pcm);
|
|
3288
3289
|
} catch (k) {
|
|
3289
|
-
|
|
3290
|
+
Me.err = k, console.error(k);
|
|
3290
3291
|
}
|
|
3291
|
-
tt && tt.length > 0 && (
|
|
3292
|
+
tt && tt.length > 0 && (Me.takeoff ? he.onmessage({ action: "takeoff", id: Oe.id, chunk: tt }) : Pe(tt));
|
|
3292
3293
|
break;
|
|
3293
3294
|
case "complete":
|
|
3294
3295
|
try {
|
|
3295
|
-
var tt =
|
|
3296
|
+
var tt = Me.encObj.flush();
|
|
3296
3297
|
} catch (k) {
|
|
3297
|
-
|
|
3298
|
+
Me.err = k, console.error(k);
|
|
3298
3299
|
}
|
|
3299
|
-
if (tt && tt.length > 0 && (
|
|
3300
|
+
if (tt && tt.length > 0 && (Me.takeoff ? he.onmessage({ action: "takeoff", id: Oe.id, chunk: tt }) : Pe(tt)), Me.err) {
|
|
3300
3301
|
he.onmessage({
|
|
3301
3302
|
action: Oe.action,
|
|
3302
3303
|
id: Oe.id,
|
|
3303
|
-
err: "MP3 Encoder: " +
|
|
3304
|
+
err: "MP3 Encoder: " + Me.err.message
|
|
3304
3305
|
});
|
|
3305
3306
|
break;
|
|
3306
3307
|
}
|
|
3307
|
-
var Xe = [
|
|
3308
|
+
var Xe = [Me.memory.buffer.slice(0, Me.mOffset)], Fe = He.fn(Xe, Me.mOffset, Me.pcmSize, Me.sampleRate);
|
|
3308
3309
|
he.onmessage({
|
|
3309
3310
|
action: Oe.action,
|
|
3310
3311
|
id: Oe.id,
|
|
@@ -3341,14 +3342,14 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
3341
3342
|
} }, J = { wkScope: {
|
|
3342
3343
|
wk_ctxs: {},
|
|
3343
3344
|
wk_lame: w.lamejs,
|
|
3344
|
-
wk_mp3TrimFix:
|
|
3345
|
+
wk_mp3TrimFix: Ne
|
|
3345
3346
|
} }, Ce(), T();
|
|
3346
3347
|
try {
|
|
3347
3348
|
if (!he) {
|
|
3348
3349
|
var ie = (ae + "").replace(/[\w\$]+\.onmessage/g, "self.postMessage");
|
|
3349
3350
|
ie = ie.replace(/[\w\$]+\.wkScope/g, "wkScope");
|
|
3350
3351
|
var ee = ");wk_lame();self.onmessage=" + ie;
|
|
3351
|
-
ee += ";var wkScope={ wk_ctxs:{},wk_lame:wk_lame", ee += ",wk_mp3TrimFix:{rm:" +
|
|
3352
|
+
ee += ";var wkScope={ wk_ctxs:{},wk_lame:wk_lame", ee += ",wk_mp3TrimFix:{rm:" + Ne.rm + ",fn:" + Ne.fn + "} }";
|
|
3352
3353
|
var ke = w.lamejs.toString(), Ve = (window.URL || webkitURL).createObjectURL(new Blob(["var wk_lame=(", ke, ee], { type: "text/javascript" }));
|
|
3353
3354
|
he = new Worker(Ve), setTimeout(function() {
|
|
3354
3355
|
(window.URL || webkitURL).revokeObjectURL(Ve);
|
|
@@ -3409,8 +3410,8 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
3409
3410
|
][ie == 1 ? 1 : 0][ae(he.substr(0, 4), 2)];
|
|
3410
3411
|
if (!ie || !ee || !Ve || !ke)
|
|
3411
3412
|
return null;
|
|
3412
|
-
for (var Ue = Math.round(I * 8 / Ve), Je = ee == 1 ? 384 : ee == 2 || ie == 1 ? 1152 : 576, Oe = Je / ke * 1e3, M = Math.floor(Je * Ve / 8 / ke * 1e3), Ae = 0, He = 0,
|
|
3413
|
-
var Pe = q[
|
|
3413
|
+
for (var Ue = Math.round(I * 8 / Ve), Je = ee == 1 ? 384 : ee == 2 || ie == 1 ? 1152 : 576, Oe = Je / ke * 1e3, M = Math.floor(Je * Ve / 8 / ke * 1e3), Ae = 0, He = 0, Me = 0; Me < q.length; Me++) {
|
|
3414
|
+
var Pe = q[Me];
|
|
3414
3415
|
if (He += Pe.byteLength, He >= M + 3) {
|
|
3415
3416
|
var tt = new Uint8Array(Pe), Xe = Pe.byteLength - (He - (M + 3) + 1), Fe = T(Xe, tt);
|
|
3416
3417
|
Ae = Fe.charAt(6) == "1";
|
|
@@ -3430,7 +3431,7 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
3430
3431
|
//每帧时长,含小数 ms
|
|
3431
3432
|
};
|
|
3432
3433
|
};
|
|
3433
|
-
var
|
|
3434
|
+
var Ne = {
|
|
3434
3435
|
//minfiy keep name
|
|
3435
3436
|
rm: w.mp3ReadMeta,
|
|
3436
3437
|
fn: function(q, I, ae, Ce) {
|
|
@@ -3518,13 +3519,13 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
3518
3519
|
j.push(Ee(l));
|
|
3519
3520
|
return j;
|
|
3520
3521
|
}
|
|
3521
|
-
function
|
|
3522
|
+
function Ne(l) {
|
|
3522
3523
|
if (l.length == 1)
|
|
3523
3524
|
return new Array(l[0]);
|
|
3524
3525
|
var A = l[0];
|
|
3525
3526
|
l = l.slice(1);
|
|
3526
3527
|
for (var j = [], g = 0; g < A; g++)
|
|
3527
|
-
j.push(
|
|
3528
|
+
j.push(Ne(l));
|
|
3528
3529
|
return j;
|
|
3529
3530
|
}
|
|
3530
3531
|
var ge = {};
|
|
@@ -3635,16 +3636,16 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
3635
3636
|
c = c >> 1;
|
|
3636
3637
|
var r = c % 2;
|
|
3637
3638
|
for (c = c >> 1; c-- != 0; ) {
|
|
3638
|
-
var te, D, $, xe, Le,
|
|
3639
|
-
te = m[S++] * h, D = m[S++] * h, Le = 0 | te, $ = m[S++] * h,
|
|
3639
|
+
var te, D, $, xe, Le, Ye, Qe, nt;
|
|
3640
|
+
te = m[S++] * h, D = m[S++] * h, Le = 0 | te, $ = m[S++] * h, Ye = 0 | D, xe = m[S++] * h, Qe = 0 | $, te += l.adj43[Le], nt = 0 | xe, D += l.adj43[Ye], E[a++] = 0 | te, $ += l.adj43[Qe], E[a++] = 0 | D, xe += l.adj43[nt], E[a++] = 0 | $, E[a++] = 0 | xe;
|
|
3640
3641
|
}
|
|
3641
3642
|
if (r != 0) {
|
|
3642
|
-
var te, D, Le,
|
|
3643
|
-
te = m[S++] * h, D = m[S++] * h, Le = 0 | te,
|
|
3643
|
+
var te, D, Le, Ye;
|
|
3644
|
+
te = m[S++] * h, D = m[S++] * h, Le = 0 | te, Ye = 0 | D, te += l.adj43[Le], D += l.adj43[Ye], E[a++] = 0 | te, E[a++] = 0 | D;
|
|
3644
3645
|
}
|
|
3645
3646
|
}
|
|
3646
3647
|
function _(c, h, m, S, E) {
|
|
3647
|
-
var a, r, te = 0, D, $ = 0, xe = 0, Le = 0,
|
|
3648
|
+
var a, r, te = 0, D, $ = 0, xe = 0, Le = 0, Ye = h, Qe = 0, nt = Ye, at = 0, Mt = c, Rt = 0;
|
|
3648
3649
|
for (D = E != null && S.global_gain == E.global_gain, S.block_type == i.SHORT_TYPE ? r = 38 : r = 21, a = 0; a <= r; a++) {
|
|
3649
3650
|
var wt = -1;
|
|
3650
3651
|
if ((D || S.block_type == i.NORM_TYPE) && (wt = S.global_gain - (S.scalefac[a] + (S.preflag != 0 ? l.pretab[a] : 0) << S.scalefac_scale + 1) - S.subblock_gain[S.window[a]] * 8), D && E.step[a] == wt)
|
|
@@ -3662,21 +3663,21 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
3662
3663
|
var Et;
|
|
3663
3664
|
Et = S.max_nonzero_coeff - te + 1, ge.fill(h, S.max_nonzero_coeff, 576, 0), St = Et, St < 0 && (St = 0), a = r + 1;
|
|
3664
3665
|
}
|
|
3665
|
-
if ($ == 0 && xe == 0 && (nt =
|
|
3666
|
+
if ($ == 0 && xe == 0 && (nt = Ye, at = Qe, Mt = c, Rt = Le), E != null && E.sfb_count1 > 0 && a >= E.sfb_count1 && E.step[a] > 0 && wt >= E.step[a] ? ($ != 0 && (ye(
|
|
3666
3667
|
$,
|
|
3667
3668
|
m,
|
|
3668
3669
|
Mt,
|
|
3669
3670
|
Rt,
|
|
3670
3671
|
nt,
|
|
3671
3672
|
at
|
|
3672
|
-
), $ = 0, nt =
|
|
3673
|
+
), $ = 0, nt = Ye, at = Qe, Mt = c, Rt = Le), xe += St) : (xe != 0 && (g(
|
|
3673
3674
|
xe,
|
|
3674
3675
|
m,
|
|
3675
3676
|
Mt,
|
|
3676
3677
|
Rt,
|
|
3677
3678
|
nt,
|
|
3678
3679
|
at
|
|
3679
|
-
), xe = 0, nt =
|
|
3680
|
+
), xe = 0, nt = Ye, at = Qe, Mt = c, Rt = Le), $ += St), St <= 0) {
|
|
3680
3681
|
xe != 0 && b(), $ != 0 && b();
|
|
3681
3682
|
break;
|
|
3682
3683
|
}
|
|
@@ -3728,8 +3729,8 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
3728
3729
|
function O(c, h, m, S, E) {
|
|
3729
3730
|
var a = 0, r = 0, te = 0, D = M.ht[S].xlen, $ = M.ht[S].hlen, xe = M.ht[S + 1].hlen, Le = M.ht[S + 2].hlen;
|
|
3730
3731
|
do {
|
|
3731
|
-
var
|
|
3732
|
-
h += 2, a += $[
|
|
3732
|
+
var Ye = c[h + 0] * D + c[h + 1];
|
|
3733
|
+
h += 2, a += $[Ye], r += xe[Ye], te += Le[Ye];
|
|
3733
3734
|
} while (h < m);
|
|
3734
3735
|
var Qe = S;
|
|
3735
3736
|
return a > r && (a = r, Qe++), a > te && (a = te, Qe = S + 2), E.bits += a, Qe;
|
|
@@ -3845,7 +3846,7 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
3845
3846
|
var $ = c.scalefac_band.l[D + 1];
|
|
3846
3847
|
if ($ >= te)
|
|
3847
3848
|
break;
|
|
3848
|
-
var xe = 0, Le = new A(xe),
|
|
3849
|
+
var xe = 0, Le = new A(xe), Ye = L(m, 0, $, Le);
|
|
3849
3850
|
xe = Le.bits;
|
|
3850
3851
|
for (var Qe = 0; Qe < 8; Qe++) {
|
|
3851
3852
|
var nt = c.scalefac_band.l[D + Qe + 2];
|
|
@@ -3854,7 +3855,7 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
3854
3855
|
var at = xe;
|
|
3855
3856
|
Le = new A(at);
|
|
3856
3857
|
var Mt = L(m, $, nt, Le);
|
|
3857
|
-
at = Le.bits, S[D + Qe] > at && (S[D + Qe] = at, E[D + Qe] = D, a[D + Qe] =
|
|
3858
|
+
at = Le.bits, S[D + Qe] > at && (S[D + Qe] = at, E[D + Qe] = D, a[D + Qe] = Ye, r[D + Qe] = Mt);
|
|
3858
3859
|
}
|
|
3859
3860
|
}
|
|
3860
3861
|
}
|
|
@@ -3866,8 +3867,8 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
3866
3867
|
var Le = E[$ - 2] + h.count1bits;
|
|
3867
3868
|
if (m.part2_3_length <= Le)
|
|
3868
3869
|
break;
|
|
3869
|
-
var
|
|
3870
|
-
Le =
|
|
3870
|
+
var Ye = new A(Le), Qe = L(S, xe, D, Ye);
|
|
3871
|
+
Le = Ye.bits, !(m.part2_3_length <= Le) && (m.assign(h), m.part2_3_length = Le, m.region0_count = a[$ - 2], m.region1_count = $ - 2 - a[$ - 2], m.table_select[0] = r[$ - 2], m.table_select[1] = te[$ - 2], m.table_select[2] = Qe);
|
|
3871
3872
|
}
|
|
3872
3873
|
}
|
|
3873
3874
|
this.best_huffman_divide = function(c, h) {
|
|
@@ -3903,12 +3904,12 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
3903
3904
|
);
|
|
3904
3905
|
else {
|
|
3905
3906
|
if (m.part2_3_length = $, $ = c.scalefac_band.l[8], $ > D && ($ = D), $ > 0) {
|
|
3906
|
-
var
|
|
3907
|
-
m.table_select[0] = L(S, 0, $,
|
|
3907
|
+
var Ye = new A(m.part2_3_length);
|
|
3908
|
+
m.table_select[0] = L(S, 0, $, Ye), m.part2_3_length = Ye.bits;
|
|
3908
3909
|
}
|
|
3909
3910
|
if (D > $) {
|
|
3910
|
-
var
|
|
3911
|
-
m.table_select[1] = L(S, $, D,
|
|
3911
|
+
var Ye = new A(m.part2_3_length);
|
|
3912
|
+
m.table_select[1] = L(S, $, D, Ye), m.part2_3_length = Ye.bits;
|
|
3912
3913
|
}
|
|
3913
3914
|
h.part2_3_length > m.part2_3_length && h.assign(m);
|
|
3914
3915
|
}
|
|
@@ -4056,16 +4057,16 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
4056
4057
|
xe[D] = 0;
|
|
4057
4058
|
if (h.block_type == i.SHORT_TYPE) {
|
|
4058
4059
|
S = 1;
|
|
4059
|
-
var
|
|
4060
|
+
var Ye = l.nr_of_sfb_block[m][S];
|
|
4060
4061
|
for ($ = 0, E = 0; E < 4; E++)
|
|
4061
|
-
for (a =
|
|
4062
|
+
for (a = Ye[E] / 3, D = 0; D < a; D++, $++)
|
|
4062
4063
|
for (r = 0; r < 3; r++)
|
|
4063
4064
|
Le[$ * 3 + r] > xe[E] && (xe[E] = Le[$ * 3 + r]);
|
|
4064
4065
|
} else {
|
|
4065
4066
|
S = 0;
|
|
4066
|
-
var
|
|
4067
|
+
var Ye = l.nr_of_sfb_block[m][S];
|
|
4067
4068
|
for ($ = 0, E = 0; E < 4; E++)
|
|
4068
|
-
for (a =
|
|
4069
|
+
for (a = Ye[E], D = 0; D < a; D++, $++)
|
|
4069
4070
|
Le[$] > xe[E] && (xe[E] = Le[$]);
|
|
4070
4071
|
}
|
|
4071
4072
|
for (te = !1, E = 0; E < 4; E++)
|
|
@@ -8204,7 +8205,7 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
8204
8205
|
function He() {
|
|
8205
8206
|
this.over_noise = 0, this.tot_noise = 0, this.max_noise = 0, this.over_count = 0, this.over_SSD = 0, this.bits = 0;
|
|
8206
8207
|
}
|
|
8207
|
-
function
|
|
8208
|
+
function Me() {
|
|
8208
8209
|
this.setModules = function(l, A) {
|
|
8209
8210
|
};
|
|
8210
8211
|
}
|
|
@@ -8738,8 +8739,8 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
8738
8739
|
var r, te, D, $, xe, Le;
|
|
8739
8740
|
y.VBR == T.vbr_rh || y.VBR == T.vbr_mtrh ? te = athAdjust(m.adjust, m.l[X], m.floor) : te = m.adjust * m.l[X], xe = p.width[X], D = te / xe, $ = ye, Le = xe >> 1, r = 0;
|
|
8740
8741
|
do {
|
|
8741
|
-
var
|
|
8742
|
-
|
|
8742
|
+
var Ye, Qe;
|
|
8743
|
+
Ye = S[c] * S[c], r += Ye, $ += Ye < D ? Ye : D, c++, Qe = S[c] * S[c], r += Qe, $ += Qe < D ? Qe : D, c++;
|
|
8743
8744
|
} while (--Le > 0);
|
|
8744
8745
|
if (r > te && h++, X == i.SBPSY_l && b(), E != 0 && (te = $), !y.ATHonly) {
|
|
8745
8746
|
var nt = f.en.l[X];
|
|
@@ -8761,8 +8762,8 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
8761
8762
|
var r = 0, te, D, $, Le = xe >> 1;
|
|
8762
8763
|
D = Et / xe, $ = ye;
|
|
8763
8764
|
do {
|
|
8764
|
-
var
|
|
8765
|
-
|
|
8765
|
+
var Ye, Qe;
|
|
8766
|
+
Ye = S[c] * S[c], r += Ye, $ += Ye < D ? Ye : D, c++, Qe = S[c] * S[c], r += Qe, $ += Qe < D ? Qe : D, c++;
|
|
8766
8767
|
} while (--Le > 0);
|
|
8767
8768
|
if (r > Et && h++, wt == i.SBPSY_s && b(), E != 0 ? te = $ : te = Et, !y.ATHonly && !y.ATHshort) {
|
|
8768
8769
|
var nt = f.en.s[wt][St];
|
|
@@ -8808,8 +8809,8 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
8808
8809
|
else {
|
|
8809
8810
|
var Le = g($);
|
|
8810
8811
|
if (h = y.width[c] >> 1, r + y.width[c] > y.max_nonzero_coeff) {
|
|
8811
|
-
var
|
|
8812
|
-
|
|
8812
|
+
var Ye;
|
|
8813
|
+
Ye = y.max_nonzero_coeff - r + 1, Ye > 0 ? h = Ye >> 1 : h = 0;
|
|
8813
8814
|
}
|
|
8814
8815
|
var Qe = new U(r);
|
|
8815
8816
|
xe = this.calc_noise_core(y, Qe, h, Le), r = Qe.s, B != null && (B.step[c] = $, B.noise[c] = xe), xe = p[n++] = xe / f[X++], xe = I.FAST_LOG10(Math.max(xe, 1e-20)), B != null && (B.noise_log[c] = xe);
|
|
@@ -8845,7 +8846,7 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
8845
8846
|
this.rv = null;
|
|
8846
8847
|
var l;
|
|
8847
8848
|
this.qupvt = null;
|
|
8848
|
-
var A, j = new
|
|
8849
|
+
var A, j = new Me(), g;
|
|
8849
8850
|
this.setModules = function(t, o, R, U) {
|
|
8850
8851
|
l = o, this.rv = o, A = R, this.qupvt = R, g = U, j.setModules(A, g);
|
|
8851
8852
|
};
|
|
@@ -9755,9 +9756,9 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
9755
9756
|
}
|
|
9756
9757
|
}
|
|
9757
9758
|
this.lame_encode_mp3_frame = function(Y, ce, O, Te, L, H) {
|
|
9758
|
-
var t, o =
|
|
9759
|
+
var t, o = Ne([2, 2]);
|
|
9759
9760
|
o[0][0] = new x(), o[0][1] = new x(), o[1][0] = new x(), o[1][1] = new x();
|
|
9760
|
-
var R =
|
|
9761
|
+
var R = Ne([2, 2]);
|
|
9761
9762
|
R[0][0] = new x(), R[0][1] = new x(), R[1][0] = new x(), R[1][1] = new x();
|
|
9762
9763
|
var U, y = [null, null], f = Y.internal_flags, p = ve([2, 4]), u = [0.5, 0.5], B = [[0, 0], [0, 0]], n = [[0, 0], [0, 0]], X, c, h;
|
|
9763
9764
|
if (y[0] = ce, y[1] = O, f.lame_encode_frame_init == 0 && me(Y, y), f.padding = 0, (f.slot_lag -= f.frac_SpF) < 0 && (f.slot_lag += Y.out_samplerate, f.padding = 1), f.psymodel != 0) {
|
|
@@ -10033,9 +10034,9 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10033
10034
|
se += fe[je] * V.ATH.eql_w[je];
|
|
10034
10035
|
return se *= me, se;
|
|
10035
10036
|
}
|
|
10036
|
-
function R(fe, V, se, je, Ge,
|
|
10037
|
+
function R(fe, V, se, je, Ge, Re, ze, qe, We, ot, $e) {
|
|
10037
10038
|
var yt = fe.internal_flags;
|
|
10038
|
-
We < 2 ? (l.fft_long(yt, je[Ge], We, ot, $e), l.fft_short(yt,
|
|
10039
|
+
We < 2 ? (l.fft_long(yt, je[Ge], We, ot, $e), l.fft_short(yt, Re[ze], We, ot, $e)) : We == 2 && b(), V[0] = /*fix NON_LINEAR_SCALE_ENERGY*/
|
|
10039
10040
|
je[Ge + 0][0], V[0] *= V[0];
|
|
10040
10041
|
for (var dt = i.BLKSIZE / 2 - 1; dt >= 0; --dt) {
|
|
10041
10042
|
var bt = je[Ge + 0][i.BLKSIZE / 2 - dt], Tt = je[Ge + 0][i.BLKSIZE / 2 + dt];
|
|
@@ -10043,9 +10044,9 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10043
10044
|
(bt * bt + Tt * Tt) * 0.5;
|
|
10044
10045
|
}
|
|
10045
10046
|
for (var ht = 2; ht >= 0; --ht) {
|
|
10046
|
-
se[ht][0] =
|
|
10047
|
+
se[ht][0] = Re[ze + 0][ht][0], se[ht][0] *= se[ht][0];
|
|
10047
10048
|
for (var dt = i.BLKSIZE_s / 2 - 1; dt >= 0; --dt) {
|
|
10048
|
-
var bt =
|
|
10049
|
+
var bt = Re[ze + 0][ht][i.BLKSIZE_s / 2 - dt], Tt = Re[ze + 0][ht][i.BLKSIZE_s / 2 + dt];
|
|
10049
10050
|
se[ht][i.BLKSIZE_s / 2 - dt] = /*fix NON_LINEAR_SCALE_ENERGY*/
|
|
10050
10051
|
(bt * bt + Tt * Tt) * 0.5;
|
|
10051
10052
|
}
|
|
@@ -10124,7 +10125,7 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10124
10125
|
1.11084 * 1.11084,
|
|
10125
10126
|
1.03826 * 1.03826
|
|
10126
10127
|
];
|
|
10127
|
-
function S(fe, V, se, je, Ge,
|
|
10128
|
+
function S(fe, V, se, je, Ge, Re) {
|
|
10128
10129
|
var ze;
|
|
10129
10130
|
if (V > fe)
|
|
10130
10131
|
if (V < fe * u)
|
|
@@ -10153,44 +10154,44 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10153
10154
|
return fe * c[qe];
|
|
10154
10155
|
}
|
|
10155
10156
|
function E(fe, V, se, je, Ge) {
|
|
10156
|
-
var
|
|
10157
|
-
for (
|
|
10158
|
-
for (var ot = fe.bo_s[
|
|
10157
|
+
var Re, ze, qe = 0, We = 0;
|
|
10158
|
+
for (Re = ze = 0; Re < i.SBMAX_s; ++ze, ++Re) {
|
|
10159
|
+
for (var ot = fe.bo_s[Re], $e = fe.npart_s, yt = ot < $e ? ot : $e; ze < yt; )
|
|
10159
10160
|
qe += V[ze], We += se[ze], ze++;
|
|
10160
|
-
if (fe.en[je].s[
|
|
10161
|
-
++
|
|
10161
|
+
if (fe.en[je].s[Re][Ge] = qe, fe.thm[je].s[Re][Ge] = We, ze >= $e) {
|
|
10162
|
+
++Re;
|
|
10162
10163
|
break;
|
|
10163
10164
|
}
|
|
10164
10165
|
{
|
|
10165
|
-
var dt = fe.PSY.bo_s_weight[
|
|
10166
|
-
qe = dt * V[ze], We = dt * se[ze], fe.en[je].s[
|
|
10166
|
+
var dt = fe.PSY.bo_s_weight[Re], bt = 1 - dt;
|
|
10167
|
+
qe = dt * V[ze], We = dt * se[ze], fe.en[je].s[Re][Ge] += qe, fe.thm[je].s[Re][Ge] += We, qe = bt * V[ze], We = bt * se[ze];
|
|
10167
10168
|
}
|
|
10168
10169
|
}
|
|
10169
|
-
for (;
|
|
10170
|
-
fe.en[je].s[
|
|
10170
|
+
for (; Re < i.SBMAX_s; ++Re)
|
|
10171
|
+
fe.en[je].s[Re][Ge] = 0, fe.thm[je].s[Re][Ge] = 0;
|
|
10171
10172
|
}
|
|
10172
10173
|
function a(fe, V, se, je) {
|
|
10173
|
-
var Ge,
|
|
10174
|
-
for (Ge =
|
|
10175
|
-
for (var We = fe.bo_l[Ge], ot = fe.npart_l, $e = We < ot ? We : ot;
|
|
10176
|
-
ze += V[
|
|
10177
|
-
if (fe.en[je].l[Ge] = ze, fe.thm[je].l[Ge] = qe,
|
|
10174
|
+
var Ge, Re, ze = 0, qe = 0;
|
|
10175
|
+
for (Ge = Re = 0; Ge < i.SBMAX_l; ++Re, ++Ge) {
|
|
10176
|
+
for (var We = fe.bo_l[Ge], ot = fe.npart_l, $e = We < ot ? We : ot; Re < $e; )
|
|
10177
|
+
ze += V[Re], qe += se[Re], Re++;
|
|
10178
|
+
if (fe.en[je].l[Ge] = ze, fe.thm[je].l[Ge] = qe, Re >= ot) {
|
|
10178
10179
|
++Ge;
|
|
10179
10180
|
break;
|
|
10180
10181
|
}
|
|
10181
10182
|
{
|
|
10182
10183
|
var yt = fe.PSY.bo_l_weight[Ge], dt = 1 - yt;
|
|
10183
|
-
ze = yt * V[
|
|
10184
|
+
ze = yt * V[Re], qe = yt * se[Re], fe.en[je].l[Ge] += ze, fe.thm[je].l[Ge] += qe, ze = dt * V[Re], qe = dt * se[Re];
|
|
10184
10185
|
}
|
|
10185
10186
|
}
|
|
10186
10187
|
for (; Ge < i.SBMAX_l; ++Ge)
|
|
10187
10188
|
fe.en[je].l[Ge] = 0, fe.thm[je].l[Ge] = 0;
|
|
10188
10189
|
}
|
|
10189
|
-
function r(fe, V, se, je, Ge,
|
|
10190
|
+
function r(fe, V, se, je, Ge, Re) {
|
|
10190
10191
|
var ze = fe.internal_flags, qe, We;
|
|
10191
10192
|
for (We = qe = 0; We < ze.npart_s; ++We) {
|
|
10192
10193
|
for (var ot = 0, $e = ze.numlines_s[We], yt = 0; yt < $e; ++yt, ++qe) {
|
|
10193
|
-
var dt = V[
|
|
10194
|
+
var dt = V[Re][qe];
|
|
10194
10195
|
ot += dt;
|
|
10195
10196
|
}
|
|
10196
10197
|
se[We] = ot;
|
|
@@ -10215,8 +10216,8 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10215
10216
|
function te(fe, V, se, je) {
|
|
10216
10217
|
var Ge = fe.internal_flags;
|
|
10217
10218
|
fe.short_blocks == ae.short_block_coupled && !(V[0] != 0 && V[1] != 0) && (V[0] = V[1] = 0);
|
|
10218
|
-
for (var
|
|
10219
|
-
je[
|
|
10219
|
+
for (var Re = 0; Re < Ge.channels_out; Re++)
|
|
10220
|
+
je[Re] = i.NORM_TYPE, fe.short_blocks == ae.short_block_dispensed && (V[Re] = 1), fe.short_blocks == ae.short_block_forced && (V[Re] = 0), V[Re] != 0 ? Ge.blocktype_old[Re] == i.SHORT_TYPE && (je[Re] = i.STOP_TYPE) : (je[Re] = i.SHORT_TYPE, Ge.blocktype_old[Re] == i.NORM_TYPE && (Ge.blocktype_old[Re] = i.START_TYPE), Ge.blocktype_old[Re] == i.STOP_TYPE && (Ge.blocktype_old[Re] = i.SHORT_TYPE)), se[Re] = Ge.blocktype_old[Re], Ge.blocktype_old[Re] = je[Re];
|
|
10220
10221
|
}
|
|
10221
10222
|
function D(fe, V, se) {
|
|
10222
10223
|
return se >= 1 ? fe : se <= 0 ? V : V > 0 ? Math.pow(fe / V, se) * V : 0;
|
|
@@ -10239,9 +10240,9 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10239
10240
|
function xe(fe, V) {
|
|
10240
10241
|
for (var se = 309.07, je = 0; je < i.SBMAX_s - 1; je++)
|
|
10241
10242
|
for (var Ge = 0; Ge < 3; Ge++) {
|
|
10242
|
-
var
|
|
10243
|
-
if (
|
|
10244
|
-
var ze =
|
|
10243
|
+
var Re = fe.thm.s[je][Ge];
|
|
10244
|
+
if (Re > 0) {
|
|
10245
|
+
var ze = Re * V, qe = fe.en.s[je][Ge];
|
|
10245
10246
|
qe > ze && (qe > ze * 1e10 ? se += $[je] * (10 * A) : se += $[je] * I.FAST_LOG10(qe / ze));
|
|
10246
10247
|
}
|
|
10247
10248
|
}
|
|
@@ -10271,51 +10272,51 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10271
10272
|
126.1
|
|
10272
10273
|
/* 241.3 */
|
|
10273
10274
|
];
|
|
10274
|
-
function
|
|
10275
|
+
function Ye(fe, V) {
|
|
10275
10276
|
for (var se = 281.0575, je = 0; je < i.SBMAX_l - 1; je++) {
|
|
10276
10277
|
var Ge = fe.thm.l[je];
|
|
10277
10278
|
if (Ge > 0) {
|
|
10278
|
-
var
|
|
10279
|
-
ze >
|
|
10279
|
+
var Re = Ge * V, ze = fe.en.l[je];
|
|
10280
|
+
ze > Re && (ze > Re * 1e10 ? se += Le[je] * (10 * A) : se += Le[je] * I.FAST_LOG10(ze / Re));
|
|
10280
10281
|
}
|
|
10281
10282
|
}
|
|
10282
10283
|
return se;
|
|
10283
10284
|
}
|
|
10284
10285
|
function Qe(fe, V, se, je, Ge) {
|
|
10285
|
-
var
|
|
10286
|
-
for (
|
|
10286
|
+
var Re, ze;
|
|
10287
|
+
for (Re = ze = 0; Re < fe.npart_l; ++Re) {
|
|
10287
10288
|
var qe = 0, We = 0, ot;
|
|
10288
|
-
for (ot = 0; ot < fe.numlines_l[
|
|
10289
|
+
for (ot = 0; ot < fe.numlines_l[Re]; ++ot, ++ze) {
|
|
10289
10290
|
var $e = V[ze];
|
|
10290
10291
|
qe += $e, We < $e && (We = $e);
|
|
10291
10292
|
}
|
|
10292
|
-
se[
|
|
10293
|
+
se[Re] = qe, je[Re] = We, Ge[Re] = qe * fe.rnumlines_l[Re];
|
|
10293
10294
|
}
|
|
10294
10295
|
}
|
|
10295
10296
|
function nt(fe, V, se, je) {
|
|
10296
|
-
var Ge = n.length - 1,
|
|
10297
|
+
var Ge = n.length - 1, Re = 0, ze = se[Re] + se[Re + 1];
|
|
10297
10298
|
if (ze > 0) {
|
|
10298
|
-
var qe = V[
|
|
10299
|
-
qe < V[
|
|
10299
|
+
var qe = V[Re];
|
|
10300
|
+
qe < V[Re + 1] && (qe = V[Re + 1]), ze = 20 * (qe * 2 - ze) / (ze * (fe.numlines_l[Re] + fe.numlines_l[Re + 1] - 1));
|
|
10300
10301
|
var We = 0 | ze;
|
|
10301
|
-
We > Ge && (We = Ge), je[
|
|
10302
|
+
We > Ge && (We = Ge), je[Re] = We;
|
|
10302
10303
|
} else
|
|
10303
|
-
je[
|
|
10304
|
-
for (
|
|
10305
|
-
if (ze = se[
|
|
10306
|
-
var qe = V[
|
|
10307
|
-
qe < V[
|
|
10304
|
+
je[Re] = 0;
|
|
10305
|
+
for (Re = 1; Re < fe.npart_l - 1; Re++)
|
|
10306
|
+
if (ze = se[Re - 1] + se[Re] + se[Re + 1], ze > 0) {
|
|
10307
|
+
var qe = V[Re - 1];
|
|
10308
|
+
qe < V[Re] && (qe = V[Re]), qe < V[Re + 1] && (qe = V[Re + 1]), ze = 20 * (qe * 3 - ze) / (ze * (fe.numlines_l[Re - 1] + fe.numlines_l[Re] + fe.numlines_l[Re + 1] - 1));
|
|
10308
10309
|
var We = 0 | ze;
|
|
10309
|
-
We > Ge && (We = Ge), je[
|
|
10310
|
+
We > Ge && (We = Ge), je[Re] = We;
|
|
10310
10311
|
} else
|
|
10311
|
-
je[
|
|
10312
|
-
if (ze = se[
|
|
10313
|
-
var qe = V[
|
|
10314
|
-
qe < V[
|
|
10312
|
+
je[Re] = 0;
|
|
10313
|
+
if (ze = se[Re - 1] + se[Re], ze > 0) {
|
|
10314
|
+
var qe = V[Re - 1];
|
|
10315
|
+
qe < V[Re] && (qe = V[Re]), ze = 20 * (qe * 2 - ze) / (ze * (fe.numlines_l[Re - 1] + fe.numlines_l[Re] - 1));
|
|
10315
10316
|
var We = 0 | ze;
|
|
10316
|
-
We > Ge && (We = Ge), je[
|
|
10317
|
+
We > Ge && (We = Ge), je[Re] = We;
|
|
10317
10318
|
} else
|
|
10318
|
-
je[
|
|
10319
|
+
je[Re] = 0;
|
|
10319
10320
|
}
|
|
10320
10321
|
var at = [
|
|
10321
10322
|
-865163e-23 * 2,
|
|
@@ -10329,20 +10330,20 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10329
10330
|
-552212e-22 * 2,
|
|
10330
10331
|
-0.313819 * 2
|
|
10331
10332
|
];
|
|
10332
|
-
this.L3psycho_anal_ns = function(fe, V, se, je, Ge,
|
|
10333
|
-
var $e = fe.internal_flags, yt = ve([2, i.BLKSIZE]), dt = ve([2, 3, i.BLKSIZE_s]), bt = N(i.CBANDS + 1), Tt = N(i.CBANDS + 1), ht = N(i.CBANDS + 2), it = _e(2), mt = _e(2), Dt, Ze, lt, rt,
|
|
10333
|
+
this.L3psycho_anal_ns = function(fe, V, se, je, Ge, Re, ze, qe, We, ot) {
|
|
10334
|
+
var $e = fe.internal_flags, yt = ve([2, i.BLKSIZE]), dt = ve([2, 3, i.BLKSIZE_s]), bt = N(i.CBANDS + 1), Tt = N(i.CBANDS + 1), ht = N(i.CBANDS + 2), it = _e(2), mt = _e(2), Dt, Ze, lt, rt, xt, Wt, Nt, vt, d0 = ve([2, 576]), Ht, $t = _e(i.CBANDS + 2), e0 = _e(i.CBANDS + 2);
|
|
10334
10335
|
for (ge.fill(e0, 0), Dt = $e.channels_out, fe.mode == J.JOINT_STEREO && (Dt = 4), fe.VBR == T.vbr_off ? Ht = $e.ResvMax == 0 ? 0 : $e.ResvSize / $e.ResvMax * 0.5 : fe.VBR == T.vbr_rh || fe.VBR == T.vbr_mtrh || fe.VBR == T.vbr_mt ? Ht = 0.6 : Ht = 1, Ze = 0; Ze < $e.channels_out; Ze++) {
|
|
10335
10336
|
var r0 = V[Ze], n0 = se + 576 - 350 - H + 192;
|
|
10336
10337
|
for (rt = 0; rt < 576; rt++) {
|
|
10337
10338
|
var x0, S0;
|
|
10338
|
-
for (x0 = r0[n0 + rt + 10], S0 = 0,
|
|
10339
|
-
x0 += at[
|
|
10339
|
+
for (x0 = r0[n0 + rt + 10], S0 = 0, xt = 0; xt < (H - 1) / 2 - 1; xt += 2)
|
|
10340
|
+
x0 += at[xt] * (r0[n0 + rt + xt] + r0[n0 + rt + H - xt]), S0 += at[xt + 1] * (r0[n0 + rt + xt + 1] + r0[n0 + rt + H - xt - 1]);
|
|
10340
10341
|
d0[Ze][rt] = x0 + S0;
|
|
10341
10342
|
}
|
|
10342
10343
|
Ge[je][Ze].en.assign($e.en[Ze]), Ge[je][Ze].thm.assign($e.thm[Ze]), Dt > 2 && b();
|
|
10343
10344
|
}
|
|
10344
10345
|
for (Ze = 0; Ze < Dt; Ze++) {
|
|
10345
|
-
var V0, P0, Vt = N(12), Xt = [0, 0, 0, 0], T0 = N(12), U0 = 1, z0, q0 = N(i.CBANDS), G0 = N(i.CBANDS),
|
|
10346
|
+
var V0, P0, Vt = N(12), Xt = [0, 0, 0, 0], T0 = N(12), U0 = 1, z0, q0 = N(i.CBANDS), G0 = N(i.CBANDS), kt = [0, 0, 0, 0], j0 = N(i.HBLKSIZE), W0 = ve([3, i.HBLKSIZE_s]);
|
|
10346
10347
|
for (rt = 0; rt < 3; rt++)
|
|
10347
10348
|
Vt[rt] = $e.nsPsy.last_en_subshort[Ze][rt + 6], T0[rt] = Vt[rt] / $e.nsPsy.last_en_subshort[Ze][rt + 4], Xt[0] += Vt[rt];
|
|
10348
10349
|
Ze == 2 && b();
|
|
@@ -10355,12 +10356,12 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10355
10356
|
}
|
|
10356
10357
|
}
|
|
10357
10358
|
for (fe.analysis && b(), z0 = Ze == 3 ? $e.nsPsy.attackthre_s : $e.nsPsy.attackthre, rt = 0; rt < 12; rt++)
|
|
10358
|
-
|
|
10359
|
+
kt[rt / 3] == 0 && T0[rt] > z0 && (kt[rt / 3] = rt % 3 + 1);
|
|
10359
10360
|
for (rt = 1; rt < 4; rt++) {
|
|
10360
10361
|
var M0;
|
|
10361
|
-
Xt[rt - 1] > Xt[rt] ? M0 = Xt[rt - 1] / Xt[rt] : M0 = Xt[rt] / Xt[rt - 1], M0 < 1.7 && (
|
|
10362
|
+
Xt[rt - 1] > Xt[rt] ? M0 = Xt[rt - 1] / Xt[rt] : M0 = Xt[rt] / Xt[rt - 1], M0 < 1.7 && (kt[rt] = 0, rt == 1 && (kt[0] = 0));
|
|
10362
10363
|
}
|
|
10363
|
-
for (
|
|
10364
|
+
for (kt[0] != 0 && $e.nsPsy.lastAttacks[Ze] != 0 && (kt[0] = 0), ($e.nsPsy.lastAttacks[Ze] == 3 || kt[0] + kt[1] + kt[2] + kt[3] != 0) && (U0 = 0, kt[1] != 0 && kt[0] != 0 && (kt[1] = 0), kt[2] != 0 && kt[1] != 0 && (kt[2] = 0), kt[3] != 0 && kt[2] != 0 && (kt[3] = 0)), Ze < 2 ? mt[Ze] = U0 : b(), We[Ze] = $e.tot_ener[Ze], P0 = dt, V0 = yt, R(
|
|
10364
10365
|
fe,
|
|
10365
10366
|
j0,
|
|
10366
10367
|
W0,
|
|
@@ -10375,7 +10376,7 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10375
10376
|
), Qe($e, j0, bt, q0, G0), nt($e, q0, G0, $t), vt = 0; vt < 3; vt++) {
|
|
10376
10377
|
var R0, Yt;
|
|
10377
10378
|
for (r(fe, W0, Tt, ht, Ze, vt), E($e, Tt, ht, Ze, vt), Nt = 0; Nt < i.SBMAX_s; Nt++) {
|
|
10378
|
-
if (Yt = $e.thm[Ze].s[Nt][vt], Yt *= ce,
|
|
10379
|
+
if (Yt = $e.thm[Ze].s[Nt][vt], Yt *= ce, kt[vt] >= 2 || kt[vt + 1] == 1) {
|
|
10379
10380
|
var s0 = vt != 0 ? vt - 1 : 2, Lt = D(
|
|
10380
10381
|
$e.thm[Ze].s[Nt][s0],
|
|
10381
10382
|
Yt,
|
|
@@ -10383,14 +10384,14 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10383
10384
|
);
|
|
10384
10385
|
Yt = Math.min(Yt, Lt);
|
|
10385
10386
|
}
|
|
10386
|
-
if (
|
|
10387
|
+
if (kt[vt] == 1) {
|
|
10387
10388
|
var s0 = vt != 0 ? vt - 1 : 2, Lt = D(
|
|
10388
10389
|
$e.thm[Ze].s[Nt][s0],
|
|
10389
10390
|
Yt,
|
|
10390
10391
|
Te * Ht
|
|
10391
10392
|
);
|
|
10392
10393
|
Yt = Math.min(Yt, Lt);
|
|
10393
|
-
} else if (vt != 0 &&
|
|
10394
|
+
} else if (vt != 0 && kt[vt - 1] == 3 || vt == 0 && $e.nsPsy.lastAttacks[Ze] == 3) {
|
|
10394
10395
|
var s0 = vt != 2 ? vt + 1 : 0, Lt = D(
|
|
10395
10396
|
$e.thm[Ze].s[Nt][s0],
|
|
10396
10397
|
Yt,
|
|
@@ -10401,7 +10402,7 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10401
10402
|
R0 = Vt[vt * 3 + 3] + Vt[vt * 3 + 4] + Vt[vt * 3 + 5], Vt[vt * 3 + 5] * 6 < R0 && (Yt *= 0.5, Vt[vt * 3 + 4] * 6 < R0 && (Yt *= 0.5)), $e.thm[Ze].s[Nt][vt] = Yt;
|
|
10402
10403
|
}
|
|
10403
10404
|
}
|
|
10404
|
-
for ($e.nsPsy.lastAttacks[Ze] =
|
|
10405
|
+
for ($e.nsPsy.lastAttacks[Ze] = kt[2], Wt = 0, lt = 0; lt < $e.npart_l; lt++) {
|
|
10405
10406
|
for (var Kt = $e.s3ind[lt][0], C0 = bt[Kt] * n[$t[Kt]], Zt = $e.s3_ll[Wt++] * C0; ++Kt <= $e.s3ind[lt][1]; )
|
|
10406
10407
|
C0 = bt[Kt] * n[$t[Kt]], Zt = S(
|
|
10407
10408
|
Zt,
|
|
@@ -10422,7 +10423,7 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10422
10423
|
}
|
|
10423
10424
|
for ((fe.mode == J.STEREO || fe.mode == J.JOINT_STEREO) && b(), fe.mode == J.JOINT_STEREO && b(), te(fe, mt, ot, it), Ze = 0; Ze < Dt; Ze++) {
|
|
10424
10425
|
var h0, v0 = 0, $0, k0;
|
|
10425
|
-
Ze > 1 ? b() : (h0 = ze, v0 = 0, $0 = ot[Ze], k0 = Ge[je][Ze]), $0 == i.SHORT_TYPE ? h0[v0 + Ze] = xe(k0, $e.masking_lower) : h0[v0 + Ze] =
|
|
10426
|
+
Ze > 1 ? b() : (h0 = ze, v0 = 0, $0 = ot[Ze], k0 = Ge[je][Ze]), $0 == i.SHORT_TYPE ? h0[v0 + Ze] = xe(k0, $e.masking_lower) : h0[v0 + Ze] = Ye(k0, $e.masking_lower), fe.analysis && ($e.pinfo.pe[je][Ze] = h0[v0 + Ze]);
|
|
10426
10427
|
}
|
|
10427
10428
|
return 0;
|
|
10428
10429
|
};
|
|
@@ -10433,7 +10434,7 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10433
10434
|
function Rt(fe) {
|
|
10434
10435
|
return fe < 0 && (fe = 0), fe = fe * 1e-3, 13 * Math.atan(0.76 * fe) + 3.5 * Math.atan(fe * fe / (7.5 * 7.5));
|
|
10435
10436
|
}
|
|
10436
|
-
function wt(fe, V, se, je, Ge,
|
|
10437
|
+
function wt(fe, V, se, je, Ge, Re, ze, qe, We, ot, $e, yt) {
|
|
10437
10438
|
var dt = N(i.CBANDS + 1), bt = qe / (yt > 15 ? 2 * 576 : 2 * 192), Tt = _e(i.HBLKSIZE), ht;
|
|
10438
10439
|
qe /= We;
|
|
10439
10440
|
var it = 0, mt = 0;
|
|
@@ -10450,10 +10451,10 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10450
10451
|
}
|
|
10451
10452
|
dt[ht] = qe * it;
|
|
10452
10453
|
for (var lt = 0; lt < yt; lt++) {
|
|
10453
|
-
var rt,
|
|
10454
|
-
Wt = ot[lt], Nt = ot[lt + 1], rt = 0 | Math.floor(0.5 + $e * (Wt - 0.5)), rt < 0 && (rt = 0),
|
|
10454
|
+
var rt, xt, Wt, Nt, vt;
|
|
10455
|
+
Wt = ot[lt], Nt = ot[lt + 1], rt = 0 | Math.floor(0.5 + $e * (Wt - 0.5)), rt < 0 && (rt = 0), xt = 0 | Math.floor(0.5 + $e * (Nt - 0.5)), xt > We / 2 && (xt = We / 2), se[lt] = (Tt[rt] + Tt[xt]) / 2, V[lt] = Tt[xt];
|
|
10455
10456
|
var d0 = bt * Nt;
|
|
10456
|
-
ze[lt] = (d0 - dt[V[lt]]) / (dt[V[lt] + 1] - dt[V[lt]]), ze[lt] < 0 ? ze[lt] = 0 : ze[lt] > 1 && (ze[lt] = 1), vt = Rt(qe * ot[lt] * $e), vt = Math.min(vt, 15.5) / 15.5,
|
|
10457
|
+
ze[lt] = (d0 - dt[V[lt]]) / (dt[V[lt] + 1] - dt[V[lt]]), ze[lt] < 0 ? ze[lt] = 0 : ze[lt] > 1 && (ze[lt] = 1), vt = Rt(qe * ot[lt] * $e), vt = Math.min(vt, 15.5) / 15.5, Re[lt] = Math.pow(
|
|
10457
10458
|
10,
|
|
10458
10459
|
1.25 * (1 - Math.cos(Math.PI * vt)) - 2.5
|
|
10459
10460
|
);
|
|
@@ -10465,9 +10466,9 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10465
10466
|
}
|
|
10466
10467
|
return mt;
|
|
10467
10468
|
}
|
|
10468
|
-
function St(fe, V, se, je, Ge,
|
|
10469
|
+
function St(fe, V, se, je, Ge, Re) {
|
|
10469
10470
|
var ze = ve([i.CBANDS, i.CBANDS]), qe, We = 0;
|
|
10470
|
-
if (
|
|
10471
|
+
if (Re)
|
|
10471
10472
|
for (var ot = 0; ot < V; ot++)
|
|
10472
10473
|
for (qe = 0; qe < V; qe++) {
|
|
10473
10474
|
var $e = Mt(se[ot] - se[qe]) * je[qe];
|
|
@@ -10495,7 +10496,7 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10495
10496
|
);
|
|
10496
10497
|
}
|
|
10497
10498
|
this.psymodel_init = function(fe) {
|
|
10498
|
-
var V = fe.internal_flags, se, je = !0, Ge = 13,
|
|
10499
|
+
var V = fe.internal_flags, se, je = !0, Ge = 13, Re = 24, ze = 0, qe = 0, We = -8.25, ot = -4.5, $e = N(i.CBANDS), yt = N(i.CBANDS), dt = N(i.CBANDS), bt = fe.out_samplerate;
|
|
10499
10500
|
switch (fe.experimentalZ) {
|
|
10500
10501
|
default:
|
|
10501
10502
|
case 0:
|
|
@@ -10539,7 +10540,7 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10539
10540
|
i.SBMAX_l
|
|
10540
10541
|
), se = 0; se < V.npart_l; se++) {
|
|
10541
10542
|
var ht = ze;
|
|
10542
|
-
$e[se] >= Ge && (ht = qe * ($e[se] - Ge) / (
|
|
10543
|
+
$e[se] >= Ge && (ht = qe * ($e[se] - Ge) / (Re - Ge) + ze * (Re - $e[se]) / (Re - Ge)), dt[se] = Math.pow(10, ht / 10), V.numlines_l[se] > 0 ? V.rnumlines_l[se] = 1 / V.numlines_l[se] : V.rnumlines_l[se] = 0;
|
|
10543
10544
|
}
|
|
10544
10545
|
V.s3_ll = St(
|
|
10545
10546
|
V.s3ind,
|
|
@@ -10574,7 +10575,7 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10574
10575
|
i.SBMAX_s
|
|
10575
10576
|
), it = 0, se = 0; se < V.npart_s; se++) {
|
|
10576
10577
|
var mt, ht = We;
|
|
10577
|
-
$e[se] >= Ge && (ht = ot * ($e[se] - Ge) / (
|
|
10578
|
+
$e[se] >= Ge && (ht = ot * ($e[se] - Ge) / (Re - Ge) + We * (Re - $e[se]) / (Re - Ge)), dt[se] = Math.pow(10, ht / 10), mt = Ce.MAX_VALUE;
|
|
10578
10579
|
for (var Dt = 0; Dt < V.numlines_s[se]; Dt++, it++) {
|
|
10579
10580
|
var Ze = bt * it / (1e3 * i.BLKSIZE_s), lt;
|
|
10580
10581
|
lt = this.ATHformula(Ze * 1e3, fe) - 20, lt = Math.pow(10, 0.1 * lt), lt *= V.numlines_s[se], mt > lt && (mt = lt);
|
|
@@ -10592,8 +10593,8 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10592
10593
|
{
|
|
10593
10594
|
var rt;
|
|
10594
10595
|
rt = L, fe.exp_nspsytune & 2 && (rt = 1), Math.abs(fe.msfix) > 0 && (rt = fe.msfix), fe.msfix = rt;
|
|
10595
|
-
for (var
|
|
10596
|
-
V.s3ind[
|
|
10596
|
+
for (var xt = 0; xt < V.npart_l; xt++)
|
|
10597
|
+
V.s3ind[xt][1] > V.npart_l - 1 && (V.s3ind[xt][1] = V.npart_l - 1);
|
|
10597
10598
|
}
|
|
10598
10599
|
var Wt = 576 * V.mode_gr / bt;
|
|
10599
10600
|
if (V.ATH.decay = Math.pow(10, -12 / 10 * Wt), V.ATH.adjust = 0.01, V.ATH.adjustLimit = 1, fe.ATHtype != -1) {
|
|
@@ -10604,11 +10605,11 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10604
10605
|
V.ATH.eql_w[se] *= vt;
|
|
10605
10606
|
}
|
|
10606
10607
|
{
|
|
10607
|
-
for (var
|
|
10608
|
-
for (se = 0; se < V.numlines_s[
|
|
10608
|
+
for (var xt = it = 0; xt < V.npart_s; ++xt)
|
|
10609
|
+
for (se = 0; se < V.numlines_s[xt]; ++se)
|
|
10609
10610
|
++it;
|
|
10610
|
-
for (var
|
|
10611
|
-
for (se = 0; se < V.numlines_l[
|
|
10611
|
+
for (var xt = it = 0; xt < V.npart_l; ++xt)
|
|
10612
|
+
for (se = 0; se < V.numlines_l[xt]; ++se)
|
|
10612
10613
|
++it;
|
|
10613
10614
|
}
|
|
10614
10615
|
for (it = 0, se = 0; se < V.npart_l; se++) {
|
|
@@ -10625,7 +10626,7 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10625
10626
|
V.mld_cb_s[se] = 1;
|
|
10626
10627
|
return 0;
|
|
10627
10628
|
};
|
|
10628
|
-
function
|
|
10629
|
+
function Gt(fe, V) {
|
|
10629
10630
|
fe < -0.3 && (fe = 3410), fe /= 1e3, fe = Math.max(0.1, fe);
|
|
10630
10631
|
var se = 3.64 * Math.pow(fe, -0.8) - 6.8 * Math.exp(-0.6 * Math.pow(fe - 3.4, 2)) + 6 * Math.exp(-0.15 * Math.pow(fe - 8.7, 2)) + (0.6 + 0.04 * V) * 1e-3 * Math.pow(fe, 4);
|
|
10631
10632
|
return se;
|
|
@@ -10634,22 +10635,22 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10634
10635
|
var se;
|
|
10635
10636
|
switch (V.ATHtype) {
|
|
10636
10637
|
case 0:
|
|
10637
|
-
se =
|
|
10638
|
+
se = Gt(fe, 9);
|
|
10638
10639
|
break;
|
|
10639
10640
|
case 1:
|
|
10640
|
-
se =
|
|
10641
|
+
se = Gt(fe, -1);
|
|
10641
10642
|
break;
|
|
10642
10643
|
case 2:
|
|
10643
|
-
se =
|
|
10644
|
+
se = Gt(fe, 0);
|
|
10644
10645
|
break;
|
|
10645
10646
|
case 3:
|
|
10646
|
-
se =
|
|
10647
|
+
se = Gt(fe, 1) + 6;
|
|
10647
10648
|
break;
|
|
10648
10649
|
case 4:
|
|
10649
|
-
se =
|
|
10650
|
+
se = Gt(fe, V.ATHcurve);
|
|
10650
10651
|
break;
|
|
10651
10652
|
default:
|
|
10652
|
-
se =
|
|
10653
|
+
se = Gt(fe, 0);
|
|
10653
10654
|
break;
|
|
10654
10655
|
}
|
|
10655
10656
|
return se;
|
|
@@ -10661,8 +10662,8 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10661
10662
|
var j = 16384 + A;
|
|
10662
10663
|
pe.LAME_MAXMP3BUFFER = j;
|
|
10663
10664
|
var g, ye, _, P, me, Y = new Ie(), ce, O;
|
|
10664
|
-
this.enc = new i(), this.setModules = function(a, r, te, D, $, xe, Le,
|
|
10665
|
-
g = a, ye = r, _ = te, P = D, me = $, ce = xe, O =
|
|
10665
|
+
this.enc = new i(), this.setModules = function(a, r, te, D, $, xe, Le, Ye, Qe) {
|
|
10666
|
+
g = a, ye = r, _ = te, P = D, me = $, ce = xe, O = Ye, this.enc.setModules(ye, Y, P, ce);
|
|
10666
10667
|
};
|
|
10667
10668
|
function Te() {
|
|
10668
10669
|
this.mask_adjust = 0, this.mask_adjust_short = 0, this.bo_l_weight = N(i.SBMAX_l), this.bo_s_weight = N(i.SBMAX_s);
|
|
@@ -10783,8 +10784,8 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10783
10784
|
}
|
|
10784
10785
|
r.highpass2 > 0 && b(), r.highpass2 > 0 && b();
|
|
10785
10786
|
for (var $ = 0; $ < 32; $++) {
|
|
10786
|
-
var Le,
|
|
10787
|
-
r.highpass2 > r.highpass1 ? b() : Le = 1, r.lowpass2 > r.lowpass1 ?
|
|
10787
|
+
var Le, Ye, xe = $ / 31;
|
|
10788
|
+
r.highpass2 > r.highpass1 ? b() : Le = 1, r.lowpass2 > r.lowpass1 ? Ye = R((xe - r.lowpass1) / (r.lowpass2 - r.lowpass1 + 1e-20)) : Ye = 1, r.amp_filter[$] = Le * Ye;
|
|
10788
10789
|
}
|
|
10789
10790
|
}
|
|
10790
10791
|
function B(a) {
|
|
@@ -10905,14 +10906,14 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10905
10906
|
for (var xe = r.samplerate_index + 3 * a.version + 6 * (a.out_samplerate < 16e3 ? 1 : 0), Le = 0; Le < i.SBMAX_l + 1; Le++)
|
|
10906
10907
|
r.scalefac_band.l[Le] = P.sfBandIndex[xe].l[Le];
|
|
10907
10908
|
for (var Le = 0; Le < i.PSFB21 + 1; Le++) {
|
|
10908
|
-
var
|
|
10909
|
+
var Ye = (r.scalefac_band.l[22] - r.scalefac_band.l[21]) / i.PSFB21, Qe = r.scalefac_band.l[21] + Le * Ye;
|
|
10909
10910
|
r.scalefac_band.psfb21[Le] = Qe;
|
|
10910
10911
|
}
|
|
10911
10912
|
r.scalefac_band.psfb21[i.PSFB21] = 576;
|
|
10912
10913
|
for (var Le = 0; Le < i.SBMAX_s + 1; Le++)
|
|
10913
10914
|
r.scalefac_band.s[Le] = P.sfBandIndex[xe].s[Le];
|
|
10914
10915
|
for (var Le = 0; Le < i.PSFB12 + 1; Le++) {
|
|
10915
|
-
var
|
|
10916
|
+
var Ye = (r.scalefac_band.s[13] - r.scalefac_band.s[12]) / i.PSFB12, Qe = r.scalefac_band.s[12] + Le * Ye;
|
|
10916
10917
|
r.scalefac_band.psfb12[Le] = Qe;
|
|
10917
10918
|
}
|
|
10918
10919
|
r.scalefac_band.psfb12[i.PSFB12] = 192, a.version == 1 ? r.sideinfo_len = r.channels_out == 1 ? 21 : 36 : r.sideinfo_len = r.channels_out == 1 ? 13 : 21, a.error_protection && (r.sideinfo_len += 2), n(a), r.Class_ID = t;
|
|
@@ -10945,12 +10946,12 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10945
10946
|
(a.in_buffer_0 == null || a.in_buffer_nsamples < r) && (a.in_buffer_0 = N(r), a.in_buffer_1 = N(r), a.in_buffer_nsamples = r);
|
|
10946
10947
|
}
|
|
10947
10948
|
this.lame_encode_flush = function(a, r, te, D) {
|
|
10948
|
-
var $ = a.internal_flags, xe = Ee([2, 1152]), Le = 0,
|
|
10949
|
+
var $ = a.internal_flags, xe = Ee([2, 1152]), Le = 0, Ye, Qe, nt, at, Mt = $.mf_samples_to_encode - i.POSTDELAY, Rt = c(a);
|
|
10949
10950
|
if ($.mf_samples_to_encode < 1)
|
|
10950
10951
|
return 0;
|
|
10951
|
-
for (
|
|
10952
|
+
for (Ye = 0, a.in_samplerate != a.out_samplerate && b(), nt = a.framesize - Mt % a.framesize, nt < 576 && (nt += a.framesize), a.encoder_padding = nt, at = (Mt + nt) / a.framesize; at > 0 && Le >= 0; ) {
|
|
10952
10953
|
var wt = Rt - $.mf_size, St = a.frameNum;
|
|
10953
|
-
wt *= a.in_samplerate, wt /= a.out_samplerate, wt > 1152 && (wt = 1152), wt < 1 && (wt = 1), Qe = D -
|
|
10954
|
+
wt *= a.in_samplerate, wt /= a.out_samplerate, wt > 1152 && (wt = 1152), wt < 1 && (wt = 1), Qe = D - Ye, D == 0 && (Qe = 0), Le = this.lame_encode_buffer(
|
|
10954
10955
|
a,
|
|
10955
10956
|
xe[0],
|
|
10956
10957
|
xe[1],
|
|
@@ -10958,24 +10959,24 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10958
10959
|
r,
|
|
10959
10960
|
te,
|
|
10960
10961
|
Qe
|
|
10961
|
-
), te += Le,
|
|
10962
|
+
), te += Le, Ye += Le, at -= St != a.frameNum ? 1 : 0;
|
|
10962
10963
|
}
|
|
10963
|
-
return $.mf_samples_to_encode = 0, Le < 0 || (Qe = D -
|
|
10964
|
+
return $.mf_samples_to_encode = 0, Le < 0 || (Qe = D - Ye, D == 0 && (Qe = 0), ye.flush_bitstream(a), Le = ye.copy_buffer(
|
|
10964
10965
|
$,
|
|
10965
10966
|
r,
|
|
10966
10967
|
te,
|
|
10967
10968
|
Qe,
|
|
10968
10969
|
1
|
|
10969
|
-
), Le < 0) ? Le : (te += Le,
|
|
10970
|
+
), Le < 0) ? Le : (te += Le, Ye += Le, Qe = D - Ye, D == 0 && (Qe = 0), a.write_id3tag_automatic && b(), Ye);
|
|
10970
10971
|
}, this.lame_encode_buffer = function(a, r, te, D, $, xe, Le) {
|
|
10971
|
-
var
|
|
10972
|
-
if (
|
|
10972
|
+
var Ye = a.internal_flags, Qe = [null, null];
|
|
10973
|
+
if (Ye.Class_ID != t)
|
|
10973
10974
|
return -3;
|
|
10974
10975
|
if (D == 0)
|
|
10975
10976
|
return 0;
|
|
10976
|
-
X(
|
|
10977
|
+
X(Ye, D), Qe[0] = Ye.in_buffer_0, Qe[1] = Ye.in_buffer_1;
|
|
10977
10978
|
for (var nt = 0; nt < D; nt++)
|
|
10978
|
-
Qe[0][nt] = r[nt],
|
|
10979
|
+
Qe[0][nt] = r[nt], Ye.channels_in > 1 && (Qe[1][nt] = te[nt]);
|
|
10979
10980
|
return h(
|
|
10980
10981
|
a,
|
|
10981
10982
|
Qe[0],
|
|
@@ -10991,24 +10992,24 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
10991
10992
|
return r = Math.max(r, 512 + a.framesize - 32), r;
|
|
10992
10993
|
}
|
|
10993
10994
|
function h(a, r, te, D, $, xe, Le) {
|
|
10994
|
-
var
|
|
10995
|
-
if (
|
|
10995
|
+
var Ye = a.internal_flags, Qe = 0, nt, at, Mt, Rt, wt, St = [null, null], Et = [null, null];
|
|
10996
|
+
if (Ye.Class_ID != t)
|
|
10996
10997
|
return -3;
|
|
10997
10998
|
if (D == 0)
|
|
10998
10999
|
return 0;
|
|
10999
|
-
if (wt = ye.copy_buffer(
|
|
11000
|
+
if (wt = ye.copy_buffer(Ye, $, xe, Le, 0), wt < 0)
|
|
11000
11001
|
return wt;
|
|
11001
11002
|
if (xe += wt, Qe += wt, Et[0] = r, Et[1] = te, Je.NEQ(a.scale, 0) && Je.NEQ(a.scale, 1))
|
|
11002
11003
|
for (at = 0; at < D; ++at)
|
|
11003
|
-
Et[0][at] *= a.scale,
|
|
11004
|
+
Et[0][at] *= a.scale, Ye.channels_out == 2 && (Et[1][at] *= a.scale);
|
|
11004
11005
|
if (Je.NEQ(a.scale_left, 0) && Je.NEQ(a.scale_left, 1))
|
|
11005
11006
|
for (at = 0; at < D; ++at)
|
|
11006
11007
|
Et[0][at] *= a.scale_left;
|
|
11007
11008
|
if (Je.NEQ(a.scale_right, 0) && Je.NEQ(a.scale_right, 1))
|
|
11008
11009
|
for (at = 0; at < D; ++at)
|
|
11009
11010
|
Et[1][at] *= a.scale_right;
|
|
11010
|
-
a.num_channels == 2 &&
|
|
11011
|
-
for (var
|
|
11011
|
+
a.num_channels == 2 && Ye.channels_out == 1 && b(), Rt = c(a), St[0] = Ye.mfbuf[0], St[1] = Ye.mfbuf[1];
|
|
11012
|
+
for (var Gt = 0; D > 0; ) {
|
|
11012
11013
|
var fe = [null, null], V = 0, se = 0;
|
|
11013
11014
|
fe[0] = Et[0], fe[1] = Et[1];
|
|
11014
11015
|
var je = new S();
|
|
@@ -11016,20 +11017,20 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
11016
11017
|
a,
|
|
11017
11018
|
St,
|
|
11018
11019
|
fe,
|
|
11019
|
-
|
|
11020
|
+
Gt,
|
|
11020
11021
|
D,
|
|
11021
11022
|
je
|
|
11022
|
-
), V = je.n_in, se = je.n_out,
|
|
11023
|
-
|
|
11023
|
+
), V = je.n_in, se = je.n_out, Ye.findReplayGain && !Ye.decode_on_the_fly && g.AnalyzeSamples(
|
|
11024
|
+
Ye.rgdata,
|
|
11024
11025
|
St[0],
|
|
11025
|
-
|
|
11026
|
+
Ye.mf_size,
|
|
11026
11027
|
St[1],
|
|
11027
|
-
|
|
11028
|
+
Ye.mf_size,
|
|
11028
11029
|
se,
|
|
11029
|
-
|
|
11030
|
+
Ye.channels_out
|
|
11030
11031
|
) == ee.GAIN_ANALYSIS_ERROR)
|
|
11031
11032
|
return -6;
|
|
11032
|
-
if (D -= V,
|
|
11033
|
+
if (D -= V, Gt += V, Ye.channels_out == 2, Ye.mf_size += se, Ye.mf_samples_to_encode < 1 && b(), Ye.mf_samples_to_encode += se, Ye.mf_size >= Rt) {
|
|
11033
11034
|
var Ge = Le - Qe;
|
|
11034
11035
|
if (Le == 0 && (Ge = 0), nt = m(
|
|
11035
11036
|
a,
|
|
@@ -11040,8 +11041,8 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
11040
11041
|
Ge
|
|
11041
11042
|
), nt < 0)
|
|
11042
11043
|
return nt;
|
|
11043
|
-
for (xe += nt, Qe += nt,
|
|
11044
|
-
for (at = 0; at <
|
|
11044
|
+
for (xe += nt, Qe += nt, Ye.mf_size -= a.framesize, Ye.mf_samples_to_encode -= a.framesize, Mt = 0; Mt < Ye.channels_out; Mt++)
|
|
11045
|
+
for (at = 0; at < Ye.mf_size; at++)
|
|
11045
11046
|
St[Mt][at] = St[Mt][at + a.framesize];
|
|
11046
11047
|
}
|
|
11047
11048
|
}
|
|
@@ -11067,8 +11068,8 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
11067
11068
|
b();
|
|
11068
11069
|
else {
|
|
11069
11070
|
xe.n_out = Math.min(a.framesize, $), xe.n_in = xe.n_out;
|
|
11070
|
-
for (var
|
|
11071
|
-
r[0][Le.mf_size +
|
|
11071
|
+
for (var Ye = 0; Ye < xe.n_out; ++Ye)
|
|
11072
|
+
r[0][Le.mf_size + Ye] = te[0][D + Ye], Le.channels_out == 2 && (r[1][Le.mf_size + Ye] = te[1][D + Ye]);
|
|
11072
11073
|
}
|
|
11073
11074
|
}
|
|
11074
11075
|
}
|
|
@@ -11143,7 +11144,7 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
11143
11144
|
we.set = N = ve;
|
|
11144
11145
|
var Ee = "compatibleCanvas";
|
|
11145
11146
|
if (N[Ee])
|
|
11146
|
-
var
|
|
11147
|
+
var Ne = we.canvas = N[Ee];
|
|
11147
11148
|
else {
|
|
11148
11149
|
if (!b)
|
|
11149
11150
|
throw new Error(ne.G("NonBrowser-1", [F]));
|
|
@@ -11151,24 +11152,24 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
11151
11152
|
ge && (typeof ge == "string" ? ge = document.querySelector(ge) : ge.length && (ge = ge[0])), ge && (N.width = ge.offsetWidth, N.height = ge.offsetHeight);
|
|
11152
11153
|
var q = we.elem = document.createElement("div");
|
|
11153
11154
|
q.style.fontSize = 0, q.innerHTML = '<canvas style="width:100%;height:100%;"/>';
|
|
11154
|
-
var
|
|
11155
|
+
var Ne = we.canvas = q.querySelector("canvas");
|
|
11155
11156
|
ge && (ge.innerHTML = "", ge.appendChild(q));
|
|
11156
11157
|
}
|
|
11157
11158
|
var I = N.scale, ae = N.width * I, Ce = N.height * I;
|
|
11158
11159
|
if (!ae || !Ce)
|
|
11159
11160
|
throw new Error(ne.G("IllegalArgs-1", [F + " width=0 height=0"]));
|
|
11160
|
-
|
|
11161
|
-
var T = we.ctx =
|
|
11161
|
+
Ne.width = ae, Ne.height = Ce;
|
|
11162
|
+
var T = we.ctx = Ne.getContext("2d");
|
|
11162
11163
|
we.linear1 = we.genLinear(T, ae, N.linear1), we.linear2 = we.genLinear(T, ae, N.linear2), we.linearBg = we.genLinear(T, Ce, N.linearBg, !0), we._phase = 0;
|
|
11163
11164
|
};
|
|
11164
11165
|
_e.prototype = ue.prototype = {
|
|
11165
11166
|
genLinear: function(N, we, ve, be) {
|
|
11166
|
-
for (var Ee = N.createLinearGradient(0, 0, be ? 0 : we, be ? we : 0),
|
|
11167
|
-
Ee.addColorStop(ve[
|
|
11167
|
+
for (var Ee = N.createLinearGradient(0, 0, be ? 0 : we, be ? we : 0), Ne = 0; Ne < ve.length; )
|
|
11168
|
+
Ee.addColorStop(ve[Ne++], ve[Ne++]);
|
|
11168
11169
|
return Ee;
|
|
11169
11170
|
},
|
|
11170
11171
|
genPath: function(N, we, ve) {
|
|
11171
|
-
for (var be = [], Ee = this,
|
|
11172
|
+
for (var be = [], Ee = this, Ne = Ee.set, ge = Ne.scale, q = Ne.width * ge, I = Ne.height * ge / 2, ae = 0; ae <= q; ae += ge) {
|
|
11172
11173
|
var Ce = (1 + Math.cos(Math.PI + ae / q * 2 * Math.PI)) / 2, T = Ce * I * we * Math.sin(2 * Math.PI * (ae / q) * N + ve) + I;
|
|
11173
11174
|
be.push(T);
|
|
11174
11175
|
}
|
|
@@ -11186,27 +11187,27 @@ const D0 = /* @__PURE__ */ H0(sn);
|
|
|
11186
11187
|
var be = Date.now(), Ee = N.drawTime || 0;
|
|
11187
11188
|
if (!(be - Ee < ve)) {
|
|
11188
11189
|
N.drawTime = be;
|
|
11189
|
-
for (var
|
|
11190
|
+
for (var Ne = N.sampleRate / we.fps, ge = N.pcmData, q = N.pcmPos, I = Math.max(0, Math.min(Ne, ge.length - q)), ae = 0, Ce = 0; Ce < I; Ce++, q++)
|
|
11190
11191
|
ae += Math.abs(ge[q]);
|
|
11191
11192
|
N.pcmPos = q, (I || !we.keep) && N.draw(w.PowerLevel(ae, I)), !I && be - N.inputTime > 1300 && (clearInterval(N.timer), N.timer = 0);
|
|
11192
11193
|
}
|
|
11193
11194
|
},
|
|
11194
11195
|
draw: function(N) {
|
|
11195
|
-
var we = this, ve = we.set, be = we.ctx, Ee = ve.scale,
|
|
11196
|
-
be.clearRect(0, 0,
|
|
11197
|
-
for (var he = 0, ie = 0; ie <=
|
|
11196
|
+
var we = this, ve = we.set, be = we.ctx, Ee = ve.scale, Ne = ve.width * Ee, ge = ve.height * Ee, q = ve.speed / ve.fps, I = we._phase -= q, ae = I + q * ve.phase, Ce = N / 100, T = we.genPath(2, Ce, I), J = we.genPath(1.8, Ce, ae);
|
|
11197
|
+
be.clearRect(0, 0, Ne, ge), be.beginPath();
|
|
11198
|
+
for (var he = 0, ie = 0; ie <= Ne; he++, ie += Ee)
|
|
11198
11199
|
ie == 0 ? be.moveTo(ie, T[he]) : be.lineTo(ie, T[he]);
|
|
11199
11200
|
he--;
|
|
11200
|
-
for (var ie =
|
|
11201
|
+
for (var ie = Ne - 1; ie >= 0; he--, ie -= Ee)
|
|
11201
11202
|
be.lineTo(ie, J[he]);
|
|
11202
11203
|
be.closePath(), be.fillStyle = we.linearBg, be.fill(), we.drawPath(J, we.linear2), we.drawPath(T, we.linear1);
|
|
11203
11204
|
},
|
|
11204
11205
|
drawPath: function(N, we) {
|
|
11205
|
-
var ve = this, be = ve.set, Ee = ve.ctx,
|
|
11206
|
+
var ve = this, be = ve.set, Ee = ve.ctx, Ne = be.scale, ge = be.width * Ne;
|
|
11206
11207
|
Ee.beginPath();
|
|
11207
|
-
for (var q = 0, I = 0; I <= ge; q++, I +=
|
|
11208
|
+
for (var q = 0, I = 0; I <= ge; q++, I += Ne)
|
|
11208
11209
|
I == 0 ? Ee.moveTo(I, N[q]) : Ee.lineTo(I, N[q]);
|
|
11209
|
-
Ee.lineWidth = be.lineWidth *
|
|
11210
|
+
Ee.lineWidth = be.lineWidth * Ne, Ee.strokeStyle = we, Ee.stroke();
|
|
11210
11211
|
}
|
|
11211
11212
|
}, w[F] = ue;
|
|
11212
11213
|
});
|
|
@@ -11232,7 +11233,7 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
|
|
|
11232
11233
|
},
|
|
11233
11234
|
emits: ["finish", "cancel"],
|
|
11234
11235
|
setup(w, { emit: Q }) {
|
|
11235
|
-
const ne = w, b = Q, ue = ct(null), F = ct(null), _e = ct(!1), N = ct(!1), we = ct(null), ve = ct(null), be = ct("00:00"), Ee = ct("100vw"),
|
|
11236
|
+
const ne = w, b = Q, ue = ct(null), F = ct(null), _e = ct(!1), N = ct(!1), we = ct(null), ve = ct(null), be = ct("00:00"), Ee = ct("100vw"), Ne = ct("");
|
|
11236
11237
|
function ge() {
|
|
11237
11238
|
Ee.value = _t.isMobile || ne.responsive ? "100vw" : `${document.querySelector(".record-tree").clientWidth}px`, ue.value = D0({
|
|
11238
11239
|
//本配置参数请参考下面的文档,有详细介绍
|
|
@@ -11259,7 +11260,7 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
|
|
|
11259
11260
|
);
|
|
11260
11261
|
}
|
|
11261
11262
|
f0(() => {
|
|
11262
|
-
ue.value.close(), ue.value = null,
|
|
11263
|
+
ue.value.close(), ue.value = null, Ne.value = "";
|
|
11263
11264
|
}), ge();
|
|
11264
11265
|
function q(ie) {
|
|
11265
11266
|
const ee = Math.floor(ie / 1e3), ke = Math.floor(ee / 60), Ve = ee % 60, Ue = ke.toString().padStart(2, "0"), Je = Ve.toString().padStart(2, "0");
|
|
@@ -11286,7 +11287,7 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
|
|
|
11286
11287
|
b("finish", [Ve]), b("cancel");
|
|
11287
11288
|
}
|
|
11288
11289
|
function T() {
|
|
11289
|
-
b("finish",
|
|
11290
|
+
b("finish", Ne.value), b("cancel");
|
|
11290
11291
|
}
|
|
11291
11292
|
function J() {
|
|
11292
11293
|
b("cancel");
|
|
@@ -11297,12 +11298,12 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
|
|
|
11297
11298
|
lastModified: ee
|
|
11298
11299
|
});
|
|
11299
11300
|
nn(Ve, (Ue) => {
|
|
11300
|
-
|
|
11301
|
+
Ne.value = Ue;
|
|
11301
11302
|
});
|
|
11302
11303
|
}
|
|
11303
11304
|
return (ie, ee) => (st(), ft("div", {
|
|
11304
11305
|
class: "wrap",
|
|
11305
|
-
style:
|
|
11306
|
+
style: qt({
|
|
11306
11307
|
width: Ee.value
|
|
11307
11308
|
})
|
|
11308
11309
|
}, [
|
|
@@ -11313,7 +11314,7 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
|
|
|
11313
11314
|
title: "停止录制",
|
|
11314
11315
|
class: "oper"
|
|
11315
11316
|
}, [
|
|
11316
|
-
|
|
11317
|
+
gt(Ke(Bt), {
|
|
11317
11318
|
src: Ke(At).stop,
|
|
11318
11319
|
width: 24,
|
|
11319
11320
|
height: 24
|
|
@@ -11324,7 +11325,7 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
|
|
|
11324
11325
|
title: "开始录制",
|
|
11325
11326
|
class: "oper"
|
|
11326
11327
|
}, [
|
|
11327
|
-
|
|
11328
|
+
gt(Ke(Bt), {
|
|
11328
11329
|
src: Ke(At).record,
|
|
11329
11330
|
width: 24,
|
|
11330
11331
|
height: 24
|
|
@@ -11343,8 +11344,8 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
|
|
|
11343
11344
|
ref: "audio"
|
|
11344
11345
|
}, null, 8, vn),
|
|
11345
11346
|
et("a", { onClick: he }, "转文本")
|
|
11346
|
-
])) :
|
|
11347
|
-
|
|
11347
|
+
])) : Ct("", !0),
|
|
11348
|
+
Ne.value ? (st(), ft("div", _n, u0(Ne.value), 1)) : Ct("", !0),
|
|
11348
11349
|
et("div", mn, [
|
|
11349
11350
|
N.value ? (st(), ft("a", {
|
|
11350
11351
|
key: 1,
|
|
@@ -11352,7 +11353,7 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
|
|
|
11352
11353
|
title: "停止录制",
|
|
11353
11354
|
class: "oper"
|
|
11354
11355
|
}, [
|
|
11355
|
-
|
|
11356
|
+
gt(Ke(Bt), {
|
|
11356
11357
|
src: Ke(At).stop,
|
|
11357
11358
|
width: 24,
|
|
11358
11359
|
height: 24
|
|
@@ -11363,7 +11364,7 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
|
|
|
11363
11364
|
title: "开始录制",
|
|
11364
11365
|
class: "oper"
|
|
11365
11366
|
}, [
|
|
11366
|
-
|
|
11367
|
+
gt(Ke(Bt), {
|
|
11367
11368
|
src: Ke(At).record,
|
|
11368
11369
|
width: 24,
|
|
11369
11370
|
height: 24
|
|
@@ -11377,14 +11378,14 @@ const ga = (w) => (ka("data-v-e59bd63b"), w = w(), Aa(), w), on = {
|
|
|
11377
11378
|
disabled: !ve.value
|
|
11378
11379
|
})
|
|
11379
11380
|
}, " 插入音频 ", 2),
|
|
11380
|
-
|
|
11381
|
+
Ne.value ? (st(), ft("a", {
|
|
11381
11382
|
key: 2,
|
|
11382
11383
|
onClick: T,
|
|
11383
11384
|
class: Ft({
|
|
11384
11385
|
btn: !0,
|
|
11385
11386
|
finish: !0
|
|
11386
11387
|
})
|
|
11387
|
-
}, " 插入文本 ")) :
|
|
11388
|
+
}, " 插入文本 ")) : Ct("", !0),
|
|
11388
11389
|
et("a", {
|
|
11389
11390
|
onClick: J,
|
|
11390
11391
|
class: "cancel btn"
|
|
@@ -12003,7 +12004,7 @@ var xa = { exports: {} };
|
|
|
12003
12004
|
* @param {object} config - {type:"video", disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, video: HTMLVideoElement, getNativeBlob:true, etc.}
|
|
12004
12005
|
*/
|
|
12005
12006
|
function ne(k, e) {
|
|
12006
|
-
return !e.recorderType && !e.type && (e.audio && e.video ? e.type = "video" : e.audio && !e.video && (e.type = "audio")), e.recorderType && !e.type && (e.recorderType === M || e.recorderType === Oe || typeof Fe < "u" && e.recorderType === Fe ? e.type = "video" : e.recorderType ===
|
|
12007
|
+
return !e.recorderType && !e.type && (e.audio && e.video ? e.type = "video" : e.audio && !e.video && (e.type = "audio")), e.recorderType && !e.type && (e.recorderType === M || e.recorderType === Oe || typeof Fe < "u" && e.recorderType === Fe ? e.type = "video" : e.recorderType === Me ? e.type = "gif" : e.recorderType === Je ? e.type = "audio" : e.recorderType === Ue && (he(k, "audio").length && he(k, "video").length || !he(k, "audio").length && he(k, "video").length ? e.type = "video" : he(k, "audio").length && !he(k, "video").length && (e.type = "audio"))), typeof Ue < "u" && typeof MediaRecorder < "u" && "requestData" in MediaRecorder.prototype && (e.mimeType || (e.mimeType = "video/webm"), e.type || (e.type = e.mimeType.split("/")[0]), e.bitsPerSecond), e.type || (e.mimeType && (e.type = e.mimeType.split("/")[0]), e.type || (e.type = "audio")), e;
|
|
12007
12008
|
}
|
|
12008
12009
|
/**
|
|
12009
12010
|
* {@link GetRecorderType} is an inner/private helper for {@link RecordRTC}.
|
|
@@ -12021,7 +12022,7 @@ var xa = { exports: {} };
|
|
|
12021
12022
|
*/
|
|
12022
12023
|
function b(k, e) {
|
|
12023
12024
|
var s;
|
|
12024
|
-
return (q || Ee ||
|
|
12025
|
+
return (q || Ee || Ne) && (s = Je), typeof MediaRecorder < "u" && "requestData" in MediaRecorder.prototype && !q && (s = Ue), e.type === "video" && (q || Ne) && (s = M, typeof Fe < "u" && typeof ReadableStream < "u" && (s = Fe)), e.type === "gif" && (s = Me), e.type === "canvas" && (s = Oe), Ve() && s !== Oe && s !== Me && typeof MediaRecorder < "u" && "requestData" in MediaRecorder.prototype && (he(k, "video").length || he(k, "audio").length) && (e.type === "audio" ? typeof MediaRecorder.isTypeSupported == "function" && MediaRecorder.isTypeSupported("audio/webm") && (s = Ue) : typeof MediaRecorder.isTypeSupported == "function" && MediaRecorder.isTypeSupported("video/webm") && (s = Ue)), k instanceof Array && k.length && (s = tt), e.recorderType && (s = e.recorderType), !e.disableLogs && s && s.name && console.log("Using recorderType:", s.name || s.constructor.name), !s && I && (s = Ue), s;
|
|
12025
12026
|
}
|
|
12026
12027
|
/**
|
|
12027
12028
|
* MRecordRTC runs on top of {@link RecordRTC} to bring multiple recordings in a single place, by providing simple API.
|
|
@@ -12271,7 +12272,7 @@ var xa = { exports: {} };
|
|
|
12271
12272
|
typeof ve > "u" && (typeof webkitAudioContext < "u" && (ve = webkitAudioContext), typeof mozAudioContext < "u" && (ve = mozAudioContext));
|
|
12272
12273
|
var be = window.URL;
|
|
12273
12274
|
typeof be > "u" && typeof webkitURL < "u" && (be = webkitURL), typeof navigator < "u" && typeof navigator.getUserMedia > "u" && (typeof navigator.webkitGetUserMedia < "u" && (navigator.getUserMedia = navigator.webkitGetUserMedia), typeof navigator.mozGetUserMedia < "u" && (navigator.getUserMedia = navigator.mozGetUserMedia));
|
|
12274
|
-
var Ee = navigator.userAgent.indexOf("Edge") !== -1 && (!!navigator.msSaveBlob || !!navigator.msSaveOrOpenBlob),
|
|
12275
|
+
var Ee = navigator.userAgent.indexOf("Edge") !== -1 && (!!navigator.msSaveBlob || !!navigator.msSaveOrOpenBlob), Ne = !!window.opera || navigator.userAgent.indexOf("OPR/") !== -1, ge = navigator.userAgent.toLowerCase().indexOf("firefox") > -1 && "netscape" in window && / rv:/.test(navigator.userAgent), q = !Ne && !Ee && !!navigator.webkitGetUserMedia || J() || navigator.userAgent.toLowerCase().indexOf("chrome/") !== -1, I = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
12275
12276
|
I && !q && navigator.userAgent.indexOf("CriOS") !== -1 && (I = !1, q = !0);
|
|
12276
12277
|
var ae = window.MediaStream;
|
|
12277
12278
|
typeof ae > "u" && typeof webkitMediaStream < "u" && (ae = webkitMediaStream), typeof ae < "u" && typeof ae.prototype.stop > "u" && (ae.prototype.stop = function() {
|
|
@@ -12353,7 +12354,7 @@ var xa = { exports: {} };
|
|
|
12353
12354
|
if (ge || I || Ee)
|
|
12354
12355
|
return !0;
|
|
12355
12356
|
var k = navigator.userAgent, e = "" + parseFloat(navigator.appVersion), s = parseInt(navigator.appVersion, 10), d, v;
|
|
12356
|
-
return (q ||
|
|
12357
|
+
return (q || Ne) && (d = k.indexOf("Chrome"), e = k.substring(d + 7)), (v = e.indexOf(";")) !== -1 && (e = e.substring(0, v)), (v = e.indexOf(" ")) !== -1 && (e = e.substring(0, v)), s = parseInt("" + e, 10), isNaN(s) && (e = "" + parseFloat(navigator.appVersion), s = parseInt(navigator.appVersion, 10)), s >= 49;
|
|
12357
12358
|
}
|
|
12358
12359
|
/**
|
|
12359
12360
|
* MediaStreamRecorder is an abstraction layer for {@link https://w3c.github.io/mediacapture-record/MediaRecorder.html|MediaRecorder API}. It is used by {@link RecordRTC} to record MediaStream(s) in both Chrome and Firefox.
|
|
@@ -12555,8 +12556,8 @@ var xa = { exports: {} };
|
|
|
12555
12556
|
var te = Math.round(E.length * (a / r)), D = [], $ = Number((E.length - 1) / (te - 1));
|
|
12556
12557
|
D[0] = E[0];
|
|
12557
12558
|
for (var xe = 1; xe < te - 1; xe++) {
|
|
12558
|
-
var Le = xe * $,
|
|
12559
|
-
D[xe] = R(E[
|
|
12559
|
+
var Le = xe * $, Ye = Number(Math.floor(Le)).toFixed(), Qe = Number(Math.ceil(Le)).toFixed(), nt = Le - Ye;
|
|
12560
|
+
D[xe] = R(E[Ye], E[Qe], nt);
|
|
12560
12561
|
}
|
|
12561
12562
|
return D[te - 1] = E[E.length - 1], D;
|
|
12562
12563
|
}
|
|
@@ -13407,7 +13408,7 @@ var xa = { exports: {} };
|
|
|
13407
13408
|
* @param {MediaStream} mediaStream - MediaStream object or HTMLCanvasElement or CanvasRenderingContext2D.
|
|
13408
13409
|
* @param {object} config - {disableLogs:true, initCallback: function, width: 320, height: 240, frameRate: 200, quality: 10}
|
|
13409
13410
|
*/
|
|
13410
|
-
function
|
|
13411
|
+
function Me(k, e) {
|
|
13411
13412
|
if (typeof GIFEncoder > "u") {
|
|
13412
13413
|
var s = document.createElement("script");
|
|
13413
13414
|
s.src = "https://www.webrtc-experiment.com/gif-recorder.js", (document.body || document.documentElement).appendChild(s);
|
|
@@ -13471,7 +13472,7 @@ var xa = { exports: {} };
|
|
|
13471
13472
|
}
|
|
13472
13473
|
var de = null, De, K, G = this;
|
|
13473
13474
|
}
|
|
13474
|
-
typeof Q < "u" && (Q.GifRecorder =
|
|
13475
|
+
typeof Q < "u" && (Q.GifRecorder = Me);
|
|
13475
13476
|
function Pe(k, e) {
|
|
13476
13477
|
var s = "Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";
|
|
13477
13478
|
(function(z) {
|
|
@@ -13977,7 +13978,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
13977
13978
|
async function Ee() {
|
|
13978
13979
|
ge(), ue.value.startRecording(), _e.value = !0;
|
|
13979
13980
|
}
|
|
13980
|
-
async function
|
|
13981
|
+
async function Ne() {
|
|
13981
13982
|
_e.value = !1, await ue.value.stopRecording(), N.value = await ue.value.getBlob(), ue.value.reset(), Ot(() => {
|
|
13982
13983
|
q(), ve.value.src = URL.createObjectURL(N.value);
|
|
13983
13984
|
});
|
|
@@ -14002,7 +14003,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14002
14003
|
}
|
|
14003
14004
|
return (Ce, T) => (st(), ft("div", {
|
|
14004
14005
|
class: "wrap",
|
|
14005
|
-
style:
|
|
14006
|
+
style: qt({
|
|
14006
14007
|
width: we.value
|
|
14007
14008
|
})
|
|
14008
14009
|
}, [
|
|
@@ -14018,11 +14019,11 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14018
14019
|
et("div", gn, [
|
|
14019
14020
|
_e.value ? (st(), ft("a", {
|
|
14020
14021
|
key: 1,
|
|
14021
|
-
onClick:
|
|
14022
|
+
onClick: Ne,
|
|
14022
14023
|
title: "停止录制",
|
|
14023
14024
|
class: "oper"
|
|
14024
14025
|
}, [
|
|
14025
|
-
|
|
14026
|
+
gt(Ke(Bt), {
|
|
14026
14027
|
src: Ke(At).stop,
|
|
14027
14028
|
width: 24,
|
|
14028
14029
|
height: 24
|
|
@@ -14033,7 +14034,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14033
14034
|
title: "开始录制",
|
|
14034
14035
|
class: "oper"
|
|
14035
14036
|
}, [
|
|
14036
|
-
|
|
14037
|
+
gt(Ke(Bt), {
|
|
14037
14038
|
src: Ke(At).record,
|
|
14038
14039
|
width: 24,
|
|
14039
14040
|
height: 24
|
|
@@ -14084,10 +14085,10 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14084
14085
|
we.value.getContext("2d").drawImage(N.value, 0, 0, we.value.width, we.value.height), ue.value = we.value.toDataURL("image/jpeg");
|
|
14085
14086
|
}
|
|
14086
14087
|
function Ee() {
|
|
14087
|
-
const I = `${(/* @__PURE__ */ new Date()).getTime()}.jpeg`, ae =
|
|
14088
|
+
const I = `${(/* @__PURE__ */ new Date()).getTime()}.jpeg`, ae = Ne(ue.value, I);
|
|
14088
14089
|
b("finish", [ae]), b("cancel");
|
|
14089
14090
|
}
|
|
14090
|
-
function
|
|
14091
|
+
function Ne(q, I) {
|
|
14091
14092
|
let ae = q.split(","), Ce = ae[0].match(/:(.*?);/)[1], T = atob(ae[1]), J = T.length, he = new Uint8Array(J);
|
|
14092
14093
|
for (; J--; )
|
|
14093
14094
|
he[J] = T.charCodeAt(J);
|
|
@@ -14098,7 +14099,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14098
14099
|
}
|
|
14099
14100
|
return ve(), (q, I) => (st(), ft("div", {
|
|
14100
14101
|
class: "wrap",
|
|
14101
|
-
style:
|
|
14102
|
+
style: qt({
|
|
14102
14103
|
width: _e.value
|
|
14103
14104
|
})
|
|
14104
14105
|
}, [
|
|
@@ -14117,7 +14118,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14117
14118
|
ue.value ? (st(), ft("img", {
|
|
14118
14119
|
key: 0,
|
|
14119
14120
|
src: ue.value
|
|
14120
|
-
}, null, 8, Cn)) :
|
|
14121
|
+
}, null, 8, Cn)) : Ct("", !0)
|
|
14121
14122
|
])
|
|
14122
14123
|
]),
|
|
14123
14124
|
et("canvas", {
|
|
@@ -14133,7 +14134,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14133
14134
|
title: "拍照",
|
|
14134
14135
|
class: "oper"
|
|
14135
14136
|
}, [
|
|
14136
|
-
|
|
14137
|
+
gt(Ke(Bt), {
|
|
14137
14138
|
src: Ke(At).photo,
|
|
14138
14139
|
width: 24,
|
|
14139
14140
|
height: 24
|
|
@@ -14158,7 +14159,10 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14158
14159
|
})
|
|
14159
14160
|
], 4));
|
|
14160
14161
|
}
|
|
14161
|
-
}, Bn = /* @__PURE__ */ Jt(An, [["__scopeId", "data-v-69fc6ef1"]]), En = {
|
|
14162
|
+
}, Bn = /* @__PURE__ */ Jt(An, [["__scopeId", "data-v-69fc6ef1"]]), En = {
|
|
14163
|
+
key: 0,
|
|
14164
|
+
class: "top-bar"
|
|
14165
|
+
}, Dn = { class: "top-bar-left" }, Ln = { class: "record-tree-main" }, In = { id: "root_tree" }, On = {
|
|
14162
14166
|
key: 0,
|
|
14163
14167
|
class: "record-tree-options"
|
|
14164
14168
|
}, Fn = { class: "record-tree-option-left" }, Nn = { class: "record-tree-option-left-fixed" }, Yn = { class: "record-tree-option-left-scroll" }, Hn = {
|
|
@@ -14169,7 +14173,10 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14169
14173
|
}, Vn = {
|
|
14170
14174
|
key: 0,
|
|
14171
14175
|
class: "record-tree-option-right"
|
|
14172
|
-
}, Pn = { style: { display: "none" } },
|
|
14176
|
+
}, Pn = { style: { display: "none" } }, Un = {
|
|
14177
|
+
key: 4,
|
|
14178
|
+
class: "record-tree-lock"
|
|
14179
|
+
}, ra = "KEY_PENDING_NODES", zn = "tree_title", ai = {
|
|
14173
14180
|
__name: "record-tree",
|
|
14174
14181
|
props: {
|
|
14175
14182
|
note: {
|
|
@@ -14227,12 +14234,12 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14227
14234
|
setup(w, { expose: Q, emit: ne }) {
|
|
14228
14235
|
const b = w, ue = ne;
|
|
14229
14236
|
Q({ focusTitle: ke, focusContent: ee });
|
|
14230
|
-
const F = ct([{ text: "", uuid: Ut() }]), _e = ct(null), N = ct(!1), we = ct(!1), ve = ct(!1), be = ct(Ut()), Ee = ct(!1),
|
|
14237
|
+
const F = ct([{ text: "", uuid: Ut() }]), _e = ct(null), N = ct(!1), we = ct(!1), ve = ct(!1), be = ct(Ut()), Ee = ct(!1), Ne = ct(b.initialLock), ge = ct(null), q = ct(null), I = ct(null), ae = ct(null), Ce = ct(null);
|
|
14231
14238
|
let T = null;
|
|
14232
14239
|
a0(
|
|
14233
14240
|
() => b.note.created_at,
|
|
14234
14241
|
(K, G) => {
|
|
14235
|
-
K !== G && (
|
|
14242
|
+
K !== G && (Ne.value = b.initialLock);
|
|
14236
14243
|
}
|
|
14237
14244
|
), a0(
|
|
14238
14245
|
() => b.note,
|
|
@@ -14325,7 +14332,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14325
14332
|
content: JSON.stringify(K)
|
|
14326
14333
|
});
|
|
14327
14334
|
}
|
|
14328
|
-
function
|
|
14335
|
+
function Me() {
|
|
14329
14336
|
let K = new KeyboardEvent("keydown", {
|
|
14330
14337
|
bubbles: !0,
|
|
14331
14338
|
cancelable: !0,
|
|
@@ -14377,7 +14384,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14377
14384
|
G && G.dispatch("color", K);
|
|
14378
14385
|
}
|
|
14379
14386
|
function s() {
|
|
14380
|
-
|
|
14387
|
+
Ne.value = !Ne.value, Ne.value || Ot(() => {
|
|
14381
14388
|
ee();
|
|
14382
14389
|
});
|
|
14383
14390
|
}
|
|
@@ -14431,7 +14438,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14431
14438
|
hash: be.value
|
|
14432
14439
|
};
|
|
14433
14440
|
}
|
|
14434
|
-
}), Ie = await Promise.all(le), pe = _t.currentId ===
|
|
14441
|
+
}), Ie = await Promise.all(le), pe = _t.currentId === zn;
|
|
14435
14442
|
G ? G(Ie) : Ie.forEach((Se, Be) => {
|
|
14436
14443
|
Be === 0 && pe ? Ve(Se) : ge.value.appendNode(Se);
|
|
14437
14444
|
});
|
|
@@ -14481,48 +14488,48 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14481
14488
|
"record-tree": !0,
|
|
14482
14489
|
"record-tree-nobar": !w.bar
|
|
14483
14490
|
}),
|
|
14484
|
-
style:
|
|
14491
|
+
style: qt(
|
|
14485
14492
|
w.height ? {
|
|
14486
14493
|
height: w.height
|
|
14487
14494
|
} : ""
|
|
14488
14495
|
),
|
|
14489
14496
|
onMouseenter: ie
|
|
14490
14497
|
}, [
|
|
14491
|
-
|
|
14498
|
+
w.showTitle ? (st(), ft("div", En, [
|
|
14492
14499
|
et("div", Dn, [
|
|
14493
|
-
|
|
14494
|
-
key: 0,
|
|
14500
|
+
gt(Ke(Ur), {
|
|
14495
14501
|
ref_key: "titleEditor",
|
|
14496
14502
|
ref: q,
|
|
14497
14503
|
tags: w.tags,
|
|
14498
|
-
readOnly: w.readOnly ||
|
|
14504
|
+
readOnly: w.readOnly || Ne.value,
|
|
14499
14505
|
enableDbEnter: w.enableDbEnter,
|
|
14500
14506
|
note: w.note,
|
|
14501
14507
|
onFocusContent: ee,
|
|
14502
14508
|
onChange: Ve,
|
|
14503
14509
|
onFile: M,
|
|
14504
14510
|
onDbEnter: Ae
|
|
14505
|
-
}, null, 8, ["tags", "readOnly", "enableDbEnter", "note"])
|
|
14511
|
+
}, null, 8, ["tags", "readOnly", "enableDbEnter", "note"])
|
|
14506
14512
|
]),
|
|
14507
|
-
|
|
14513
|
+
w.readOnly ? Ct("", !0) : (st(), ft("div", {
|
|
14514
|
+
key: 0,
|
|
14508
14515
|
class: "top-bar-right",
|
|
14509
14516
|
onClick: s
|
|
14510
14517
|
}, [
|
|
14511
|
-
|
|
14512
|
-
src:
|
|
14518
|
+
gt(Ke(Bt), {
|
|
14519
|
+
src: Ne.value ? Ke(At).lock : Ke(At).unlock,
|
|
14513
14520
|
width: 20,
|
|
14514
14521
|
height: 20
|
|
14515
14522
|
}, null, 8, ["src"])
|
|
14516
|
-
])
|
|
14517
|
-
]),
|
|
14523
|
+
]))
|
|
14524
|
+
])) : Ct("", !0),
|
|
14518
14525
|
et("div", Ln, [
|
|
14519
14526
|
et("div", In, [
|
|
14520
|
-
|
|
14527
|
+
gt(Hr, {
|
|
14521
14528
|
ref_key: "tree",
|
|
14522
14529
|
ref: ge,
|
|
14523
14530
|
nodes: F.value,
|
|
14524
14531
|
tags: w.tags,
|
|
14525
|
-
readOnly: w.readOnly ||
|
|
14532
|
+
readOnly: w.readOnly || Ne.value,
|
|
14526
14533
|
enableDbEnter: w.enableDbEnter,
|
|
14527
14534
|
hash: be.value,
|
|
14528
14535
|
isMobile: Ke(_t).isMobile,
|
|
@@ -14538,10 +14545,10 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14538
14545
|
et("div", Nn, [
|
|
14539
14546
|
et("div", {
|
|
14540
14547
|
class: "record-tree-option-item",
|
|
14541
|
-
onClick:
|
|
14548
|
+
onClick: Me,
|
|
14542
14549
|
title: "左缩进"
|
|
14543
14550
|
}, [
|
|
14544
|
-
|
|
14551
|
+
gt(Ke(Bt), {
|
|
14545
14552
|
src: Ke(At).left,
|
|
14546
14553
|
width: 20,
|
|
14547
14554
|
height: 20
|
|
@@ -14552,7 +14559,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14552
14559
|
onClick: Pe,
|
|
14553
14560
|
title: "右缩进"
|
|
14554
14561
|
}, [
|
|
14555
|
-
|
|
14562
|
+
gt(Ke(Bt), {
|
|
14556
14563
|
src: Ke(At).right,
|
|
14557
14564
|
width: 20,
|
|
14558
14565
|
height: 20
|
|
@@ -14563,7 +14570,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14563
14570
|
onClick: tt,
|
|
14564
14571
|
title: "上移"
|
|
14565
14572
|
}, [
|
|
14566
|
-
|
|
14573
|
+
gt(Ke(Bt), {
|
|
14567
14574
|
src: Ke(At).up,
|
|
14568
14575
|
width: 20,
|
|
14569
14576
|
height: 20
|
|
@@ -14574,7 +14581,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14574
14581
|
onClick: Xe,
|
|
14575
14582
|
title: "移动"
|
|
14576
14583
|
}, [
|
|
14577
|
-
|
|
14584
|
+
gt(Ke(Bt), {
|
|
14578
14585
|
src: Ke(At).down,
|
|
14579
14586
|
width: 20,
|
|
14580
14587
|
height: 20
|
|
@@ -14587,23 +14594,23 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14587
14594
|
onClick: k,
|
|
14588
14595
|
title: "加粗"
|
|
14589
14596
|
}, [
|
|
14590
|
-
|
|
14597
|
+
gt(Ke(Bt), {
|
|
14591
14598
|
src: Ke(At).bold,
|
|
14592
14599
|
width: 20,
|
|
14593
14600
|
height: 20
|
|
14594
14601
|
}, null, 8, ["src"])
|
|
14595
14602
|
]),
|
|
14596
|
-
Ke(_t).isMobile ?
|
|
14597
|
-
|
|
14603
|
+
Ke(_t).isMobile ? Ct("", !0) : (st(), ft("div", Hn, [
|
|
14604
|
+
gt(Ke(na), {
|
|
14598
14605
|
placement: "top",
|
|
14599
14606
|
hover: !0,
|
|
14600
14607
|
arrow: !0
|
|
14601
14608
|
}, {
|
|
14602
14609
|
content: y0(() => [
|
|
14603
|
-
|
|
14610
|
+
gt(Ke(cr), { onChange: e })
|
|
14604
14611
|
]),
|
|
14605
14612
|
default: y0(() => [
|
|
14606
|
-
|
|
14613
|
+
gt(Ke(Bt), {
|
|
14607
14614
|
src: Ke(At).color,
|
|
14608
14615
|
width: 20,
|
|
14609
14616
|
height: 20
|
|
@@ -14617,7 +14624,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14617
14624
|
onClick: v,
|
|
14618
14625
|
title: "添加附件"
|
|
14619
14626
|
}, [
|
|
14620
|
-
|
|
14627
|
+
gt(Ke(Bt), {
|
|
14621
14628
|
src: Ke(At).attach,
|
|
14622
14629
|
width: 20,
|
|
14623
14630
|
height: 20
|
|
@@ -14628,7 +14635,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14628
14635
|
onClick: W,
|
|
14629
14636
|
title: "录制音频"
|
|
14630
14637
|
}, [
|
|
14631
|
-
|
|
14638
|
+
gt(Ke(Bt), {
|
|
14632
14639
|
src: Ke(At).audio,
|
|
14633
14640
|
width: 20,
|
|
14634
14641
|
height: 20
|
|
@@ -14639,7 +14646,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14639
14646
|
onClick: C,
|
|
14640
14647
|
title: "录制视频"
|
|
14641
14648
|
}, [
|
|
14642
|
-
|
|
14649
|
+
gt(Ke(Bt), {
|
|
14643
14650
|
src: Ke(At).video,
|
|
14644
14651
|
width: 20,
|
|
14645
14652
|
height: 20
|
|
@@ -14650,7 +14657,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14650
14657
|
onClick: x,
|
|
14651
14658
|
title: "拍照"
|
|
14652
14659
|
}, [
|
|
14653
|
-
|
|
14660
|
+
gt(Ke(Bt), {
|
|
14654
14661
|
src: Ke(At).photo,
|
|
14655
14662
|
width: 20,
|
|
14656
14663
|
height: 20
|
|
@@ -14663,7 +14670,7 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14663
14670
|
class: "record-tree-option-item",
|
|
14664
14671
|
onClick: It(d, ["stop"])
|
|
14665
14672
|
}, u0(Ee.value || w.note.created_at ? "完成" : "取消"), 1)
|
|
14666
|
-
])) :
|
|
14673
|
+
])) : Ct("", !0),
|
|
14667
14674
|
et("div", Pn, [
|
|
14668
14675
|
et("input", {
|
|
14669
14676
|
type: "file",
|
|
@@ -14688,33 +14695,34 @@ const yn = { class: "record-video" }, gn = { class: "buttons" }, xn = {
|
|
|
14688
14695
|
onChange: G[3] || (G[3] = (le) => re(le.target.files))
|
|
14689
14696
|
}, null, 544)
|
|
14690
14697
|
])
|
|
14691
|
-
])) :
|
|
14692
|
-
N.value ? (st(),
|
|
14698
|
+
])) : Ct("", !0),
|
|
14699
|
+
N.value ? (st(), jt(Ke(bn), {
|
|
14693
14700
|
key: 1,
|
|
14694
14701
|
isMobile: Ke(_t).isMobile,
|
|
14695
14702
|
responsive: w.responsive,
|
|
14696
14703
|
onFinish: i,
|
|
14697
14704
|
onCancel: G[4] || (G[4] = (le) => N.value = !1)
|
|
14698
|
-
}, null, 8, ["isMobile", "responsive"])) :
|
|
14699
|
-
we.value ? (st(),
|
|
14705
|
+
}, null, 8, ["isMobile", "responsive"])) : Ct("", !0),
|
|
14706
|
+
we.value ? (st(), jt(Ke(Sn), {
|
|
14700
14707
|
key: 2,
|
|
14701
14708
|
responsive: w.responsive,
|
|
14702
14709
|
onFinish: re,
|
|
14703
14710
|
onCancel: G[5] || (G[5] = (le) => we.value = !1)
|
|
14704
|
-
}, null, 8, ["responsive"])) :
|
|
14705
|
-
ve.value ? (st(),
|
|
14711
|
+
}, null, 8, ["responsive"])) : Ct("", !0),
|
|
14712
|
+
ve.value ? (st(), jt(Ke(Bn), {
|
|
14706
14713
|
key: 3,
|
|
14707
14714
|
responsive: w.responsive,
|
|
14708
14715
|
onFinish: re,
|
|
14709
14716
|
onCancel: G[6] || (G[6] = (le) => ve.value = !1)
|
|
14710
|
-
}, null, 8, ["responsive"])) :
|
|
14717
|
+
}, null, 8, ["responsive"])) : Ct("", !0),
|
|
14718
|
+
Ne.value ? (st(), ft("div", Un)) : Ct("", !0)
|
|
14711
14719
|
], 2));
|
|
14712
14720
|
}
|
|
14713
14721
|
};
|
|
14714
14722
|
export {
|
|
14715
14723
|
bn as RecordAudio,
|
|
14716
14724
|
Bn as RecordPhoto,
|
|
14717
|
-
|
|
14725
|
+
ai as RecordTree,
|
|
14718
14726
|
Sn as RecordVideo,
|
|
14719
14727
|
Cr as TextEditor
|
|
14720
14728
|
};
|