@codernote/record-tree 2.4.0-beta.6 → 2.4.0
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 +375 -372
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.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-b1f6b6b5]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-b1f6b6b5]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-b1f6b6b5]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-b1f6b6b5]{display:block}.node-image img[data-v-b1f6b6b5]{outline:none}.node-audio[data-v-b1f6b6b5]{width:300px}.node-audio audio[data-v-b1f6b6b5]{width:300px;outline:none}.node-video video[data-v-b1f6b6b5]{outline:none}.node-del[data-v-b1f6b6b5]{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-b1f6b6b5]:before,.node-del[data-v-b1f6b6b5]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-b1f6b6b5]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-b1f6b6b5]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-b1f6b6b5]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-b1f6b6b5]{flex:1}.node-file-left h6[data-v-b1f6b6b5]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-b1f6b6b5]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-b1f6b6b5]{color:#52a770;font-size:14px}@keyframes blinkBorder-b1f6b6b5{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-b1f6b6b5]:focus{animation:blinkBorder-b1f6b6b5 1s infinite}.fullscreen-handle[data-v-b1f6b6b5]{width:15px;height:15px;position:absolute;bottom:0;right:16px;cursor:pointer;background:#fff9}.resize-handle[data-v-b1f6b6b5]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:#fff9}.resize-handle svg[data-v-b1f6b6b5]{cursor:se-resize}.ProseMirror{outline:none}.node-div[data-v-6f11cf51]{display:flex;align-items:center;position:relative}.node-div>div[data-v-6f11cf51]{flex:1}.node-icon[data-v-6f11cf51]{position:relative;width:24px;height:24px;border-radius:100%;box-sizing:border-box;border:6px solid #fff;background-color:#fff;cursor:pointer;align-self:flex-start}.node-icon-todo[data-v-6f11cf51]{border-radius:0}.node-icon .node-circle[data-v-6f11cf51]{display:block;position:absolute;width:7px;height:7px;left:50%;top:50%;transform:translate(-50%) translateY(-50%);border-radius:10px;background-color:#eee}.node-icon[data-v-6f11cf51]:hover{background-color:#ddd}.node-finished[data-v-6f11cf51]{text-decoration:line-through;color:#999}.node-ul[data-v-5bc86c4d]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-5bc86c4d]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-5bc86c4d] .sublevel .node-li{margin-left:15px}[data-v-5bc86c4d] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-5bc86c4d] .drag-over-center{background-color:#eee}[data-v-5bc86c4d] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-5bc86c4d]{display:none}[data-v-5bc86c4d] .collapsed .node-icon .node-line{display:none}[data-v-5bc86c4d] .collapsed.has-child .node-icon{background-color:#ddd}.tree-title[data-v-5bc86c4d]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-5bc86c4d] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-5bc86c4d] .node-li.dragging .node-icon .node-line{display:none}[data-v-5bc86c4d] .has-child>.node-div>.node-icon .node-line{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-5bc86c4d] .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:3px}.record-tree-title{padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%}.record-tree-popper-reference{display:flex;position:absolute;top:0;left:0;text-align:center;border-radius:9999px;color:#fff}.record-tree-empty-icon{display:inline-block;border-radius:9999px}.record-tree-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-e8535564]{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-e8535564]{width:300px;height:40px}.record-audio .audio-item[data-v-e8535564]{margin-top:10px;display:flex;align-items:center}.record-audio .audio-item a[data-v-e8535564]{color:#52a770;margin-left:10px;font-size:12px;cursor:pointer}.record-audio .audio-text[data-v-e8535564]{background:#f5f5f5;margin-top:10px;padding:8px 12px;border-radius:5px}.record-audio .buttons[data-v-e8535564]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-e8535564]{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-e8535564]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-e8535564]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-e8535564]{border:1px solid #eee}.record-audio .buttons .oper[data-v-e8535564]{margin-right:10px}.record-audio .main[data-v-e8535564]{display:flex;align-items:center}.record-audio .duration[data-v-e8535564]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-e8535564]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-e8535564]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-audio-mobile[data-v-e8535564]{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-e8535564]{flex:1;height:30px}.record-audio-mobile .oper[data-v-e8535564]{margin-right:10px}.record-video[data-v-be255be7]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-be255be7]{width:300px}.buttons[data-v-be255be7]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-be255be7]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-be255be7]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-be255be7]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-be255be7]{border:1px solid #eee}.buttons .oper[data-v-be255be7]{margin-right:10px}.wrap[data-v-be255be7]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-be255be7]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-video[data-v-d1a4de11]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;width:452px;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-d1a4de11]{width:200px}.img-item[data-v-d1a4de11]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-d1a4de11]{width:200px}.record-content[data-v-d1a4de11]{display:flex}.buttons[data-v-d1a4de11]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-d1a4de11]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-d1a4de11]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-d1a4de11]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-d1a4de11]{border:1px solid #eee}.buttons .oper[data-v-d1a4de11]{margin-right:10px}.wrap[data-v-d1a4de11]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-d1a4de11]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-tree-mobile .record-tree{height:calc(100vh - 45px);overflow-y:scroll}.record-tree-mobile .record-tree-main{padding-left:0;padding-right:0}.record-tree-mobile .record-tree-options{padding:12px 0;display:flex;position:fixed}.record-tree-mobile .record-tree-option-item{flex:1;max-width:32px}.record-tree-mobile .node-file-wrap{width:200px}.record-tree-mobile .node-file-right{display:none}.record-tree-mobile .node-image img{width:auto;max-height:80px}.record-tree-mobile .node-audio,.record-tree-mobile .node-video{width:200px}.record-tree-mobile .node-audio audio{width:200px;outline:none}.record-tree-mobile .node-video video{width:200px;outline:none}.record-tree-container{position:relative;height:100%}.record-tree-main{padding-left:15px;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}.record-tree-option-left{display:flex;flex:1;padding-left:10px}.record-tree-option-right{padding-right:10px;font-size:14px}.record-tree-option-item{margin:0 5px;cursor:pointer;display:flex;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}img:-webkit-full-screen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain}img:fullscreen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;-o-object-fit:contain;object-fit:contain}.record-tree .node-text{flex:1;border:none;outline:none;word-break:break-all;overflow:hidden}.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}.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}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.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-b1f6b6b5]{display:flex;flex-direction:row;align-self:center;justify-self:center;outline:none}.holder[data-v-b1f6b6b5]{width:0px;overflow:hidden;border-width:1px;border-style:solid;border-color:transparent;outline:none}.node-element[data-v-b1f6b6b5]{display:inline-block;position:relative;margin:5px 1px}.node-element:hover .node-del[data-v-b1f6b6b5]{display:block}.node-image img[data-v-b1f6b6b5]{outline:none}.node-audio[data-v-b1f6b6b5]{width:300px}.node-audio audio[data-v-b1f6b6b5]{width:300px;outline:none}.node-video video[data-v-b1f6b6b5]{outline:none}.node-del[data-v-b1f6b6b5]{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-b1f6b6b5]:before,.node-del[data-v-b1f6b6b5]:after{content:"";position:absolute;top:50%;left:50%;width:2px;height:10px;background-color:#595959}.node-del[data-v-b1f6b6b5]:before{transform:translate(-50%,-50%) rotate(45deg)}.node-del[data-v-b1f6b6b5]:after{transform:translate(-50%,-50%) rotate(-45deg)}.node-file-wrap[data-v-b1f6b6b5]{width:260px;padding:10px 16px;display:flex;background:#f2f2f2;border-radius:5px;justify-content:center;align-items:center}.node-file-left[data-v-b1f6b6b5]{flex:1}.node-file-left h6[data-v-b1f6b6b5]{font-size:14px;font-weight:700;margin:0 0 5px;padding:0;white-space:nowrap}.node-file-left p[data-v-b1f6b6b5]{margin:0;padding:0;font-size:12px;color:#999}.node-file-right a[data-v-b1f6b6b5]{color:#52a770;font-size:14px}@keyframes blinkBorder-b1f6b6b5{0%,to{border-color:transparent}50%{border-color:#333}}.node-complex .holder[data-v-b1f6b6b5]:focus{animation:blinkBorder-b1f6b6b5 1s infinite}.fullscreen-handle[data-v-b1f6b6b5]{width:15px;height:15px;position:absolute;bottom:0;right:16px;cursor:pointer;background:#fff9}.resize-handle[data-v-b1f6b6b5]{width:15px;height:15px;position:absolute;bottom:0;right:0;cursor:se-resize;transform:rotate(90deg);background:#fff9}.resize-handle svg[data-v-b1f6b6b5]{cursor:se-resize}.ProseMirror{outline:none}.node-div[data-v-08b1145f]{display:flex;align-items:center;position:relative}.node-div>div[data-v-08b1145f]{flex:1}.node-icon[data-v-08b1145f]{touch-action:manipulation;position:relative;width:24px;height:24px;border-radius:100%;box-sizing:border-box;border:6px solid #fff;background-color:#fff;cursor:pointer;align-self:flex-start}.node-icon-with-children[data-v-08b1145f]:before{content:"";position:absolute;top:-20px;right:-10px;bottom:-10px;left:-20px}.node-icon-todo[data-v-08b1145f]{border-radius:0}.node-icon .node-circle[data-v-08b1145f]{display:block;position:absolute;width:7px;height:7px;left:50%;top:50%;transform:translate(-50%) translateY(-50%);border-radius:10px;background-color:#eee}.node-icon[data-v-08b1145f]:hover{background-color:#ddd}.node-finished[data-v-08b1145f]{text-decoration:line-through;color:#999}.node-ul[data-v-5bc86c4d]{background-color:#fff;margin:0;padding:0;list-style:none}.node-li[data-v-5bc86c4d]{padding:0;list-style:none;margin:0;line-height:1.5;position:relative;overflow:hidden}[data-v-5bc86c4d] .sublevel .node-li{margin-left:15px}[data-v-5bc86c4d] .drag-over-top:before{content:"";width:100%;height:1px;top:0;background-color:#eee;position:absolute}[data-v-5bc86c4d] .drag-over-center{background-color:#eee}[data-v-5bc86c4d] .drag-over-bottom:after{content:"";width:100%;height:1px;background-color:#eee;position:absolute;bottom:0}.collapsed>ul[data-v-5bc86c4d]{display:none}[data-v-5bc86c4d] .collapsed .node-icon .node-line{display:none}[data-v-5bc86c4d] .collapsed.has-child .node-icon{background-color:#ddd}.tree-title[data-v-5bc86c4d]{padding-left:25px;font-weight:700;outline:none;font-size:1.125rem;line-height:1.5;width:100%}[data-v-5bc86c4d] .node-li.has-child.collapsed .node-icon:after{background-color:#aaa}[data-v-5bc86c4d] .node-li.dragging .node-icon .node-line{display:none}[data-v-5bc86c4d] .has-child>.node-div>.node-icon .node-line{content:"";position:absolute;top:20px;left:50%;height:9999px;width:1px;background-color:#f2f2f2}[data-v-5bc86c4d] .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:3px}.record-tree-title{padding-left:25px;font-weight:700;outline:none;font-size:18px;line-height:1.5;width:100%}.record-tree-popper-reference{display:flex;position:absolute;top:0;left:0;text-align:center;border-radius:9999px;color:#fff}.record-tree-empty-icon{display:inline-block;border-radius:9999px}.record-tree-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-e8535564]{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-e8535564]{width:300px;height:40px}.record-audio .audio-item[data-v-e8535564]{margin-top:10px;display:flex;align-items:center}.record-audio .audio-item a[data-v-e8535564]{color:#52a770;margin-left:10px;font-size:12px;cursor:pointer}.record-audio .audio-text[data-v-e8535564]{background:#f5f5f5;margin-top:10px;padding:8px 12px;border-radius:5px}.record-audio .buttons[data-v-e8535564]{margin-top:10px;display:flex;align-items:center}.record-audio .buttons .btn[data-v-e8535564]{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-e8535564]{color:#fff;background:#1677ff;border:1px solid #1677ff}.record-audio .buttons .disabled[data-v-e8535564]{background:#eee;cursor:default;border-color:#eee}.record-audio .buttons .cancel[data-v-e8535564]{border:1px solid #eee}.record-audio .buttons .oper[data-v-e8535564]{margin-right:10px}.record-audio .main[data-v-e8535564]{display:flex;align-items:center}.record-audio .duration[data-v-e8535564]{width:60px;margin-left:10px;color:#999;font-size:12px}.wrap[data-v-e8535564]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-e8535564]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-audio-mobile[data-v-e8535564]{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-e8535564]{flex:1;height:30px}.record-audio-mobile .oper[data-v-e8535564]{margin-right:10px}.record-video[data-v-be255be7]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-be255be7]{width:300px}.buttons[data-v-be255be7]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-be255be7]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-be255be7]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-be255be7]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-be255be7]{border:1px solid #eee}.buttons .oper[data-v-be255be7]{margin-right:10px}.wrap[data-v-be255be7]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-be255be7]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-video[data-v-d1a4de11]{position:absolute;background:#fff;padding:20px;left:50%;top:50%;width:452px;transform:translate(-50%,-50%);border-radius:10px;z-index:999;box-shadow:0 4px 6px #0000001a,0 1px 3px #00000014}.video-item[data-v-d1a4de11]{width:200px}.img-item[data-v-d1a4de11]{width:200px;height:150px;border:1px dashed #eee;margin-left:10px}.img-item img[data-v-d1a4de11]{width:200px}.record-content[data-v-d1a4de11]{display:flex}.buttons[data-v-d1a4de11]{margin-top:10px;display:flex;align-items:center}.buttons .btn[data-v-d1a4de11]{margin-right:10px;font-size:14px;width:80px;padding:6px 0;text-align:center;cursor:pointer;border-radius:20px}.buttons .finish[data-v-d1a4de11]{color:#fff;background:#1677ff;border:1px solid #1677ff}.buttons .disabled[data-v-d1a4de11]{background:#eee;cursor:default;border-color:#eee}.buttons .cancel[data-v-d1a4de11]{border:1px solid #eee}.buttons .oper[data-v-d1a4de11]{margin-right:10px}.wrap[data-v-d1a4de11]{position:fixed;left:0;top:0;bottom:0;z-index:9999}.mask[data-v-d1a4de11]{position:absolute;left:0;top:0;right:0;bottom:0;background:#fffc}.record-tree-mobile .record-tree{height:calc(100vh - 45px);overflow-y:scroll}.record-tree-mobile .record-tree-main{padding-left:0;padding-right:0}.record-tree-mobile .record-tree-options{padding:12px 0;display:flex;position:fixed}.record-tree-mobile .record-tree-option-item{flex:1;max-width:32px}.record-tree-mobile .node-file-wrap{width:200px}.record-tree-mobile .node-file-right{display:none}.record-tree-mobile .node-image img{width:auto;max-height:80px}.record-tree-mobile .node-audio,.record-tree-mobile .node-video{width:200px}.record-tree-mobile .node-audio audio{width:200px;outline:none}.record-tree-mobile .node-video video{width:200px;outline:none}.record-tree-container{position:relative;height:100%}.record-tree-main{padding-left:15px;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}.record-tree-option-left{display:flex;flex:1;padding-left:10px}.record-tree-option-right{padding-right:10px;font-size:14px}.record-tree-option-item{margin:0 5px;cursor:pointer;display:flex;justify-content:center;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}img:-webkit-full-screen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain}img:fullscreen{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;-o-object-fit:contain;object-fit:contain}.record-tree .node-text{flex:1;border:none;outline:none;word-break:break-all;overflow:hidden}.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}.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}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
2
|
import tr from "vue3-popper";
|
|
3
3
|
import { openBlock as et, createElementBlock as nt, createElementVNode as We, createVNode as yt, unref as Et, Fragment as v0, renderList as m0, normalizeStyle as Ut, reactive as yr, ref as qt, withModifiers as kt, normalizeClass as Lt, createCommentVNode as Rt, toDisplayString as o0, nextTick as j0, watch as W0, onMounted as xr, onBeforeUnmount as Sr, createBlock as Pt, resolveComponent as Bt, createSlots as Tr, withCtx as _0, pushScopeId as Rr, popScopeId as Mr } from "vue";
|
|
4
4
|
import Jt from "vue-inline-svg";
|
|
@@ -28,15 +28,15 @@ const Ur = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
28
28
|
color: ta,
|
|
29
29
|
clear: ra
|
|
30
30
|
}, jt = (a, i) => {
|
|
31
|
-
const
|
|
31
|
+
const b = a.__vccOpts || a;
|
|
32
32
|
for (const [x, N] of i)
|
|
33
|
-
|
|
34
|
-
return
|
|
33
|
+
b[x] = N;
|
|
34
|
+
return b;
|
|
35
35
|
}, aa = { class: "color-panel" }, ia = ["onClick"], na = {
|
|
36
36
|
__name: "index",
|
|
37
37
|
emits: ["change"],
|
|
38
38
|
setup(a, { emit: i }) {
|
|
39
|
-
const
|
|
39
|
+
const b = i, x = [
|
|
40
40
|
// "#ffffff", // 白色
|
|
41
41
|
"#ebebeb",
|
|
42
42
|
// 浅灰色
|
|
@@ -67,7 +67,7 @@ const Ur = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!
|
|
|
67
67
|
// "#ff0080", // 粉红色
|
|
68
68
|
// "#0080ff", // 深蓝色
|
|
69
69
|
], N = (m) => {
|
|
70
|
-
|
|
70
|
+
b("change", m);
|
|
71
71
|
};
|
|
72
72
|
return (m, P) => (et(), nt("div", aa, [
|
|
73
73
|
We("ul", null, [
|
|
@@ -97,14 +97,14 @@ function oa(a) {
|
|
|
97
97
|
return a && a.uuid ? document.getElementById(a.uuid) : null;
|
|
98
98
|
}
|
|
99
99
|
function Ht(a, i = !1) {
|
|
100
|
-
const
|
|
101
|
-
if (!
|
|
100
|
+
const b = oa(a), x = ".node-text";
|
|
101
|
+
if (!b)
|
|
102
102
|
return null;
|
|
103
103
|
if (i) {
|
|
104
|
-
const N =
|
|
104
|
+
const N = b.querySelectorAll(x);
|
|
105
105
|
return N[N.length - 1];
|
|
106
106
|
}
|
|
107
|
-
return
|
|
107
|
+
return b.classList.contains(x.substring(1)) ? b : b == null ? void 0 : b.querySelector(x);
|
|
108
108
|
}
|
|
109
109
|
function s0() {
|
|
110
110
|
if (document.activeElement && document.activeElement.classList.contains("holder-right"))
|
|
@@ -112,12 +112,12 @@ function s0() {
|
|
|
112
112
|
let a = window.getSelection();
|
|
113
113
|
return a.rangeCount > 0 && a.getRangeAt(0).startOffset || 0;
|
|
114
114
|
}
|
|
115
|
-
function $t(a, i = 0,
|
|
115
|
+
function $t(a, i = 0, b = !1) {
|
|
116
116
|
if (!a)
|
|
117
117
|
return;
|
|
118
118
|
const x = a.querySelectorAll(".holder");
|
|
119
119
|
if (x.length) {
|
|
120
|
-
(
|
|
120
|
+
(b || i > 0 ? x[1] : x[0]).focus();
|
|
121
121
|
return;
|
|
122
122
|
}
|
|
123
123
|
if (!a.isContentEditable) {
|
|
@@ -128,7 +128,7 @@ function $t(a, i = 0, w = !1) {
|
|
|
128
128
|
N.removeAllRanges();
|
|
129
129
|
try {
|
|
130
130
|
let P = a;
|
|
131
|
-
if (a.childNodes.length > 0 ? P = a.childNodes[0] : (
|
|
131
|
+
if (a.childNodes.length > 0 ? P = a.childNodes[0] : (b || i > 0) && (P = document.createTextNode(""), a.appendChild(P)), b)
|
|
132
132
|
m.selectNodeContents(P), m.collapse(!1);
|
|
133
133
|
else {
|
|
134
134
|
const k = Math.min(i, P.length || 0);
|
|
@@ -147,8 +147,8 @@ function lr(a = !0) {
|
|
|
147
147
|
const i = document.querySelector(".record-tree-options");
|
|
148
148
|
if (!i)
|
|
149
149
|
return;
|
|
150
|
-
const
|
|
151
|
-
window.visualViewport.height <
|
|
150
|
+
const b = window.visualViewport.height, x = () => {
|
|
151
|
+
window.visualViewport.height < b && (i.style.display = "none", setTimeout(() => {
|
|
152
152
|
if (i.style.display = "", a) {
|
|
153
153
|
const m = Dt.currentId, P = Ht({ uuid: m });
|
|
154
154
|
la(P) || P.scrollIntoView({
|
|
@@ -191,8 +191,8 @@ const ua = ["contenteditable"], da = {
|
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
193
|
emits: ["remove", "change", "keydown", "focus"],
|
|
194
|
-
setup(a, { expose: i, emit:
|
|
195
|
-
const x = Dt.isMobile, N =
|
|
194
|
+
setup(a, { expose: i, emit: b }) {
|
|
195
|
+
const x = Dt.isMobile, N = b, m = a, P = qt(), k = qt(), ee = qt(), ue = qt(), pe = qt();
|
|
196
196
|
i({
|
|
197
197
|
focus: () => {
|
|
198
198
|
P.value.focus();
|
|
@@ -373,8 +373,8 @@ const ua = ["contenteditable"], da = {
|
|
|
373
373
|
addCommands() {
|
|
374
374
|
return {
|
|
375
375
|
removeEmptyTextStyle: () => ({ state: a, commands: i }) => {
|
|
376
|
-
const
|
|
377
|
-
return Object.entries(
|
|
376
|
+
const b = Yr(a, this.type);
|
|
377
|
+
return Object.entries(b).some(([, N]) => !!N) ? !0 : i.unsetMark(this.name);
|
|
378
378
|
}
|
|
379
379
|
};
|
|
380
380
|
}
|
|
@@ -469,10 +469,10 @@ const cr = (a) => a.tagName.toLowerCase() === "mark", I0 = () => {
|
|
|
469
469
|
I0();
|
|
470
470
|
const i = a.target.innerText;
|
|
471
471
|
if (B0[i]) {
|
|
472
|
-
const
|
|
473
|
-
|
|
472
|
+
const b = document.createElement("div");
|
|
473
|
+
b.classList.add(ur);
|
|
474
474
|
const { top: x, left: N, width: m } = a.target.getBoundingClientRect();
|
|
475
|
-
|
|
475
|
+
b.innerText = B0[i](), b.style.top = `${x}px`, b.style.left = `${N + parseInt(m / 2)}px`, document.body.appendChild(b);
|
|
476
476
|
}
|
|
477
477
|
}
|
|
478
478
|
}, Z0 = (a) => {
|
|
@@ -512,8 +512,8 @@ const cr = (a) => a.tagName.toLowerCase() === "mark", I0 = () => {
|
|
|
512
512
|
}
|
|
513
513
|
},
|
|
514
514
|
emits: ["change", "keydown", "focus", "blur"],
|
|
515
|
-
setup(a, { expose: i, emit:
|
|
516
|
-
const x = qt(), N = a, m =
|
|
515
|
+
setup(a, { expose: i, emit: b }) {
|
|
516
|
+
const x = qt(), N = a, m = b, P = qt(!1), k = Dr({
|
|
517
517
|
content: N.content,
|
|
518
518
|
editable: !N.readOnly,
|
|
519
519
|
extensions: [
|
|
@@ -634,8 +634,8 @@ const cr = (a) => a.tagName.toLowerCase() === "mark", I0 = () => {
|
|
|
634
634
|
}
|
|
635
635
|
},
|
|
636
636
|
emits: ["change", "keydown", "focus", "remove"],
|
|
637
|
-
setup(a, { expose: i, emit:
|
|
638
|
-
const x = qt(null), N = qt(null), m = a, P =
|
|
637
|
+
setup(a, { expose: i, emit: b }) {
|
|
638
|
+
const x = qt(null), N = qt(null), m = a, P = b;
|
|
639
639
|
function k(Se) {
|
|
640
640
|
P("keydown", Se);
|
|
641
641
|
}
|
|
@@ -750,18 +750,20 @@ const cr = (a) => a.tagName.toLowerCase() === "mark", I0 = () => {
|
|
|
750
750
|
getTagStyle: ir,
|
|
751
751
|
handleClick() {
|
|
752
752
|
const a = (/* @__PURE__ */ new Date()).getTime(), i = a - this.lastTapTime;
|
|
753
|
-
clearTimeout(this.tapTimeout)
|
|
753
|
+
clearTimeout(this.tapTimeout);
|
|
754
|
+
const b = 500;
|
|
755
|
+
i < b && i > 0 ? this.$emit("collapse", this.node) : this.tapTimeout = setTimeout(() => {
|
|
754
756
|
if (this.isTodo) {
|
|
755
|
-
const
|
|
757
|
+
const x = k0(this.node);
|
|
756
758
|
this.update({
|
|
757
759
|
...this.node,
|
|
758
760
|
ext: {
|
|
759
|
-
...
|
|
760
|
-
finished: !
|
|
761
|
+
...x,
|
|
762
|
+
finished: !x.finished
|
|
761
763
|
}
|
|
762
764
|
});
|
|
763
765
|
}
|
|
764
|
-
},
|
|
766
|
+
}, b), this.lastTapTime = a;
|
|
765
767
|
},
|
|
766
768
|
handleFocus() {
|
|
767
769
|
const a = this.node;
|
|
@@ -797,9 +799,9 @@ const cr = (a) => a.tagName.toLowerCase() === "mark", I0 = () => {
|
|
|
797
799
|
}
|
|
798
800
|
},
|
|
799
801
|
handleBackspace(a) {
|
|
800
|
-
var
|
|
802
|
+
var b;
|
|
801
803
|
const i = this.node;
|
|
802
|
-
a.preventDefault(), !((
|
|
804
|
+
a.preventDefault(), !((b = i.children) != null && b.length) && (this.$emit("toPrevFocus", i, !0), this.remove());
|
|
803
805
|
},
|
|
804
806
|
handleTab(a) {
|
|
805
807
|
this.$emit("tab", a, this.node);
|
|
@@ -808,12 +810,12 @@ const cr = (a) => a.tagName.toLowerCase() === "mark", I0 = () => {
|
|
|
808
810
|
const i = this.node;
|
|
809
811
|
if (a.ctrlKey) {
|
|
810
812
|
this.$emit("collapse", i, !1);
|
|
811
|
-
const
|
|
813
|
+
const b = {
|
|
812
814
|
text: "",
|
|
813
815
|
uuid: Yt()
|
|
814
816
|
};
|
|
815
|
-
i.children ? i.children.unshift(
|
|
816
|
-
this.$emit("toFocus",
|
|
817
|
+
i.children ? i.children.unshift(b) : i.children = [b], this.update(), this.$nextTick(() => {
|
|
818
|
+
this.$emit("toFocus", b);
|
|
817
819
|
});
|
|
818
820
|
} else
|
|
819
821
|
this.$emit("enter", i);
|
|
@@ -843,18 +845,19 @@ const cr = (a) => a.tagName.toLowerCase() === "mark", I0 = () => {
|
|
|
843
845
|
class: "node-div",
|
|
844
846
|
ref: "row"
|
|
845
847
|
};
|
|
846
|
-
function Ma(a, i,
|
|
848
|
+
function Ma(a, i, b, x, N, m) {
|
|
847
849
|
const P = Bt("Editor");
|
|
848
850
|
return et(), nt("div", Ra, [
|
|
849
851
|
We("span", {
|
|
850
852
|
class: Lt(["node-icon", {
|
|
851
|
-
"node-icon-todo": m.isTodo
|
|
853
|
+
"node-icon-todo": m.isTodo,
|
|
854
|
+
"node-icon-with-children": !!(b.node.children || []).length
|
|
852
855
|
}]),
|
|
853
856
|
onClick: i[0] || (i[0] = kt((...k) => m.handleClick && m.handleClick(...k), ["stop"]))
|
|
854
857
|
}, [
|
|
855
858
|
We("span", {
|
|
856
859
|
class: "node-circle",
|
|
857
|
-
style: Ut(m.getTagStyle(m.tag,
|
|
860
|
+
style: Ut(m.getTagStyle(m.tag, b.node))
|
|
858
861
|
}, null, 4),
|
|
859
862
|
We("span", {
|
|
860
863
|
class: "node-line",
|
|
@@ -868,9 +871,9 @@ function Ma(a, i, w, x, N, m) {
|
|
|
868
871
|
class: Lt({
|
|
869
872
|
"node-finished": m.finished
|
|
870
873
|
}),
|
|
871
|
-
readOnly:
|
|
872
|
-
data:
|
|
873
|
-
tags:
|
|
874
|
+
readOnly: b.readOnly,
|
|
875
|
+
data: b.node,
|
|
876
|
+
tags: b.tags,
|
|
874
877
|
onChange: m.update,
|
|
875
878
|
onKeydown: m.handleKeydown,
|
|
876
879
|
onFocus: m.handleFocus,
|
|
@@ -878,10 +881,10 @@ function Ma(a, i, w, x, N, m) {
|
|
|
878
881
|
}, null, 8, ["class", "readOnly", "data", "tags", "onChange", "onKeydown", "onFocus", "onRemove"])
|
|
879
882
|
], 512);
|
|
880
883
|
}
|
|
881
|
-
const Ca = /* @__PURE__ */ jt(Ta, [["render", Ma], ["__scopeId", "data-v-
|
|
884
|
+
const Ca = /* @__PURE__ */ jt(Ta, [["render", Ma], ["__scopeId", "data-v-08b1145f"]]);
|
|
882
885
|
function hr(a) {
|
|
883
886
|
var P;
|
|
884
|
-
let
|
|
887
|
+
let b = (((P = a.target) == null ? void 0 : P.querySelector(".node-div")) || a.target).getBoundingClientRect(), x = a.clientY, N = b.top + b.height / 3, m = b.top + b.height / 3 * 2;
|
|
885
888
|
return x < N ? "top" : x < m ? "center" : "bottom";
|
|
886
889
|
}
|
|
887
890
|
function Aa(a) {
|
|
@@ -894,17 +897,17 @@ function E0() {
|
|
|
894
897
|
}
|
|
895
898
|
function ka(a, i) {
|
|
896
899
|
var P;
|
|
897
|
-
const
|
|
898
|
-
if (!
|
|
900
|
+
const b = a.currentTarget, x = Dt.dragId ? document.getElementById(Dt.dragId) : null;
|
|
901
|
+
if (!b || Dt.dragId === i.uuid || x != null && x.querySelector(`[id="${i.uuid}"]`)) {
|
|
899
902
|
a.dataTransfer.dropEffect = "none";
|
|
900
903
|
return;
|
|
901
904
|
}
|
|
902
905
|
E0();
|
|
903
|
-
const N = hr(a), m = (P =
|
|
906
|
+
const N = hr(a), m = (P = b.querySelector(".node-div")) == null ? void 0 : P.classList;
|
|
904
907
|
m && m.add(`drag-over-${N}`);
|
|
905
908
|
}
|
|
906
909
|
function Ba(a) {
|
|
907
|
-
const
|
|
910
|
+
const b = new DOMParser().parseFromString(a, "text/html"), x = b.querySelector("img"), N = b.querySelector("video"), m = b.querySelector("audio");
|
|
908
911
|
return x ? {
|
|
909
912
|
type: "image",
|
|
910
913
|
content: x.src
|
|
@@ -916,10 +919,10 @@ function Ba(a) {
|
|
|
916
919
|
content: m.src
|
|
917
920
|
} : null;
|
|
918
921
|
}
|
|
919
|
-
function D0(a, i,
|
|
922
|
+
function D0(a, i, b = !0) {
|
|
920
923
|
var x;
|
|
921
924
|
return (x = i.children) != null && x.length ? i.children.some(
|
|
922
|
-
(N) => N.uuid === a.uuid || (
|
|
925
|
+
(N) => N.uuid === a.uuid || (b ? D0(a, N) : !1)
|
|
923
926
|
) : !1;
|
|
924
927
|
}
|
|
925
928
|
const Ea = {
|
|
@@ -980,8 +983,8 @@ const Ea = {
|
|
|
980
983
|
handleDragLeave: E0,
|
|
981
984
|
handleDragStart(a, i) {
|
|
982
985
|
a.currentTarget.classList.add("dragging"), a.dataTransfer.setData("dragNode", JSON.stringify(i)), X0.on("dragEnd", () => {
|
|
983
|
-
const
|
|
984
|
-
this.update(
|
|
986
|
+
const b = this.nodes.filter((x) => x !== i);
|
|
987
|
+
this.update(b);
|
|
985
988
|
}), this.store.dragId = i.uuid;
|
|
986
989
|
},
|
|
987
990
|
handleDragEnd(a) {
|
|
@@ -989,9 +992,9 @@ const Ea = {
|
|
|
989
992
|
},
|
|
990
993
|
handleDrop(a, i) {
|
|
991
994
|
a.stopPropagation();
|
|
992
|
-
const
|
|
993
|
-
if (E0(),
|
|
994
|
-
this.addFiles(
|
|
995
|
+
const b = a.dataTransfer.files;
|
|
996
|
+
if (E0(), b.length)
|
|
997
|
+
this.addFiles(b, i);
|
|
995
998
|
else {
|
|
996
999
|
let x = a.dataTransfer.getData("dragNode");
|
|
997
1000
|
const N = hr(a);
|
|
@@ -1020,18 +1023,18 @@ const Ea = {
|
|
|
1020
1023
|
}
|
|
1021
1024
|
},
|
|
1022
1025
|
handlePaste(a, i) {
|
|
1023
|
-
const
|
|
1024
|
-
|
|
1026
|
+
const b = a.clipboardData.files;
|
|
1027
|
+
b.length && (this.addFiles(b, i), a.preventDefault());
|
|
1025
1028
|
},
|
|
1026
1029
|
handleTab(a, i) {
|
|
1027
1030
|
var m;
|
|
1028
1031
|
a.preventDefault();
|
|
1029
|
-
const
|
|
1032
|
+
const b = [...this.nodes], x = b.findIndex((P) => P === i), N = s0();
|
|
1030
1033
|
if (a.shiftKey)
|
|
1031
1034
|
this.$emit("transfer", i);
|
|
1032
1035
|
else if (x > 0) {
|
|
1033
1036
|
const P = this.nodes[x - 1];
|
|
1034
|
-
(m = this.status[P.uuid]) != null && m.collapsed && (this.status[P.uuid].collapsed = !1), P.children ? P.children.push(i) : P.children = [i],
|
|
1037
|
+
(m = this.status[P.uuid]) != null && m.collapsed && (this.status[P.uuid].collapsed = !1), P.children ? P.children.push(i) : P.children = [i], b.splice(x, 1), this.update(b);
|
|
1035
1038
|
} else
|
|
1036
1039
|
a.target.focus();
|
|
1037
1040
|
this.$nextTick(() => {
|
|
@@ -1039,22 +1042,22 @@ const Ea = {
|
|
|
1039
1042
|
});
|
|
1040
1043
|
},
|
|
1041
1044
|
handleRemove(a) {
|
|
1042
|
-
const i = this.nodes.filter((
|
|
1045
|
+
const i = this.nodes.filter((b) => b.uuid !== a.uuid);
|
|
1043
1046
|
if (!this.allowEmpty && this.nodes.length === 1) {
|
|
1044
|
-
const
|
|
1047
|
+
const b = {
|
|
1045
1048
|
text: "",
|
|
1046
1049
|
uuid: Yt()
|
|
1047
1050
|
};
|
|
1048
|
-
i.push(
|
|
1049
|
-
this.toFocus(
|
|
1051
|
+
i.push(b), setTimeout(() => {
|
|
1052
|
+
this.toFocus(b);
|
|
1050
1053
|
}, 200);
|
|
1051
1054
|
}
|
|
1052
1055
|
this.update(i);
|
|
1053
1056
|
},
|
|
1054
1057
|
// 节点跨父级移动
|
|
1055
1058
|
handleTransfer(a, i) {
|
|
1056
|
-
const
|
|
1057
|
-
a.children = a.children.filter((N) => N !== i),
|
|
1059
|
+
const b = [...this.nodes], x = b.findIndex((N) => N === a);
|
|
1060
|
+
a.children = a.children.filter((N) => N !== i), b.splice(x + 1, 0, i), this.update(b);
|
|
1058
1061
|
},
|
|
1059
1062
|
handleEnter(a) {
|
|
1060
1063
|
this.enableDbEnter ? this.timeout ? (clearTimeout(this.timeout), this.timeout = null, this.handleDbEnter()) : this.timeout = setTimeout(() => {
|
|
@@ -1065,8 +1068,8 @@ const Ea = {
|
|
|
1065
1068
|
this.$emit("dbEnter");
|
|
1066
1069
|
},
|
|
1067
1070
|
keyEnter(a) {
|
|
1068
|
-
const i = this.nodes.findIndex((N) => N.uuid === a.uuid),
|
|
1069
|
-
|
|
1071
|
+
const i = this.nodes.findIndex((N) => N.uuid === a.uuid), b = [...this.nodes], x = { text: "", uuid: Yt() };
|
|
1072
|
+
b.splice(i + 1, 0, x), this.update(b), this.$nextTick(() => {
|
|
1070
1073
|
const N = Ht(x);
|
|
1071
1074
|
N == null || N.focus();
|
|
1072
1075
|
});
|
|
@@ -1074,24 +1077,24 @@ const Ea = {
|
|
|
1074
1077
|
// 聚焦上一节点
|
|
1075
1078
|
toPrevFocus(a, i = !1) {
|
|
1076
1079
|
var N;
|
|
1077
|
-
let
|
|
1080
|
+
let b = s0();
|
|
1078
1081
|
const x = this.nodes.findIndex((m) => m === a);
|
|
1079
1082
|
if (x === 0)
|
|
1080
1083
|
this.$emit("focusPrev", i);
|
|
1081
1084
|
else {
|
|
1082
|
-
const m = this.nodes[x - 1], P = ((N = m.children) == null ? void 0 : N.length) && !this.status[m.uuid].collapsed, k = Ht(this.nodes[x - 1], P), ee = i ||
|
|
1085
|
+
const m = this.nodes[x - 1], P = ((N = m.children) == null ? void 0 : N.length) && !this.status[m.uuid].collapsed, k = Ht(this.nodes[x - 1], P), ee = i || b === 1 / 0;
|
|
1083
1086
|
$t(
|
|
1084
1087
|
k,
|
|
1085
|
-
ee ? k.innerText.length :
|
|
1088
|
+
ee ? k.innerText.length : b,
|
|
1086
1089
|
ee
|
|
1087
1090
|
);
|
|
1088
1091
|
}
|
|
1089
1092
|
},
|
|
1090
1093
|
// 聚焦下一节点
|
|
1091
|
-
toNextFocus(a, i = !1,
|
|
1094
|
+
toNextFocus(a, i = !1, b = !1) {
|
|
1092
1095
|
var m;
|
|
1093
1096
|
const x = s0(), N = this.nodes.findIndex((P) => P === a);
|
|
1094
|
-
if (
|
|
1097
|
+
if (b && ((m = a.children) != null && m.length) && !this.status[a.uuid].collapsed) {
|
|
1095
1098
|
const P = Ht(a.children[0]);
|
|
1096
1099
|
$t(P, i ? 0 : x);
|
|
1097
1100
|
} else if (N + 1 >= this.nodes.length)
|
|
@@ -1103,11 +1106,11 @@ const Ea = {
|
|
|
1103
1106
|
},
|
|
1104
1107
|
// 聚焦到指定节点
|
|
1105
1108
|
toFocus(a, i = !1) {
|
|
1106
|
-
let
|
|
1109
|
+
let b = s0();
|
|
1107
1110
|
const x = Ht(a);
|
|
1108
|
-
$t(x,
|
|
1111
|
+
$t(x, b, i);
|
|
1109
1112
|
},
|
|
1110
|
-
addFiles(a, i,
|
|
1113
|
+
addFiles(a, i, b = 0) {
|
|
1111
1114
|
if (a) {
|
|
1112
1115
|
const N = Array.from(a).slice(0, 5), m = (P) => {
|
|
1113
1116
|
const k = [...this.nodes];
|
|
@@ -1117,7 +1120,7 @@ const Ea = {
|
|
|
1117
1120
|
...ue,
|
|
1118
1121
|
uuid: i.uuid,
|
|
1119
1122
|
children: i.children
|
|
1120
|
-
})) : k.splice(ee + 1 +
|
|
1123
|
+
})) : k.splice(ee + 1 + b, 0, ue), ee++;
|
|
1121
1124
|
}), this.update(k);
|
|
1122
1125
|
};
|
|
1123
1126
|
this.$emit("fileUpload", N, m);
|
|
@@ -1129,14 +1132,14 @@ const Ea = {
|
|
|
1129
1132
|
head(a = !1) {
|
|
1130
1133
|
const i = Ht(this.nodes[0]);
|
|
1131
1134
|
if (a && i) {
|
|
1132
|
-
const
|
|
1133
|
-
|
|
1135
|
+
const b = i.querySelector(".holder-right");
|
|
1136
|
+
b ? b.focus() : i.focus();
|
|
1134
1137
|
}
|
|
1135
1138
|
return i;
|
|
1136
1139
|
},
|
|
1137
1140
|
// dfs查找并追加节点
|
|
1138
|
-
appendNode(a, i = !1,
|
|
1139
|
-
const x = this.store.currentId, N = [...
|
|
1141
|
+
appendNode(a, i = !1, b = this.nodes) {
|
|
1142
|
+
const x = this.store.currentId, N = [...b];
|
|
1140
1143
|
if (!i && (!x || !document.getElementById(x))) {
|
|
1141
1144
|
const P = N[N.length - 1];
|
|
1142
1145
|
!(P != null && P.type) && !P.text ? N[N.length - 1] = {
|
|
@@ -1160,8 +1163,8 @@ const Ea = {
|
|
|
1160
1163
|
return i || this.update(N), N;
|
|
1161
1164
|
},
|
|
1162
1165
|
// dfs查找并更新节点
|
|
1163
|
-
updateNode(a, i = !1,
|
|
1164
|
-
const x = [...
|
|
1166
|
+
updateNode(a, i = !1, b = this.nodes) {
|
|
1167
|
+
const x = [...b], N = x.findIndex((m) => m.uuid === a.uuid);
|
|
1165
1168
|
return N >= 0 ? x[N] = a : x.forEach((m) => {
|
|
1166
1169
|
var P;
|
|
1167
1170
|
(P = m.children) != null && P.length && (m.children = this.updateNode(a, !0, m.children));
|
|
@@ -1175,8 +1178,8 @@ const Ea = {
|
|
|
1175
1178
|
let a = !1;
|
|
1176
1179
|
this.nodes.forEach((i) => {
|
|
1177
1180
|
if (i.uuid || (i.uuid = Yt(), a = !0), Aa(i) && !i.type) {
|
|
1178
|
-
const
|
|
1179
|
-
|
|
1181
|
+
const b = Ba(i.text);
|
|
1182
|
+
b && (i.type = b.type, i.content = b.content), a = !0;
|
|
1180
1183
|
}
|
|
1181
1184
|
}), a ? this.update() : this.ensureStatus(this.nodes);
|
|
1182
1185
|
},
|
|
@@ -1194,7 +1197,7 @@ const Ea = {
|
|
|
1194
1197
|
// 更新node节点
|
|
1195
1198
|
// 用于Node组件触发change
|
|
1196
1199
|
handleNodeChange(a) {
|
|
1197
|
-
const i = this.nodes.map((
|
|
1200
|
+
const i = this.nodes.map((b) => b.uuid === a.uuid ? a : b);
|
|
1198
1201
|
this.update(i);
|
|
1199
1202
|
},
|
|
1200
1203
|
update(a = this.nodes) {
|
|
@@ -1215,10 +1218,10 @@ const Ea = {
|
|
|
1215
1218
|
sublevel: !0
|
|
1216
1219
|
})
|
|
1217
1220
|
}, Oa = ["id", "onDragstart", "onDragover", "onDragend", "onDrop", "onDragleave", "onPaste"];
|
|
1218
|
-
function Fa(a, i,
|
|
1221
|
+
function Fa(a, i, b, x, N, m) {
|
|
1219
1222
|
const P = Bt("Node"), k = Bt("tree-editor");
|
|
1220
|
-
return
|
|
1221
|
-
(et(!0), nt(v0, null, m0(m.filterNodes(
|
|
1223
|
+
return b.readOnly ? (et(), nt("ul", Da, [
|
|
1224
|
+
(et(!0), nt(v0, null, m0(m.filterNodes(b.nodes), (ee) => (et(), nt("li", {
|
|
1222
1225
|
key: ee.uuid,
|
|
1223
1226
|
id: `${ee.uuid}`,
|
|
1224
1227
|
class: Lt({
|
|
@@ -1229,7 +1232,7 @@ function Fa(a, i, w, x, N, m) {
|
|
|
1229
1232
|
}, [
|
|
1230
1233
|
yt(P, {
|
|
1231
1234
|
readOnly: "",
|
|
1232
|
-
tags:
|
|
1235
|
+
tags: b.tags,
|
|
1233
1236
|
node: ee,
|
|
1234
1237
|
onCollapse: m.handleCollapse,
|
|
1235
1238
|
onChange: m.handleNodeChange
|
|
@@ -1242,7 +1245,7 @@ function Fa(a, i, w, x, N, m) {
|
|
|
1242
1245
|
}, null, 8, ["nodes"])) : Rt("", !0)
|
|
1243
1246
|
], 10, La))), 128))
|
|
1244
1247
|
])) : (et(), nt("ul", Ia, [
|
|
1245
|
-
(et(!0), nt(v0, null, m0(m.filterNodes(
|
|
1248
|
+
(et(!0), nt(v0, null, m0(m.filterNodes(b.nodes), (ee) => (et(), nt("li", {
|
|
1246
1249
|
key: ee.uuid,
|
|
1247
1250
|
id: `${ee.uuid}`,
|
|
1248
1251
|
ref_for: !0,
|
|
@@ -1262,7 +1265,7 @@ function Fa(a, i, w, x, N, m) {
|
|
|
1262
1265
|
}, [
|
|
1263
1266
|
yt(P, {
|
|
1264
1267
|
node: ee,
|
|
1265
|
-
tags:
|
|
1268
|
+
tags: b.tags,
|
|
1266
1269
|
onChange: m.handleNodeChange,
|
|
1267
1270
|
onToPrevFocus: m.toPrevFocus,
|
|
1268
1271
|
onToNextFocus: m.toNextFocus,
|
|
@@ -1275,9 +1278,9 @@ function Fa(a, i, w, x, N, m) {
|
|
|
1275
1278
|
(ee.children || []).length ? (et(), Pt(k, {
|
|
1276
1279
|
key: 0,
|
|
1277
1280
|
nodes: ee.children,
|
|
1278
|
-
tags:
|
|
1279
|
-
enableDbEnter:
|
|
1280
|
-
hash:
|
|
1281
|
+
tags: b.tags,
|
|
1282
|
+
enableDbEnter: b.enableDbEnter,
|
|
1283
|
+
hash: b.hash,
|
|
1281
1284
|
allowEmpty: !0,
|
|
1282
1285
|
sublevel: !0,
|
|
1283
1286
|
onChange: (ue) => m.handleChangeChildren(ee, ue),
|
|
@@ -1387,13 +1390,13 @@ const Na = /* @__PURE__ */ jt(Ea, [["render", Fa], ["__scopeId", "data-v-5bc86c4
|
|
|
1387
1390
|
},
|
|
1388
1391
|
// 根据svg的icon名找到svg实体
|
|
1389
1392
|
getSvgUrl(a) {
|
|
1390
|
-
const i = Br.find((
|
|
1393
|
+
const i = Br.find((b) => b.name === a.icon);
|
|
1391
1394
|
return (i == null ? void 0 : i.value) || "";
|
|
1392
1395
|
},
|
|
1393
1396
|
// 选择tag图标
|
|
1394
1397
|
tagSelect(a) {
|
|
1395
|
-
const i = { ...this.note },
|
|
1396
|
-
i.tag_id ===
|
|
1398
|
+
const i = { ...this.note }, b = +a.created_at;
|
|
1399
|
+
i.tag_id === b ? delete i.tag_id : i.tag_id = b, this.$emit("change", i.title, i);
|
|
1397
1400
|
},
|
|
1398
1401
|
handleTitleFocus() {
|
|
1399
1402
|
Dt.currentId = "tree_title", this.isMobile && lr(!1);
|
|
@@ -1440,7 +1443,7 @@ const Na = /* @__PURE__ */ jt(Ea, [["render", Fa], ["__scopeId", "data-v-5bc86c4
|
|
|
1440
1443
|
}
|
|
1441
1444
|
},
|
|
1442
1445
|
async uploadFile(a) {
|
|
1443
|
-
const i = nr(a.type),
|
|
1446
|
+
const i = nr(a.type), b = URL.createObjectURL(a);
|
|
1444
1447
|
let x = {};
|
|
1445
1448
|
switch ((i.mainType === "image" || i.mainType === "video") && (x = await sr(a, i.mainType)), i.mainType) {
|
|
1446
1449
|
case "image":
|
|
@@ -1448,7 +1451,7 @@ const Na = /* @__PURE__ */ jt(Ea, [["render", Fa], ["__scopeId", "data-v-5bc86c4
|
|
|
1448
1451
|
case "video":
|
|
1449
1452
|
this.handleChange({
|
|
1450
1453
|
type: i.mainType,
|
|
1451
|
-
content:
|
|
1454
|
+
content: b,
|
|
1452
1455
|
size: x
|
|
1453
1456
|
});
|
|
1454
1457
|
break;
|
|
@@ -1456,7 +1459,7 @@ const Na = /* @__PURE__ */ jt(Ea, [["render", Fa], ["__scopeId", "data-v-5bc86c4
|
|
|
1456
1459
|
this.handleChange({
|
|
1457
1460
|
type: "file",
|
|
1458
1461
|
name: a.name,
|
|
1459
|
-
content:
|
|
1462
|
+
content: b,
|
|
1460
1463
|
size: a.size
|
|
1461
1464
|
});
|
|
1462
1465
|
}
|
|
@@ -1472,10 +1475,10 @@ const Na = /* @__PURE__ */ jt(Ea, [["render", Fa], ["__scopeId", "data-v-5bc86c4
|
|
|
1472
1475
|
}
|
|
1473
1476
|
}
|
|
1474
1477
|
}, Va = { class: "record-tree-title-bar" }, Pa = ["onClick"];
|
|
1475
|
-
function Ua(a, i,
|
|
1478
|
+
function Ua(a, i, b, x, N, m) {
|
|
1476
1479
|
const P = Bt("Popper"), k = Bt("Editor");
|
|
1477
1480
|
return et(), nt("div", Va, [
|
|
1478
|
-
|
|
1481
|
+
b.tags.length ? (et(), Pt(P, { key: 0 }, Tr({
|
|
1479
1482
|
default: _0(() => [
|
|
1480
1483
|
We("span", {
|
|
1481
1484
|
class: "record-tree-popper-reference",
|
|
@@ -1484,22 +1487,22 @@ function Ua(a, i, w, x, N, m) {
|
|
|
1484
1487
|
left: N.tagConfig.tagL,
|
|
1485
1488
|
width: N.tagConfig.tagSize + "px",
|
|
1486
1489
|
height: N.tagConfig.tagSize + "px",
|
|
1487
|
-
...m.getTagStyleById(
|
|
1490
|
+
...m.getTagStyleById(b.note.tag_id, b.tags, b.note)
|
|
1488
1491
|
})
|
|
1489
1492
|
}, null, 4)
|
|
1490
1493
|
]),
|
|
1491
1494
|
_: 2
|
|
1492
1495
|
}, [
|
|
1493
|
-
|
|
1496
|
+
b.readOnly ? void 0 : {
|
|
1494
1497
|
name: "content",
|
|
1495
1498
|
fn: _0(() => [
|
|
1496
1499
|
We("div", {
|
|
1497
1500
|
class: "record-tree-popper-content",
|
|
1498
1501
|
style: Ut({ width: N.tagConfig.popW, height: N.tagConfig.popH })
|
|
1499
1502
|
}, [
|
|
1500
|
-
(et(!0), nt(v0, null, m0(
|
|
1503
|
+
(et(!0), nt(v0, null, m0(b.tags, (ee) => (et(), nt("span", {
|
|
1501
1504
|
class: Lt(["record-tree-popper-content-item", {
|
|
1502
|
-
active:
|
|
1505
|
+
active: b.note.tag_id === ee.created_at
|
|
1503
1506
|
}]),
|
|
1504
1507
|
key: ee.created_at,
|
|
1505
1508
|
onClick: (ue) => m.tagSelect(ee)
|
|
@@ -1525,9 +1528,9 @@ function Ua(a, i, w, x, N, m) {
|
|
|
1525
1528
|
"record-tree-title-finished": m.noteFinished
|
|
1526
1529
|
}]),
|
|
1527
1530
|
placeholder: "请输入标题",
|
|
1528
|
-
readOnly:
|
|
1531
|
+
readOnly: b.readOnly,
|
|
1529
1532
|
data: m.titleObj,
|
|
1530
|
-
tags:
|
|
1533
|
+
tags: b.tags,
|
|
1531
1534
|
onChange: m.handleChange,
|
|
1532
1535
|
onRemove: m.handleRemove,
|
|
1533
1536
|
onFocus: m.handleTitleFocus,
|
|
@@ -1548,21 +1551,21 @@ function qa(a) {
|
|
|
1548
1551
|
return a;
|
|
1549
1552
|
var i = a.default;
|
|
1550
1553
|
if (typeof i == "function") {
|
|
1551
|
-
var
|
|
1554
|
+
var b = function x() {
|
|
1552
1555
|
return this instanceof x ? Reflect.construct(i, arguments, this.constructor) : i.apply(this, arguments);
|
|
1553
1556
|
};
|
|
1554
|
-
|
|
1557
|
+
b.prototype = i.prototype;
|
|
1555
1558
|
} else
|
|
1556
|
-
|
|
1557
|
-
return Object.defineProperty(
|
|
1559
|
+
b = {};
|
|
1560
|
+
return Object.defineProperty(b, "__esModule", { value: !0 }), Object.keys(a).forEach(function(x) {
|
|
1558
1561
|
var N = Object.getOwnPropertyDescriptor(a, x);
|
|
1559
|
-
Object.defineProperty(
|
|
1562
|
+
Object.defineProperty(b, x, N.get ? N : {
|
|
1560
1563
|
enumerable: !0,
|
|
1561
1564
|
get: function() {
|
|
1562
1565
|
return a[x];
|
|
1563
1566
|
}
|
|
1564
1567
|
});
|
|
1565
|
-
}),
|
|
1568
|
+
}), b;
|
|
1566
1569
|
}
|
|
1567
1570
|
var vr = { exports: {} };
|
|
1568
1571
|
function Ga(a) {
|
|
@@ -1576,10 +1579,10 @@ const ja = {}, Wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1576
1579
|
var Q0;
|
|
1577
1580
|
function p0() {
|
|
1578
1581
|
return Q0 || (Q0 = 1, function(a, i) {
|
|
1579
|
-
(function(
|
|
1582
|
+
(function(b, x) {
|
|
1580
1583
|
a.exports = x();
|
|
1581
1584
|
})(dt, function() {
|
|
1582
|
-
var
|
|
1585
|
+
var b = b || function(x, N) {
|
|
1583
1586
|
var m;
|
|
1584
1587
|
if (typeof window < "u" && window.crypto && (m = window.crypto), typeof self < "u" && self.crypto && (m = self.crypto), typeof globalThis < "u" && globalThis.crypto && (m = globalThis.crypto), !m && typeof window < "u" && window.msCrypto && (m = window.msCrypto), !m && typeof dt < "u" && dt.crypto && (m = dt.crypto), !m && typeof Ga == "function")
|
|
1585
1588
|
try {
|
|
@@ -2070,18 +2073,18 @@ function p0() {
|
|
|
2070
2073
|
var Be = ee.algo = {};
|
|
2071
2074
|
return ee;
|
|
2072
2075
|
}(Math);
|
|
2073
|
-
return
|
|
2076
|
+
return b;
|
|
2074
2077
|
});
|
|
2075
2078
|
}(R0)), R0.exports;
|
|
2076
2079
|
}
|
|
2077
2080
|
var M0 = { exports: {} }, $0;
|
|
2078
2081
|
function Ka() {
|
|
2079
2082
|
return $0 || ($0 = 1, function(a, i) {
|
|
2080
|
-
(function(
|
|
2083
|
+
(function(b, x) {
|
|
2081
2084
|
a.exports = x(p0());
|
|
2082
|
-
})(dt, function(
|
|
2085
|
+
})(dt, function(b) {
|
|
2083
2086
|
return function(x) {
|
|
2084
|
-
var N =
|
|
2087
|
+
var N = b, m = N.lib, P = m.WordArray, k = m.Hasher, ee = N.algo, ue = [], pe = [];
|
|
2085
2088
|
(function() {
|
|
2086
2089
|
function Se(Be) {
|
|
2087
2090
|
for (var B = x.sqrt(Be), ie = 2; ie <= B; ie++)
|
|
@@ -2122,18 +2125,18 @@ function Ka() {
|
|
|
2122
2125
|
}
|
|
2123
2126
|
});
|
|
2124
2127
|
N.SHA256 = k._createHelper(He), N.HmacSHA256 = k._createHmacHelper(He);
|
|
2125
|
-
}(Math),
|
|
2128
|
+
}(Math), b.SHA256;
|
|
2126
2129
|
});
|
|
2127
2130
|
}(M0)), M0.exports;
|
|
2128
2131
|
}
|
|
2129
2132
|
var C0 = { exports: {} }, J0;
|
|
2130
2133
|
function Za() {
|
|
2131
2134
|
return J0 || (J0 = 1, function(a, i) {
|
|
2132
|
-
(function(
|
|
2135
|
+
(function(b, x) {
|
|
2133
2136
|
a.exports = x(p0());
|
|
2134
|
-
})(dt, function(
|
|
2137
|
+
})(dt, function(b) {
|
|
2135
2138
|
(function() {
|
|
2136
|
-
var x =
|
|
2139
|
+
var x = b, N = x.lib, m = N.Base, P = x.enc, k = P.Utf8, ee = x.algo;
|
|
2137
2140
|
ee.HMAC = m.extend({
|
|
2138
2141
|
/**
|
|
2139
2142
|
* Initializes a newly created HMAC.
|
|
@@ -2205,21 +2208,21 @@ function Za() {
|
|
|
2205
2208
|
}(C0)), C0.exports;
|
|
2206
2209
|
}
|
|
2207
2210
|
(function(a, i) {
|
|
2208
|
-
(function(
|
|
2211
|
+
(function(b, x, N) {
|
|
2209
2212
|
a.exports = x(p0(), Ka(), Za());
|
|
2210
|
-
})(dt, function(
|
|
2211
|
-
return
|
|
2213
|
+
})(dt, function(b) {
|
|
2214
|
+
return b.HmacSHA256;
|
|
2212
2215
|
});
|
|
2213
2216
|
})(vr);
|
|
2214
2217
|
var Qa = vr.exports;
|
|
2215
2218
|
const $a = /* @__PURE__ */ O0(Qa);
|
|
2216
2219
|
var mr = { exports: {} };
|
|
2217
2220
|
(function(a, i) {
|
|
2218
|
-
(function(
|
|
2221
|
+
(function(b, x) {
|
|
2219
2222
|
a.exports = x(p0());
|
|
2220
|
-
})(dt, function(
|
|
2223
|
+
})(dt, function(b) {
|
|
2221
2224
|
return function() {
|
|
2222
|
-
var x =
|
|
2225
|
+
var x = b, N = x.lib, m = N.WordArray, P = x.enc;
|
|
2223
2226
|
P.Base64 = {
|
|
2224
2227
|
/**
|
|
2225
2228
|
* Converts a word array to a Base64 string.
|
|
@@ -2283,37 +2286,37 @@ var mr = { exports: {} };
|
|
|
2283
2286
|
}
|
|
2284
2287
|
return m.create(ke, He);
|
|
2285
2288
|
}
|
|
2286
|
-
}(),
|
|
2289
|
+
}(), b.enc.Base64;
|
|
2287
2290
|
});
|
|
2288
2291
|
})(mr);
|
|
2289
2292
|
var Ja = mr.exports;
|
|
2290
2293
|
const ei = /* @__PURE__ */ O0(Ja);
|
|
2291
2294
|
let Vt, t0 = "", h0 = "", _r = null;
|
|
2292
2295
|
function ti() {
|
|
2293
|
-
var a = "wss://iat-api.xfyun.cn/v2/iat", i = "iat-api.xfyun.cn",
|
|
2296
|
+
var a = "wss://iat-api.xfyun.cn/v2/iat", i = "iat-api.xfyun.cn", b = "4f2bbe08d7ee54da888cfd009514e89f", x = "NTc3MWNlNDNiZWFmMGM2Yzk0ZjRlZjdi", N = (/* @__PURE__ */ new Date()).toGMTString(), m = "hmac-sha256", P = "host date request-line", k = `host: ${i}
|
|
2294
2297
|
date: ${N}
|
|
2295
|
-
GET /v2/iat HTTP/1.1`, ee = $a(k, x), ue = ei.stringify(ee), pe = `api_key="${
|
|
2298
|
+
GET /v2/iat HTTP/1.1`, ee = $a(k, x), ue = ei.stringify(ee), pe = `api_key="${b}", algorithm="${m}", headers="${P}", signature="${ue}"`, ke = btoa(pe);
|
|
2296
2299
|
return a = `${a}?authorization=${ke}&date=${N}&host=${i}`, a;
|
|
2297
2300
|
}
|
|
2298
2301
|
function ri(a) {
|
|
2299
|
-
for (var i = "",
|
|
2300
|
-
i += String.fromCharCode(
|
|
2302
|
+
for (var i = "", b = new Uint8Array(a), x = b.byteLength, N = 0; N < x; N++)
|
|
2303
|
+
i += String.fromCharCode(b[N]);
|
|
2301
2304
|
return i;
|
|
2302
2305
|
}
|
|
2303
2306
|
function ai(a) {
|
|
2304
2307
|
let i = JSON.parse(a);
|
|
2305
2308
|
if (i.data && i.data.result) {
|
|
2306
|
-
let
|
|
2309
|
+
let b = i.data.result, x = "", N = b.ws;
|
|
2307
2310
|
for (let m = 0; m < N.length; m++)
|
|
2308
2311
|
x = x + N[m].cw[0].w;
|
|
2309
|
-
|
|
2312
|
+
b.pgs ? (b.pgs === "apd" && (t0 = h0), h0 = t0 + x) : t0 = t0 + x, _r(h0 || t0 || "");
|
|
2310
2313
|
}
|
|
2311
2314
|
i.code === 0 && i.data.status === 2 && Vt.close(), i.code !== 0 && (Vt.close(), console.error(i));
|
|
2312
2315
|
}
|
|
2313
2316
|
function ii(a) {
|
|
2314
2317
|
const i = ti();
|
|
2315
2318
|
Vt = new WebSocket(i), Vt.onopen = () => {
|
|
2316
|
-
var
|
|
2319
|
+
var b = {
|
|
2317
2320
|
common: {
|
|
2318
2321
|
app_id: "c54ef25c"
|
|
2319
2322
|
},
|
|
@@ -2330,17 +2333,17 @@ function ii(a) {
|
|
|
2330
2333
|
encoding: "lame"
|
|
2331
2334
|
}
|
|
2332
2335
|
};
|
|
2333
|
-
Vt.send(JSON.stringify(
|
|
2334
|
-
}, Vt.onmessage = (
|
|
2335
|
-
ai(
|
|
2336
|
-
}, Vt.onerror = (
|
|
2337
|
-
console.error(
|
|
2336
|
+
Vt.send(JSON.stringify(b)), a();
|
|
2337
|
+
}, Vt.onmessage = (b) => {
|
|
2338
|
+
ai(b.data);
|
|
2339
|
+
}, Vt.onerror = (b) => {
|
|
2340
|
+
console.error(b);
|
|
2338
2341
|
};
|
|
2339
2342
|
}
|
|
2340
2343
|
function ni(a, i) {
|
|
2341
2344
|
Vt = null, t0 = "", h0 = "", _r = i, ii(() => {
|
|
2342
|
-
const
|
|
2343
|
-
|
|
2345
|
+
const b = new FileReader();
|
|
2346
|
+
b.readAsArrayBuffer(a), b.onload = (x) => {
|
|
2344
2347
|
const N = ri(x.target.result);
|
|
2345
2348
|
let m = 0;
|
|
2346
2349
|
for (; m < N.length; ) {
|
|
@@ -2358,7 +2361,7 @@ function ni(a, i) {
|
|
|
2358
2361
|
})
|
|
2359
2362
|
);
|
|
2360
2363
|
}
|
|
2361
|
-
},
|
|
2364
|
+
}, b.onerror = () => {
|
|
2362
2365
|
Vt.close();
|
|
2363
2366
|
};
|
|
2364
2367
|
});
|
|
@@ -2366,9 +2369,9 @@ function ni(a, i) {
|
|
|
2366
2369
|
var pr = { exports: {} };
|
|
2367
2370
|
(function(a) {
|
|
2368
2371
|
(function(i) {
|
|
2369
|
-
var
|
|
2370
|
-
i(x,
|
|
2371
|
-
})(function(i,
|
|
2372
|
+
var b = typeof window == "object" && !!window.document, x = b ? window : Object;
|
|
2373
|
+
i(x, b), a.exports && (a.exports = x.Recorder);
|
|
2374
|
+
})(function(i, b) {
|
|
2372
2375
|
var x = function() {
|
|
2373
2376
|
}, N = function(e) {
|
|
2374
2377
|
return typeof e == "number";
|
|
@@ -2398,12 +2401,12 @@ var pr = { exports: {} };
|
|
|
2398
2401
|
m.BindDestroy = function(e, l) {
|
|
2399
2402
|
j[e] = l;
|
|
2400
2403
|
}, m.Support = function() {
|
|
2401
|
-
if (!
|
|
2404
|
+
if (!b)
|
|
2402
2405
|
return !1;
|
|
2403
2406
|
var e = navigator.mediaDevices || {};
|
|
2404
2407
|
return e[ue] || (e = navigator, e[ue] || (e[ue] = e.webkitGetUserMedia || e.mozGetUserMedia || e.msGetUserMedia)), !(!e[ue] || (m.Scope = e, !m.GetContext()));
|
|
2405
2408
|
}, m.GetContext = function(e) {
|
|
2406
|
-
if (!
|
|
2409
|
+
if (!b)
|
|
2407
2410
|
return null;
|
|
2408
2411
|
var l = window.AudioContext;
|
|
2409
2412
|
if (l || (l = window.webkitAudioContext), !l)
|
|
@@ -2724,7 +2727,7 @@ var pr = { exports: {} };
|
|
|
2724
2727
|
return de == ae.O ? v.close() : c = Oe("VtJO::open被中断"), M(c), !0;
|
|
2725
2728
|
}
|
|
2726
2729
|
};
|
|
2727
|
-
if (!
|
|
2730
|
+
if (!b) {
|
|
2728
2731
|
M(Oe.G("NonBrowser-1", ["open"]) + Oe("EMJq::,可尝试使用RecordApp解决方案") + "(" + k + "/tree/master/app-support-sample)");
|
|
2729
2732
|
return;
|
|
2730
2733
|
}
|
|
@@ -3180,7 +3183,7 @@ var pr = { exports: {} };
|
|
|
3180
3183
|
}, Oe = vt.$T;
|
|
3181
3184
|
Oe.G = vt.get, Oe("NonBrowser-1::非浏览器环境,不支持{1}", 1), Oe("IllegalArgs-1::参数错误:{1}", 1), Oe("NeedImport-2::调用{1}需要先导入{2}", 2), Oe("NotSupport-1::不支持:{1}", 1), m.TrafficImgUrl = "//ia.51.la/go1?id=20469973&pvFlag=1";
|
|
3182
3185
|
var I = m.Traffic = function(e) {
|
|
3183
|
-
if (
|
|
3186
|
+
if (b) {
|
|
3184
3187
|
e = e ? "/" + ee + "/Report/" + e : "";
|
|
3185
3188
|
var l = m.TrafficImgUrl;
|
|
3186
3189
|
if (l) {
|
|
@@ -3199,28 +3202,28 @@ var pr = { exports: {} };
|
|
|
3199
3202
|
var si = pr.exports;
|
|
3200
3203
|
const A0 = /* @__PURE__ */ O0(si);
|
|
3201
3204
|
(function(a) {
|
|
3202
|
-
var i = typeof window == "object" && !!window.document,
|
|
3205
|
+
var i = typeof window == "object" && !!window.document, b = i ? window : Object, x = b.Recorder, N = x.i18n;
|
|
3203
3206
|
a(x, N, N.$T, i);
|
|
3204
|
-
})(function(a, i,
|
|
3207
|
+
})(function(a, i, b, x) {
|
|
3205
3208
|
var N = "48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000", m = "8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, 192, 224, 256, 320";
|
|
3206
3209
|
a.prototype.enc_mp3 = {
|
|
3207
3210
|
stable: !0,
|
|
3208
3211
|
takeEC: "full",
|
|
3209
3212
|
getTestMsg: function() {
|
|
3210
|
-
return
|
|
3213
|
+
return b("Zm7L::采样率范围:{1};比特率范围:{2}(不同比特率支持的采样率范围不同,小于32kbps时采样率需小于32000)", 0, N, m);
|
|
3211
3214
|
}
|
|
3212
3215
|
};
|
|
3213
3216
|
var P = function(V) {
|
|
3214
3217
|
var j = V.bitRate, oe = V.sampleRate, Be = oe;
|
|
3215
|
-
if ((" " + m + ",").indexOf(" " + j + ",") == -1 && a.CLog(
|
|
3218
|
+
if ((" " + m + ",").indexOf(" " + j + ",") == -1 && a.CLog(b("eGB9::{1}不在mp3支持的取值范围:{2}", 0, "bitRate=" + j, m), 3), (" " + N + ",").indexOf(" " + oe + ",") == -1) {
|
|
3216
3219
|
for (var B = N.split(", "), ie = [], _e = 0; _e < B.length; _e++)
|
|
3217
3220
|
ie.push({ v: +B[_e], s: Math.abs(B[_e] - oe) });
|
|
3218
3221
|
ie.sort(function(Fe, Ue) {
|
|
3219
3222
|
return Fe.s - Ue.s;
|
|
3220
|
-
}), Be = ie[0].v, V.sampleRate = Be, a.CLog(
|
|
3223
|
+
}), Be = ie[0].v, V.sampleRate = Be, a.CLog(b("zLTa::sampleRate已更新为{1},因为{2}不在mp3支持的取值范围:{3}", 0, Be, oe, N), 3);
|
|
3221
3224
|
}
|
|
3222
3225
|
}, k = function() {
|
|
3223
|
-
return
|
|
3226
|
+
return b.G("NeedImport-2", ["mp3.js", "src/engine/mp3-engine.js"]);
|
|
3224
3227
|
}, ee = x && typeof Worker == "function";
|
|
3225
3228
|
a.prototype.mp3 = function(V, j, oe) {
|
|
3226
3229
|
var Be = this, B = Be.set, ie = V.length;
|
|
@@ -3271,7 +3274,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3271
3274
|
ue && (a.CLog("mp3Worker Destroy"), ue.terminate(), ue = null);
|
|
3272
3275
|
}), a.prototype.mp3_envCheck = function(V, j) {
|
|
3273
3276
|
var oe = "";
|
|
3274
|
-
return j.takeoffEncodeChunk && (ke() || (oe =
|
|
3277
|
+
return j.takeoffEncodeChunk && (ke() || (oe = b("yhUs::当前浏览器版本太低,无法实时处理"))), !oe && !a.lamejs && (oe = k()), oe;
|
|
3275
3278
|
}, a.prototype.mp3_start = function(V) {
|
|
3276
3279
|
return ke(V);
|
|
3277
3280
|
};
|
|
@@ -3357,7 +3360,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3357
3360
|
}), Xe;
|
|
3358
3361
|
}, ie, _e = ue;
|
|
3359
3362
|
if (j || !ee)
|
|
3360
|
-
return a.CLog(
|
|
3363
|
+
return a.CLog(b("k9PT::当前环境不支持Web Worker,mp3实时编码器运行在主线程中"), 3), _e = { postMessage: function(Xe) {
|
|
3361
3364
|
oe({ data: Xe });
|
|
3362
3365
|
} }, ie = { wkScope: {
|
|
3363
3366
|
wk_ctxs: {},
|
|
@@ -3390,7 +3393,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3390
3393
|
var j = -1;
|
|
3391
3394
|
for (var oe in pe)
|
|
3392
3395
|
j++;
|
|
3393
|
-
j && a.CLog(
|
|
3396
|
+
j && a.CLog(b("fT6M::mp3 worker剩{1}个未stop", 0, j), 3);
|
|
3394
3397
|
}
|
|
3395
3398
|
}, a.prototype.mp3_encode = function(V, j) {
|
|
3396
3399
|
V && V.worker && V.worker.postMessage({
|
|
@@ -3405,7 +3408,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3405
3408
|
}, V.worker.postMessage({
|
|
3406
3409
|
action: "complete",
|
|
3407
3410
|
id: V.id
|
|
3408
|
-
})) : oe(
|
|
3411
|
+
})) : oe(b("mPxH::mp3编码器未start"));
|
|
3409
3412
|
}, a.mp3ReadMeta = function(V, j) {
|
|
3410
3413
|
var oe = typeof window < "u" && window.parseInt || typeof self < "u" && self.parseInt || parseInt, Be = new Uint8Array(V[0] || []);
|
|
3411
3414
|
if (Be.length < 4)
|
|
@@ -3482,17 +3485,17 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3482
3485
|
}
|
|
3483
3486
|
}, Se = function(V, j) {
|
|
3484
3487
|
var oe = "MP3 Info: ";
|
|
3485
|
-
(V.sampleRate && V.sampleRate != j.sampleRate || V.bitRate && V.bitRate != j.bitRate) && (a.CLog(oe +
|
|
3488
|
+
(V.sampleRate && V.sampleRate != j.sampleRate || V.bitRate && V.bitRate != j.bitRate) && (a.CLog(oe + b("uY9i::和设置的不匹配{1},已更新成{2}", 0, "set:" + j.bitRate + "kbps " + j.sampleRate + "hz", "set:" + V.bitRate + "kbps " + V.sampleRate + "hz"), 3, j), j.sampleRate = V.sampleRate, j.bitRate = V.bitRate);
|
|
3486
3489
|
var Be = V.trimFix;
|
|
3487
|
-
Be ? (oe +=
|
|
3490
|
+
Be ? (oe += b("iMSm::Fix移除{1}帧", 0, Be.remove) + " " + Be.removeDuration + "ms -> " + Be.duration + "ms", Be.remove > 2 && (V.err = (V.err ? V.err + ", " : "") + b("b9zm::移除帧数过多"))) : oe += (V.duration || "-") + "ms", V.err ? a.CLog(oe, 1, V.err, V) : a.CLog(oe, V);
|
|
3488
3491
|
};
|
|
3489
3492
|
});
|
|
3490
3493
|
(function(a) {
|
|
3491
|
-
var i = typeof window == "object" && !!window.document,
|
|
3494
|
+
var i = typeof window == "object" && !!window.document, b = i ? window : Object, x = b.Recorder;
|
|
3492
3495
|
a(x);
|
|
3493
3496
|
})(function(a) {
|
|
3494
3497
|
function i() {
|
|
3495
|
-
var
|
|
3498
|
+
var b = function(c) {
|
|
3496
3499
|
return Math.log(c) / Math.log(10);
|
|
3497
3500
|
}, x = function(c) {
|
|
3498
3501
|
throw new Error("abort(" + c + ")");
|
|
@@ -3564,9 +3567,9 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3564
3567
|
};
|
|
3565
3568
|
var j = {};
|
|
3566
3569
|
j.SQRT2 = 1.4142135623730951, j.FAST_LOG10 = function(c) {
|
|
3567
|
-
return
|
|
3570
|
+
return b(c);
|
|
3568
3571
|
}, j.FAST_LOG10_X = function(c, E) {
|
|
3569
|
-
return
|
|
3572
|
+
return b(c) * E;
|
|
3570
3573
|
};
|
|
3571
3574
|
function oe(c) {
|
|
3572
3575
|
this.ordinal = c;
|
|
@@ -3647,31 +3650,31 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3647
3650
|
[6, 7]
|
|
3648
3651
|
/* 22 bands */
|
|
3649
3652
|
];
|
|
3650
|
-
function T(f, _,
|
|
3653
|
+
function T(f, _, w, R, L, r) {
|
|
3651
3654
|
var n = 0.5946 / _;
|
|
3652
3655
|
for (f = f >> 1; f-- != 0; )
|
|
3653
|
-
L[r++] = n >
|
|
3656
|
+
L[r++] = n > w[R++] ? 0 : 1, L[r++] = n > w[R++] ? 0 : 1;
|
|
3654
3657
|
}
|
|
3655
|
-
function he(f, _,
|
|
3658
|
+
function he(f, _, w, R, L, r) {
|
|
3656
3659
|
f = f >> 1;
|
|
3657
3660
|
var n = f % 2;
|
|
3658
3661
|
for (f = f >> 1; f-- != 0; ) {
|
|
3659
3662
|
var J, O, Q, me, xe, Me, qe, Qe;
|
|
3660
|
-
J =
|
|
3663
|
+
J = w[R++] * _, O = w[R++] * _, xe = 0 | J, Q = w[R++] * _, Me = 0 | O, me = w[R++] * _, qe = 0 | Q, J += c.adj43[xe], Qe = 0 | me, O += c.adj43[Me], L[r++] = 0 | J, Q += c.adj43[qe], L[r++] = 0 | O, me += c.adj43[Qe], L[r++] = 0 | Q, L[r++] = 0 | me;
|
|
3661
3664
|
}
|
|
3662
3665
|
if (n != 0) {
|
|
3663
3666
|
var J, O, xe, Me;
|
|
3664
|
-
J =
|
|
3667
|
+
J = w[R++] * _, O = w[R++] * _, xe = 0 | J, Me = 0 | O, J += c.adj43[xe], O += c.adj43[Me], L[r++] = 0 | J, L[r++] = 0 | O;
|
|
3665
3668
|
}
|
|
3666
3669
|
}
|
|
3667
|
-
function g(f, _,
|
|
3670
|
+
function g(f, _, w, R, L) {
|
|
3668
3671
|
var r, n, J = 0, O, Q = 0, me = 0, xe = 0, Me = _, qe = 0, Qe = Me, Ke = 0, xt = f, St = 0;
|
|
3669
3672
|
for (O = L != null && R.global_gain == L.global_gain, R.block_type == o.SHORT_TYPE ? n = 38 : n = 21, r = 0; r <= n; r++) {
|
|
3670
3673
|
var mt = -1;
|
|
3671
3674
|
if ((O || R.block_type == o.NORM_TYPE) && (mt = R.global_gain - (R.scalefac[r] + (R.preflag != 0 ? c.pretab[r] : 0) << R.scalefac_scale + 1) - R.subblock_gain[R.window[r]] * 8), O && L.step[r] == mt)
|
|
3672
3675
|
Q != 0 && (he(
|
|
3673
3676
|
Q,
|
|
3674
|
-
|
|
3677
|
+
w,
|
|
3675
3678
|
xt,
|
|
3676
3679
|
St,
|
|
3677
3680
|
Qe,
|
|
@@ -3685,14 +3688,14 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3685
3688
|
}
|
|
3686
3689
|
if (Q == 0 && me == 0 && (Qe = Me, Ke = qe, xt = f, St = xe), L != null && L.sfb_count1 > 0 && r >= L.sfb_count1 && L.step[r] > 0 && mt >= L.step[r] ? (Q != 0 && (he(
|
|
3687
3690
|
Q,
|
|
3688
|
-
|
|
3691
|
+
w,
|
|
3689
3692
|
xt,
|
|
3690
3693
|
St,
|
|
3691
3694
|
Qe,
|
|
3692
3695
|
Ke
|
|
3693
3696
|
), Q = 0, Qe = Me, Ke = qe, xt = f, St = xe), me += wt) : (me != 0 && (T(
|
|
3694
3697
|
me,
|
|
3695
|
-
|
|
3698
|
+
w,
|
|
3696
3699
|
xt,
|
|
3697
3700
|
St,
|
|
3698
3701
|
Qe,
|
|
@@ -3706,52 +3709,52 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3706
3709
|
}
|
|
3707
3710
|
Q != 0 && (he(
|
|
3708
3711
|
Q,
|
|
3709
|
-
|
|
3712
|
+
w,
|
|
3710
3713
|
xt,
|
|
3711
3714
|
St,
|
|
3712
3715
|
Qe,
|
|
3713
3716
|
Ke
|
|
3714
3717
|
), Q = 0), me != 0 && x();
|
|
3715
3718
|
}
|
|
3716
|
-
function q(f, _,
|
|
3719
|
+
function q(f, _, w) {
|
|
3717
3720
|
var R = 0, L = 0;
|
|
3718
3721
|
do {
|
|
3719
3722
|
var r = f[_++], n = f[_++];
|
|
3720
3723
|
R < r && (R = r), L < n && (L = n);
|
|
3721
|
-
} while (_ <
|
|
3724
|
+
} while (_ < w);
|
|
3722
3725
|
return R < L && (R = L), R;
|
|
3723
3726
|
}
|
|
3724
|
-
function ce(f, _,
|
|
3727
|
+
function ce(f, _, w, R, L, r) {
|
|
3725
3728
|
var n = K.ht[R].xlen * 65536 + K.ht[L].xlen, J = 0, O;
|
|
3726
3729
|
do {
|
|
3727
3730
|
var Q = f[_++], me = f[_++];
|
|
3728
3731
|
Q != 0 && (Q > 14 && (Q = 15, J += n), Q *= 16), me != 0 && (me > 14 && (me = 15, J += n), Q += me), J += K.largetbl[Q];
|
|
3729
|
-
} while (_ <
|
|
3732
|
+
} while (_ < w);
|
|
3730
3733
|
return O = J & 65535, J >>= 16, J > O && (J = O, R = L), r.bits += J, R;
|
|
3731
3734
|
}
|
|
3732
|
-
function Y(f, _,
|
|
3735
|
+
function Y(f, _, w, R) {
|
|
3733
3736
|
var L = 0, r = K.ht[1].hlen;
|
|
3734
3737
|
do {
|
|
3735
3738
|
var n = f[_ + 0] * 2 + f[_ + 1];
|
|
3736
3739
|
_ += 2, L += r[n];
|
|
3737
|
-
} while (_ <
|
|
3740
|
+
} while (_ < w);
|
|
3738
3741
|
return R.bits += L, 1;
|
|
3739
3742
|
}
|
|
3740
|
-
function ne(f, _,
|
|
3743
|
+
function ne(f, _, w, R, L) {
|
|
3741
3744
|
var r = 0, n, J = K.ht[R].xlen, O;
|
|
3742
3745
|
R == 2 ? O = K.table23 : O = K.table56;
|
|
3743
3746
|
do {
|
|
3744
3747
|
var Q = f[_ + 0] * J + f[_ + 1];
|
|
3745
3748
|
_ += 2, r += O[Q];
|
|
3746
|
-
} while (_ <
|
|
3749
|
+
} while (_ < w);
|
|
3747
3750
|
return n = r & 65535, r >>= 16, r > n && (r = n, R++), L.bits += r, R;
|
|
3748
3751
|
}
|
|
3749
|
-
function H(f, _,
|
|
3752
|
+
function H(f, _, w, R, L) {
|
|
3750
3753
|
var r = 0, n = 0, J = 0, O = K.ht[R].xlen, Q = K.ht[R].hlen, me = K.ht[R + 1].hlen, xe = K.ht[R + 2].hlen;
|
|
3751
3754
|
do {
|
|
3752
3755
|
var Me = f[_ + 0] * O + f[_ + 1];
|
|
3753
3756
|
_ += 2, r += Q[Me], n += me[Me], J += xe[Me];
|
|
3754
|
-
} while (_ <
|
|
3757
|
+
} while (_ < w);
|
|
3755
3758
|
var qe = R;
|
|
3756
3759
|
return r > n && (r = n, qe++), r > J && (r = J, qe = R + 2), L.bits += r, qe;
|
|
3757
3760
|
}
|
|
@@ -3772,19 +3775,19 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3772
3775
|
13,
|
|
3773
3776
|
13
|
|
3774
3777
|
];
|
|
3775
|
-
function F(f, _,
|
|
3776
|
-
var L = q(f, _,
|
|
3778
|
+
function F(f, _, w, R) {
|
|
3779
|
+
var L = q(f, _, w);
|
|
3777
3780
|
switch (L) {
|
|
3778
3781
|
case 0:
|
|
3779
3782
|
return L;
|
|
3780
3783
|
case 1:
|
|
3781
|
-
return Y(f, _,
|
|
3784
|
+
return Y(f, _, w, R);
|
|
3782
3785
|
case 2:
|
|
3783
3786
|
case 3:
|
|
3784
3787
|
return ne(
|
|
3785
3788
|
f,
|
|
3786
3789
|
_,
|
|
3787
|
-
|
|
3790
|
+
w,
|
|
3788
3791
|
be[L - 1],
|
|
3789
3792
|
R
|
|
3790
3793
|
);
|
|
@@ -3803,7 +3806,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3803
3806
|
return H(
|
|
3804
3807
|
f,
|
|
3805
3808
|
_,
|
|
3806
|
-
|
|
3809
|
+
w,
|
|
3807
3810
|
be[L - 1],
|
|
3808
3811
|
R
|
|
3809
3812
|
);
|
|
@@ -3815,12 +3818,12 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3815
3818
|
var n;
|
|
3816
3819
|
for (n = r - 8; n < 24 && !(K.ht[n].linmax >= L); n++)
|
|
3817
3820
|
;
|
|
3818
|
-
return ce(f, _,
|
|
3821
|
+
return ce(f, _, w, n, r, R);
|
|
3819
3822
|
}
|
|
3820
3823
|
}
|
|
3821
|
-
this.noquant_count_bits = function(f, _,
|
|
3824
|
+
this.noquant_count_bits = function(f, _, w) {
|
|
3822
3825
|
var R = _.l3_enc, L = Math.min(576, _.max_nonzero_coeff + 2 >> 1 << 1);
|
|
3823
|
-
for (
|
|
3826
|
+
for (w != null && (w.sfb_count1 = 0); L > 1 && !(R[L - 1] | R[L - 2]); L -= 2)
|
|
3824
3827
|
;
|
|
3825
3828
|
_.count1 = L;
|
|
3826
3829
|
for (var r = 0, n = 0; L > 3; L -= 4) {
|
|
@@ -3849,24 +3852,24 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3849
3852
|
var Q = new E(O);
|
|
3850
3853
|
_.table_select[1] = F(R, r, n, Q), O = Q.bits;
|
|
3851
3854
|
}
|
|
3852
|
-
if (f.use_best_huffman == 2 && x(),
|
|
3855
|
+
if (f.use_best_huffman == 2 && x(), w != null && _.block_type == o.NORM_TYPE) {
|
|
3853
3856
|
for (var me = 0; f.scalefac_band.l[me] < _.big_values; )
|
|
3854
3857
|
me++;
|
|
3855
|
-
|
|
3858
|
+
w.sfb_count1 = me;
|
|
3856
3859
|
}
|
|
3857
3860
|
return O;
|
|
3858
|
-
}, this.count_bits = function(f, _,
|
|
3859
|
-
var L =
|
|
3860
|
-
return
|
|
3861
|
+
}, this.count_bits = function(f, _, w, R) {
|
|
3862
|
+
var L = w.l3_enc, r = e.IXMAX_VAL / c.IPOW20(w.global_gain);
|
|
3863
|
+
return w.xrpow_max > r ? e.LARGE_BITS : (g(_, L, c.IPOW20(w.global_gain), w, R), f.substep_shaping & 2 && x(), this.noquant_count_bits(f, w, R));
|
|
3861
3864
|
};
|
|
3862
|
-
function U(f, _,
|
|
3865
|
+
function U(f, _, w, R, L, r, n) {
|
|
3863
3866
|
for (var J = _.big_values, O = 0; O <= 22; O++)
|
|
3864
3867
|
R[O] = e.LARGE_BITS;
|
|
3865
3868
|
for (var O = 0; O < 16; O++) {
|
|
3866
3869
|
var Q = f.scalefac_band.l[O + 1];
|
|
3867
3870
|
if (Q >= J)
|
|
3868
3871
|
break;
|
|
3869
|
-
var me = 0, xe = new E(me), Me = F(
|
|
3872
|
+
var me = 0, xe = new E(me), Me = F(w, 0, Q, xe);
|
|
3870
3873
|
me = xe.bits;
|
|
3871
3874
|
for (var qe = 0; qe < 8; qe++) {
|
|
3872
3875
|
var Qe = f.scalefac_band.l[O + qe + 2];
|
|
@@ -3874,29 +3877,29 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3874
3877
|
break;
|
|
3875
3878
|
var Ke = me;
|
|
3876
3879
|
xe = new E(Ke);
|
|
3877
|
-
var xt = F(
|
|
3880
|
+
var xt = F(w, Q, Qe, xe);
|
|
3878
3881
|
Ke = xe.bits, R[O + qe] > Ke && (R[O + qe] = Ke, L[O + qe] = O, r[O + qe] = Me, n[O + qe] = xt);
|
|
3879
3882
|
}
|
|
3880
3883
|
}
|
|
3881
3884
|
}
|
|
3882
|
-
function t(f, _,
|
|
3885
|
+
function t(f, _, w, R, L, r, n, J) {
|
|
3883
3886
|
for (var O = _.big_values, Q = 2; Q < o.SBMAX_l + 1; Q++) {
|
|
3884
3887
|
var me = f.scalefac_band.l[Q];
|
|
3885
3888
|
if (me >= O)
|
|
3886
3889
|
break;
|
|
3887
3890
|
var xe = L[Q - 2] + _.count1bits;
|
|
3888
|
-
if (
|
|
3891
|
+
if (w.part2_3_length <= xe)
|
|
3889
3892
|
break;
|
|
3890
3893
|
var Me = new E(xe), qe = F(R, me, O, Me);
|
|
3891
|
-
xe = Me.bits, !(
|
|
3894
|
+
xe = Me.bits, !(w.part2_3_length <= xe) && (w.assign(_), w.part2_3_length = xe, w.region0_count = r[Q - 2], w.region1_count = Q - 2 - r[Q - 2], w.table_select[0] = n[Q - 2], w.table_select[1] = J[Q - 2], w.table_select[2] = qe);
|
|
3892
3895
|
}
|
|
3893
3896
|
}
|
|
3894
3897
|
this.best_huffman_divide = function(f, _) {
|
|
3895
|
-
var
|
|
3898
|
+
var w = new v(), R = _.l3_enc, L = P(23), r = P(23), n = P(23), J = P(23);
|
|
3896
3899
|
if (!(_.block_type == o.SHORT_TYPE && f.mode_gr == 1)) {
|
|
3897
|
-
|
|
3900
|
+
w.assign(_), _.block_type == o.NORM_TYPE && (U(f, _, R, L, r, n, J), t(
|
|
3898
3901
|
f,
|
|
3899
|
-
|
|
3902
|
+
w,
|
|
3900
3903
|
_,
|
|
3901
3904
|
R,
|
|
3902
3905
|
L,
|
|
@@ -3904,17 +3907,17 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3904
3907
|
n,
|
|
3905
3908
|
J
|
|
3906
3909
|
));
|
|
3907
|
-
var O =
|
|
3910
|
+
var O = w.big_values;
|
|
3908
3911
|
if (!(O == 0 || (R[O - 2] | R[O - 1]) > 1) && (O = _.count1 + 2, !(O > 576))) {
|
|
3909
|
-
|
|
3910
|
-
for (var Q = 0, me = 0; O >
|
|
3912
|
+
w.assign(_), w.count1 = O;
|
|
3913
|
+
for (var Q = 0, me = 0; O > w.big_values; O -= 4) {
|
|
3911
3914
|
var xe = ((R[O - 4] * 2 + R[O - 3]) * 2 + R[O - 2]) * 2 + R[O - 1];
|
|
3912
3915
|
Q += K.t32l[xe], me += K.t33l[xe];
|
|
3913
3916
|
}
|
|
3914
|
-
if (
|
|
3917
|
+
if (w.big_values = O, w.count1table_select = 0, Q > me && (Q = me, w.count1table_select = 1), w.count1bits = Q, w.block_type == o.NORM_TYPE)
|
|
3915
3918
|
t(
|
|
3916
3919
|
f,
|
|
3917
|
-
|
|
3920
|
+
w,
|
|
3918
3921
|
_,
|
|
3919
3922
|
R,
|
|
3920
3923
|
L,
|
|
@@ -3923,15 +3926,15 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3923
3926
|
J
|
|
3924
3927
|
);
|
|
3925
3928
|
else {
|
|
3926
|
-
if (
|
|
3927
|
-
var Me = new E(
|
|
3928
|
-
|
|
3929
|
+
if (w.part2_3_length = Q, Q = f.scalefac_band.l[8], Q > O && (Q = O), Q > 0) {
|
|
3930
|
+
var Me = new E(w.part2_3_length);
|
|
3931
|
+
w.table_select[0] = F(R, 0, Q, Me), w.part2_3_length = Me.bits;
|
|
3929
3932
|
}
|
|
3930
3933
|
if (O > Q) {
|
|
3931
|
-
var Me = new E(
|
|
3932
|
-
|
|
3934
|
+
var Me = new E(w.part2_3_length);
|
|
3935
|
+
w.table_select[1] = F(R, Q, O, Me), w.part2_3_length = Me.bits;
|
|
3933
3936
|
}
|
|
3934
|
-
_.part2_3_length >
|
|
3937
|
+
_.part2_3_length > w.part2_3_length && _.assign(w);
|
|
3935
3938
|
}
|
|
3936
3939
|
}
|
|
3937
3940
|
}
|
|
@@ -3939,28 +3942,28 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3939
3942
|
var u = [1, 1, 1, 1, 8, 2, 2, 2, 4, 4, 4, 8, 8, 8, 16, 16], C = [1, 2, 4, 8, 1, 2, 4, 8, 2, 4, 8, 2, 4, 8, 4, 8], G = [0, 0, 0, 0, 3, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4], S = [0, 1, 2, 3, 0, 1, 2, 3, 1, 2, 3, 1, 2, 3, 2, 3];
|
|
3940
3943
|
Fe.slen1_tab = G, Fe.slen2_tab = S;
|
|
3941
3944
|
function h(f, _) {
|
|
3942
|
-
for (var
|
|
3943
|
-
for (
|
|
3945
|
+
for (var w, R = _.tt[1][f], L = _.tt[0][f], r = 0; r < K.scfsi_band.length - 1; r++) {
|
|
3946
|
+
for (w = K.scfsi_band[r]; w < K.scfsi_band[r + 1] && !(L.scalefac[w] != R.scalefac[w] && R.scalefac[w] >= 0); w++)
|
|
3944
3947
|
;
|
|
3945
|
-
if (
|
|
3946
|
-
for (
|
|
3947
|
-
R.scalefac[
|
|
3948
|
+
if (w == K.scfsi_band[r + 1]) {
|
|
3949
|
+
for (w = K.scfsi_band[r]; w < K.scfsi_band[r + 1]; w++)
|
|
3950
|
+
R.scalefac[w] = -1;
|
|
3948
3951
|
_.scfsi[f][r] = 1;
|
|
3949
3952
|
}
|
|
3950
3953
|
}
|
|
3951
3954
|
var n = 0, J = 0;
|
|
3952
|
-
for (
|
|
3953
|
-
R.scalefac[
|
|
3954
|
-
for (var O = 0, Q = 0;
|
|
3955
|
-
R.scalefac[
|
|
3955
|
+
for (w = 0; w < 11; w++)
|
|
3956
|
+
R.scalefac[w] != -1 && (J++, n < R.scalefac[w] && (n = R.scalefac[w]));
|
|
3957
|
+
for (var O = 0, Q = 0; w < o.SBPSY_l; w++)
|
|
3958
|
+
R.scalefac[w] != -1 && (Q++, O < R.scalefac[w] && (O = R.scalefac[w]));
|
|
3956
3959
|
for (var r = 0; r < 16; r++)
|
|
3957
3960
|
if (n < u[r] && O < C[r]) {
|
|
3958
3961
|
var me = G[r] * J + S[r] * Q;
|
|
3959
3962
|
R.part2_length > me && (R.part2_length = me, R.scalefac_compress = r);
|
|
3960
3963
|
}
|
|
3961
3964
|
}
|
|
3962
|
-
this.best_scalefac_store = function(f, _,
|
|
3963
|
-
var L = R.tt[_][
|
|
3965
|
+
this.best_scalefac_store = function(f, _, w, R) {
|
|
3966
|
+
var L = R.tt[_][w], r, n, J, O, Q = 0;
|
|
3964
3967
|
for (J = 0, r = 0; r < L.sfbmax; r++) {
|
|
3965
3968
|
var me = L.width[r];
|
|
3966
3969
|
for (J += me, O = -me; O < 0 && L.l3_enc[O + J] == 0; O++)
|
|
@@ -3987,8 +3990,8 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
3987
3990
|
}
|
|
3988
3991
|
}
|
|
3989
3992
|
for (n = 0; n < 4; n++)
|
|
3990
|
-
R.scfsi[
|
|
3991
|
-
for (f.mode_gr == 2 && _ == 1 && R.tt[0][
|
|
3993
|
+
R.scfsi[w][n] = 0;
|
|
3994
|
+
for (f.mode_gr == 2 && _ == 1 && R.tt[0][w].block_type != o.SHORT_TYPE && R.tt[1][w].block_type != o.SHORT_TYPE && (h(w, R), Q = 0), r = 0; r < L.sfbmax; r++)
|
|
3992
3995
|
L.scalefac[r] == -2 && (L.scalefac[r] = 0);
|
|
3993
3996
|
Q != 0 && (f.mode_gr == 2 ? this.scale_bitcount(L) : this.scale_bitcount_lsf(f, L));
|
|
3994
3997
|
};
|
|
@@ -4045,20 +4048,20 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
4045
4048
|
74
|
|
4046
4049
|
];
|
|
4047
4050
|
this.scale_bitcount = function(f) {
|
|
4048
|
-
var _,
|
|
4051
|
+
var _, w, R = 0, L = 0, r, n = f.scalefac;
|
|
4049
4052
|
if (f.block_type == o.SHORT_TYPE)
|
|
4050
4053
|
r = y, f.mixed_block_flag != 0 && (r = d);
|
|
4051
4054
|
else if (r = D, f.preflag == 0) {
|
|
4052
|
-
for (
|
|
4055
|
+
for (w = 11; w < o.SBPSY_l && !(n[w] < c.pretab[w]); w++)
|
|
4053
4056
|
;
|
|
4054
|
-
if (
|
|
4055
|
-
for (f.preflag = 1,
|
|
4056
|
-
n[
|
|
4057
|
-
}
|
|
4058
|
-
for (
|
|
4059
|
-
R < n[
|
|
4060
|
-
for (;
|
|
4061
|
-
L < n[
|
|
4057
|
+
if (w == o.SBPSY_l)
|
|
4058
|
+
for (f.preflag = 1, w = 11; w < o.SBPSY_l; w++)
|
|
4059
|
+
n[w] -= c.pretab[w];
|
|
4060
|
+
}
|
|
4061
|
+
for (w = 0; w < f.sfbdivide; w++)
|
|
4062
|
+
R < n[w] && (R = n[w]);
|
|
4063
|
+
for (; w < f.sfbmax; w++)
|
|
4064
|
+
L < n[w] && (L = n[w]);
|
|
4062
4065
|
for (f.part2_length = e.LARGE_BITS, _ = 0; _ < 16; _++)
|
|
4063
4066
|
R < u[_] && L < C[_] && f.part2_length > r[_] && (f.part2_length = r[_], f.scalefac_compress = _);
|
|
4064
4067
|
return f.part2_length == e.LARGE_BITS;
|
|
@@ -4072,30 +4075,30 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
4072
4075
|
[3, 3, 0, 0]
|
|
4073
4076
|
];
|
|
4074
4077
|
this.scale_bitcount_lsf = function(f, _) {
|
|
4075
|
-
var
|
|
4076
|
-
for (_.preflag != 0 ?
|
|
4078
|
+
var w, R, L, r, n, J, O, Q, me = P(4), xe = _.scalefac;
|
|
4079
|
+
for (_.preflag != 0 ? w = 2 : w = 0, O = 0; O < 4; O++)
|
|
4077
4080
|
me[O] = 0;
|
|
4078
4081
|
if (_.block_type == o.SHORT_TYPE) {
|
|
4079
4082
|
R = 1;
|
|
4080
|
-
var Me = c.nr_of_sfb_block[
|
|
4083
|
+
var Me = c.nr_of_sfb_block[w][R];
|
|
4081
4084
|
for (Q = 0, L = 0; L < 4; L++)
|
|
4082
4085
|
for (r = Me[L] / 3, O = 0; O < r; O++, Q++)
|
|
4083
4086
|
for (n = 0; n < 3; n++)
|
|
4084
4087
|
xe[Q * 3 + n] > me[L] && (me[L] = xe[Q * 3 + n]);
|
|
4085
4088
|
} else {
|
|
4086
4089
|
R = 0;
|
|
4087
|
-
var Me = c.nr_of_sfb_block[
|
|
4090
|
+
var Me = c.nr_of_sfb_block[w][R];
|
|
4088
4091
|
for (Q = 0, L = 0; L < 4; L++)
|
|
4089
4092
|
for (r = Me[L], O = 0; O < r; O++, Q++)
|
|
4090
4093
|
xe[Q] > me[L] && (me[L] = xe[Q]);
|
|
4091
4094
|
}
|
|
4092
4095
|
for (J = !1, L = 0; L < 4; L++)
|
|
4093
|
-
me[L] > s[
|
|
4096
|
+
me[L] > s[w][L] && (J = !0);
|
|
4094
4097
|
if (!J) {
|
|
4095
4098
|
var qe, Qe, Ke, xt;
|
|
4096
|
-
for (_.sfb_partition_table = c.nr_of_sfb_block[
|
|
4099
|
+
for (_.sfb_partition_table = c.nr_of_sfb_block[w][R], L = 0; L < 4; L++)
|
|
4097
4100
|
_.slen[L] = Z[me[L]];
|
|
4098
|
-
switch (qe = _.slen[0], Qe = _.slen[1], Ke = _.slen[2], xt = _.slen[3],
|
|
4101
|
+
switch (qe = _.slen[0], Qe = _.slen[1], Ke = _.slen[2], xt = _.slen[3], w) {
|
|
4099
4102
|
case 0:
|
|
4100
4103
|
_.scalefac_compress = (qe * 5 + Qe << 4) + (Ke << 2) + xt;
|
|
4101
4104
|
break;
|
|
@@ -4132,13 +4135,13 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
4132
4135
|
];
|
|
4133
4136
|
this.huffman_init = function(f) {
|
|
4134
4137
|
for (var _ = 2; _ <= 576; _ += 2) {
|
|
4135
|
-
for (var
|
|
4138
|
+
for (var w = 0, R; f.scalefac_band.l[++w] < _; )
|
|
4136
4139
|
;
|
|
4137
|
-
for (R = X[
|
|
4140
|
+
for (R = X[w][0]; f.scalefac_band.l[R + 1] > _; )
|
|
4138
4141
|
R--;
|
|
4139
|
-
for (R < 0 && (R = X[
|
|
4142
|
+
for (R < 0 && (R = X[w][0]), f.bv_scf[_ - 2] = R, R = X[w][1]; f.scalefac_band.l[R + f.bv_scf[_ - 2] + 2] > _; )
|
|
4140
4143
|
R--;
|
|
4141
|
-
R < 0 && (R = X[
|
|
4144
|
+
R < 0 && (R = X[w][1]), f.bv_scf[_ - 1] = R;
|
|
4142
4145
|
}
|
|
4143
4146
|
};
|
|
4144
4147
|
}
|
|
@@ -4623,15 +4626,15 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
4623
4626
|
}
|
|
4624
4627
|
h.error_protection && x();
|
|
4625
4628
|
{
|
|
4626
|
-
var
|
|
4627
|
-
d.h_ptr =
|
|
4629
|
+
var w = d.h_ptr;
|
|
4630
|
+
d.h_ptr = w + 1 & fe.MAX_HEADER_BUF - 1, d.header[d.h_ptr].write_timing = d.header[w].write_timing + y, d.h_ptr == d.w_ptr;
|
|
4628
4631
|
}
|
|
4629
4632
|
}
|
|
4630
4633
|
function F(h, y) {
|
|
4631
4634
|
var d = K.ht[y.count1table_select + 32], D, s = 0, Z = y.big_values, f = y.big_values;
|
|
4632
4635
|
for (D = (y.count1 - y.big_values) / 4; D > 0; --D) {
|
|
4633
|
-
var _ = 0,
|
|
4634
|
-
R = y.l3_enc[Z + 0], R != 0 && (
|
|
4636
|
+
var _ = 0, w = 0, R;
|
|
4637
|
+
R = y.l3_enc[Z + 0], R != 0 && (w += 8, y.xr[f + 0] < 0 && _++), R = y.l3_enc[Z + 1], R != 0 && (w += 4, _ *= 2, y.xr[f + 1] < 0 && _++), R = y.l3_enc[Z + 2], R != 0 && (w += 2, _ *= 2, y.xr[f + 2] < 0 && _++), R = y.l3_enc[Z + 3], R != 0 && (w++, _ *= 2, y.xr[f + 3] < 0 && _++), Z += 4, f += 4, Y(h, _ + d.table[w], d.hlen[w]), s += d.hlen[w];
|
|
4635
4638
|
}
|
|
4636
4639
|
return s;
|
|
4637
4640
|
}
|
|
@@ -4640,8 +4643,8 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
4640
4643
|
if (y == 0)
|
|
4641
4644
|
return f;
|
|
4642
4645
|
for (var _ = d; _ < D; _ += 2) {
|
|
4643
|
-
var
|
|
4644
|
-
if (J != 0 && (s.xr[_] < 0 && n++,
|
|
4646
|
+
var w = 0, R = 0, L = Z.xlen, r = Z.xlen, n = 0, J = s.l3_enc[_], O = s.l3_enc[_ + 1];
|
|
4647
|
+
if (J != 0 && (s.xr[_] < 0 && n++, w--), y > 15) {
|
|
4645
4648
|
if (J > 14) {
|
|
4646
4649
|
var Q = J - 15;
|
|
4647
4650
|
n |= Q << 1, R = L, J = 15;
|
|
@@ -4652,7 +4655,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
4652
4655
|
}
|
|
4653
4656
|
r = 16;
|
|
4654
4657
|
}
|
|
4655
|
-
O != 0 && (n <<= 1, s.xr[_ + 1] < 0 && n++,
|
|
4658
|
+
O != 0 && (n <<= 1, s.xr[_ + 1] < 0 && n++, w--), J = J * r + O, R -= w, w += Z.hlen[J], Y(h, Z.table[J], w), Y(h, n, R), f += w + R;
|
|
4656
4659
|
}
|
|
4657
4660
|
return f;
|
|
4658
4661
|
}
|
|
@@ -4691,44 +4694,44 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
4691
4694
|
if (h.version == 1)
|
|
4692
4695
|
for (y = 0; y < 2; y++)
|
|
4693
4696
|
for (d = 0; d < f.channels_out; d++) {
|
|
4694
|
-
var
|
|
4695
|
-
for (s = 0, D = 0; D <
|
|
4696
|
-
|
|
4697
|
-
for (; D <
|
|
4698
|
-
|
|
4699
|
-
|
|
4697
|
+
var w = _.tt[y][d], R = Fe.slen1_tab[w.scalefac_compress], L = Fe.slen2_tab[w.scalefac_compress];
|
|
4698
|
+
for (s = 0, D = 0; D < w.sfbdivide; D++)
|
|
4699
|
+
w.scalefac[D] != -1 && (Y(f, w.scalefac[D], R), s += R);
|
|
4700
|
+
for (; D < w.sfbmax; D++)
|
|
4701
|
+
w.scalefac[D] != -1 && (Y(f, w.scalefac[D], L), s += L);
|
|
4702
|
+
w.block_type == o.SHORT_TYPE ? s += t(f, w) : s += u(f, w), s += F(f, w), Z += s;
|
|
4700
4703
|
}
|
|
4701
4704
|
else
|
|
4702
4705
|
for (y = 0, d = 0; d < f.channels_out; d++) {
|
|
4703
|
-
var
|
|
4704
|
-
if (s = 0, D = 0, n = 0,
|
|
4706
|
+
var w = _.tt[y][d], r, n, J = 0;
|
|
4707
|
+
if (s = 0, D = 0, n = 0, w.block_type == o.SHORT_TYPE) {
|
|
4705
4708
|
for (; n < 4; n++) {
|
|
4706
|
-
var O =
|
|
4709
|
+
var O = w.sfb_partition_table[n] / 3, Q = w.slen[n];
|
|
4707
4710
|
for (r = 0; r < O; r++, D++)
|
|
4708
4711
|
Y(
|
|
4709
4712
|
f,
|
|
4710
|
-
Math.max(
|
|
4713
|
+
Math.max(w.scalefac[D * 3 + 0], 0),
|
|
4711
4714
|
Q
|
|
4712
4715
|
), Y(
|
|
4713
4716
|
f,
|
|
4714
|
-
Math.max(
|
|
4717
|
+
Math.max(w.scalefac[D * 3 + 1], 0),
|
|
4715
4718
|
Q
|
|
4716
4719
|
), Y(
|
|
4717
4720
|
f,
|
|
4718
|
-
Math.max(
|
|
4721
|
+
Math.max(w.scalefac[D * 3 + 2], 0),
|
|
4719
4722
|
Q
|
|
4720
4723
|
), J += 3 * Q;
|
|
4721
4724
|
}
|
|
4722
|
-
s += t(f,
|
|
4725
|
+
s += t(f, w);
|
|
4723
4726
|
} else {
|
|
4724
4727
|
for (; n < 4; n++) {
|
|
4725
|
-
var O =
|
|
4728
|
+
var O = w.sfb_partition_table[n], Q = w.slen[n];
|
|
4726
4729
|
for (r = 0; r < O; r++, D++)
|
|
4727
|
-
Y(f, Math.max(
|
|
4730
|
+
Y(f, Math.max(w.scalefac[D], 0), Q), J += Q;
|
|
4728
4731
|
}
|
|
4729
|
-
s += u(f,
|
|
4732
|
+
s += u(f, w);
|
|
4730
4733
|
}
|
|
4731
|
-
s += F(f,
|
|
4734
|
+
s += F(f, w), Z += J + s;
|
|
4732
4735
|
}
|
|
4733
4736
|
return Z;
|
|
4734
4737
|
}
|
|
@@ -8668,40 +8671,40 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
8668
8671
|
}
|
|
8669
8672
|
function C(S) {
|
|
8670
8673
|
for (var h = S.internal_flags.ATH.l, y = S.internal_flags.ATH.psfb21, d = S.internal_flags.ATH.s, D = S.internal_flags.ATH.psfb12, s = S.internal_flags, Z = S.out_samplerate, f = 0; f < o.SBMAX_l; f++) {
|
|
8671
|
-
var _ = s.scalefac_band.l[f],
|
|
8674
|
+
var _ = s.scalefac_band.l[f], w = s.scalefac_band.l[f + 1];
|
|
8672
8675
|
h[f] = Be.MAX_VALUE;
|
|
8673
|
-
for (var R = _; R <
|
|
8676
|
+
for (var R = _; R < w; R++) {
|
|
8674
8677
|
var L = R * Z / 1152, r = u(S, L);
|
|
8675
8678
|
h[f] = Math.min(h[f], r);
|
|
8676
8679
|
}
|
|
8677
8680
|
}
|
|
8678
8681
|
for (var f = 0; f < o.PSFB21; f++) {
|
|
8679
|
-
var _ = s.scalefac_band.psfb21[f],
|
|
8682
|
+
var _ = s.scalefac_band.psfb21[f], w = s.scalefac_band.psfb21[f + 1];
|
|
8680
8683
|
y[f] = Be.MAX_VALUE;
|
|
8681
|
-
for (var R = _; R <
|
|
8684
|
+
for (var R = _; R < w; R++) {
|
|
8682
8685
|
var L = R * Z / 1152, r = u(S, L);
|
|
8683
8686
|
y[f] = Math.min(y[f], r);
|
|
8684
8687
|
}
|
|
8685
8688
|
}
|
|
8686
8689
|
for (var f = 0; f < o.SBMAX_s; f++) {
|
|
8687
|
-
var _ = s.scalefac_band.s[f],
|
|
8690
|
+
var _ = s.scalefac_band.s[f], w = s.scalefac_band.s[f + 1];
|
|
8688
8691
|
d[f] = Be.MAX_VALUE;
|
|
8689
|
-
for (var R = _; R <
|
|
8692
|
+
for (var R = _; R < w; R++) {
|
|
8690
8693
|
var L = R * Z / 384, r = u(S, L);
|
|
8691
8694
|
d[f] = Math.min(d[f], r);
|
|
8692
8695
|
}
|
|
8693
8696
|
d[f] *= s.scalefac_band.s[f + 1] - s.scalefac_band.s[f];
|
|
8694
8697
|
}
|
|
8695
8698
|
for (var f = 0; f < o.PSFB12; f++) {
|
|
8696
|
-
var _ = s.scalefac_band.psfb12[f],
|
|
8699
|
+
var _ = s.scalefac_band.psfb12[f], w = s.scalefac_band.psfb12[f + 1];
|
|
8697
8700
|
D[f] = Be.MAX_VALUE;
|
|
8698
|
-
for (var R = _; R <
|
|
8701
|
+
for (var R = _; R < w; R++) {
|
|
8699
8702
|
var L = R * Z / 384, r = u(S, L);
|
|
8700
8703
|
D[f] = Math.min(D[f], r);
|
|
8701
8704
|
}
|
|
8702
8705
|
D[f] *= s.scalefac_band.s[13] - s.scalefac_band.s[12];
|
|
8703
8706
|
}
|
|
8704
|
-
S.noATH && x(), s.ATH.floor = 10 *
|
|
8707
|
+
S.noATH && x(), s.ATH.floor = 10 * b(u(S, -1));
|
|
8705
8708
|
}
|
|
8706
8709
|
this.iteration_init = function(S) {
|
|
8707
8710
|
var h = S.internal_flags, y = h.l3_side, d;
|
|
@@ -8731,22 +8734,22 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
8731
8734
|
}
|
|
8732
8735
|
}
|
|
8733
8736
|
}, this.on_pe = function(S, h, y, d, D, s) {
|
|
8734
|
-
var Z = S.internal_flags, f = 0, _,
|
|
8737
|
+
var Z = S.internal_flags, f = 0, _, w = P(2), R, L = new pt(f), r = E.ResvMaxBits(S, d, L, s);
|
|
8735
8738
|
f = L.bits;
|
|
8736
8739
|
var n = f + r;
|
|
8737
8740
|
for (n > fe.MAX_BITS_PER_GRANULE && (n = fe.MAX_BITS_PER_GRANULE), _ = 0, R = 0; R < Z.channels_out; ++R)
|
|
8738
8741
|
y[R] = Math.min(
|
|
8739
8742
|
fe.MAX_BITS_PER_CHANNEL,
|
|
8740
8743
|
f / Z.channels_out
|
|
8741
|
-
),
|
|
8744
|
+
), w[R] = 0 | y[R] * h[D][R] / 700 - y[R], w[R] > d * 3 / 4 && (w[R] = d * 3 / 4), w[R] < 0 && (w[R] = 0), w[R] + y[R] > fe.MAX_BITS_PER_CHANNEL && (w[R] = Math.max(
|
|
8742
8745
|
0,
|
|
8743
8746
|
fe.MAX_BITS_PER_CHANNEL - y[R]
|
|
8744
|
-
)), _ +=
|
|
8747
|
+
)), _ += w[R];
|
|
8745
8748
|
if (_ > r)
|
|
8746
8749
|
for (R = 0; R < Z.channels_out; ++R)
|
|
8747
|
-
|
|
8750
|
+
w[R] = r * w[R] / _;
|
|
8748
8751
|
for (R = 0; R < Z.channels_out; ++R)
|
|
8749
|
-
y[R] +=
|
|
8752
|
+
y[R] += w[R], r -= w[R];
|
|
8750
8753
|
for (_ = 0, R = 0; R < Z.channels_out; ++R)
|
|
8751
8754
|
_ += y[R];
|
|
8752
8755
|
return _ > fe.MAX_BITS_PER_GRANULE && x(), n;
|
|
@@ -8754,10 +8757,10 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
8754
8757
|
var d = 90.30873362, D = 94.82444863, s = j.FAST_LOG10_X(h, 10), Z = S * S, f = 0;
|
|
8755
8758
|
return s -= y, Z > 1e-20 && (f = 1 + j.FAST_LOG10_X(Z, 10 / d)), f < 0 && (f = 0), s *= f, s += y + d - D, Math.pow(10, 0.1 * s);
|
|
8756
8759
|
}, this.calc_xmin = function(S, h, y, d) {
|
|
8757
|
-
var D = 0, s = S.internal_flags, Z, f = 0, _ = 0,
|
|
8760
|
+
var D = 0, s = S.internal_flags, Z, f = 0, _ = 0, w = s.ATH, R = y.xr, L = S.VBR == B.vbr_mtrh ? 1 : 0, r = s.masking_lower;
|
|
8758
8761
|
for ((S.VBR == B.vbr_mtrh || S.VBR == B.vbr_mt) && (r = 1), Z = 0; Z < y.psy_lmax; Z++) {
|
|
8759
8762
|
var n, J, O, Q, me, xe;
|
|
8760
|
-
S.VBR == B.vbr_rh || S.VBR == B.vbr_mtrh ? J = athAdjust(
|
|
8763
|
+
S.VBR == B.vbr_rh || S.VBR == B.vbr_mtrh ? J = athAdjust(w.adjust, w.l[Z], w.floor) : J = w.adjust * w.l[Z], me = y.width[Z], O = J / me, Q = he, xe = me >> 1, n = 0;
|
|
8761
8764
|
do {
|
|
8762
8765
|
var Me, qe;
|
|
8763
8766
|
Me = R[f] * R[f], n += Me, Q += Me < O ? Me : O, f++, qe = R[f] * R[f], n += qe, Q += qe < O ? qe : O, f++;
|
|
@@ -8778,7 +8781,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
8778
8781
|
y.max_nonzero_coeff = xt;
|
|
8779
8782
|
for (var mt = y.sfb_smin; Z < y.psymax; mt++, Z += 3) {
|
|
8780
8783
|
var me, wt, Mt;
|
|
8781
|
-
for (S.VBR == B.vbr_rh || S.VBR == B.vbr_mtrh ? Mt = athAdjust(
|
|
8784
|
+
for (S.VBR == B.vbr_rh || S.VBR == B.vbr_mtrh ? Mt = athAdjust(w.adjust, w.s[mt], w.floor) : Mt = w.adjust * w.s[mt], me = y.width[Z], wt = 0; wt < 3; wt++) {
|
|
8782
8785
|
var n = 0, J, O, Q, xe = me >> 1;
|
|
8783
8786
|
O = Mt / me, Q = he;
|
|
8784
8787
|
do {
|
|
@@ -8821,7 +8824,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
8821
8824
|
}
|
|
8822
8825
|
return h.s = s, D;
|
|
8823
8826
|
}, this.calc_noise = function(S, h, y, d, D) {
|
|
8824
|
-
var s = 0, Z = 0, f, _,
|
|
8827
|
+
var s = 0, Z = 0, f, _, w = 0, R = 0, L = 0, r = -20, n = 0, J = S.scalefac, O = 0;
|
|
8825
8828
|
for (d.over_SSD = 0, f = 0; f < S.psymax; f++) {
|
|
8826
8829
|
var Q = S.global_gain - (J[O++] + (S.preflag != 0 ? H[f] : 0) << S.scalefac_scale + 1) - S.subblock_gain[S.window[f]] * 8, me = 0;
|
|
8827
8830
|
if (D != null && D.step[f] == Q)
|
|
@@ -8837,11 +8840,11 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
8837
8840
|
}
|
|
8838
8841
|
if (D != null && (D.global_gain = S.global_gain), L += me, me > 0) {
|
|
8839
8842
|
var Qe;
|
|
8840
|
-
Qe = Math.max(0 | me * 10 + 0.5, 1), d.over_SSD += Qe * Qe,
|
|
8843
|
+
Qe = Math.max(0 | me * 10 + 0.5, 1), d.over_SSD += Qe * Qe, w++, R += me;
|
|
8841
8844
|
}
|
|
8842
8845
|
r = Math.max(r, me);
|
|
8843
8846
|
}
|
|
8844
|
-
return d.over_count =
|
|
8847
|
+
return d.over_count = w, d.tot_noise = L, d.over_noise = R, d.max_noise = r, w;
|
|
8845
8848
|
};
|
|
8846
8849
|
}
|
|
8847
8850
|
function l() {
|
|
@@ -9069,15 +9072,15 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9069
9072
|
s = E.IPOW20(_);
|
|
9070
9073
|
}
|
|
9071
9074
|
D += Z * (h + 1);
|
|
9072
|
-
for (var
|
|
9073
|
-
C[D +
|
|
9075
|
+
for (var w = -Z; w < 0; w++)
|
|
9076
|
+
C[D + w] *= s, C[D + w] > u.xrpow_max && (u.xrpow_max = C[D + w]);
|
|
9074
9077
|
D += Z * (3 - h - 1);
|
|
9075
9078
|
}
|
|
9076
9079
|
{
|
|
9077
9080
|
var s = E.IPOW20(202);
|
|
9078
9081
|
D += u.width[G] * (h + 1);
|
|
9079
|
-
for (var
|
|
9080
|
-
C[D +
|
|
9082
|
+
for (var w = -u.width[G]; w < 0; w++)
|
|
9083
|
+
C[D + w] *= s, C[D + w] > u.xrpow_max && (u.xrpow_max = C[D + w]);
|
|
9081
9084
|
}
|
|
9082
9085
|
}
|
|
9083
9086
|
}
|
|
@@ -9090,7 +9093,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9090
9093
|
return y ? !1 : (h.mode_gr == 2 ? y = T.scale_bitcount(u) : y = T.scale_bitcount_lsf(h, u), y ? (h.noise_shaping > 1 && (Se.fill(h.pseudohalf, 0), u.scalefac_scale == 0 ? (be(u, G), y = !1) : u.block_type == o.SHORT_TYPE && h.subblock_gain > 0 && (y = F(h, u, G) || Y(u))), y || (h.mode_gr == 2 ? y = T.scale_bitcount(u) : y = T.scale_bitcount_lsf(h, u)), !y) : !0);
|
|
9091
9094
|
}
|
|
9092
9095
|
this.outer_loop = function(t, u, C, G, S, h) {
|
|
9093
|
-
var y = t.internal_flags, d = new v(), D = k(576), s = k(p.SFBMAX), Z = new it(), f, _ = new l(),
|
|
9096
|
+
var y = t.internal_flags, d = new v(), D = k(576), s = k(p.SFBMAX), Z = new it(), f, _ = new l(), w = 9999999, R = !1, L = !1, r = 0;
|
|
9094
9097
|
if (ce(y, u, h, S, G), y.noise_shaping == 0)
|
|
9095
9098
|
return 100;
|
|
9096
9099
|
E.calc_noise(
|
|
@@ -9125,7 +9128,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9125
9128
|
G,
|
|
9126
9129
|
d,
|
|
9127
9130
|
_
|
|
9128
|
-
)) >
|
|
9131
|
+
)) > w && d.global_gain <= Q; )
|
|
9129
9132
|
d.global_gain++;
|
|
9130
9133
|
if (d.global_gain > Q)
|
|
9131
9134
|
break;
|
|
@@ -9137,7 +9140,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9137
9140
|
J,
|
|
9138
9141
|
_
|
|
9139
9142
|
), J.bits = d.part2_3_length, u.block_type != o.SHORT_TYPE ? f = t.quant_comp : f = t.quant_comp_short, f = ne(f, Z, J) ? 1 : 0, f != 0)
|
|
9140
|
-
|
|
9143
|
+
w = u.part2_3_length, Z = J, u.assign(d), n = 0, V.arraycopy(G, 0, D, 0, 576);
|
|
9141
9144
|
else if (y.full_outer_loop == 0 && (++n > O && Z.over_count == 0 || y.noise_shaping_amp == 3 && L && n > 30 || y.noise_shaping_amp == 3 && L && d.global_gain - r > 15))
|
|
9142
9145
|
break;
|
|
9143
9146
|
} while (d.global_gain + d.scalefac_scale < 255);
|
|
@@ -9669,8 +9672,8 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9669
9672
|
G = t[17] - t[9], h = t[15] - t[11], y = t[14] - t[12], d = t[0] + t[8], D = t[1] + t[7], s = t[2] + t[6], Z = t[3] + t[5], F[U + 17] = d + s - Z - (D - t[4]), C = (d + s - Z) * g[19] + (D - t[4]), u = (G - h - y) * g[18], F[U + 5] = u + C, F[U + 6] = u - C, S = (t[16] - t[10]) * g[18], D = D * g[19] + t[4], u = G * g[12] + S + h * g[13] + y * g[14], C = -d * g[16] + D - s * g[17] + Z * g[15], F[U + 1] = u + C, F[U + 2] = u - C, u = G * g[13] - S - h * g[14] + y * g[12], C = -d * g[17] + D - s * g[15] + Z * g[16], F[U + 9] = u + C, F[U + 10] = u - C, u = G * g[14] - S + h * g[12] - y * g[13], C = d * g[15] - D + s * g[16] - Z * g[17], F[U + 13] = u + C, F[U + 14] = u - C;
|
|
9670
9673
|
}
|
|
9671
9674
|
{
|
|
9672
|
-
var f, _,
|
|
9673
|
-
f = t[8] - t[0],
|
|
9675
|
+
var f, _, w, R, L, r, n, J;
|
|
9676
|
+
f = t[8] - t[0], w = t[6] - t[2], R = t[5] - t[3], L = t[17] + t[9], r = t[16] + t[10], n = t[15] + t[11], J = t[14] + t[12], F[U + 0] = L + n + J + (r + t[13]), u = (L + n + J) * g[19] - (r + t[13]), C = (f - w + R) * g[18], F[U + 11] = u + C, F[U + 12] = u - C, _ = (t[7] - t[1]) * g[18], r = t[13] - r * g[19], u = L * g[15] - r + n * g[16] + J * g[17], C = f * g[14] + _ + w * g[12] + R * g[13], F[U + 3] = u + C, F[U + 4] = u - C, u = -L * g[17] + r - n * g[15] - J * g[16], C = f * g[13] + _ - w * g[14] - R * g[12], F[U + 7] = u + C, F[U + 8] = u - C, u = -L * g[16] + r - n * g[17] - J * g[15], C = f * g[12] - _ + w * g[13] - R * g[14], F[U + 15] = u + C, F[U + 16] = u - C;
|
|
9674
9677
|
}
|
|
9675
9678
|
}
|
|
9676
9679
|
this.mdct_sub48 = function(F, U, t) {
|
|
@@ -9680,7 +9683,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9680
9683
|
for (ne(u, C, s[Z]), ne(u, C + 32, s[Z + 1]), Z += 2, C += 64, h = 1; h < 32; h += 2)
|
|
9681
9684
|
s[Z - 1][h] *= -1;
|
|
9682
9685
|
for (h = 0; h < 32; h++, D += 18) {
|
|
9683
|
-
var _ = y.block_type,
|
|
9686
|
+
var _ = y.block_type, w = F.sb_sample[G][S], R = F.sb_sample[G][1 - S];
|
|
9684
9687
|
if (y.mixed_block_flag != 0 && h < 2 && (_ = 0), F.amp_filter[h] < 1e-12)
|
|
9685
9688
|
Se.fill(
|
|
9686
9689
|
d,
|
|
@@ -9691,13 +9694,13 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9691
9694
|
else if (F.amp_filter[h] < 1 && x(), _ == o.SHORT_TYPE) {
|
|
9692
9695
|
for (var f = -E / 4; f < 0; f++) {
|
|
9693
9696
|
var L = T[o.SHORT_TYPE][f + 3];
|
|
9694
|
-
d[D + f * 3 + 9] =
|
|
9697
|
+
d[D + f * 3 + 9] = w[9 + f][Y[h]] * L - w[8 - f][Y[h]], d[D + f * 3 + 18] = w[14 - f][Y[h]] * L + w[15 + f][Y[h]], d[D + f * 3 + 10] = w[15 + f][Y[h]] * L - w[14 - f][Y[h]], d[D + f * 3 + 19] = R[2 - f][Y[h]] * L + R[3 + f][Y[h]], d[D + f * 3 + 11] = R[3 + f][Y[h]] * L - R[2 - f][Y[h]], d[D + f * 3 + 20] = R[8 - f][Y[h]] * L + R[9 + f][Y[h]];
|
|
9695
9698
|
}
|
|
9696
9699
|
H(d, D);
|
|
9697
9700
|
} else {
|
|
9698
9701
|
for (var r = k(18), f = -X / 4; f < 0; f++) {
|
|
9699
9702
|
var n, J;
|
|
9700
|
-
n = T[_][f + 27] * R[f + 9][Y[h]] + T[_][f + 36] * R[8 - f][Y[h]], J = T[_][f + 9] *
|
|
9703
|
+
n = T[_][f + 27] * R[f + 9][Y[h]] + T[_][f + 36] * R[8 - f][Y[h]], J = T[_][f + 9] * w[f + 9][Y[h]] - T[_][f + 18] * w[8 - f][Y[h]], r[f + 9] = n - J * he[3 + f + 9], r[f + 18] = n * he[3 + f + 9] + J;
|
|
9701
9704
|
}
|
|
9702
9705
|
be(d, D, r);
|
|
9703
9706
|
}
|
|
@@ -9782,11 +9785,11 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9782
9785
|
C[0][0] = new M(), C[0][1] = new M(), C[1][0] = new M(), C[1][1] = new M();
|
|
9783
9786
|
var G, S = [null, null], h = Y.internal_flags, y = ue([2, 4]), d = [0.5, 0.5], D = [[0, 0], [0, 0]], s = [[0, 0], [0, 0]], Z, f, _;
|
|
9784
9787
|
if (S[0] = ne, S[1] = H, h.lame_encode_frame_init == 0 && ce(Y, S), h.padding = 0, (h.slot_lag -= h.frac_SpF) < 0 && (h.slot_lag += Y.out_samplerate, h.padding = 1), h.psymodel != 0) {
|
|
9785
|
-
var
|
|
9788
|
+
var w, R = [null, null], L = 0, r = P(2);
|
|
9786
9789
|
for (_ = 0; _ < h.mode_gr; _++) {
|
|
9787
9790
|
for (f = 0; f < h.channels_out; f++)
|
|
9788
9791
|
R[f] = S[f], L = 576 + _ * 576 - o.FFTOFFSET;
|
|
9789
|
-
if (Y.VBR == B.vbr_mtrh || Y.VBR == B.vbr_mt ? x() :
|
|
9792
|
+
if (Y.VBR == B.vbr_mtrh || Y.VBR == B.vbr_mt ? x() : w = X.L3psycho_anal_ns(
|
|
9790
9793
|
Y,
|
|
9791
9794
|
R,
|
|
9792
9795
|
L,
|
|
@@ -9797,7 +9800,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9797
9800
|
s[_],
|
|
9798
9801
|
y[_],
|
|
9799
9802
|
r
|
|
9800
|
-
),
|
|
9803
|
+
), w != 0)
|
|
9801
9804
|
return -4;
|
|
9802
9805
|
for (Y.mode == ie.JOINT_STEREO && x(), f = 0; f < h.channels_out; f++) {
|
|
9803
9806
|
var n = h.l3_side.tt[_][f];
|
|
@@ -9886,8 +9889,8 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
9886
9889
|
var Z, f;
|
|
9887
9890
|
Z = 1 - 2 * U * U, f = 2 * U * t, H = q + u, be = q + C - u;
|
|
9888
9891
|
do {
|
|
9889
|
-
var _,
|
|
9890
|
-
|
|
9892
|
+
var _, w, R, y, d, L, D, r, s, n;
|
|
9893
|
+
w = f * g[H + C] - Z * g[be + C], _ = Z * g[H + C] + f * g[be + C], d = g[H + 0] - _, y = g[H + 0] + _, L = g[be + 0] - w, R = g[be + 0] + w, w = f * g[H + S] - Z * g[be + S], _ = Z * g[H + S] + f * g[be + S], s = g[H + G] - _, D = g[H + G] + _, n = g[be + G] - w, r = g[be + G] + w, w = U * D - t * n, _ = t * D + U * n, g[H + G] = y - _, g[H + 0] = y + _, g[be + S] = L - w, g[be + C] = L + w, w = t * r - U * s, _ = U * r + t * s, g[be + G] = R - _, g[be + 0] = R + _, g[H + S] = d - w, g[H + C] = d + w, be += ne, H += ne;
|
|
9891
9894
|
} while (H < F);
|
|
9892
9895
|
Z = t, t = Z * X[Y + 0] - U * X[Y + 1], U = Z * X[Y + 1] + U * X[Y + 0];
|
|
9893
9896
|
}
|
|
@@ -10129,7 +10132,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
10129
10132
|
1.22321 * 1.22321,
|
|
10130
10133
|
1.14758 * 1.14758,
|
|
10131
10134
|
1
|
|
10132
|
-
],
|
|
10135
|
+
], w = [
|
|
10133
10136
|
2.35364 * 2.35364,
|
|
10134
10137
|
2.29259 * 2.29259,
|
|
10135
10138
|
2.23313 * 2.23313,
|
|
@@ -10167,9 +10170,9 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
10167
10170
|
if (z = Le.ATH.cb_l[re] * Le.ATH.adjust, se < D * z) {
|
|
10168
10171
|
if (se > z) {
|
|
10169
10172
|
var Ve, tt;
|
|
10170
|
-
return Ve = 1, De <= 13 && (Ve =
|
|
10173
|
+
return Ve = 1, De <= 13 && (Ve = w[De]), tt = j.FAST_LOG10_X(se / z, 10 / 15), se * ((f[De] - Ve) * tt + Ve);
|
|
10171
10174
|
}
|
|
10172
|
-
return De > 13 ? se : se *
|
|
10175
|
+
return De > 13 ? se : se * w[De];
|
|
10173
10176
|
}
|
|
10174
10177
|
return se * f[De];
|
|
10175
10178
|
}
|
|
@@ -11052,7 +11055,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
11052
11055
|
return -6;
|
|
11053
11056
|
if (O -= z, zt += z, Me.channels_out == 2, Me.mf_size += re, Me.mf_samples_to_encode < 1 && x(), Me.mf_samples_to_encode += re, Me.mf_size >= St) {
|
|
11054
11057
|
var Le = xe - qe;
|
|
11055
|
-
if (xe == 0 && (Le = 0), Qe =
|
|
11058
|
+
if (xe == 0 && (Le = 0), Qe = w(
|
|
11056
11059
|
r,
|
|
11057
11060
|
wt[0],
|
|
11058
11061
|
wt[1],
|
|
@@ -11068,7 +11071,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
11068
11071
|
}
|
|
11069
11072
|
return qe;
|
|
11070
11073
|
}
|
|
11071
|
-
function
|
|
11074
|
+
function w(r, n, J, O, Q, me) {
|
|
11072
11075
|
var xe = c.enc.lame_encode_mp3_frame(
|
|
11073
11076
|
r,
|
|
11074
11077
|
n,
|
|
@@ -11128,9 +11131,9 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
11128
11131
|
i(), a.lamejs = i;
|
|
11129
11132
|
});
|
|
11130
11133
|
(function(a) {
|
|
11131
|
-
var i = typeof window == "object" && !!window.document,
|
|
11134
|
+
var i = typeof window == "object" && !!window.document, b = i ? window : Object, x = b.Recorder, N = x.i18n;
|
|
11132
11135
|
a(x, N, N.$T, i);
|
|
11133
|
-
})(function(a, i,
|
|
11136
|
+
})(function(a, i, b, x) {
|
|
11134
11137
|
var N = function(k) {
|
|
11135
11138
|
return new P(k);
|
|
11136
11139
|
}, m = "WaveView", P = function(k) {
|
|
@@ -11167,7 +11170,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
11167
11170
|
var He = ee.canvas = k[ke];
|
|
11168
11171
|
else {
|
|
11169
11172
|
if (!x)
|
|
11170
|
-
throw new Error(
|
|
11173
|
+
throw new Error(b.G("NonBrowser-1", [m]));
|
|
11171
11174
|
var Se = k.elem;
|
|
11172
11175
|
Se && (typeof Se == "string" ? Se = document.querySelector(Se) : Se.length && (Se = Se[0])), Se && (k.width = Se.offsetWidth, k.height = Se.offsetHeight);
|
|
11173
11176
|
var V = ee.elem = document.createElement("div");
|
|
@@ -11177,7 +11180,7 @@ const A0 = /* @__PURE__ */ O0(si);
|
|
|
11177
11180
|
}
|
|
11178
11181
|
var j = k.scale, oe = k.width * j, Be = k.height * j;
|
|
11179
11182
|
if (!oe || !Be)
|
|
11180
|
-
throw new Error(
|
|
11183
|
+
throw new Error(b.G("IllegalArgs-1", [m + " width=0 height=0"]));
|
|
11181
11184
|
He.width = oe, He.height = Be;
|
|
11182
11185
|
var B = ee.ctx = He.getContext("2d");
|
|
11183
11186
|
ee.linear1 = ee.genLinear(B, oe, k.linear1), ee.linear2 = ee.genLinear(B, oe, k.linear2), ee.linearBg = ee.genLinear(B, Be, k.linearBg, !0), ee._phase = 0;
|
|
@@ -11246,8 +11249,8 @@ const oi = {
|
|
|
11246
11249
|
sampleRate: 16e3,
|
|
11247
11250
|
bitRate: 16,
|
|
11248
11251
|
//mp3格式,指定采样率hz、比特率kbps,其他参数使用默认配置;注意:是数字的参数必须提供数字,不要用字符串;需要使用的type类型,需提前把格式支持文件加载进来,比如使用wav格式需要提前加载wav.js编码引擎
|
|
11249
|
-
onProcess: (a, i,
|
|
11250
|
-
this.duration = this.formatMilliseconds(
|
|
11252
|
+
onProcess: (a, i, b, x) => {
|
|
11253
|
+
this.duration = this.formatMilliseconds(b), this.wave && this.wave.input(
|
|
11251
11254
|
a[a.length - 1],
|
|
11252
11255
|
i,
|
|
11253
11256
|
x
|
|
@@ -11284,7 +11287,7 @@ const oi = {
|
|
|
11284
11287
|
},
|
|
11285
11288
|
methods: {
|
|
11286
11289
|
formatMilliseconds(a) {
|
|
11287
|
-
const i = Math.floor(a / 1e3),
|
|
11290
|
+
const i = Math.floor(a / 1e3), b = Math.floor(i / 60), x = i % 60, N = b.toString().padStart(2, "0"), m = x.toString().padStart(2, "0");
|
|
11288
11291
|
return `${N}:${m}`;
|
|
11289
11292
|
},
|
|
11290
11293
|
start() {
|
|
@@ -11301,7 +11304,7 @@ const oi = {
|
|
|
11301
11304
|
);
|
|
11302
11305
|
},
|
|
11303
11306
|
handleFinish() {
|
|
11304
|
-
const [, a] = this.blob.type.split("/"), i = (/* @__PURE__ */ new Date()).getTime(),
|
|
11307
|
+
const [, a] = this.blob.type.split("/"), i = (/* @__PURE__ */ new Date()).getTime(), b = `${i}.${a}`, x = new File([this.blob], b, {
|
|
11305
11308
|
type: this.blob.type,
|
|
11306
11309
|
lastModified: i
|
|
11307
11310
|
});
|
|
@@ -11314,7 +11317,7 @@ const oi = {
|
|
|
11314
11317
|
this.$emit("cancel");
|
|
11315
11318
|
},
|
|
11316
11319
|
handleTranslate() {
|
|
11317
|
-
const [, a] = this.blob.type.split("/"), i = (/* @__PURE__ */ new Date()).getTime(),
|
|
11320
|
+
const [, a] = this.blob.type.split("/"), i = (/* @__PURE__ */ new Date()).getTime(), b = `${i}.${a}`, x = new File([this.blob], b, {
|
|
11318
11321
|
type: this.blob.type,
|
|
11319
11322
|
lastModified: i
|
|
11320
11323
|
});
|
|
@@ -11336,7 +11339,7 @@ const oi = {
|
|
|
11336
11339
|
key: 1,
|
|
11337
11340
|
class: "audio-text"
|
|
11338
11341
|
}, pi = { class: "buttons" };
|
|
11339
|
-
function bi(a, i,
|
|
11342
|
+
function bi(a, i, b, x, N, m) {
|
|
11340
11343
|
const P = Bt("inline-svg");
|
|
11341
11344
|
return et(), nt("div", {
|
|
11342
11345
|
class: "wrap",
|
|
@@ -11463,10 +11466,10 @@ var wr = { exports: {} };
|
|
|
11463
11466
|
throw "First parameter is required.";
|
|
11464
11467
|
e = e || {
|
|
11465
11468
|
type: "video"
|
|
11466
|
-
}, e = new
|
|
11469
|
+
}, e = new b(I, e);
|
|
11467
11470
|
var l = this;
|
|
11468
11471
|
function v(te) {
|
|
11469
|
-
return e.disableLogs || console.log("RecordRTC version: ", l.version), te && (e = new
|
|
11472
|
+
return e.disableLogs || console.log("RecordRTC version: ", l.version), te && (e = new b(I, te)), e.disableLogs || console.log("started recording " + e.type + " stream."), we ? (we.clearRecordedData(), we.record(), Te("recording"), l.recordingDuration && de(), l) : (p(function() {
|
|
11470
11473
|
l.recordingDuration && de();
|
|
11471
11474
|
}), l);
|
|
11472
11475
|
}
|
|
@@ -12042,7 +12045,7 @@ var wr = { exports: {} };
|
|
|
12042
12045
|
* @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
|
|
12043
12046
|
* @param {object} config - {type:"video", disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, video: HTMLVideoElement, getNativeBlob:true, etc.}
|
|
12044
12047
|
*/
|
|
12045
|
-
function
|
|
12048
|
+
function b(I, e) {
|
|
12046
12049
|
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 === K || e.recorderType === Ie || typeof Oe < "u" && e.recorderType === Oe ? e.type = "video" : e.recorderType === $e ? e.type = "gif" : e.recorderType === Xe ? e.type = "audio" : e.recorderType === Ye && (_e(I, "audio").length && _e(I, "video").length || !_e(I, "audio").length && _e(I, "video").length ? e.type = "video" : _e(I, "audio").length && !_e(I, "video").length && (e.type = "audio"))), typeof Ye < "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;
|
|
12047
12050
|
}
|
|
12048
12051
|
/**
|
|
@@ -12623,8 +12626,8 @@ var wr = { exports: {} };
|
|
|
12623
12626
|
ne === 2 && (y = S(H, be)), ne === 1 && (y = H);
|
|
12624
12627
|
var d = y.length, D = 44 + d * 2, s = new ArrayBuffer(D), Z = new DataView(s);
|
|
12625
12628
|
h(Z, 0, "RIFF"), Z.setUint32(4, 36 + d * 2, !0), h(Z, 8, "WAVE"), h(Z, 12, "fmt "), Z.setUint32(16, 16, !0), Z.setUint16(20, 1, !0), Z.setUint16(22, ne, !0), Z.setUint32(24, F, !0), Z.setUint32(28, F * ne * 2, !0), Z.setUint16(32, ne * 2, !0), Z.setUint16(34, 16, !0), h(Z, 36, "data"), Z.setUint32(40, d * 2, !0);
|
|
12626
|
-
for (var f = d, _ = 44,
|
|
12627
|
-
Z.setInt16(_, y[R] * (32767 *
|
|
12629
|
+
for (var f = d, _ = 44, w = 1, R = 0; R < f; R++)
|
|
12630
|
+
Z.setInt16(_, y[R] * (32767 * w), !0), _ += 2;
|
|
12628
12631
|
if (Y)
|
|
12629
12632
|
return Y({
|
|
12630
12633
|
buffer: s,
|
|
@@ -14041,7 +14044,7 @@ const yi = {
|
|
|
14041
14044
|
handleFinish() {
|
|
14042
14045
|
if (!this.blob)
|
|
14043
14046
|
return;
|
|
14044
|
-
const [, a] = this.blob.type.replace(/(;.*$)/, "").split("/"), i = (/* @__PURE__ */ new Date()).getTime(),
|
|
14047
|
+
const [, a] = this.blob.type.replace(/(;.*$)/, "").split("/"), i = (/* @__PURE__ */ new Date()).getTime(), b = `${i}.${a}`, x = new File([this.blob], b, {
|
|
14045
14048
|
type: this.blob.type,
|
|
14046
14049
|
lastModified: i
|
|
14047
14050
|
});
|
|
@@ -14058,7 +14061,7 @@ const yi = {
|
|
|
14058
14061
|
ref: "video",
|
|
14059
14062
|
class: "video-item"
|
|
14060
14063
|
}, Ti = { class: "buttons" };
|
|
14061
|
-
function Ri(a, i,
|
|
14064
|
+
function Ri(a, i, b, x, N, m) {
|
|
14062
14065
|
const P = Bt("inline-svg");
|
|
14063
14066
|
return et(), nt("div", {
|
|
14064
14067
|
class: "wrap",
|
|
@@ -14149,11 +14152,11 @@ const Mi = /* @__PURE__ */ jt(yi, [["render", Ri], ["__scopeId", "data-v-be255be
|
|
|
14149
14152
|
), this.url = this.$refs.canvas.toDataURL("image/jpeg");
|
|
14150
14153
|
},
|
|
14151
14154
|
handleFinish() {
|
|
14152
|
-
const i = `${(/* @__PURE__ */ new Date()).getTime()}.jpeg`,
|
|
14153
|
-
this.$emit("finish", [
|
|
14155
|
+
const i = `${(/* @__PURE__ */ new Date()).getTime()}.jpeg`, b = this.dataURLtoFile(this.url, i);
|
|
14156
|
+
this.$emit("finish", [b]), this.$emit("cancel");
|
|
14154
14157
|
},
|
|
14155
14158
|
dataURLtoFile(a, i) {
|
|
14156
|
-
let
|
|
14159
|
+
let b = a.split(","), x = b[0].match(/:(.*?);/)[1], N = atob(b[1]), m = N.length, P = new Uint8Array(m);
|
|
14157
14160
|
for (; m--; )
|
|
14158
14161
|
P[m] = N.charCodeAt(m);
|
|
14159
14162
|
return new File([P], i, { type: x });
|
|
@@ -14175,7 +14178,7 @@ const Mi = /* @__PURE__ */ jt(yi, [["render", Ri], ["__scopeId", "data-v-be255be
|
|
|
14175
14178
|
style: { display: "none" },
|
|
14176
14179
|
ref: "canvas"
|
|
14177
14180
|
}, Ii = { class: "buttons" };
|
|
14178
|
-
function Oi(a, i,
|
|
14181
|
+
function Oi(a, i, b, x, N, m) {
|
|
14179
14182
|
const P = Bt("inline-svg");
|
|
14180
14183
|
return et(), nt("div", {
|
|
14181
14184
|
class: "wrap",
|
|
@@ -14337,8 +14340,8 @@ const Fi = /* @__PURE__ */ jt(Ci, [["render", Oi], ["__scopeId", "data-v-d1a4de1
|
|
|
14337
14340
|
return this.$refs.titleEditor.focus();
|
|
14338
14341
|
},
|
|
14339
14342
|
handleChangeTitle(a, i = this.note) {
|
|
14340
|
-
let
|
|
14341
|
-
typeof a == "object" && (
|
|
14343
|
+
let b = a;
|
|
14344
|
+
typeof a == "object" && (b = JSON.stringify({
|
|
14342
14345
|
type: a.type,
|
|
14343
14346
|
size: a.size,
|
|
14344
14347
|
content: a.content,
|
|
@@ -14350,14 +14353,14 @@ const Fi = /* @__PURE__ */ jt(Ci, [["render", Oi], ["__scopeId", "data-v-d1a4de1
|
|
|
14350
14353
|
type: "title",
|
|
14351
14354
|
data: {
|
|
14352
14355
|
...i,
|
|
14353
|
-
title:
|
|
14356
|
+
title: b
|
|
14354
14357
|
}
|
|
14355
14358
|
});
|
|
14356
14359
|
},
|
|
14357
14360
|
checkModified(a = this.note.title) {
|
|
14358
14361
|
if (!this.note.created_at) {
|
|
14359
|
-
const i = this.isEmptyContent(),
|
|
14360
|
-
this.modified = !
|
|
14362
|
+
const i = this.isEmptyContent(), b = !a;
|
|
14363
|
+
this.modified = !b || !i;
|
|
14361
14364
|
}
|
|
14362
14365
|
},
|
|
14363
14366
|
isEmptyContent() {
|
|
@@ -14454,7 +14457,7 @@ const Fi = /* @__PURE__ */ jt(Ci, [["render", Oi], ["__scopeId", "data-v-d1a4de1
|
|
|
14454
14457
|
async handleFileUpload(a, i) {
|
|
14455
14458
|
if (!a.length)
|
|
14456
14459
|
return;
|
|
14457
|
-
const
|
|
14460
|
+
const b = Array.from(a).map(async (P) => {
|
|
14458
14461
|
const k = nr(P.type), ee = URL.createObjectURL(P);
|
|
14459
14462
|
let ue = {};
|
|
14460
14463
|
switch ((k.mainType === "image" || k.mainType === "video") && (ue = await sr(P, k.mainType)), k.mainType) {
|
|
@@ -14480,7 +14483,7 @@ const Fi = /* @__PURE__ */ jt(Ci, [["render", Oi], ["__scopeId", "data-v-d1a4de1
|
|
|
14480
14483
|
hash: this.hash
|
|
14481
14484
|
};
|
|
14482
14485
|
}
|
|
14483
|
-
}), x = await Promise.all(
|
|
14486
|
+
}), x = await Promise.all(b), N = this.store.currentId === Ni;
|
|
14484
14487
|
i ? i(x) : x.forEach((P, k) => {
|
|
14485
14488
|
k === 0 && N ? this.handleChangeTitle(P) : this.$refs.treeEditor.appendNode(P);
|
|
14486
14489
|
});
|
|
@@ -14507,13 +14510,13 @@ const Fi = /* @__PURE__ */ jt(Ci, [["render", Oi], ["__scopeId", "data-v-d1a4de1
|
|
|
14507
14510
|
});
|
|
14508
14511
|
},
|
|
14509
14512
|
savePendingNodes(a, i) {
|
|
14510
|
-
const
|
|
14511
|
-
x.push(i), window.localStorage.setItem(
|
|
14513
|
+
const b = `${er}_${a}`, x = JSON.parse(window.localStorage.getItem(b) || "[]");
|
|
14514
|
+
x.push(i), window.localStorage.setItem(b, JSON.stringify(x));
|
|
14512
14515
|
},
|
|
14513
14516
|
restorePendingNodes(a) {
|
|
14514
|
-
const i = `${er}_${a}`,
|
|
14515
|
-
|
|
14516
|
-
const x = JSON.parse(
|
|
14517
|
+
const i = `${er}_${a}`, b = window.localStorage.getItem(i);
|
|
14518
|
+
b && this.$nextTick(() => {
|
|
14519
|
+
const x = JSON.parse(b);
|
|
14517
14520
|
window.localStorage.removeItem(i), x.forEach((N) => {
|
|
14518
14521
|
N.uuid ? this.$refs.treeEditor.updateNode(N) : this.handleChangeTitle(N);
|
|
14519
14522
|
});
|
|
@@ -14532,7 +14535,7 @@ const Fi = /* @__PURE__ */ jt(Ci, [["render", Oi], ["__scopeId", "data-v-d1a4de1
|
|
|
14532
14535
|
key: 0,
|
|
14533
14536
|
class: "record-tree-option-right"
|
|
14534
14537
|
}, Gi = { style: { display: "none" } };
|
|
14535
|
-
function ji(a, i,
|
|
14538
|
+
function ji(a, i, b, x, N, m) {
|
|
14536
14539
|
const P = Bt("RecordTitle"), k = Bt("TreeEditor"), ee = Bt("inline-svg"), ue = Bt("ColorPanel"), pe = Bt("Popper"), ke = Bt("RecordAudio"), He = Bt("RecordVideo"), Se = Bt("RecordPhoto");
|
|
14537
14540
|
return et(), nt("div", {
|
|
14538
14541
|
class: Lt({
|
|
@@ -14543,22 +14546,22 @@ function ji(a, i, w, x, N, m) {
|
|
|
14543
14546
|
We("div", {
|
|
14544
14547
|
class: Lt({
|
|
14545
14548
|
"record-tree": !0,
|
|
14546
|
-
"record-tree-nobar": !
|
|
14549
|
+
"record-tree-nobar": !b.bar
|
|
14547
14550
|
}),
|
|
14548
14551
|
style: Ut(
|
|
14549
|
-
|
|
14550
|
-
height:
|
|
14552
|
+
b.height ? {
|
|
14553
|
+
height: b.height
|
|
14551
14554
|
} : ""
|
|
14552
14555
|
),
|
|
14553
14556
|
onMouseenter: i[1] || (i[1] = (...V) => m.hideHoverNote && m.hideHoverNote(...V))
|
|
14554
14557
|
}, [
|
|
14555
|
-
|
|
14558
|
+
b.showTitle ? (et(), Pt(P, {
|
|
14556
14559
|
key: 0,
|
|
14557
14560
|
ref: "titleEditor",
|
|
14558
|
-
tags:
|
|
14559
|
-
readOnly:
|
|
14560
|
-
enableDbEnter:
|
|
14561
|
-
note:
|
|
14561
|
+
tags: b.tags,
|
|
14562
|
+
readOnly: b.readOnly,
|
|
14563
|
+
enableDbEnter: b.enableDbEnter,
|
|
14564
|
+
note: b.note,
|
|
14562
14565
|
onFocusContent: m.focusContent,
|
|
14563
14566
|
onChange: m.handleChangeTitle,
|
|
14564
14567
|
onFile: m.handleTitleFile,
|
|
@@ -14569,9 +14572,9 @@ function ji(a, i, w, x, N, m) {
|
|
|
14569
14572
|
yt(k, {
|
|
14570
14573
|
ref: "treeEditor",
|
|
14571
14574
|
nodes: N.curNodes,
|
|
14572
|
-
tags:
|
|
14573
|
-
readOnly:
|
|
14574
|
-
enableDbEnter:
|
|
14575
|
+
tags: b.tags,
|
|
14576
|
+
readOnly: b.readOnly,
|
|
14577
|
+
enableDbEnter: b.enableDbEnter,
|
|
14575
14578
|
hash: N.hash,
|
|
14576
14579
|
isMobile: N.isMobile,
|
|
14577
14580
|
onChange: m.handleChangeNodes,
|
|
@@ -14581,7 +14584,7 @@ function ji(a, i, w, x, N, m) {
|
|
|
14581
14584
|
])
|
|
14582
14585
|
])
|
|
14583
14586
|
], 38),
|
|
14584
|
-
|
|
14587
|
+
b.bar && !b.readOnly ? (et(), nt("div", Pi, [
|
|
14585
14588
|
We("div", Ui, [
|
|
14586
14589
|
We("div", {
|
|
14587
14590
|
class: "record-tree-option-item",
|
|
@@ -14706,7 +14709,7 @@ function ji(a, i, w, x, N, m) {
|
|
|
14706
14709
|
We("div", {
|
|
14707
14710
|
class: "record-tree-option-item",
|
|
14708
14711
|
onClick: i[11] || (i[11] = kt((...V) => m.handleComplete && m.handleComplete(...V), ["stop"]))
|
|
14709
|
-
}, o0(N.modified ||
|
|
14712
|
+
}, o0(N.modified || b.note.created_at ? "完成" : "取消"), 1)
|
|
14710
14713
|
])) : Rt("", !0),
|
|
14711
14714
|
We("div", Gi, [
|
|
14712
14715
|
We("input", {
|
|
@@ -14733,19 +14736,19 @@ function ji(a, i, w, x, N, m) {
|
|
|
14733
14736
|
N.recordAudioVisible ? (et(), Pt(ke, {
|
|
14734
14737
|
key: 1,
|
|
14735
14738
|
isMobile: N.isMobile,
|
|
14736
|
-
responsive:
|
|
14739
|
+
responsive: b.responsive,
|
|
14737
14740
|
onFinish: m.handleFinishAudio,
|
|
14738
14741
|
onCancel: i[15] || (i[15] = (V) => N.recordAudioVisible = !1)
|
|
14739
14742
|
}, null, 8, ["isMobile", "responsive", "onFinish"])) : Rt("", !0),
|
|
14740
14743
|
N.recordVideoVisible ? (et(), Pt(He, {
|
|
14741
14744
|
key: 2,
|
|
14742
|
-
responsive:
|
|
14745
|
+
responsive: b.responsive,
|
|
14743
14746
|
onFinish: m.handleFileUpload,
|
|
14744
14747
|
onCancel: i[16] || (i[16] = (V) => N.recordVideoVisible = !1)
|
|
14745
14748
|
}, null, 8, ["responsive", "onFinish"])) : Rt("", !0),
|
|
14746
14749
|
N.recordPhotoVisible ? (et(), Pt(Se, {
|
|
14747
14750
|
key: 3,
|
|
14748
|
-
responsive:
|
|
14751
|
+
responsive: b.responsive,
|
|
14749
14752
|
onFinish: m.handleFileUpload,
|
|
14750
14753
|
onCancel: i[17] || (i[17] = (V) => N.recordPhotoVisible = !1)
|
|
14751
14754
|
}, null, 8, ["responsive", "onFinish"])) : Rt("", !0)
|