Agriculture-front-end/dist/assets/imouplayer.a2323f34.js

16 lines
144 KiB
JavaScript
Raw Permalink Normal View History

var dt=(N,t0)=>()=>(t0||N((t0={exports:{}}).exports,t0),t0.exports);import{a3 as a0}from"./index.9f28707e.js";import{r as ht,g as vt}from"./VideoSurveillance.de5e6cde.js";var Wt=dt((B0,ne)=>{var pt={exports:{}};function yt(N){throw new Error('Could not dynamically require "'+N+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var C0={exports:{}},ye;function i0(){return ye||(ye=1,function(N,t0){(function(I,m){N.exports=m()})(a0,function(){var I=I||function(m,q){var S;if(typeof window<"u"&&window.crypto&&(S=window.crypto),typeof self<"u"&&self.crypto&&(S=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(S=globalThis.crypto),!S&&typeof window<"u"&&window.msCrypto&&(S=window.msCrypto),!S&&typeof a0<"u"&&a0.crypto&&(S=a0.crypto),!S&&typeof yt=="function")try{S=ht}catch{}var $=function(){if(S){if(typeof S.getRandomValues=="function")try{return S.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof S.randomBytes=="function")try{return S.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},H=Object.create||function(){function u(){}return function(v){var C;return u.prototype=v,C=new u,u.prototype=null,C}}(),w={},c=w.lib={},l=c.Base=function(){return{extend:function(u){var v=H(this);return u&&v.mixIn(u),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var u=this.extend();return u.init.apply(u,arguments),u},init:function(){},mixIn:function(u){for(var v in u)u.hasOwnProperty(v)&&(this[v]=u[v]);u.hasOwnProperty("toString")&&(this.toString=u.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),_=c.WordArray=l.extend({init:function(u,v){u=this.words=u||[],v!=q?this.sigBytes=v:this.sigBytes=u.length*4},toString:function(u){return(u||d).stringify(this)},concat:function(u){var v=this.words,C=u.words,y=this.sigBytes,A=u.sigBytes;if(this.clamp(),y%4)for(var B=0;B<A;B++){var E=C[B>>>2]>>>24-B%4*8&255;v[y+B>>>2]|=E<<24-(y+B)%4*8}else for(var o=0;o<A;o+=4)v[y+o>>>2]=C[o>>>2];return this.sigBytes+=A,this},clamp:function(){var u=this.words,v=this.sigBytes;u[v>>>2]&=4294967295<<32-v%4*8,u.length=m.ceil(v/4)},clone:function(){var u=l.clone.call(this);return u.words=this.words.slice(0),u},random:function(u){for(var v=[],C=0;C<u;C+=4)v.push($());return new _.init(v,u)}}),x=w.enc={},d=x.Hex={stringify:function(u){for(var v=u.words,C=u.sigBytes,y=[],A=0;A<C;A++){var B=v[A>>>2]>>>24-A%4*8&255;y.push((B>>>4).toString(16)),y.push((B&15).toString(16))}return y.join("")},parse:function(u){for(var v=u.length,C=[],y=0;y<v;y+=2)C[y>>>3]|=parseInt(u.substr(y,2),16)<<24-y%8*4;return new _.init(C,v/2)}},p=x.Latin1={stringify:function(u){for(var v=u.words,C=u.sigBytes,y=[],A=0;A<C;A++){var B=v[A>>>2]>>>24-A%4*8&255;y.push(String.fromCharCode(B))}return y.join("")},parse:function(u){for(var v=u.length,C=[],y=0;y<v;y++)C[y>>>2]|=(u.charCodeAt(y)&255)<<24-y%4*8;return new _.init(C,v)}},D=x.Utf8={stringify:function(u){try{return decodeURIComponent(escape(p.stringify(u)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(u){return p.parse(unescape(encodeURIComponent(u)))}},g=c.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new _.init,this._nDataBytes=0},_append:function(u){typeof u=="string"&&(u=D.parse(u)),this._data.concat(u),this._nDataBytes+=u.sigBytes},_process:function(u){var v,C=this._data,y=C.words,A=C.sigBytes,B=this.blockSize,E=B*4,o=A/E;u?o=m.ceil(o):o=m.max((o|0)-this._minBufferSize,0);var e=o*B,r=m.min(e*4,A);if(e){for(var s=0;s<e;s+=B)this._doProcessBlock(y,s);v=y.splice(0,e),C.sigBytes-=r}return new _.init(v,r)},clone:function(){var u=l.clone.call(this);return u._data=this._data.clone(),u},_minBufferSize:0});c.Hasher=g.extend({cfg:l.extend(),init:function(u){this.cfg=this.cfg.extend(u),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(u){return this._append(u),this._process(),this
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/return function(m){var q=I,S=q.lib,$=S.WordArray,H=S.Hasher,w=q.algo,c=$.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=$.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),_=$.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),x=$.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=$.create([0,1518500249,1859775393,2400959708,2840853838]),p=$.create([1352829926,1548603684,1836072691,2053994217,0]),D=w.RIPEMD160=H.extend({_doReset:function(){this._hash=$.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(A,B){for(var E=0;E<16;E++){var o=B+E,e=A[o];A[o]=(e<<8|e>>>24)&16711935|(e<<24|e>>>8)&4278255360}var r=this._hash.words,s=d.words,t=p.words,n=c.words,a=l.words,i=_.words,f=x.words,L,b,M,h,k,z,P,K,W,Z;z=L=r[0],P=b=r[1],K=M=r[2],W=h=r[3],Z=k=r[4];for(var R,E=0;E<80;E+=1)R=L+A[B+n[E]]|0,E<16?R+=g(b,M,h)+s[0]:E<32?R+=T(b,M,h)+s[1]:E<48?R+=u(b,M,h)+s[2]:E<64?R+=v(b,M,h)+s[3]:R+=C(b,M,h)+s[4],R=R|0,R=y(R,i[E]),R=R+k|0,L=k,k=h,h=y(M,10),M=b,b=R,R=z+A[B+a[E]]|0,E<16?R+=C(P,K,W)+t[0]:E<32?R+=v(P,K,W)+t[1]:E<48?R+=u(P,K,W)+t[2]:E<64?R+=T(P,K,W)+t[3]:R+=g(P,K,W)+t[4],R=R|0,R=y(R,f[E]),R=R+Z|0,z=Z,Z=W,W=y(K,10),K=P,P=R;R=r[1]+M+W|0,r[1]=r[2]+h+Z|0,r[2]=r[3]+k+z|0,r[3]=r[4]+L+P|0,r[4]=r[0]+b+K|0,r[0]=R},_doFinalize:function(){var A=this._data,B=A.words,E=this._nDataBytes*8,o=A.sigBytes*8;B[o>>>5]|=128<<24-o%32,B[(o+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,A.sigBytes=(B.length+1)*4,this._process();for(var e=this._hash,r=e.words,s=0;s<5;s++){var t=r[s];r[s]=(t<<8|t>>>24)&16711935|(t<<24|t>>>8)&4278255360}return e},clone:function(){var A=H.clone.call(this);return A._hash=this._hash.clone(),A}});function g(A,B,E){return A^B^E}function T(A,B,E){return A&B|~A&E}function u(A,B,E){return(A|~B)^E}function v(A,B,E){return A&E|B&~E}function C(A,B,E){return A^(B|~E)}function y(A,B){return A<<B|A>>>32-B}q.RIPEMD160=H._createHelper(D),q.HmacRIPEMD160=H._createHmacHelper(D)}(),I.RIPEMD160})}(P0)),P0.exports}var R0={exports:{}},Se;function ie(){return Se||(Se=1,function(N,t0){(function(I,m){N.exports=m(i0())})(a0,function(I){(function(){var m=I,q=m.lib,S=q.Base,$=m.enc,H=$.Utf8,w=m.algo;w.HMAC=S.extend({init:function(c,l){c=this._hasher=new c.init,typeof l=="string"&&(l=H.parse(l));var _=c.blockSize,x=_*4;l.sigBytes>x&&(l=c.finalize(l)),l.clamp();for(var d=this._oKey=l.clone(),p=this._iKey=l.clone(),D=d.words,g=p.words,T=0;T<_;T++)D[T]^=1549556828,g[T]^=909522486;d.sigBytes=p.sigBytes=x,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var l=this._hasher,_=l.finalize(c);l.reset();var x=l.finalize(this._oKey.clone().concat(_));return x}})})()})}(R0)),R0.exports}var M0={exports:{}},He;function bt(){return He||(He=1,function(N,t0){(function(I,m,q){N.exports=m(i0(),ae(),ie())})(a0,function(I){return function(){var m=I,q=m.lib,S=q.Base,$=q.WordArray,H=m.algo,w=H.SHA256,c=H.HMAC,l=H.PBKDF2=S.extend({cfg:S.extend({keySize:128/32,hasher:w,iterations:25e4}),init:function(_){this.cfg=this.cfg.extend(_)},compute:function(_,x){for(var d=this.cfg,p=c.create(d.hasher,_),D=$.create(),g=$.create([1]),T=D.words,u=g.words,v=d.keySize,C=d.iterations;T.length<v;){var y=p.update(x).finalize(g);p.reset();for(var A=y.words,B=A.length,E=y,o=1;o<C;o++){E=p.finalize(E),p.reset();for(var e=E.words,r=0;r<B;r++)A[r]^=e[r]}D.concat(y),u[0]++}return D.sigBytes=v*4,D}});m.PBKDF2=function(_,x,d){ret
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/return I.mode.CTRGladman=function(){var m=I.lib.BlockCipherMode.extend();function q(H){if((H>>24&255)===255){var w=H>>16&255,c=H>>8&255,l=H&255;w===255?(w=0,c===255?(c=0,l===255?l=0:++l):++c):++w,H=0,H+=w<<16,H+=c<<8,H+=l}else H+=1<<24;return H}function S(H){return(H[0]=q(H[0]))===0&&(H[1]=q(H[1])),H}var $=m.Encryptor=m.extend({processBlock:function(H,w){var c=this._cipher,l=c.blockSize,_=this._iv,x=this._counter;_&&(x=this._counter=_.slice(0),this._iv=void 0),S(x);var d=x.slice(0);c.encryptBlock(d,0);for(var p=0;p<l;p++)H[w+p]^=d[p]}});return m.Decryptor=$,m}(),I.mode.CTRGladman})}(Y0)),Y0.exports}var W0={exports:{}},ze;function kt(){return ze||(ze=1,function(N,t0){(function(I,m,q){N.exports=m(i0(),s0())})(a0,function(I){return I.mode.OFB=function(){var m=I.lib.BlockCipherMode.extend(),q=m.Encryptor=m.extend({processBlock:function(S,$){var H=this._cipher,w=H.blockSize,c=this._iv,l=this._keystream;c&&(l=this._keystream=c.slice(0),this._iv=void 0),H.encryptBlock(l,0);for(var _=0;_<w;_++)S[$+_]^=l[_]}});return m.Decryptor=q,m}(),I.mode.OFB})}(W0)),W0.exports}var j0={exports:{}},Oe;function Tt(){return Oe||(Oe=1,function(N,t0){(function(I,m,q){N.exports=m(i0(),s0())})(a0,function(I){return I.mode.ECB=function(){var m=I.lib.BlockCipherMode.extend();return m.Encryptor=m.extend({processBlock:function(q,S){this._cipher.encryptBlock(q,S)}}),m.Decryptor=m.extend({processBlock:function(q,S){this._cipher.decryptBlock(q,S)}}),m}(),I.mode.ECB})}(j0)),j0.exports}var X0={exports:{}},qe;function St(){return qe||(qe=1,function(N,t0){(function(I,m,q){N.exports=m(i0(),s0())})(a0,function(I){return I.pad.AnsiX923={pad:function(m,q){var S=m.sigBytes,$=q*4,H=$-S%$,w=S+H-1;m.clamp(),m.words[w>>>2]|=H<<24-w%4*8,m.sigBytes+=H},unpad:function(m){var q=m.words[m.sigBytes-1>>>2]&255;m.sigBytes-=q}},I.pad.Ansix923})}(X0)),X0.exports}var N0={exports:{}},$e;function Ht(){return $e||($e=1,function(N,t0){(function(I,m,q){N.exports=m(i0(),s0())})(a0,function(I){return I.pad.Iso10126={pad:function(m,q){var S=q*4,$=S-m.sigBytes%S;m.concat(I.lib.WordArray.random($-1)).concat(I.lib.WordArray.create([$<<24],1))},unpad:function(m){var q=m.words[m.sigBytes-1>>>2]&255;m.sigBytes-=q}},I.pad.Iso10126})}(N0)),N0.exports}var U0={exports:{}},Ye;function Lt(){return Ye||(Ye=1,function(N,t0){(function(I,m,q){N.exports=m(i0(),s0())})(a0,function(I){return I.pad.Iso97971={pad:function(m,q){m.concat(I.lib.WordArray.create([2147483648],1)),I.pad.ZeroPadding.pad(m,q)},unpad:function(m){I.pad.ZeroPadding.unpad(m),m.sigBytes--}},I.pad.Iso97971})}(U0)),U0.exports}var G0={exports:{}},We;function It(){return We||(We=1,function(N,t0){(function(I,m,q){N.exports=m(i0(),s0())})(a0,function(I){return I.pad.ZeroPadding={pad:function(m,q){var S=q*4;m.clamp(),m.sigBytes+=S-(m.sigBytes%S||S)},unpad:function(m){for(var q=m.words,S=m.sigBytes-1,S=m.sigBytes-1;S>=0;S--)if(q[S>>>2]>>>24-S%4*8&255){m.sigBytes=S+1;break}}},I.pad.ZeroPadding})}(G0)),G0.exports}var K0={exports:{}},je;function Pt(){return je||(je=1,function(N,t0){(function(I,m,q){N.exports=m(i0(),s0())})(a0,function(I){return I.pad.NoPadding={pad:function(){},unpad:function(){}},I.pad.NoPadding})}(K0)),K0.exports}var Z0={exports:{}},Xe;function Rt(){return Xe||(Xe=1,function(N,t0){(function(I,m,q){N.exports=m(i0(),s0())})(a0,function(I){return function(m){var q=I,S=q.lib,$=S.CipherParams,H=q.enc,w=H.Hex,c=q.format;c.Hex={stringify:function(l){return l.ciphertext.toString(w)},parse:function(l){var _=w.parse(l);return $.create({ciphertext:_})}}}(),I.format.Hex})}(Z0)),Z0.exports}var V0={exports:{}},Ne;function Mt(){return Ne||(Ne=1,function(N,t0){(function(I,m,q){N.exports=m(i0(),h0(),v0(),f0(),s0())})(a0,function(I){return function(){var m=I,q=m.lib,S=q.BlockCipher,$=m.algo,H=[],w=[],c=[],l=[],_=[],x=[],d=[],p=[],D=[],g=[];(function(){for(var v=[],C=0;C<256;C++)C<128?v[C]=C<<1:v[C]=C<<1^283;for(var y=0,A=0,C=0;C<256;C++){var B=A^A<<1^A<<2^A<<3^A<<4;B=B>>>8^B&255^99,H[y]=B,w[B]=y;var E=v[y],o=v[E],e=v[o],r=v[B]*257^B*16843008;c[y]=r<<24|r>>>8,l[y]=r<<16|r>>>16,_[y]=r<<8|r>>>24,x[y]=r;var r=e*16843009^o*65537^E*257^y*16843008;d[
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var V,J=!0,n0=!1;return{s:function(){Y=Y.call(F)},n:function(){var e0=Y.next();return J=e0.done,e0},e:function(e0){n0=!0,V=e0},f:function(){try{J||Y.return==null||Y.return()}finally{if(n0)throw V}}}}(R);try{for(G.s();!(Q=G.n()).done;){var O=Q.value;O.contentRect&&function(){var F=O.contentRect,j=F.width,Y=F.height;document.documentElement.clientWidth!==j&&(r.status.width=j,r.status.height=Y),setTimeout(function(){r.timeLine&&r.timeLine.changeProp("width",j)},50)}()}}catch(F){G.e(F)}finally{G.f()}}),this.resizeObserver.observe(this.root)}var A,B,E,o;return A=y,B=[{key:"crateIframe",value:function(e,r,s){var t=this,n="url=".concat(e,"&kitToken=").concat(r,"&code=").concat(encodeURIComponent(s)),a=encodeURI("".concat(this.domain,"?").concat(n));this.iframeUrl=a;var i=document.createElement("iframe");i.id=this.iframeId,i.src=a,i.width="100%",i.height="100%",i.style="border:0;position:absolute;",i.setAttribute("allow","autoplay;microphone;fullscreen;midi;encrypted-media;"),i.setAttribute("frameborder",0),this.root.appendChild(i),this.iframe=i,this.iframeId=i.id,this.status.message!==""&&this.status.message!=="\u64AD\u653E\u7ED3\u675F"||(this.status.message="\u52A0\u8F7D\u4E2D\xB7\xB7\xB7"),this.addMessageListen=this.addMessageListen.bind(this),window.addEventListener("message",this.addMessageListen),i.onload=function(){t.emitMessage({id:i.id,type:"init"})};var f=function(){document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement||(t.status.fullPage=!1)};this.exitHandler=f,document.addEventListener("webkitfullscreenchange",f,!1),document.addEventListener("mozfullscreenchange",f,!1),document.addEventListener("fullscreenchange",f,!1),document.addEventListener("MSFullscreenChange",f,!1)}},{key:"addMessageListen",value:function(e){var r=this,s=e.data,t=s.id,n=s.code,a=s.msg;if(t===this.iframe.id)switch(n){case"6001":this.timeLine&&this.timeLine.changeProp("timestamp",e.data.timestamp);break;case"2000":if(this.playing)return;this.status.message="",this.playing=!0,this.status.playing=!0,this.status.type===2&&(this.timeLine&&this.timeLine.start(),this.requestRecordList()),this.listener.play(),setTimeout(function(){!/Mobi|Android|iPhone/i.test(navigator.userAgent)&&r.status.volume&&r.volume(1)},1e3),this.mouseleaveFunc=function(i){var f=this;$(this.iframeId,!1),this.buttonShowOrHiddenFlag&&clearTimeout(this.buttonShowOrHiddenFlag),this.buttonShowOrHiddenFlag=setTimeout(function(){$(f.iframeId)},3e3)},this.mouseleaveFunc=this.mouseleaveFunc.bind(this),this.root.addEventListener("mouseover",this.mouseleaveFunc),this.buttonShowOrHiddenFlag=setTimeout(function(){$(r.iframeId)},3e3);break;case"2001":this.status.playing=!0,this.listener.play&&this.listener.play(e.data);break;case"2002":this.status.playing=!1,this.listener.pause&&this.listener.pause(e.data);break;case"2003":this.status.volume=!0,this.listener.volume(e.data);break;case"4209":this.listener.volume(e.data);break;case"2004":this.status.volume=!1,this.listener.volume(e.data);break;case"2005":this.status.talk=!0,this.listener.talk(e.data);break;case"4000":case"4102":case"4104":case"4105":case"4107":$(this.iframeId,!1),this.status.message=a,this.listener.error(e.data);break;case"2006":case"4201":case"4202":case"4203":case"4204":case"4205":case"4206":case"4207":case"4208":this.status.talk=!1,this.listener.talk(e.data);break;case"6002":this.doRequestRecordList(e.data.recordList)}}},{key:"emitMessage",value:function(e){this.iframe.contentWindow.postMessage(e,this.domain)}},{key:"on",value:function(e,r){this.listener[e]&&(this.listener[e]=r)}},{key:"emit",value:(E=D().mark(function e(r,s){return D().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.listener[r]){t.next=2;break}return t.abrupt("return");case 2:this.listener[r].forEach(function(n){return n()});case 3:case"end":return t.stop()}},e,this)}),o=function(){var e=this,r=arguments;return new Promise(function(s,t){var n=E.apply(e,r);function a(f){g(n,s,t,a,i,"next",f)}function i(f){g(n,s,t,a,i,"throw",f)}a(void