UNPKG

@gdyfe/ssml

Version:
20 lines 235 kB
(function(se,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("vue"),require("@wangeditor/editor"),require("pinyin-pro"),require("element-plus"),require("@element-plus/icons-vue")):typeof define=="function"&&define.amd?define(["exports","vue","@wangeditor/editor","pinyin-pro","element-plus","@element-plus/icons-vue"],h):(se=typeof globalThis<"u"?globalThis:se||self,h(se.SSMLEditor={},se.Vue,se.wangEditor,se.pinyinPro,se.ElementPlus,se.ElementPlusIconsVue))})(this,function(se,h,G,Ua,Bt,tr){"use strict";var AD=Object.defineProperty;var wD=(se,h,G)=>h in se?AD(se,h,{enumerable:!0,configurable:!0,writable:!0,value:G}):se[h]=G;var mt=(se,h,G)=>(wD(se,typeof h!="symbol"?h+"":h,G),G);const _D="",FD="";var Wa=!1;function iu(e,t,r){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,r),r):(e[t]=r,r)}function ei(e,t){if(Array.isArray(e)){e.splice(t,1);return}delete e[t]}function lf(){return Ga().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Ga(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const ff=typeof Proxy=="function",cf="devtools-plugin:setup",pf="plugin:settings:set";let nr,ti;function hf(){var e;return nr!==void 0||(typeof window<"u"&&window.performance?(nr=!0,ti=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(nr=!0,ti=global.perf_hooks.performance):nr=!1),nr}function df(){return hf()?ti.now():Date.now()}class gf{constructor(t,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=r;const i={};if(t.settings)for(const p in t.settings){const d=t.settings[p];i[p]=d.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let f=Object.assign({},i);try{const p=localStorage.getItem(s),d=JSON.parse(p);Object.assign(f,d)}catch{}this.fallbacks={getSettings(){return f},setSettings(p){try{localStorage.setItem(s,JSON.stringify(p))}catch{}f=p},now(){return df()}},r&&r.on(pf,(p,d)=>{p===this.plugin.id&&this.fallbacks.setSettings(d)}),this.proxiedOn=new Proxy({},{get:(p,d)=>this.target?this.target.on[d]:(...m)=>{this.onQueue.push({method:d,args:m})}}),this.proxiedTarget=new Proxy({},{get:(p,d)=>this.target?this.target[d]:d==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(d)?(...m)=>(this.targetQueue.push({method:d,args:m,resolve:()=>{}}),this.fallbacks[d](...m)):(...m)=>new Promise(D=>{this.targetQueue.push({method:d,args:m,resolve:D})})})}async setRealTarget(t){this.target=t;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function Ka(e,t){const r=e,i=Ga(),s=lf(),f=ff&&r.enableEarlyProxy;if(s&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!f))s.emit(cf,e,t);else{const p=f?new gf(r,s):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:t,proxy:p}),p&&t(p.proxiedTarget)}}/*! * pinia v2.1.6 * (c) 2023 Eduardo San Martin Morote * @license MIT */let xr;const rr=e=>xr=e,Ya=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function xn(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Vt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Vt||(Vt={}));const au=typeof window<"u",Or=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&au,Ja=(()=>typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null})();function mf(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}function ni(e,t,r){const i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){Qa(i.response,t,r)},i.onerror=function(){console.error("could not download file")},i.send()}function Xa(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function su(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(r)}}const ou=typeof navigator=="object"?navigator:{userAgent:""},Za=(()=>/Macintosh/.test(ou.userAgent)&&/AppleWebKit/.test(ou.userAgent)&&!/Safari/.test(ou.userAgent))(),Qa=au?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!Za?Df:"msSaveOrOpenBlob"in ou?vf:Cf:()=>{};function Df(e,t="download",r){const i=document.createElement("a");i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?Xa(i.href)?ni(e,t,r):(i.target="_blank",su(i)):su(i)):(i.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(i.href)},4e4),setTimeout(function(){su(i)},0))}function vf(e,t="download",r){if(typeof e=="string")if(Xa(e))ni(e,t,r);else{const i=document.createElement("a");i.href=e,i.target="_blank",setTimeout(function(){su(i)})}else navigator.msSaveOrOpenBlob(mf(e,r),t)}function Cf(e,t,r,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),typeof e=="string")return ni(e,t,r);const s=e.type==="application/octet-stream",f=/constructor/i.test(String(Ja.HTMLElement))||"safari"in Ja,p=/CriOS\/[\d]+/.test(navigator.userAgent);if((p||s&&f||Za)&&typeof FileReader<"u"){const d=new FileReader;d.onloadend=function(){let m=d.result;if(typeof m!="string")throw i=null,new Error("Wrong reader.result type");m=p?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=m:location.assign(m),i=null},d.readAsDataURL(e)}else{const d=URL.createObjectURL(e);i?i.location.assign(d):location.href=d,i=null,setTimeout(function(){URL.revokeObjectURL(d)},4e4)}}function We(e,t){const r="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(r,t):t==="error"?console.error(r):t==="warn"?console.warn(r):console.log(r)}function ri(e){return"_a"in e&&"install"in e}function es(){if(!("clipboard"in navigator))return We("Your browser doesn't support the Clipboard API","error"),!0}function ts(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(We('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function yf(e){if(!es())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),We("Global state copied to clipboard.")}catch(t){if(ts(t))return;We("Failed to serialize the state. Check the console for more details.","error"),console.error(t)}}async function Ef(e){if(!es())try{ns(e,JSON.parse(await navigator.clipboard.readText())),We("Global state pasted from clipboard.")}catch(t){if(ts(t))return;We("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(t)}}async function Bf(e){try{Qa(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){We("Failed to export the state as JSON. Check the console for more details.","error"),console.error(t)}}let Qt;function Af(){Qt||(Qt=document.createElement("input"),Qt.type="file",Qt.accept=".json");function e(){return new Promise((t,r)=>{Qt.onchange=async()=>{const i=Qt.files;if(!i)return t(null);const s=i.item(0);return t(s?{text:await s.text(),file:s}:null)},Qt.oncancel=()=>t(null),Qt.onerror=r,Qt.click()})}return e}async function wf(e){try{const r=await Af()();if(!r)return;const{text:i,file:s}=r;ns(e,JSON.parse(i)),We(`Global state imported from "${s.name}".`)}catch(t){We("Failed to import the state from JSON. Check the console for more details.","error"),console.error(t)}}function ns(e,t){for(const r in t){const i=e.state.value[r];i&&Object.assign(i,t[r])}}function Nt(e){return{_custom:{display:e}}}const rs="🍍 Pinia (root)",ui="_root";function _f(e){return ri(e)?{id:ui,label:rs}:{id:e.$id,label:e.$id}}function Ff(e){if(ri(e)){const r=Array.from(e._s.keys()),i=e._s;return{state:r.map(f=>({editable:!0,key:f,value:e.state.value[f]})),getters:r.filter(f=>i.get(f)._getters).map(f=>{const p=i.get(f);return{editable:!1,key:f,value:p._getters.reduce((d,m)=>(d[m]=p[m],d),{})}})}}const t={state:Object.keys(e.$state).map(r=>({editable:!0,key:r,value:e.$state[r]}))};return e._getters&&e._getters.length&&(t.getters=e._getters.map(r=>({editable:!1,key:r,value:e[r]}))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map(r=>({editable:!0,key:r,value:e[r]}))),t}function bf(e){return e?Array.isArray(e)?e.reduce((t,r)=>(t.keys.push(r.key),t.operations.push(r.type),t.oldValue[r.key]=r.oldValue,t.newValue[r.key]=r.newValue,t),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:Nt(e.type),key:Nt(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function xf(e){switch(e){case Vt.direct:return"mutation";case Vt.patchFunction:return"$patch";case Vt.patchObject:return"$patch";default:return"unknown"}}let ur=!0;const lu=[],On="pinia:mutations",Ze="pinia",{assign:Of}=Object,fu=e=>"🍍 "+e;function Sf(e,t){Ka({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:lu,app:e},r=>{typeof r.now!="function"&&We("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),r.addTimelineLayer({id:On,label:"Pinia 🍍",color:15064968}),r.addInspector({id:Ze,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{yf(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Ef(t),r.sendInspectorTree(Ze),r.sendInspectorState(Ze)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Bf(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await wf(t),r.sendInspectorTree(Ze),r.sendInspectorState(Ze)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:i=>{const s=t._s.get(i);s?typeof s.$reset!="function"?We(`Cannot reset "${i}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),We(`Store "${i}" reset.`)):We(`Cannot reset "${i}" store because it wasn't found.`,"warn")}}]}),r.on.inspectComponent((i,s)=>{const f=i.componentInstance&&i.componentInstance.proxy;if(f&&f._pStores){const p=i.componentInstance.proxy._pStores;Object.values(p).forEach(d=>{i.instanceData.state.push({type:fu(d.$id),key:"state",editable:!0,value:d._isOptionsAPI?{_custom:{value:h.toRaw(d.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>d.$reset()}]}}:Object.keys(d.$state).reduce((m,D)=>(m[D]=d.$state[D],m),{})}),d._getters&&d._getters.length&&i.instanceData.state.push({type:fu(d.$id),key:"getters",editable:!1,value:d._getters.reduce((m,D)=>{try{m[D]=d[D]}catch(w){m[D]=w}return m},{})})})}}),r.on.getInspectorTree(i=>{if(i.app===e&&i.inspectorId===Ze){let s=[t];s=s.concat(Array.from(t._s.values())),i.rootNodes=(i.filter?s.filter(f=>"$id"in f?f.$id.toLowerCase().includes(i.filter.toLowerCase()):rs.toLowerCase().includes(i.filter.toLowerCase())):s).map(_f)}}),r.on.getInspectorState(i=>{if(i.app===e&&i.inspectorId===Ze){const s=i.nodeId===ui?t:t._s.get(i.nodeId);if(!s)return;s&&(i.state=Ff(s))}}),r.on.editInspectorState((i,s)=>{if(i.app===e&&i.inspectorId===Ze){const f=i.nodeId===ui?t:t._s.get(i.nodeId);if(!f)return We(`store "${i.nodeId}" not found`,"error");const{path:p}=i;ri(f)?p.unshift("state"):(p.length!==1||!f._customProperties.has(p[0])||p[0]in f.$state)&&p.unshift("$state"),ur=!1,i.set(f,p,i.state.value),ur=!0}}),r.on.editComponentState(i=>{if(i.type.startsWith("🍍")){const s=i.type.replace(/^🍍\s*/,""),f=t._s.get(s);if(!f)return We(`store "${s}" not found`,"error");const{path:p}=i;if(p[0]!=="state")return We(`Invalid path for store "${s}": ${p} Only state can be modified.`);p[0]="$state",ur=!1,i.set(f,p,i.state.value),ur=!0}})})}function Tf(e,t){lu.includes(fu(t.$id))||lu.push(fu(t.$id)),Ka({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:lu,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},r=>{const i=typeof r.now=="function"?r.now.bind(r):Date.now;t.$onAction(({after:p,onError:d,name:m,args:D})=>{const w=us++;r.addTimelineEvent({layerId:On,event:{time:i(),title:"🛫 "+m,subtitle:"start",data:{store:Nt(t.$id),action:Nt(m),args:D},groupId:w}}),p(A=>{pn=void 0,r.addTimelineEvent({layerId:On,event:{time:i(),title:"🛬 "+m,subtitle:"end",data:{store:Nt(t.$id),action:Nt(m),args:D,result:A},groupId:w}})}),d(A=>{pn=void 0,r.addTimelineEvent({layerId:On,event:{time:i(),logType:"error",title:"💥 "+m,subtitle:"end",data:{store:Nt(t.$id),action:Nt(m),args:D,error:A},groupId:w}})})},!0),t._customProperties.forEach(p=>{h.watch(()=>h.unref(t[p]),(d,m)=>{r.notifyComponentUpdate(),r.sendInspectorState(Ze),ur&&r.addTimelineEvent({layerId:On,event:{time:i(),title:"Change",subtitle:p,data:{newValue:d,oldValue:m},groupId:pn}})},{deep:!0})}),t.$subscribe(({events:p,type:d},m)=>{if(r.notifyComponentUpdate(),r.sendInspectorState(Ze),!ur)return;const D={time:i(),title:xf(d),data:Of({store:Nt(t.$id)},bf(p)),groupId:pn};d===Vt.patchFunction?D.subtitle="⤵️":d===Vt.patchObject?D.subtitle="🧩":p&&!Array.isArray(p)&&(D.subtitle=p.type),p&&(D.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:p}}),r.addTimelineEvent({layerId:On,event:D})},{detached:!0,flush:"sync"});const s=t._hotUpdate;t._hotUpdate=h.markRaw(p=>{s(p),r.addTimelineEvent({layerId:On,event:{time:i(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:Nt(t.$id),info:Nt("HMR update")}}}),r.notifyComponentUpdate(),r.sendInspectorTree(Ze),r.sendInspectorState(Ze)});const{$dispose:f}=t;t.$dispose=()=>{f(),r.notifyComponentUpdate(),r.sendInspectorTree(Ze),r.sendInspectorState(Ze),r.getSettings().logStoreChanges&&We(`Disposed "${t.$id}" store 🗑`)},r.notifyComponentUpdate(),r.sendInspectorTree(Ze),r.sendInspectorState(Ze),r.getSettings().logStoreChanges&&We(`"${t.$id}" store installed 🆕`)})}let us=0,pn;function is(e,t,r){const i=t.reduce((s,f)=>(s[f]=h.toRaw(e)[f],s),{});for(const s in i)e[s]=function(){const f=us,p=r?new Proxy(e,{get(...m){return pn=f,Reflect.get(...m)},set(...m){return pn=f,Reflect.set(...m)}}):e;pn=f;const d=i[s].apply(p,arguments);return pn=void 0,d}}function Nf({app:e,store:t,options:r}){if(t.$id.startsWith("__hot:"))return;t._isOptionsAPI=!!r.state,is(t,Object.keys(r.actions),t._isOptionsAPI);const i=t._hotUpdate;h.toRaw(t)._hotUpdate=function(s){i.apply(this,arguments),is(t,Object.keys(s._hmrPayload.actions),!!t._isOptionsAPI)},Tf(e,t)}function Pf(){const e=h.effectScope(!0),t=e.run(()=>h.ref({}));let r=[],i=[];const s=h.markRaw({install(f){rr(s),s._a=f,f.provide(Ya,s),f.config.globalProperties.$pinia=s,Or&&Sf(f,s),i.forEach(p=>r.push(p)),i=[]},use(f){return!this._a&&!Wa?i.push(f):r.push(f),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return Or&&typeof Proxy<"u"&&s.use(Nf),s}function as(e,t){for(const r in t){const i=t[r];if(!(r in e))continue;const s=e[r];xn(s)&&xn(i)&&!h.isRef(i)&&!h.isReactive(i)?e[r]=as(s,i):e[r]=i}return e}const ss=()=>{};function os(e,t,r,i=ss){e.push(t);const s=()=>{const f=e.indexOf(t);f>-1&&(e.splice(f,1),i())};return!r&&h.getCurrentScope()&&h.onScopeDispose(s),s}function ir(e,...t){e.slice().forEach(r=>{r(...t)})}const kf=e=>e();function ii(e,t){e instanceof Map&&t instanceof Map&&t.forEach((r,i)=>e.set(i,r)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const i=t[r],s=e[r];xn(s)&&xn(i)&&e.hasOwnProperty(r)&&!h.isRef(i)&&!h.isReactive(i)?e[r]=ii(s,i):e[r]=i}return e}const $f=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function If(e){return!xn(e)||!e.hasOwnProperty($f)}const{assign:At}=Object;function ls(e){return!!(h.isRef(e)&&e.effect)}function fs(e,t,r,i){const{state:s,actions:f,getters:p}=t,d=r.state.value[e];let m;function D(){!d&&(process.env.NODE_ENV==="production"||!i)&&(r.state.value[e]=s?s():{});const w=process.env.NODE_ENV!=="production"&&i?h.toRefs(h.ref(s?s():{}).value):h.toRefs(r.state.value[e]);return At(w,f,Object.keys(p||{}).reduce((A,y)=>(process.env.NODE_ENV!=="production"&&y in w&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${y}" in store "${e}".`),A[y]=h.markRaw(h.computed(()=>{rr(r);const P=r._s.get(e);return p[y].call(P,P)})),A),{}))}return m=ai(e,D,t,r,i,!0),m}function ai(e,t,r={},i,s,f){let p;const d=At({actions:{}},r);if(process.env.NODE_ENV!=="production"&&!i._e.active)throw new Error("Pinia destroyed");const m={deep:!0};process.env.NODE_ENV!=="production"&&!Wa&&(m.onTrigger=k=>{D?P=k:D==!1&&!N._hotUpdating&&(Array.isArray(P)?P.push(k):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let D,w,A=[],y=[],P;const F=i.state.value[e];!f&&!F&&(process.env.NODE_ENV==="production"||!s)&&(i.state.value[e]={});const _=h.ref({});let L;function z(k){let q;D=w=!1,process.env.NODE_ENV!=="production"&&(P=[]),typeof k=="function"?(k(i.state.value[e]),q={type:Vt.patchFunction,storeId:e,events:P}):(ii(i.state.value[e],k),q={type:Vt.patchObject,payload:k,storeId:e,events:P});const Q=L=Symbol();h.nextTick().then(()=>{L===Q&&(D=!0)}),w=!0,ir(A,q,i.state.value[e])}const H=f?function(){const{state:q}=r,Q=q?q():{};this.$patch(oe=>{At(oe,Q)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:ss;function T(){p.stop(),A=[],y=[],i._s.delete(e)}function S(k,q){return function(){rr(i);const Q=Array.from(arguments),oe=[],ge=[];function Ae(Se){oe.push(Se)}function tt(Se){ge.push(Se)}ir(y,{args:Q,name:k,store:N,after:Ae,onError:tt});let Pe;try{Pe=q.apply(this&&this.$id===e?this:N,Q)}catch(Se){throw ir(ge,Se),Se}return Pe instanceof Promise?Pe.then(Se=>(ir(oe,Se),Se)).catch(Se=>(ir(ge,Se),Promise.reject(Se))):(ir(oe,Pe),Pe)}}const R=h.markRaw({actions:{},getters:{},state:[],hotState:_}),M={_p:i,$id:e,$onAction:os.bind(null,y),$patch:z,$reset:H,$subscribe(k,q={}){const Q=os(A,k,q.detached,()=>oe()),oe=p.run(()=>h.watch(()=>i.state.value[e],ge=>{(q.flush==="sync"?w:D)&&k({storeId:e,type:Vt.direct,events:P},ge)},At({},m,q)));return Q},$dispose:T},N=h.reactive(process.env.NODE_ENV!=="production"||Or?At({_hmrPayload:R,_customProperties:h.markRaw(new Set)},M):M);i._s.set(e,N);const K=i._a&&i._a.runWithContext||kf,X=i._e.run(()=>(p=h.effectScope(),K(()=>p.run(t))));for(const k in X){const q=X[k];if(h.isRef(q)&&!ls(q)||h.isReactive(q))process.env.NODE_ENV!=="production"&&s?iu(_.value,k,h.toRef(X,k)):f||(F&&If(q)&&(h.isRef(q)?q.value=F[k]:ii(q,F[k])),i.state.value[e][k]=q),process.env.NODE_ENV!=="production"&&R.state.push(k);else if(typeof q=="function"){const Q=process.env.NODE_ENV!=="production"&&s?q:S(k,q);X[k]=Q,process.env.NODE_ENV!=="production"&&(R.actions[k]=q),d.actions[k]=q}else process.env.NODE_ENV!=="production"&&ls(q)&&(R.getters[k]=f?r.getters[k]:q,au&&(X._getters||(X._getters=h.markRaw([]))).push(k))}if(At(N,X),At(h.toRaw(N),X),Object.defineProperty(N,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?_.value:i.state.value[e],set:k=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");z(q=>{At(q,k)})}}),process.env.NODE_ENV!=="production"&&(N._hotUpdate=h.markRaw(k=>{N._hotUpdating=!0,k._hmrPayload.state.forEach(q=>{if(q in N.$state){const Q=k.$state[q],oe=N.$state[q];typeof Q=="object"&&xn(Q)&&xn(oe)?as(Q,oe):k.$state[q]=oe}iu(N,q,h.toRef(k.$state,q))}),Object.keys(N.$state).forEach(q=>{q in k.$state||ei(N,q)}),D=!1,w=!1,i.state.value[e]=h.toRef(k._hmrPayload,"hotState"),w=!0,h.nextTick().then(()=>{D=!0});for(const q in k._hmrPayload.actions){const Q=k[q];iu(N,q,S(q,Q))}for(const q in k._hmrPayload.getters){const Q=k._hmrPayload.getters[q],oe=f?h.computed(()=>(rr(i),Q.call(N,N))):Q;iu(N,q,oe)}Object.keys(N._hmrPayload.getters).forEach(q=>{q in k._hmrPayload.getters||ei(N,q)}),Object.keys(N._hmrPayload.actions).forEach(q=>{q in k._hmrPayload.actions||ei(N,q)}),N._hmrPayload=k._hmrPayload,N._getters=k._getters,N._hotUpdating=!1})),Or){const k={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(q=>{Object.defineProperty(N,q,At({value:N[q]},k))})}return i._p.forEach(k=>{if(Or){const q=p.run(()=>k({store:N,app:i._a,pinia:i,options:d}));Object.keys(q||{}).forEach(Q=>N._customProperties.add(Q)),At(N,q)}else At(N,p.run(()=>k({store:N,app:i._a,pinia:i,options:d})))}),process.env.NODE_ENV!=="production"&&N.$state&&typeof N.$state=="object"&&typeof N.$state.constructor=="function"&&!N.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be state: () => new MyClass() Found in store "${N.$id}".`),F&&f&&r.hydrate&&r.hydrate(N.$state,F),D=!0,w=!0,N}function Rf(e,t,r){let i,s;const f=typeof t=="function";if(typeof e=="string")i=e,s=f?r:t;else if(s=e,i=e.id,process.env.NODE_ENV!=="production"&&typeof i!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function p(d,m){const D=h.hasInjectionContext();if(d=(process.env.NODE_ENV==="test"&&xr&&xr._testing?null:d)||(D?h.inject(Ya,null):null),d&&rr(d),process.env.NODE_ENV!=="production"&&!xr)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia? const pinia = createPinia() app.use(pinia) This will fail in production.`);d=xr,d._s.has(i)||(f?ai(i,t,s,d):fs(i,s,d),process.env.NODE_ENV!=="production"&&(p._pinia=d));const w=d._s.get(i);if(process.env.NODE_ENV!=="production"&&m){const A="__hot:"+i,y=f?ai(A,t,s,d,!0):fs(A,At({},s),d,!0);m._hotUpdate(y),delete d.state.value[A],d._s.delete(A)}if(process.env.NODE_ENV!=="production"&&au){const A=h.getCurrentInstance();if(A&&A.proxy&&!m){const y=A.proxy,P="_pStores"in y?y._pStores:y._pStores={};P[i]=w}}return w}return p.$id=i,p}function si(e,t,r,i,s){const f=t===void 0?void 0:t.key;return{sel:e,data:t,children:r,text:i,elm:s,key:f}}const cs=Array.isArray;function oi(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function ps(e,t,r){if(e.ns="http://www.w3.org/2000/svg",r!=="foreignObject"&&t!==void 0)for(let i=0;i<t.length;++i){const s=t[i];if(typeof s=="string")continue;const f=s.data;f!==void 0&&ps(f,s.children,s.sel)}}function hs(e,t,r){let i={},s,f,p;if(r!==void 0?(t!==null&&(i=t),cs(r)?s=r:oi(r)?f=r.toString():r&&r.sel&&(s=[r])):t!=null&&(cs(t)?s=t:oi(t)?f=t.toString():t&&t.sel?s=[t]:i=t),s!==void 0)for(p=0;p<s.length;++p)oi(s[p])&&(s[p]=si(void 0,void 0,void 0,s[p],void 0));return e[0]==="s"&&e[1]==="v"&&e[2]==="g"&&(e.length===3||e[3]==="."||e[3]==="#")&&ps(i,s,e),si(e,i,s,f,void 0)}function ds(e,t){for(const r of e)r!=null&&r!==!1&&r!==""&&(Array.isArray(r)?ds(r,t):typeof r=="string"||typeof r=="number"||typeof r=="boolean"?t.push(si(void 0,void 0,void 0,String(r),void 0)):t.push(r));return t}function te(e,t,...r){const i=ds(r,[]);return typeof e=="function"?e(t,i):i.length===1&&!i[0].sel&&i[0].text?hs(e,t,i[0].text):hs(e,t,i)}te||(te={});function ar(e){if(e)return{emit:e.emit,off:e.off,on:e.on,once:e.once}}var it=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gs="Expected a function",ms=0/0,Lf="[object Symbol]",jf=/^\s+|\s+$/g,Mf=/^[-+]0x[0-9a-f]+$/i,Vf=/^0b[01]+$/i,zf=/^0o[0-7]+$/i,qf=parseInt,Hf=typeof it=="object"&&it&&it.Object===Object&&it,Uf=typeof self=="object"&&self&&self.Object===Object&&self,Wf=Hf||Uf||Function("return this")(),Gf=Object.prototype,Kf=Gf.toString,Yf=Math.max,Jf=Math.min,li=function(){return Wf.Date.now()};function Xf(e,t,r){var i,s,f,p,d,m,D=0,w=!1,A=!1,y=!0;if(typeof e!="function")throw new TypeError(gs);t=Ds(t)||0,cu(r)&&(w=!!r.leading,A="maxWait"in r,f=A?Yf(Ds(r.maxWait)||0,t):f,y="trailing"in r?!!r.trailing:y);function P(M){var N=i,K=s;return i=s=void 0,D=M,p=e.apply(K,N),p}function F(M){return D=M,d=setTimeout(z,t),w?P(M):p}function _(M){var N=M-m,K=M-D,X=t-N;return A?Jf(X,f-K):X}function L(M){var N=M-m,K=M-D;return m===void 0||N>=t||N<0||A&&K>=f}function z(){var M=li();if(L(M))return H(M);d=setTimeout(z,_(M))}function H(M){return d=void 0,y&&i?P(M):(i=s=void 0,p)}function T(){d!==void 0&&clearTimeout(d),D=0,i=m=s=d=void 0}function S(){return d===void 0?p:H(li())}function R(){var M=li(),N=L(M);if(i=arguments,s=this,m=M,N){if(d===void 0)return F(m);if(A)return d=setTimeout(z,t),P(m)}return d===void 0&&(d=setTimeout(z,t)),p}return R.cancel=T,R.flush=S,R}function Zf(e,t,r){var i=!0,s=!0;if(typeof e!="function")throw new TypeError(gs);return cu(r)&&(i="leading"in r?!!r.leading:i,s="trailing"in r?!!r.trailing:s),Xf(e,t,{leading:i,maxWait:t,trailing:s})}function cu(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Qf(e){return!!e&&typeof e=="object"}function ec(e){return typeof e=="symbol"||Qf(e)&&Kf.call(e)==Lf}function Ds(e){if(typeof e=="number")return e;if(ec(e))return ms;if(cu(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=cu(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(jf,"");var r=Vf.test(e);return r||zf.test(e)?qf(e.slice(2),r?2:8):Mf.test(e)?ms:+e}var tc=Zf;const sr=Sr(tc);function vs(e,t){G.SlateEditor.withoutNormalizing(e,()=>{const r=G.SlateEditor.start(e,t),i=G.SlateEditor.end(e,t);G.SlateTransforms.insertText(e," ",{at:r}),G.SlateTransforms.insertText(e," ",{at:{path:i.path,offset:i.offset+1}}),G.SlateTransforms.select(e,{anchor:{path:r.path,offset:r.offset+1},focus:{path:i.path,offset:i.offset+1}})})}function nc(e,t){G.SlateEditor.withoutNormalizing(e,()=>{const r=G.SlateEditor.before(e,t),i=G.SlateEditor.after(e,t);if(!r||!i)return;const s={anchor:{path:r.path,offset:r.offset-1},focus:{path:r.path,offset:r.offset}},f={anchor:{path:i.path,offset:i.offset},focus:{path:i.path,offset:i.offset+1}};G.SlateEditor.string(e,s)===" "&&G.SlateTransforms.delete(e,{at:s}),G.SlateEditor.string(e,f)===" "&&G.SlateTransforms.delete(e,{at:f})})}function Cs(e,t){return sr(r=>{r.preventDefault();const i=G.DomEditor.findPath(e,t);G.SlateTransforms.delete(e,{at:i})})}function Tr(e,t){return sr(r=>{r.preventDefault();const i=G.DomEditor.findPath(e,t);nc(e,i),G.SlateTransforms.unwrapNodes(e,{at:i})})}function or(e,t){return sr(r=>{r.preventDefault(),e.isFocused()||e.focus(),e.select(G.DomEditor.findPath(e,t)),ar(e).emit("ssml-remark-click",e,t)})}const fi={"200ms":"换气","500ms":"0.5s","1000ms":"1s","2000ms":"2s"},rc=Object.entries(fi).map(([e,t])=>({value:e,label:t}));function uc(e){if(e in fi)return fi[e];const t=parseInt(e);return isNaN(t)?e:`${(t/1e3).toFixed(1)}s`}const ic={type:"ssml-break",renderElem:(e,t,r)=>{const i=e,s=uc((i==null?void 0:i.time)||"");return te("span",{className:"ssml-wrapper",contentEditable:"false"},te("span",{className:"remark",style:{"background-color":"var(--ssml-break)"},on:{mousedown:f=>f.preventDefault(),click:[or(r,i)]}},te("span",{className:"iconfont icon-roundclosefill",on:{click:[Cs(r,i)]}}),te("span",{className:"data-content",attrs:{"data-content":s}})),te("span",{className:"iconfont icon-tingdun",style:{color:"var(--ssml-break)"}}))}},wt={type:"ssml-break",elTypeAttrName:"data-w-e-type",timeAttrName:"time",strengthAttrName:"data-strength"},ac=e=>{const{isInline:t,isVoid:r}=e,i=e;return i.isInline=s=>G.DomEditor.getNodeType(s)===wt.type?!0:t(s),i.isVoid=s=>G.DomEditor.getNodeType(s)===wt.type?!0:r(s),i},sc={type:wt.type,elemToHtml:e=>{const{time:t="",strength:r}=e,i=`${wt.elTypeAttrName}="${wt.type}"`,s=t?` ${wt.timeAttrName}="${t}"`:"",f=r?` ${wt.strengthAttrName}="${r}"`:"";return`<span ${i}${s}${f} data-w-e-is-void data-w-e-is-inline></span>`}},oc={selector:`span[${wt.elTypeAttrName}="${wt.type}"]`,parseElemHtml:e=>{const t=e.getAttribute(wt.strengthAttrName)||"",r=e.getAttribute(wt.timeAttrName)||"";return{type:wt.type,time:r,strength:t,children:[{text:""}]}}},lc={editorPlugin:ac,elemsToHtml:[sc],parseElemsHtml:[oc],renderElems:[ic]};var pu={exports:{}};/** * @license * lodash 3.10.1 (Custom Build) <https://lodash.com/> * Build: `lodash modern -d -o ./index.js` * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Available under MIT license <https://lodash.com/license> */pu.exports,function(e,t){(function(){var r,i="3.10.1",s=1,f=2,p=4,d=8,m=16,D=32,w=64,A=128,y=256,P=30,F="...",_=150,L=16,z=200,H=1,T=2,S="Expected a function",R="__lodash_placeholder__",M="[object Arguments]",N="[object Array]",K="[object Boolean]",X="[object Date]",k="[object Error]",q="[object Function]",Q="[object Map]",oe="[object Number]",ge="[object Object]",Ae="[object RegExp]",tt="[object Set]",Pe="[object String]",Se="[object WeakMap]",Ve="[object ArrayBuffer]",Ft="[object Float32Array]",Ct="[object Float64Array]",Ge="[object Int8Array]",fe="[object Int16Array]",de="[object Int32Array]",je="[object Uint8Array]",ke="[object Uint8ClampedArray]",lt="[object Uint16Array]",nt="[object Uint32Array]",ft=/\b__p \+= '';/g,un=/\b(__p \+=) '' \+/g,$n=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mn=/&(?:amp|lt|gt|quot|#39|#96);/g,Dn=/[&<>"'`]/g,Lr=RegExp(mn.source),jr=RegExp(Dn.source),Mr=/<%-([\s\S]+?)%>/g,Vr=/<%([\s\S]+?)%>/g,In=/<%=([\s\S]+?)%>/g,zr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,Gt=/^\w*$/,an=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,ct=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,pt=RegExp(ct.source),Rn=/[\u0300-\u036f\ufe20-\ufe23]/g,bt=/\\(\\)?/g,Kt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ln=/\w*$/,yt=/^0[xX]/,sn=/^\[object .+?Constructor\]$/,jn=/^\d+$/,xt=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,on=/($^)/,mr=/['\n\r\u2028\u2029\\]/g,Mn=function(){var $="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Y="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp($+"+(?="+$+Y+")|"+$+"?"+Y+"|"+$+"+|[0-9]+","g")}(),qr=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],Pt=-1,me={};me[Ft]=me[Ct]=me[Ge]=me[fe]=me[de]=me[je]=me[ke]=me[lt]=me[nt]=!0,me[M]=me[N]=me[Ve]=me[K]=me[X]=me[k]=me[q]=me[Q]=me[oe]=me[ge]=me[Ae]=me[tt]=me[Pe]=me[Se]=!1;var ye={};ye[M]=ye[N]=ye[Ve]=ye[K]=ye[X]=ye[Ft]=ye[Ct]=ye[Ge]=ye[fe]=ye[de]=ye[oe]=ye[ge]=ye[Ae]=ye[Pe]=ye[je]=ye[ke]=ye[lt]=ye[nt]=!0,ye[k]=ye[q]=ye[Q]=ye[tt]=ye[Se]=!1;var Dr={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss"},Hr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},Eu={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},vn={function:!0,object:!0},Wi={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Yt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vn=t&&!t.nodeType&&t,zn=e&&!e.nodeType&&e,Gi=Vn&&zn&&typeof it=="object"&&it&&it.Object&&it,Ki=vn[typeof self]&&self&&self.Object&&self,Bu=vn[typeof window]&&window&&window.Object&&window,kt=zn&&zn.exports===Vn&&Vn,$t=Gi||Bu!==(this&&this.window)&&Bu||Ki||this;function Ur($,Y){if($!==Y){var ae=$===null,De=$===r,ve=$===$,Le=Y===null,Ot=Y===r,Ue=Y===Y;if($>Y&&!Le||!ve||ae&&!Ot&&Ue||De&&Ue)return 1;if($<Y&&!ae||!Ue||Le&&!De&&ve||Ot&&ve)return-1}return 0}function Au($,Y,ae){for(var De=$.length,ve=ae?De:-1;ae?ve--:++ve<De;)if(Y($[ve],ve,$))return ve;return-1}function Cn($,Y,ae){if(Y!==Y)return Fu($,ae);for(var De=ae-1,ve=$.length;++De<ve;)if($[De]===Y)return De;return-1}function Yi($){return typeof $=="function"||!1}function we($){return $==null?"":$+""}function wu($,Y){for(var ae=-1,De=$.length;++ae<De&&Y.indexOf($.charAt(ae))>-1;);return ae}function _u($,Y){for(var ae=$.length;ae--&&Y.indexOf($.charAt(ae))>-1;);return ae}function Ji($,Y){return Ur($.criteria,Y.criteria)||$.index-Y.index}function Xi($,Y,ae){for(var De=-1,ve=$.criteria,Le=Y.criteria,Ot=ve.length,Ue=ae.length;++De<Ot;){var St=Ur(ve[De],Le[De]);if(St){if(De>=Ue)return St;var Hn=ae[De];return St*(Hn==="asc"||Hn===!0?1:-1)}}return $.index-Y.index}function Zi($){return Dr[$]}function yn($){return Hr[$]}function Qi($,Y,ae){return Y?$=Wi[$]:ae&&($=Yt[$]),"\\"+$}function ea($){return"\\"+Yt[$]}function Fu($,Y,ae){for(var De=$.length,ve=Y+(ae?0:-1);ae?ve--:++ve<De;){var Le=$[ve];if(Le!==Le)return ve}return-1}function ze($){return!!$&&typeof $=="object"}function bu($){return $<=160&&$>=9&&$<=13||$==32||$==160||$==5760||$==6158||$>=8192&&($<=8202||$==8232||$==8233||$==8239||$==8287||$==12288||$==65279)}function En($,Y){for(var ae=-1,De=$.length,ve=-1,Le=[];++ae<De;)$[ae]===Y&&($[ae]=R,Le[++ve]=ae);return Le}function Wr($,Y){for(var ae,De=-1,ve=$.length,Le=-1,Ot=[];++De<ve;){var Ue=$[De],St=Y?Y(Ue,De,$):Ue;(!De||ae!==St)&&(ae=St,Ot[++Le]=Ue)}return Ot}function xu($){for(var Y=-1,ae=$.length;++Y<ae&&bu($.charCodeAt(Y)););return Y}function qn($){for(var Y=$.length;Y--&&bu($.charCodeAt(Y)););return Y}function Gr($){return Eu[$]}function Ou($){$=$?It.defaults($t.Object(),$,It.pick($t,qr)):$t;var Y=$.Array,ae=$.Date,De=$.Error,ve=$.Function,Le=$.Math,Ot=$.Number,Ue=$.Object,St=$.RegExp,Hn=$.String,ht=$.TypeError,Su=Y.prototype,Kr=Ue.prototype,ta=Hn.prototype,Tu=ve.prototype.toString,$e=Kr.hasOwnProperty,Yr=0,at=Kr.toString,na=$t._,Nu=St("^"+Tu.call($e).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ra=$.ArrayBuffer,Un=$.clearTimeout,ua=$.parseFloat,Pu=Le.pow,ia=Kr.propertyIsEnumerable,ku=Fr($,"Set"),vr=$.setTimeout,Cr=Su.splice,$u=$.Uint8Array,Iu=Fr($,"WeakMap"),yr=Le.ceil,Wn=Fr(Ue,"create"),Rt=Le.floor,Jr=Fr(Y,"isArray"),Jt=$.isFinite,Ru=Fr(Ue,"keys"),qe=Le.max,Ke=Le.min,Lu=Fr(ae,"now"),ln=$.parseInt,Bn=Le.random,aa=Ot.NEGATIVE_INFINITY,Gn=Ot.POSITIVE_INFINITY,Er=4294967295,ju=Er-1,sa=Er>>>1,Mu=9007199254740991,Kn=Iu&&new Iu,Br={};function l(n){if(ze(n)&&!le(n)&&!(n instanceof j)){if(n instanceof O)return n;if($e.call(n,"__chain__")&&$e.call(n,"__wrapped__"))return _l(n)}return new O(n)}function B(){}function O(n,u,a){this.__wrapped__=n,this.__actions__=a||[],this.__chain__=!!u}l.support={},l.templateSettings={escape:Mr,evaluate:Vr,interpolate:In,variable:"",imports:{_:l}};function j(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Gn,this.__views__=[]}function ce(){var n=new j(this.__wrapped__);return n.__actions__=ot(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=ot(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=ot(this.__views__),n}function Ce(){if(this.__filtered__){var n=new j(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function _e(){var n=this.__wrapped__.value(),u=this.__dir__,a=le(n),o=u<0,c=a?n.length:0,g=$g(0,c,this.__views__),v=g.start,E=g.end,b=E-v,I=o?E:v-1,V=this.__iteratees__,W=V.length,ee=0,Z=Ke(b,this.__takeCount__);if(!a||c<z||c==b&&Z==b)return Ko(o&&a?n.reverse():n,this.__actions__);var Be=[];e:for(;b--&&ee<Z;){I+=u;for(var be=-1,Me=n[I];++be<W;){var Ye=V[be],He=Ye.iteratee,ut=Ye.type,xe=He(Me);if(ut==T)Me=xe;else if(!xe){if(ut==H)continue e;break e}}Be[ee++]=Me}return Be}function ie(){this.__data__={}}function Fe(n){return this.has(n)&&delete this.__data__[n]}function dt(n){return n=="__proto__"?r:this.__data__[n]}function st(n){return n!="__proto__"&&$e.call(this.__data__,n)}function Yn(n,u){return n!="__proto__"&&(this.__data__[n]=u),this}function Ar(n){var u=n?n.length:0;for(this.data={hash:Wn(null),set:new ku};u--;)this.push(n[u])}function An(n,u){var a=n.data,o=typeof u=="string"||Ie(u)?a.set.has(u):a.hash[u];return o?0:-1}function Vu(n){var u=this.data;typeof n=="string"||Ie(n)?u.set.add(n):u.hash[n]=!0}function gg(n,u){for(var a=-1,o=n.length,c=-1,g=u.length,v=Y(o+g);++a<o;)v[a]=n[a];for(;++c<g;)v[a++]=u[c];return v}function ot(n,u){var a=-1,o=n.length;for(u||(u=Y(o));++a<o;)u[a]=n[a];return u}function Lt(n,u){for(var a=-1,o=n.length;++a<o&&u(n[a],a,n)!==!1;);return n}function mg(n,u){for(var a=n.length;a--&&u(n[a],a,n)!==!1;);return n}function So(n,u){for(var a=-1,o=n.length;++a<o;)if(!u(n[a],a,n))return!1;return!0}function Dg(n,u,a,o){for(var c=-1,g=n.length,v=o,E=v;++c<g;){var b=n[c],I=+u(b);a(I,v)&&(v=I,E=b)}return E}function oa(n,u){for(var a=-1,o=n.length,c=-1,g=[];++a<o;){var v=n[a];u(v,a,n)&&(g[++c]=v)}return g}function wr(n,u){for(var a=-1,o=n.length,c=Y(o);++a<o;)c[a]=u(n[a],a,n);return c}function Xr(n,u){for(var a=-1,o=u.length,c=n.length;++a<o;)n[c+a]=u[a];return n}function To(n,u,a,o){var c=-1,g=n.length;for(o&&g&&(a=n[++c]);++c<g;)a=u(a,n[c],c,n);return a}function vg(n,u,a,o){var c=n.length;for(o&&c&&(a=n[--c]);c--;)a=u(a,n[c],c,n);return a}function No(n,u){for(var a=-1,o=n.length;++a<o;)if(u(n[a],a,n))return!0;return!1}function Cg(n,u){for(var a=n.length,o=0;a--;)o+=+u(n[a])||0;return o}function yg(n,u){return n===r?u:n}function Po(n,u,a,o){return n===r||!$e.call(o,a)?u:n}function la(n,u,a){for(var o=-1,c=rt(u),g=c.length;++o<g;){var v=c[o],E=n[v],b=a(E,u[v],v,n,u);((b===b?b!==E:E===E)||E===r&&!(v in n))&&(n[v]=b)}return n}function Zr(n,u){return u==null?n:$o(u,rt(u),n)}function ko(n,u){for(var a=-1,o=n==null,c=!o&&Xe(n),g=c?n.length:0,v=u.length,E=Y(v);++a<v;){var b=u[a];c?E[a]=_n(b,g)?n[b]:r:E[a]=o?r:n[b]}return E}function $o(n,u,a){a||(a={});for(var o=-1,c=u.length;++o<c;){var g=u[o];a[g]=n[g]}return a}function zu(n,u,a){var o=typeof n;return o=="function"?u===r?n:Et(n,u,a):n==null?er:o=="object"?tu(n):u===r?Qu(n):zo(n,u)}function Jn(n,u,a,o,c,g,v){var E;if(a&&(E=c?a(n,o,c):a(n)),E!==r)return E;if(!Ie(n))return n;var b=le(n);if(b){if(E=Ig(n),!u)return ot(n,E)}else{var I=at.call(n),V=I==q;if(I==ge||I==M||V&&!c){if(E=Rg(V?{}:n),!u)return Zr(E,n)}else return ye[I]?Lg(n,I,u):c?n:{}}g||(g=[]),v||(v=[]);for(var W=g.length;W--;)if(g[W]==n)return v[W];return g.push(n),v.push(E),(b?Lt:fn)(n,function(ee,Z){E[Z]=Jn(ee,u,a,Z,n,g,v)}),E}var Qr=function(){function n(){}return function(u){if(Ie(u)){n.prototype=u;var a=new n;n.prototype=r}return a||{}}}();function Io(n,u,a){if(typeof n!="function")throw new ht(S);return vr(function(){n.apply(r,a)},u)}function eu(n,u){var a=n?n.length:0,o=[];if(!a)return o;var c=-1,g=_r(),v=g==Cn,E=v&&u.length>=z?ya(u):null,b=u.length;E&&(g=An,v=!1,u=E);e:for(;++c<a;){var I=n[c];if(v&&I===I){for(var V=b;V--;)if(u[V]===I)continue e;o.push(I)}else g(u,I,0)<0&&o.push(I)}return o}var jt=el(fn),fa=el(pa,!0);function Eg(n,u){var a=!0;return jt(n,function(o,c,g){return a=!!u(o,c,g),a}),a}function Bg(n,u,a,o){var c=o,g=c;return jt(n,function(v,E,b){var I=+u(v,E,b);(a(I,c)||I===o&&I===g)&&(c=I,g=v)}),g}function Ag(n,u,a,o){var c=n.length;for(a=a==null?0:+a||0,a<0&&(a=-a>c?0:c+a),o=o===r||o>c?c:+o||0,o<0&&(o+=c),c=a>o?0:o>>>0,a>>>=0;a<c;)n[a++]=u;return n}function Ro(n,u){var a=[];return jt(n,function(o,c,g){u(o,c,g)&&a.push(o)}),a}function Lo(n,u,a,o){var c;return a(n,function(g,v,E){if(u(g,v,E))return c=o?v:g,!1}),c}function gt(n,u,a,o){o||(o=[]);for(var c=-1,g=n.length;++c<g;){var v=n[c];ze(v)&&Xe(v)&&(a||le(v)||cn(v))?u?gt(v,u,a,o):Xr(o,v):a||(o[o.length]=v)}return o}var ca=tl(),jo=tl(!0);function Mo(n,u){return ca(n,u,bn)}function fn(n,u){return ca(n,u,rt)}function pa(n,u){return jo(n,u,rt)}function ha(n,u){for(var a=-1,o=u.length,c=-1,g=[];++a<o;){var v=u[a];Qn(n[v])&&(g[++c]=v)}return g}function Xn(n,u,a){if(n!=null){a!==r&&a in Mt(n)&&(u=[a]);for(var o=0,c=u.length;n!=null&&o<c;)n=n[u[o++]];return o&&o==c?n:r}}function qu(n,u,a,o,c,g){return n===u?!0:n==null||u==null||!Ie(n)&&!ze(u)?n!==n&&u!==u:wg(n,u,qu,a,o,c,g)}function wg(n,u,a,o,c,g,v){var E=le(n),b=le(u),I=N,V=N;E||(I=at.call(n),I==M?I=ge:I!=ge&&(E=br(n))),b||(V=at.call(u),V==M?V=ge:V!=ge&&(b=br(u)));var W=I==ge,ee=V==ge,Z=I==V;if(Z&&!(E||W))return Pg(n,u,I);if(!c){var Be=W&&$e.call(n,"__wrapped__"),be=ee&&$e.call(u,"__wrapped__");if(Be||be)return a(Be?n.value():n,be?u.value():u,o,c,g,v)}if(!Z)return!1;g||(g=[]),v||(v=[]);for(var Me=g.length;Me--;)if(g[Me]==n)return v[Me]==u;g.push(n),v.push(u);var Ye=(E?Ng:kg)(n,u,a,o,c,g,v);return g.pop(),v.pop(),Ye}function Vo(n,u,a){var o=u.length,c=o,g=!a;if(n==null)return!c;for(n=Mt(n);o--;){var v=u[o];if(g&&v[2]?v[1]!==n[v[0]]:!(v[0]in n))return!1}for(;++o<c;){v=u[o];var E=v[0],b=n[E],I=v[1];if(g&&v[2]){if(b===r&&!(E in n))return!1}else{var V=a?a(b,I,E):r;if(!(V===r?qu(I,b,a,!0):V))return!1}}return!0}function da(n,u){var a=-1,o=Xe(n)?Y(n.length):[];return jt(n,function(c,g,v){o[++a]=u(c,g,v)}),o}function tu(n){var u=vl(n);if(u.length==1&&u[0][2]){var a=u[0][0],o=u[0][1];return function(c){return c==null?!1:c[a]===o&&(o!==r||a in Mt(c))}}return function(c){return Vo(c,u)}}function zo(n,u){var a=le(n),o=Zn(n)&&Cl(u),c=n+"";return n=Fn(n),function(g){if(g==null)return!1;var v=c;if(g=Mt(g),(a||!o)&&!(v in g)){if(g=n.length==1?g:Xn(g,Tt(n,0,-1)),g==null)return!1;v=ru(n),g=Mt(g)}return g[v]===u?u!==r||v in g:qu(u,g[v],r,!0)}}function qo(n,u,a,o,c){if(!Ie(n))return n;var g=Xe(u)&&(le(u)||br(u)),v=g?r:rt(u);return Lt(v||u,function(E,b){if(v&&(b=E,E=u[b]),ze(E))o||(o=[]),c||(c=[]),_g(n,u,b,qo,a,o,c);else{var I=n[b],V=a?a(I,E,b,n,u):r,W=V===r;W&&(V=E),(V!==r||g&&!(b in n))&&(W||(V===V?V!==I:I===I))&&(n[b]=V)}}),n}function _g(n,u,a,o,c,g,v){for(var E=g.length,b=u[a];E--;)if(g[E]==b){n[a]=v[E];return}var I=n[a],V=c?c(I,b,a,n,u):r,W=V===r;W&&(V=b,Xe(b)&&(le(b)||br(b))?V=le(I)?I:Xe(I)?ot(I):[]:Ju(b)||cn(b)?V=cn(I)?Jl(I):Ju(I)?I:{}:W=!1),g.push(b),v.push(V),W?n[a]=o(V,b,c,g,v):(V===V?V!==I:I===I)&&(n[a]=V)}function ga(n){return function(u){return u==null?r:u[n]}}function Fg(n){var u=n+"";return n=Fn(n),function(a){return Xn(a,n,u)}}function Ho(n,u){for(var a=n?u.length:0;a--;){var o=u[a];if(o!=c&&_n(o)){var c=o;Cr.call(n,o,1)}}return n}function ma(n,u){return n+Rt(Bn()*(u-n+1))}function bg(n,u,a,o,c){return c(n,function(g,v,E){a=o?(o=!1,g):u(a,g,v,E)}),a}var Uo=Kn?function(n,u){return Kn.set(n,u),n}:er;function Tt(n,u,a){var o=-1,c=n.length;u=u==null?0:+u||0,u<0&&(u=-u>c?0:c+u),a=a===r||a>c?c:+a||0,a<0&&(a+=c),c=u>a?0:a-u>>>0,u>>>=0;for(var g=Y(c);++o<c;)g[o]=n[o+u];return g}function xg(n,u){var a;return jt(n,function(o,c,g){return a=u(o,c,g),!a}),!!a}function Wo(n,u){var a=n.length;for(n.sort(u);a--;)n[a]=n[a].value;return n}function Go(n,u,a){var o=Te(),c=-1;u=wr(u,function(v){return o(v)});var g=da(n,function(v){var E=wr(u,function(b){return b(v)});return{criteria:E,index:++c,value:v}});return Wo(g,function(v,E){return Xi(v,E,a)})}function Og(n,u){var a=0;return jt(n,function(o,c,g){a+=+u(o,c,g)||0}),a}function Da(n,u){var a=-1,o=_r(),c=n.length,g=o==Cn,v=g&&c>=z,E=v?ya():null,b=[];E?(o=An,g=!1):(v=!1,E=u?[]:b);e:for(;++a<c;){var I=n[a],V=u?u(I,a,n):I;if(g&&I===I){for(var W=E.length;W--;)if(E[W]===V)continue e;u&&E.push(V),b.push(I)}else o(E,V,0)<0&&((u||v)&&E.push(V),b.push(I))}return b}function va(n,u){for(var a=-1,o=u.length,c=Y(o);++a<o;)c[a]=n[u[a]];return c}function Hu(n,u,a,o){for(var c=n.length,g=o?c:-1;(o?g--:++g<c)&&u(n[g],g,n););return a?Tt(n,o?0:g,o?g+1:c):Tt(n,o?g+1:0,o?c:g)}function Ko(n,u){var a=n;a instanceof j&&(a=a.value());for(var o=-1,c=u.length;++o<c;){var g=u[o];a=g.func.apply(g.thisArg,Xr([a],g.args))}return a}function Ca(n,u,a){var o=0,c=n?n.length:o;if(typeof u=="number"&&u===u&&c<=sa){for(;o<c;){var g=o+c>>>1,v=n[g];(a?v<=u:v<u)&&v!==null?o=g+1:c=g}return c}return Yo(n,u,er,a)}function Yo(n,u,a,o){u=a(u);for(var c=0,g=n?n.length:0,v=u!==u,E=u===null,b=u===r;c<g;){var I=Rt((c+g)/2),V=a(n[I]),W=V!==r,ee=V===V;if(v)var Z=ee||o;else E?Z=ee&&W&&(o||V!=null):b?Z=ee&&(o||W):V==null?Z=!1:Z=o?V<=u:V<u;Z?c=I+1:g=I}return Ke(g,ju)}function Et(n,u,a){if(typeof n!="function")return er;if(u===r)return n;switch(a){case 1:return function(o){return n.call(u,o)};case 3:return function(o,c,g){return n.call(u,o,c,g)};case 4:return function(o,c,g,v){return n.call(u,o,c,g,v)};case 5:return function(o,c,g,v,E){return n.call(u,o,c,g,v,E)}}return function(){return n.apply(u,arguments)}}function Jo(n){var u=new ra(n.byteLength),a=new $u(u);return a.set(new $u(n)),u}function Xo(n,u,a){for(var o=a.length,c=-1,g=qe(n.length-o,0),v=-1,E=u.length,b=Y(E+g);++v<E;)b[v]=u[v];for(;++c<o;)b[a[c]]=n[c];for(;g--;)b[v++]=n[c++];return b}function Zo(n,u,a){for(var o=-1,c=a.length,g=-1,v=qe(n.length-c,0),E=-1,b=u.length,I=Y(v+b);++g<v;)I[g]=n[g];for(var V=g;++E<b;)I[V+E]=u[E];for(;++o<c;)I[V+a[o]]=n[g++];return I}function Uu(n,u){return function(a,o,c){var g=u?u():{};if(o=Te(o,c,3),le(a))for(var v=-1,E=a.length;++v<E;){var b=a[v];n(g,b,o(b,v,a),a)}else jt(a,function(I,V,W){n(g,I,o(I,V,W),W)});return g}}function Qo(n){return Ee(function(u,a){var o=-1,c=u==null?0:a.length,g=c>2?a[c-2]:r,v=c>2?a[2]:r,E=c>1?a[c-1]:r;for(typeof g=="function"?(g=Et(g,E,5),c-=2):(g=typeof E=="function"?E:r,c-=g?1:0),v&&pe(a[0],a[1],v)&&(g=c<3?r:g,c=1);++o<c;){var b=a[o];b&&n(u,b,g)}return u})}function el(n,u){return function(a,o){var c=a?nu(a):0;if(!Xt(c))return n(a,o);for(var g=u?c:-1,v=Mt(a);(u?g--:++g<c)&&o(v[g],g,v)!==!1;);return a}}function tl(n){return function(u,a,o){for(var c=Mt(u),g=o(u),v=g.length,E=n?v:-1;n?E--:++E<v;){var b=g[E];if(a(c[b],b,c)===!1)break}return u}}function Sg(n,u){var a=Gu(n);function o(){var c=this&&this!==$t&&this instanceof o?a:n;return c.apply(u,arguments)}return o}function ya(n){return Wn&&ku?new Ar(n):null}function Wu(n){return function(u){for(var a=-1,o=tf(Zl(u)),c=o.length,g="";++a<c;)g=n(g,o[a],a);return g}}function Gu(n){return function(){var u=arguments;switch(u.length){case 0:return new n;case 1:return new n(u[0]);case 2:return new n(u[0],u[1]);case 3:return new n(u[0],u[1],u[2]);case 4:return new n(u[0],u[1],u[2],u[3]);case 5:return new n(u[0],u[1],u[2],u[3],u[4]);case 6:return new n(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new n(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var a=Qr(n.prototype),o=n.apply(a,u);return Ie(o)?o:a}}function nl(n){function u(a,o,c){c&&pe(a,o,c)&&(o=r);var g=wn(a,n,r,r,r,r,r,o);return g.placeholder=u.placeholder,g}return u}function rl(n,u){return Ee(function(a){var o=a[0];return o==null?o:(a.push(u),n.apply(r,a))})}function ul(n,u){return function(a,o,c){if(c&&pe(a,o,c)&&(o=r),o=Te(o,c,3),o.length==1){a=le(a)?a:Fa(a);var g=Dg(a,o,n,u);if(!(a.length&&g===u))return g}return Bg(a,o,n,u)}}function il(n,u){return function(a,o,c){if(o=Te(o,c,3),le(a)){var g=Au(a,o,u);return g>-1?a[g]:r}return Lo(a,o,n)}}function al(n){return function(u,a,o){return u&&u.length?(a=Te(a,o,3),Au(u,a,n)):-1}}function sl(n){return function(u,a,o){return a=Te(a,o,3),Lo(u,a,n,!0)}}function ol(n){return function(){for(var u,a=arguments.length,o=n?a:-1,c=0,g=Y(a);n?o--:++o<a;){var v=g[c++]=arguments[o];if(typeof v!="function")throw new ht(S);!u&&O.prototype.thru&&Ku(v)=="wrapper"&&(u=new O([],!0))}for(o=u?-1:a;++o<a;){v=g[o];var E=Ku(v),b=E=="wrapper"?Aa(v):r;b&&_a(b[0])&&b[1]==(A|d|D|y)&&!b[4].length&&b[9]==1?u=u[Ku(b[0])].apply(u,b[3]):u=v.length==1&&_a(v)?u[E]():u.thru(v)}return function(){var I=arguments,V=I[0];if(u&&I.length==1&&le(V)&&V.length>=z)return u.plant(V).value();for(var W=0,ee=a?g[W].apply(this,I):V;++W<a;)ee=g[W].call(this,ee);return ee}}}function ll(n,u){return function(a,o,c){return typeof o=="function"&&c===r&&le(a)?n(a,o):u(a,Et(o,c,3))}}function fl(n){return function(u,a,o){return(typeof a!="function"||o!==r)&&(a=Et(a,o,3)),n(u,a,bn)}}function cl(n){return function(u,a,o){return(typeof a!="function"||o!==r)&&(a=Et(a,o,3)),n(u,a)}}function pl(n){return function(u,a,o){var c={};return a=Te(a,o,3),fn(u,function(g,v,E){var b=a(g,v,E);v=n?b:v,g=n?g:b,c[v]=g}),c}}function hl(n){return function(u,a,o){return u=we(u),(n?u:"")+ml(u,a,o)+(n?"":u)}}function dl(n){var u=Ee(function(a,o){var c=En(o,u.placeholder);return wn(a,n,r,o,c)});return u}function gl(n,u){return function(a,o,c,g){var v=arguments.length<3;return typeof o=="function"&&g===r&&le(a)?n(a,o,c,v):bg(a,Te(o,g,4),c,v,u)}}function Ea(n,u,a,o,c,g,v,E,b,I){var V=u&A,W=u&s,ee=u&f,Z=u&d,Be=u&p,be=u&m,Me=ee?r:Gu(n);function Ye(){for(var He=arguments.length,ut=He,xe=Y(He);ut--;)xe[ut]=arguments[ut];if(o&&(xe=Xo(xe,o,c)),g&&(xe=Zo(xe,g,v)),Z||be){var Zt=Ye.placeholder,qa=En(xe,Zt);if(He-=qa.length,He<I){var DD=E?ot(E):r,vD=qe(I-He,0),CD=Z?qa:r,yD=Z?r:qa,ED=Z?xe:r,BD=Z?r:xe;u|=Z?D:w,u&=~(Z?w:D),Be||(u&=~(s|f));var af=[n,u,a,ED,CD,BD,yD,DD,b,vD],Ha=Ea.apply(r,af);return _a(n)&&Al(Ha,af),Ha.placeholder=Zt,Ha}}var sf=W?a:this,of=ee?sf[n]:n;return E&&(xe=Mg(xe,E)),V&&b<xe.length&&(xe.length=b),this&&this!==$t&&this instanceof Ye&&(of=Me||Gu(n)),of.apply(sf,xe)}return Ye}function ml(n,u,a){var o=n.length;if(u=+u,o>=u||!Jt(u))return"";var c=u-o;return a=a==null?" ":a+"",Ql(a,yr(c/a.length)).slice(0,c)}function Tg(n,u,a,o){var c=u&s,g=Gu(n);function v(){for(var E=-1,b=arguments.length,I=-1,V=o.length,W=Y(V+b);++I<V;)W[I]=o[I];for(;b--;)W[I++]=arguments[++E];var ee=this&&th