PageSourceSearch

https://static.lark.ai/static/_next/static/chunks/module_block_iframe.707b91340c62e425.js

js lark.ai collected 2026-10-05 12:11:15 UTC 36,771 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i=(new e.Error).stack;i&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[i]="130d1ade-9cac-4c47-9ea2-2ac069731358",e._sentryDebugIdIdentifier="sentry-dbid-130d1ade-9cac-4c47-9ea2-2ac069731358")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1215],{41496:function(e,i,r){r.d(i,{I:function(){return h},a:function(){return w},b:function(){return p},c:function(){return f},d:function(){return g},e:function(){return m},f:function(){return E},g:function(){return b},i:function(){return k},s:function(){return u}});var n=r(31649),s=r(77291);let o=t("LarkCCM_Docs_WebCard_LoadFail_Placeholder"),a=s.b7.isMobile&&s.b7.isBytedanceApp&&!s.b7.isOpendoc,l=[],d={"-1":"ERR_TIMED_OUT","-2":"ERR_CACHE_MISS","-3":"ERR_NOT_RESOLVED","-4":"ERR_NAME_NOT_RESOLVED","-5":"ERR_CONNECTION_RESET",10002:"ON_RECEIVED_SSL_ERROR"},c=[new RegExp("^https://[a-zA-Z0-9-_]+.(".concat(n.F,")?\\.").concat(n.a,"(-pre|-boe)?\\.(cn|net|com)/share/base/(.+)$")),new RegExp("^(https://[a-zA-Z0-9-_]+.(".concat(n.F,")?\\.").concat(n.a,"(-pre|-boe)?\\.(cn|net|com)/minutes)/(.+)$"))],h={resigterAndCheckUrl(e,i){return e=this.repairGoogleMapUrl(e),e=this.checkUrlHostName(e),e=this.resigterIframeUrl(e,i)},repairGoogleMapUrl(e){let i=(0,s.i3)("google_api_key","")||"AIzaSyCn-ixmPVSP0GyBjDkY1-yYQBb99EzDkFY";return e.includes("www.google.com/maps")&&["AIzaSyAfJZc8JxNRe909WC_QBILdlM55NqGnI30"].map(r=>{e=e.replace(r,i)}),e},checkUrlHostName(e){let i=c.some(i=>i.test(e))&&!e.includes("urlNeedReplace=false"),r=(0,s.i2)(e,!0),n=r.hostname.split("."),o=n[n.length-2],a=n[n.length-1],l=location.hostname.split("."),d=l[l.length-2],h=l[l.length-1];if(i&&!(a===h&&o===d)){let{protocol:i,pathname:s,search:o,hash:a}=r;n[n.length-1]=h,n[n.length-2]=d,e="".concat(i,"://").concat(n.join(".")).concat(s).concat(o).concat(a)}return e},resigterIframeUrl:(e,i)=>(l.some(i=>i.url===e)?l.map(r=>{r.url===e&&r.callbackList.push(i)}):l.push({url:e,callbackList:[i]}),e),unResigterAllIframeUrl(){l.splice(0,l.length)},registerIframeErrListenerEvent(){var e;console.info("[biz.notifyFrameError] registerIframeErrListenerEvent 1 "),a&&(console.info("[biz.notifyFrameError] registerIframeErrListenerEvent 2 "),null==(e=null==window?void 0:window.bridge)||e.register("biz.notifyFrameError",this.handleMobileIframeErr))},unRegisterIframeErrListenerEvent(){var e;console.info("[biz.notifyFrameError] unRegisterIframeErrListenerEvent 1 "),a&&(console.info("[biz.notifyFrameError] unRegisterIframeErrListenerEvent 2"),null==(e=null==window?void 0:window.bridge)||e.unregister("biz.notifyFrameError",this.handleMobileIframeErr))},handleMobileIframeErr:e=>{console.info("[biz.notifyFrameError] iframe response = ",JSON.stringify(e));let{url:i,errorCode:r}=e;if(!i){console.info("[biz.notifyFrameError] !url");return}l.map(e=>{if(e.url===i||e.url===i.substring(0,i.length-1)){let i=d[r]?t("LarkCCM_Core_WebViewUnableToLoadPage_EmptyStateDescription",{errorDesc:d[r],errorCode:r}):o;e.callbackList.map(e=>e(i,r)),e.callbackList=[]}})}};function f(e,i){if(!i)return!1;let{patterns:r,srcRegExps:n}=i,{url:s,original_text:o}=e.iframe.component,a=s||o;return(n?n.concat(r):r).some(e=>e.test(a))}let m=e=>e&&e.classList.add("is-iframe-render-link");function u(e,i){let r=null==i?void 0:i.querySelector(".selected-mask");e?null==r||r.classList.add("link-iframe-selected"):null==r||r.classList.remove("link-iframe-selected")}function g(){if(!s.b7.isAndroid)return;let e=window.getSelection();null==e||e.collapse(e.anchorNode,0)}function p(e,i){let r=(0,s.i6)(e);if(!r)return;let{search:n}=r,o=e.replace(/#/,"".concat(n.includes("?")?"":"?","&").concat(Number(new Date),"#"));return h.resigterAndCheckUrl(o,i)}function b(e,i,r){if(i&&!r){let i=null==e?void 0:e.querySelector(".iframe-layer"),r=i.querySelector("iframe");if(!i||!r)return null;let n=r.getBoundingClientRect(),s=i.cloneNode(!0);return s.style.width="".concat(n.width,"px"),s.style.height="".concat(n.height,"px"),s||null}return e}function k(e){let i=e.target,r=new Event("mousemove",{bubbles:!0});i.dispatchEvent(r)}function E(e,i,r,n){let o=0;return e===s.i7.CENTER?o=(r-i)/2:e===s.i7.LEFT?o=0:e===s.i7.RIGHT&&(
1o=r-i),o>=0?o+n:0}function w(e){let{original_text:i,url:r}=e.iframe.component,n=(0,s.i4)(i);return(0,s.i5)(n)?n:r}},76025:function(e,i,r){let n;r.r(i),r.d(i,{default:function(){return ei}});var s=r(77291),o=r(41496),a=r(46579),l=r(29099),d=r(6307),c=r(88232);let h=0;var f=Object.defineProperty;let m=class extends s.nD{getText(){return"[".concat(t("line_popover.web-page"),"]")}constructor(e){super(e)}};m.type=s.B.IFRAME,((e,i,r,n)=>{for(var s,o=void 0,a=e.length-1;a>=0;a--)(s=e[a])&&(o=s(i,r,o)||o);return o&&f(i,r,o)})([s.ae],m.prototype,"blockManager");let u=["kunlun"];function g(e,i){let r=new URL(e),{parseQuery:n,formatQuery:o}=s.bp,a=n(e);return null==i||i(a),r.search=o(a),r.toString()}async function p(e){try{let i=await fetch("/suite/passport/frontier_ticket/"),{ticket:r}=await i.json(),n=new URL(e),{parseQuery:o,formatQuery:a}=s.bp,l=o(e);return l.thirdAuthChannel="feishuDoc",l.thirdAuthToken=r,n.search=a(l),n.toString()}catch(i){return console.error("[Iframe Block]: aPaas iframe get token error, ".concat(i)),e}}async function b(e,i){if(u.includes(i))return await p(e)}let k=[s.at.jcode];function E(e){let{width:i,height:r}=e.iframe;return{width:Math.max(88,i),height:Math.max(88,r)}}function w(e,i,r){let n=E(i),{width:s,height:o}=n;return r?n:{width:e,height:e/s*o}}function C(e){let{snapshot:i,iframeConfig:r,hostWidth:n,isIframeResized:s,isBlockSSR:o,containerWidth:a}=e,{width:l,height:d}=E(i);return s||l===r.defaultWidth||l===n?l>a?w(a,i,o):{width:l,height:d}:w(n,i,o)}function v(){var e;let i=((null==(e=window.User)?void 0:e.userAgent)||navigator.userAgent).toLowerCase(),r=/micromessenger/i.test(i)&&/miniprogram/i.test(i),n=/toutiaomicroapp/i.test(i);return r||n}let y=e=>s.b7.safari&&e.renderLinkInSafari;function R(e,i){return(0,s.DE)(s.gO.getState())&&e&&e>i?s.i7.RIGHT:void 0}let I=["allow-scripts","allow-same-origin","allow-presentation","allow-forms"],S={[s.DI.None]:"no-referrer",[s.DI.WhenDowngrade]:"no-referrer-when-downgrade",[s.DI.CrossOrigin]:"origin-when-cross-origin",[s.DI.SameOrigin]:"same-origin",[s.DI.StrictOrigin]:"strict-origin",[s.DI.StrictOriginWco]:"strict-origin-when-cross-origin",[s.DI.UnsafeUurl]:"unsafe-url"};function L(e){let{iframeConfig:i,iframeRef:r,iframeWidth:n,url:o,flags:a,isIframeLoaded:d}=e,{copyable:c,type:h,allowRef:f}=i,[m,u,g]=a,p=s.DK.includes(h);return l.createElement("iframe",{src:o,sandbox:[...I,...(0,s.DJ)()?[]:(0,s.u4)()?["allow-popups"]:["allow-popups","allow-downloads"],...h&&s.DH.includes(h)?["allow-storage-access-by-user-activation"]:[]].join(" "),draggable:"false",allowFullScreen:g,allow:["encrypted-media;",c?"clipboard-write;":""].join(""),referrerPolicy:m&&f&&S[f]?S[f]:"",ref:r,onLoad:e.handleIframeLoad,onError:e.handleIframeError,"data-iframe-will-auto-focus":p?"1":"0",className:function(e,i){let r="type-".concat(i);if(e)return"".concat(r," ").concat(s.DG.LOADED);let n=s.DH.includes(i)?"":s.DG.INIT;return"".concat(r," ").concat(n)}(d,h),style:{width:n,borderRadius:u?"unset":"8px"},onMouseEnter:e.onIframeMouseenter,frameBorder:"0","data-aha-samesite":s.b7.isLark?"none":""})}let M=(0,l.forwardRef)((e,i)=>s.nz.jsx("svg",{width:"230",height:"230",viewBox:"0 0 230 230",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:i,...e,dangerouslySetInnerHTML:{__html:'<rect opacity="0.01" width="230" height="230" fill="#D8D8D8"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5 186H190V34H5V186Z" fill="#D6DAE1"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M165 72.9613L148.662 178L20 158.04L36.3383 53L165 72.9613Z" fill="#F4F5F9"/> <path d="M48 147L57 71" stroke="white" stroke-width="2"/> <path d="M61 149L70 73" stroke="white" stroke-width="2"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M224.266 162.274C219.384 198.14 186.464 223.24 150.74 218.338C115.016 213.437 90.0122 180.388 94.8954 144.525C99.7773 108.659 132.697 83.5593 168.421 88.4603C204.146 93.3626 229.148 126.41 224.266 162.274" fill="#FFC200"/> <path fill-rule="evenodd" clip-rule="evenodd" d="M5.29834 35.1317H60.8012V10.1528H5.29834V35.1317Z" fill="#B5BEC8"/> <path d="M111.812 148.66C111.812 148.66 158.862 193.41 208.389 148.66" stroke="#18263C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M130.385 162.333L121.718 178.493" stroke="#18263C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M160.101 169.792V189.681" stroke="#18263C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/> <path d="M188.578 163.577L200.96 177.25" stroke="#18263C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>'}})),_="docx-vc-recorder-block-place-holder";function D(){let e=l.useRef();return l.useEffect(()=>{let i=e.current;if(i){var r;let e=(r=e=>{for(let i of e){let{height:e}=i.contentRect;e<=130?i.target.classList.add("".concat(_,"-sm")):i.target.classList.remove("".concat(_,"-sm"))}},new s.nJ(r));return e.observe(i),()=>{e.unobserve(i),e.disconnect()}}},[]),l.createElement("div",{className:_,ref:e},l.createElement("div",{className:"".concat(_,"-icon")},l.createElement(M,null)),l.createElement("div",{className:"".concat(_,"-text")},t("CreationDoc_Minutes_UnableToRecord_Subtitle")))}function W(e,i,r){return Math.max(88,Math.min(i,e,r||i))}function F(e,i){return Math.max(88,Math.min(e,i||e))}function B(e){let{snapshot:i,delta:r,iframeConfig:n,containerWidth:o,isIframeResized:a,isBlockSSR:l,hostWidth:d}=e,{width:c,height:h}
1=C({snapshot:i,iframeConfig:n,isIframeResized:a,isBlockSSR:l,containerWidth:o,hostWidth:d}),{resizeType:f,maxResizeWidth:m,maxResizeHeight:u}=n,g=(null==i?void 0:i.align)===s.i7.CENTER?1:2;switch(f){case s.bo.Flexible:return{width:W(c+r.diffX*g,o,m),height:F(h+r.diffY,u)};case s.bo.Fixed:{let e=W(c+r.diffX*g,o,m),i=c/h,n=e/i;if(n<88){let e=F(n,u);return{width:e*i,height:e}}return{width:e,height:n}}case s.bo.UpDown:return{width:c,height:F(h+r.diffY,u)};default:return{width:c,height:h}}}function A(e){var i;let{model:r,blockManager:n,iframeConfig:o,snapshot:d,widthList:c,viewState:h,iframeSetState:f,selectionAPI:m,isIframeResized:u}=e,[g,p,b]=c,[k,w]=h,{id:v,parent:y}=r,I=(null==y?void 0:y.id)||1,S=r.record.id,L=(0,s.ha)(e=>{f({resize:B({delta:e,iframeConfig:o,snapshot:d,isIframeResized:u,containerWidth:g,isBlockSSR:w,hostWidth:p}),temporaryAlign:R(b,p)})},16);return l.createElement(s.DM,{type:(i=o.resizeType,s.b7.isH5||s.b7.isMobile&&s.b7.isLark?s.bo.None:s.DL[i]),sensitivity:1,editable:k,blockId:v,selectionAPI:m,onResizeStart:()=>{s.gG.emit(s.uV),f({resize:C({snapshot:d,iframeConfig:o,hostWidth:p,isIframeResized:u,isBlockSSR:w,containerWidth:g})})},onResizeUpdate:L,onResizeEnd:e=>{s.gG.emit(s.uW);let i=B({delta:e,iframeConfig:o,snapshot:d,isIframeResized:u,containerWidth:g,isBlockSSR:w,hostWidth:p}),l=(0,s.dj)(i.width)&&(0,s.dj)(i.height);if(!l){let r={...d.iframe,...e,component:void 0,size:i};
1n.editorAPI.getService(s.C).collectEvent("docs_blocks_abnormal_behaviour_trace_dev",{action:"iframe_resize_end_error",info:"".concat(u,",").concat(w,",").concat(p,",").concat(g,", teaData: ").concat(JSON.stringify(r))})}l&&r.applyTransaction("handleIframeResizeEnd",e=>{e.replace(S,["iframe","width"],i.width),e.replace(S,["iframe","height"],i.height),d.iframe.is_modified||e.replace(S,["iframe","is_modified"],!0)}),f({resize:void 0});let{height:c,width:h}=E(d);!function(e,i,r,n){let[o,l]=e,d=(0,s.jR)(l,i),[c,h]=r,[f,m]=n;i.editorAPI.getService(s.C).collectPageClick("ccm_doc_content_page_click",(0,s.jR)(o,i),{click:"block_resize",object_block_data:[{object_block_id:(0,a.p)(d.record_id),object_block_type:d.block_type,object_sub_block_type:d.sub_block_type}],before_size:"".concat(Math.round(c),"x").concat(Math.round(h)),after_size:"".concat(Math.round(f),"x").concat(Math.round(m))})}([I,v],n,[i.width,i.height],[h,c])}},e.children)}function N(e){let{loadingComponent:i,isIframeLoaded:r}=e,n=s.b7.isFeishuRoomsServer;return l.createElement("div",{className:"iframe-layer"},!i||r||n?null:i,n?l.createElement(D,null):l.createElement(L,{...e}))}function z(e){let{snapshot:i,blockManager:r,model:n,iframeConfig:o,iframeRef:a,url:d,flags:c,iframeSize:h,isIframeLoaded:f,selectionAPI:m,iframeSetState:u,widthList:g,loadingComponent:p,handleIframeLoad:b,handleIframeError:k,onIframeMouseenter:E}=e,[w,C,v,y,R,I]=c,[S]=h,L=function(e){let{iframeConfig:i,iframeSize:r,propsRatio:n}=e,{maxResizeWidth:s}=i,[o,a,l]=r,[,d]=e.widthList;return{width:o,paddingBottom:"".concat(Math.floor(1e4*(n||a/o))/(l&&s&&d>=s?l:1)/100,"%")}}(e);(0,l.useLayoutEffect)(()=>{s.mp.reportBlockLoadStage("iframe_dom_did_mount",{id:n.id,time:Date.now()})},[n]);let M=(0,l.useMemo)(()=>l.createElement(N,{url:d,iframeConfig:o,iframeWidth:S,iframeRef:a,isIframeLoaded:f,flags:[v,y,!R],loadingComponent:p,handleIframeLoad:b,handleIframeError:k,onIframeMouseenter:E}),[d,o,S,a,f,v,y,R,p,b,k,E]);return l.createElement(A,{model:n,blockManager:r,selectionAPI:m,snapshot:i,iframeConfig:o,iframeSetState:u,widthList:g,viewState:[f&&w&&!I,C],isIframeResized:R||i.iframe.is_modified},l.createElement("div",{className:s.DN,style:L},M))}function x(e){return e.isShow?l.createElement("div",{className:"iframe-overlayer",onClick:e.onMaskClick}):null}function T(e){let{width:i,height:r}=e,n=r/i;return l.createElement("div",{className:"iframe-ssr-wrapper",style:{width:i,paddingBottom:"".concat((100*n).toFixed(2),"%")}},l.createElement(s.Cf,null))}let V=(0,s.DO)(s.DP);function O(e){let{onLoad:i,loadingError:r,onClickRetry:n,customErrText:o,noAutoRetry:a}=e,d=(0,l.useRef)(null),c=()=>{n()},[h,f]=(0,l.useState)(null);(0,l.useEffect)(()=>{if(!r)return;let e=setTimeout(()=>{!a&&i&&i()},2e4);return(null===h||h!==r.id)&&(f(r.id),s.mp.reportBlockLoadError(r)),()=>clearTimeout(e)},[i,r]);let m=()=>l.createElement("div",{className:"retry-tips"},l.createElement("span",{className:"retry-text"},o||t("CreationDoc_DocX_Block_Load_Fail"),l.createElement("button",{type:"button",onClick:c,className:"retry-btn"},t("CreationDoc_Docs_TwoWayLinks_LoadingError_Toast12"))));return l.createElement(l.Fragment,null,r?(()=>{let{hasText:i}=e;return l.createElement("div",{className:(0,s.jY)(e.classNames,"docx-block-loading-retry docx-block-loading"),style:e.style,ref:d},l.createElement("div",{className:"docx-block-mode",contentEditable:!1},l.createElement("div",{className:"docx-retry-content"},l.createElement("div",{className:"docx-retry-placeholder-img",style:i?{fontSize:10}:void 0,onClick:i?c:void 0},l.createElement(V,{style:{maxHeight:"88px",maxWidth:"88px"}})),!i&&m())))})():e.children)}function H(e){let{errorConfig:i,iframeSize:r,flags:n,widthList:o,mainViewStyle:a,id:d,isBlockSSR:c,snapshot:h}=e,[f,m,u]=o,[g,p]=n,[b,,k]=i,[E,w]=r,C=R(u,m)||h.align||s.i7.CENTER;return l.createElement(O,{onClickRetry:e.refreshIframe,loadingError:!(0,s.cc)()||b?{id:d,type:s.B.IFRAME}:void 0,onLoad:e.handleIframeLoad,style:{width:E,height:w},hasText:E<300&&w<220,customErrText:k,noAutoRetry:""!==k},l.createElement("div",{className:(0,s.jY)("iframe-alignable-container",C)},l.createElement("div",{className:function(e){let{iframeSize:i,selected:r,flags:n,isResizing:o}=e,[a,l]=i,[,d,c,h,f]=n,m=c&&h,u=l>a;return(0,s.jY)(s.DF,{"iframe-container__border":m,"iframe--slim":u,"iframe--normal":!u,active:r,editable:c&&f,"iframe--resizing":o,"is-iframe-free-width":d})}(e),"data-iframe-hover-flag":!0,style:{width:E,maxWidth:p?f:"100%",...a},ref:e.iframeContainerRef,contentEditable:!1},c?l.createElement(T,{height:w,width:E}
1):e.children,l.createElement(x,{isShow:g,onMaskClick:e.onMaskClick}))))}function P(e){let{url:i,selected:r}=e,n=(0,s.i4)(i),o=(0,s.a_)((i,r)=>{if(v()&&!s.b7.isLark){e.editorAPI.getService(s.nK).open({url:i});return}let n=window.open(i,r,"noopener=yes,noreferrer=yes");n&&(n.opener=null)},300,{leading:!0,trailing:!1});return l.createElement("div",{"data-iframe-hover-flag":!0,contentEditable:!1},l.createElement("a",{className:(0,s.jY)("link","block-inline-text",{selected:r}),"data-link-node":!0,"data-href":n,target:"_blank",rel:"noopener noreferrer",onMouseEnter:e.onIframeMouseenter,onClick:()=>o(n,"_blank")},n))}let U=(e,i)=>(0,c.DY)()===c.f8.DARK?i:e,j=s.b7.isAndroid?9:7,Z=l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 64 64",fill:"none"},l.createElement("path",{d:"M6.30632 30.8753L1.74707 26.1082C9.33551 18.2194 19.8118 13.3214 31.446 13.3214C43.0803 13.3214 53.5566 18.2193 61.145 26.1081L56.5857 30.8752C50.1395 24.0891 41.2269 19.9111 31.446 19.9111C21.6652 19.9111 12.7525 24.0891 6.30632 30.8753ZM15.8148 40.8172L11.2578 36.0525C16.4666 30.8143 23.5637 27.5724 31.446 27.5724C39.3284 27.5724 46.4255 30.8143 51.6343 36.0525L47.0773 40.8172C43.0105 36.6848 37.4789 34.1622 31.446 34.1622C25.4131 34.1622 19.8816 36.6848 15.8148 40.8172ZM25.629 51.0789L21.0698 46.3118C23.7149 43.6007 27.3733 41.8928 31.446 41.8928C35.5338 41.8928 39.179 43.5926 41.8226 46.3114L37.2631 51.0788C35.7617 49.462 33.6796 48.4826 31.446 48.4826C29.1972 48.4826 27.1298 49.4531 25.629 51.0789Z",fill:"#BBBFC4",fillOpacity:"0.45"}),l.createElement("path",{d:"M52.267 32.2C57.5689 32.2 61.867 27.9019 61.867 22.6C61.867 17.2981 57.5689 13 52.267 13C46.9651 13 42.667 17.2981 42.667 22.6C42.667 27.9019 46.9651 32.2 52.267 32.2Z",fill:"#FF811A"}),l.createElement("path",{d:"M51.8304 18.2364C51.5894 18.2364 51.394 18.4318 51.394 18.6728V23.9091C51.394 24.1501 51.5894 24.3455 51.8304 24.3455H52.7031C52.9441 24.3455 53.1395 24.1501 53.1395 23.9091V18.6728C53.1395 18.4318 52.9441 18.2364 52.7031 18.2364H51.8304Z",fill:"white"}),l.createElement("path",{d:"M51.8304 25.2182C51.5894 25.2182 51.394 25.4136 51.394 25.6546V26.5273C51.394 26.7683 51.5894 26.9637 51.8304 26.9637H52.7031C52.9441 26.9637 53.1395 26.7683 53.1395 26.5273V25.6546C53.1395 25.4136 52.9441 25.2182 52.7031 25.2182H51.8304Z",fill:"white"})),Y=l.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 64 64",fill:"none"},l.createElement("path",{d:"M6.30632 30.8753L1.74707 26.1082C9.33551 18.2194 19.8118 13.3214 31.446 13.3214C43.0803 13.3214 53.5566 18.2193 61.145 26.1081L56.5857 30.8752C50.1395 24.0891 41.2269 19.9111 31.446 19.9111C21.6652 19.9111 12.7525 24.0891 6.30632 30.8753ZM15.8148 40.8172L11.2578 36.0525C16.4666 30.8143 23.5637 27.5724 31.446 27.5724C39.3284 27.5724 46.4255 30.8143 51.6343 36.0525L47.0773 40.8172C43.0105 36.6848 37.4789 34.1622 31.446 34.1622C25.4131 34.1622 19.8816 36.6848 15.8148 40.8172ZM25.629 51.0789L21.0698 46.3118C23.7149 43.6007 27.3733 41.8928 31.446 41.8928C35.5338 41.8928 39.179 43.5926 41.8226 46.3114L37.2631 51.0788C35.7617 49.462 33.6796 48.4826 31.446 48.4826C29.1972 48.4826 27.1298 49.4531 25.629 51.0789Z",fill:"white",fillOpacity:"0.3"}),l.createElement("path",{d:"M52.267 32.2C57.5689 32.2 61.867 27.9019 61.867 22.6C61.867 17.2981 57.5689 13 52.267 13C46.9651 13 42.667 17.2981 42.667 22.6C42.667 27.9019 46.9651 32.2 52.267 32.2Z",fill:"#F3871B"}),l.createElement("path",{d:"M51.8304 18.2364C51.5894 18.2364 51.394 18.4318 51.394 18.6728V23.9091C51.394 24.1501 51.5894 24.3455 51.8304 24.3455H52.7031C52.9441 24.3455 53.1395 24.1501 53.1395 23.9091V18.6728C53.1395 18.4318 52.9441 18.2364 52.7031 18.2364H51.8304Z",fill:"white"}),l.createElement("path",{d:"M51.8304 25.2182C51.5894 25.2182 51.394 25.4136 51.394 25.6546V26.5273C51.394 26.7683 51.5894 26.9637 51.8304 26.9637H52.7031C52.9441 26.9637 53.1395 26.7683 53.1395 26.5273V25.6546C53.1395 25.4136 52.9441 25.2182 52.7031 25.2182H51.8304Z",fill:"white"})),G=e=>{let{style:i,errorCode:r,refreshIframe:n}=e,s=(0,l.useCallback)(()=>{!function(e,i){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e3,n=!1,s=()=>n=!0;document.addEventListener("visibilitychange",s);let o=document.createElement("a");o.href=e,o.style.display="none",document.body.appendChild(o),o.click(),setTimeout(()=>{!n&&i&&i(),document.body.removeChild(o),document.removeEventListener("visibilitychange",s)},r)}("feilian://page/vpn",()=>{window.lark.biz.util.showToast({message:t("LarkCCM_Docs_iFrame_LoadFail_VPNnotInstalled_Text"),buttonMessage:t("LarkCCM_Docs_iFrame_LoadFail_Download_Button"),type:j,duration:6,callback:()=>{window.open("https://seal.bytedance.net/")}})})},[]);return l.createElement("div",{className:"iframe-custom-error",style:i},U(Z,Y),-1e5===r?l.createElement("div",{className:"title"},t("LarkCCM_Docs_iFrame_LoadFail_Description"),l.createElement("span",{className:"button",onClick:s},t("LarkCCM_Docs_iFrame_LoadFail_ConnectVPN_Link"))):l.createElement("div",{className:"title"},t("LarkCCM_Docs_iFrame_LoadFail_CheckNet_Description")),l.createElement("span",{className:"button",onClick:n}
1,t("LarkCCM_Docs_iFrame_LoadFail_TryAgain_Link")))};function J(e){let i;if(!s.b7.isAndroid||!e)return;let r=()=>{let e=window.scrollY||window.pageYOffset||document.documentElement.scrollTop;e>50&&(i=Math.floor(e))},n=()=>{i&&i>50&&window.scrollTo({top:i})};return e.addEventListener("touchstart",r,!0),e.addEventListener("fullscreenchange",n,!0),()=>{e.removeEventListener("touchstart",r,!0),e.removeEventListener("fullscreenchange",n,!0)}}let Q=(0,s.bD)("memoryManagerService");var X=((n=X||{})[n.DESTROY=100]="DESTROY",n[n.DOWNGRADE_0=50]="DOWNGRADE_0",n[n.NORMAL=1]="NORMAL",n);let q=(0,s.bD)("mobile-custom-menu-events"),$=(0,s.bD)("presentation-mode");var K=Object.defineProperty,ee=(e,i,r,n)=>{for(var s,o=void 0,a=e.length-1;a>=0;a--)(s=e[a])&&(o=s(i,r,o)||o);return o&&K(i,r,o),o};let et=class extends s.nI{get containerElement(){let{hostElement:e}=this;return e&&(e.querySelector(".".concat(s.DF))||e)}attachBlockView(){var e;this.props.onBlockReady&&this.props.onBlockReady(),(this.isRenderIntoLink||s.b7.isFeishuRoomsServer)&&(this.needMask=!1,this.handleIframeLoad(),this.notifyRenderFinish(),(0,o.e)(this.hostElement)),this.bindWindowEventForMask(!0),this.hostResizeObserver.disconnect(),this.hostResizeObserver.observe(this.hostElement);let i=this.state.isIframeFreeWidth&&this.boundary;i&&(this.boundaryResizeObserver.disconnect(),this.boundaryResizeObserver.observe(i)),this.isNeedRegisterToFixed&&(this.changeRectForFixedBlockList(!0),this.sideBarSubscribe=s.gO.subscribe(this.handleCommentChange),this.bearWebSignalService&&this.subs.push(this.bearWebSignalService.viewEditorsMenuChangeSignal.subscribe(this.onViewEditorsMenuChange))),this.mobileSystemEvents&&this.subs.push(this.mobileSystemEvents.$hadNoticeMemoryWarning.subscribe(this.onHadNoticeMemoryWarningChange)),this.specialConvertSrc(),document.addEventListener("fullscreenchange",this.handleFullscreenChange),null==(e=this.fixAndroidVideoFullscreenDestroy)||e.call(this),J(this.iframeContainerRef.current)}blockViewDidMount(){super.blockViewDidMount(),this.attachBlockView()}detachBlockView(){var e,i;this.bindWindowEventForMask(!1),this.callAdditionalActiveNodeOp(!1),this.boundaryResizeObserver.disconnect(),this.debounceUpdateHostWidth.cancel(),this.hostResizeObserver.disconnect(),this.isNeedRegisterToFixed&&(this.changeRectForFixedBlockList(!1),null==(e=this.sideBarSubscribe)||e.call(this)),this.subs.forEach(e=>e.unsubscribe()),document.removeEventListener("fullscreenchange",this.handleFullscreenChange),null==(i=this.fixAndroidVideoFullscreenDestroy)||i.call(this)}blockViewDidUpdate(e,i){super.blockViewDidUpdate(e,i),this.isIframeFreeWidth!==i.isIframeFreeWidth&&(this.setState({isIframeFreeWidth:this.isIframeFreeWidth}),this.changeRectForFixedBlockList(this.isNeedRegisterToFixed))}blockViewWillUnmount(){super.blockViewWillUnmount(),this.detachBlockView()}get isRenderIntoLink(){let{state:e,iframeConfig:i}=this,{url:r,hadNoticeMemoryWarning:n,downgradeLevel:o}=e;return function(e,i,r){if(r||v()&&!s.b7.isLark||(0,s.nH)()||(0,s.we)()||s.b7.isFeishuRooms&&(0,s.DD)()||!(0,s.ry)(e)||function(e){let i=(0,s.i6)(e);return!i||/javascript/.test(i.protocol)}(e))return!0;let{renderLink:n,type:o}=i;return n||y(i)||function(e){let{renderLinkInMobile:i,renderLinkInAndroid:r,renderLinkInIOS:n}=e;return s.b7.isMobile&&(i||s.b7.android&&r||s.b7.ios&&n)}(i)||!(0,d.a)(o)}(r,i,n||o===X.DOWNGRADE_0)}get mobileSystemEvents(){var e;
1if(s.b7.isMobile&&!(null!=(e=this.editorAPI.getService(Q,{optional:!0}))&&e.enable))return this.editorAPI.getService(q,{optional:!0})}get hostWidth(){var e,i;if(this.isBlockSSR)return 0;let{rootBlockId:r}=this.blockManager;return this.hostElement.clientWidth||(null==(e=this.blockManager.getBlockViewByBlockIdNotCheck(r))?void 0:e.hostElement.clientWidth)||(null==(i=this.state)?void 0:i.currentHostWidth)||0}get isBlockSSR(){return!0===this.editorAPI.config.get("isSSR")}get isNeedRegisterToFixed(){return!this.isRenderIntoLink&&this.state.isIframeFreeWidth}get isLeftSideOverflowEditor(){let{snapshot:e,hostWidth:i,iframeConfig:r,isIframeResized:n,isBlockSSR:o,containerWidth:a}=this,l=C({snapshot:e,iframeConfig:r,hostWidth:i,isIframeResized:n,isBlockSSR:o,containerWidth:a});return(e.align!==s.i7.LEFT||!(this.offsetX<=0))&&l.width>i}get containerWidth(){var e,i;let{state:{isIframeFreeWidth:r,boundaryWidth:n},commentBlockWidth:s,blockManager:o}=this;if(!r)return this.hostWidth||730;if(r&&s){let{rootBlockId:r}=o,a=(this==null?void 0:this.hostElement)||(null==(e=o.getBlockViewByBlockIdNotCheck(r))?void 0:e.hostElement),l=(null==(i=null==a?void 0:a.getBoundingClientRect())?void 0:i.left)||0,d=Math.max(s+this.minDisplayMargin,l);return n-this.minDisplayMargin-d}return n-2*this.minDisplayMargin}get minDisplayMargin(){return this.state.isAuthorOpen?106:88}get commentBlockWidth(){return this.state.sideBarWidth}get isIframeResized(){return!this.props.recursionProps.isPresentationMode&&this.snapshot.iframe.is_modified}get iframeConfig(){let{type:e}=this.snapshot.iframe.component;return d.i[e]||{}}get isIframeFreeWidth(){return!s.b7.isMobile&&!(0,s.DR)(this)&&!(s.b7.safari&&this.iframeC
1onfig.renderLinkInSafari)&&!this.props.recursionProps.isPresentationMode}get borderColor(){let{selected:e,syncCursorSelected:i,syncCursorBorderColor:r}=this.props;return!e&&i?r:void 0}getBlockWrapper(){return this.getElementByClass("iframe-container")}getContentRect(){let e=this.getOverflowableContainer(),i=null==e?void 0:e.firstElementChild;return e&&i?i.getBoundingClientRect():super.getContentRect()}getOverflowableContainer(){return this.iframeContainerRef.current}setSelected(e){this.isRenderIntoLink&&(super.setSelected(e),(0,o.s)(e,this.hostElement)),e!==this.state.selected&&this.setState({selected:e})}onDowngrade(e){this.setState({downgradeLevel:e,placeholderHeight:this.hostElement.clientHeight})}getExceededWidth(e){var i;let r=this.hostWidth||(null==(i=this.state)?void 0:i.currentHostWidth),{temporaryAlign:n}=this.state,a=n||this.snapshot.align||s.i7.CENTER;return(0,o.f)(a,r,e,this.offsetX)}changeRectForFixedBlockList(e){let{rectForFixed:i}=this.props.recursionProps;e&&this.iframeContainerRef?null==i||i.pushBlock(this,this.iframeC
1ontainerRef):null==i||i.deleteBlock(this)}computeStyle(e){var i;let{hostElement:r,boundary:n,isNeedRegisterToFixed:o,isIframeResized:a,state:l}=this;if(!r||!n||!o||!a&&!l.resize)return{};let d=Math.min(e,this.containerWidth),[c,h]=function(e){let[i,,r]=e.widthList;return i<=r?[{},0]:function(e){let{elementList:i,widthList:r,align:n,minDisplayMargin:o}=e,[a,l]=i,[d,c]=r,h=0,{left:f,width:m}=a.getBoundingClientRect(),{left:u,right:g,width:p}=l.getBoundingClientRect(),b=d-p,k={};if(n===s.i7.CENTER){let e=(m-c+f-g-b/2-o)*2;h=e<0?-e/2:0,k=e<0?{marginLeft:e}:{}}else if(n===s.i7.LEFT){let e=m-c+f-g-b-o;h=e<0?-e:0,k=e<0?{marginLeft:e}:{}}else if(n===s.i7.RIGHT){let e=u-f-b-o;h=e<0?-e:0,k=e<0?{marginRight:e}:{}}return[k,h]}(e)}({elementList:[this.boundary,this.hostElement],widthList:[d,this.commentBlockWidth,this.hostWidth],align:this.snapshot.align,minDisplayMargin:this.minDisplayMargin});return this.offsetX=h,null==(i=this.blockAuthorService)||i.updateWhenHorizontalWidthChange({blockId:this.id,offset:this.getExceededWidth(d)}),c}renderResizableIframe(e,i){let{isBlockSSR:r,props:n,state:s,snapshot:o}=this,{isIframeLoaded:a,isFullScreen:d,url:c}=s,{isPresentationMode:h}=this.props.recursionProps,{zoom:f}=n;return l.createElement(z,{url:c,iframeSize:[e,i,f||1],iframeConfig:this.iframeConfig,snapshot:o,widthList:[this.containerWidth,this.hostWidth,this.cacheIframeWidth||0],selectionAPI:this.selectionAPI,iframeRef:this.iframeRef,handleIframeLoad:this.handleIframeLoad,handleIframeError:this.handleIframeError,onIframeMouseenter:this.onIframeMouseenter,flags:[this.editable,r,this.isRegCheckUrl(),d,!!h,this.revising],model:this.model,loadingComponent:this.props.loadingComponent,blockManager:this.blockManager,isIframeLoaded:a,isIframeResized:this.isIframeResized,iframeSetState:e=>{this.setState(e)}})}renderIframe(){var e;let{isBlockSSR:i,id:r,props:n,state:s,needMask:o}=this,{isIframeError:a,errorCode:d,errorText:c,resize:h,selected:f,maskVisible:m,isIframeLoaded:u}=s,{zoom:g}=n,{height:p,width:b}=this.getIframeSize(),k=this.computeStyle(b);return l.createElement(H,{iframeSize:[b,p,g||1],errorConfig:[!!a,d,c],snapshot:this.snapshot,iframeContainerRef:this.iframeContainerRef,flags:[!!(o&&m),this.isIframeFreeWidth,u,!!(null!=(e=this.iframeConfig)&&e.border),this.editable],isResizing:!!h,selected:f,isBlockSSR:i,id:r,mainViewStyle:{borderColor:this.borderColor,...k},widthList:[this.containerWidth,this.hostWidth,this.cacheIframeWidth||0],refreshIframe:this.refreshIframe,onMaskClick:this.onMaskClick,onIframeMouseenter:this.onIframeMouseenter,handleIframeLoad:this.handleIframeLoad},this.renderResizableIframe(b,p))}render(){let{downgradeLevel:e,placeholderHeight:i,selected:r,isIframeError:n,errorCode:o}=this.state;if(this.isBlockSSR)return this.renderIframe();if(e===X.DESTROY)return l.createElement("div",{style:{height:i}});if(this.props.recursionProps.shouldRenderPlainText)return l.createElement("a",null,"[",(0,s.jN)(this.model.type),"]");if(this.isRenderIntoLink){let{original_text:e}=this.snapshot.iframe.component;return l.createElement(P,{selected:r,url:e,onIframeMouseenter:this.onIframeMouseenter,editorAPI:this.editorAPI})}if((0,s.DS)()&&(!(0,s.cc)()||n)){let{height:e,width:i}=this.getIframeSize();return l.createElement(G,{style:{width:i,height:e},errorCode:o,refreshIframe:this.refreshIframe})}return this.renderIframe()}constructor(e){var i,r;super(e),i=this,this.subs=[],this.hostElementHeight=-1,this.offsetX=0,this.iframeRef=l.createRef(),this.iframeC
1ontainerRef=l.createRef(),this.needMask=s.b7.isMobile&&s.b7.isBytedanceApp||s.b7.isH5,this.handleMobileIframeError=(e,i)=>{this.setState({isIframeError:!0,errorText:e,errorCode:i})},this.state={isAuthorOpen:!!this.props.isViewEditors,isIframeLoaded:!1,errorText:"",errorCode:0,url:o.I.resigterAndCheckUrl(this.snapshot.iframe.component.url,this.handleMobileIframeError),selected:!1,resize:void 0,maskVisible:s.b7.isMobile&&s.b7.isBytedanceApp,isIframeFreeWidth:this.isIframeFreeWidth,boundaryWidth:this.boundary.clientWidth||730,currentHostWidth:0,sideBarWidth:this.props.sideBarWidth||0,isFullScreen:!1,hadNoticeMemoryWarning:!!this.mobileSystemEvents&&this.mobileSystemEvents.$hadNoticeMemoryWarning.getValue(),downgradeLevel:function(e){var i;let{editorAPI:r,id:n}=e;return null==(i=r.getService(Q,{optional:!0}))?void 0:i.getDowngradeLevel({id:n,type:"blockView"})}({editorAPI:this.editorAPI,id:this.id})||X.NORMAL,placeholderHeight:0},this.getOriginalUrl=()=>(0,o.a)(this.snapshot),this.onHadNoticeMemoryWarningChange=e=>{this.setState({hadNoticeMemoryWarning:e})},this.specialConvertSrc=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!i.isRegCheckUrl())return;let{state:{url:r},iframeConfig:{type:n}}=i,o=(n===s.at.iqiyi||n===s.at.ByteJimeng?g(r,e=>{e.autoplay=!1}):n.startsWith("bilibili")?g(r,e=>{e.autoplay=0}):n===s.at.douyin?g(r,e=>{Array.isArray(e.vid)&&(e.vid=e.vid[0])}):void 0)||await b(r,n);o&&(i.setState({url:o}),e&&i.state.url===o&&i.iframeRef.current&&(i.iframeRef.current.src=String(i.iframeRef.current.src)))},this.handleIframeLoad=()=>{var e;let{type:i}=this.iframeConfig,r=this.isRenderIntoLink||s.b7.isFeishuRoomsServer;(function(e,i,r){var n;let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];s.mp.recordBlockProfile(e,{iframe_type:i,iframe_sub_type:i===s.at.defaulIframe?null==(n=(0,s.i6)(r))?void 0:n.origin:i,downgrade_render:o}),s.mp.reportBlockLoadStage(s.nN.JS_READY,{id:e,time:h}),s.mp.reportBlockLoadStage(s.nN.TTV,{id:e,time:Date.now()}),s.mp.reportBlockLoadStage(s.nN.TTU,{id:e,time:Date.now()})})(this.model.id,i,this.getOriginalUrl(),r),this.setState({isIframeLoaded:!0,isIframeError:!1}),window.focus(),null==(e=this.fixAndroidVideoFullscreenDestroy)||e.call(this),J(this.iframeContainerRef.current)},this.handleIframeError=()=>{this.setState({isIframeError:!0})},this.refreshIframe=()=>{let{url:e}=this.snapshot.iframe.component,i=(0,o.b)(e,this.handleMobileIframeError);i&&(this.state.url===i&&this.iframeRef.current&&(this.iframeRef.current.src=String(this.iframeRef.current.src)),this.setState({url:i,isIframeLoaded:!1,resize:void 0,isIframeError:void 0}),this.specialConvertSrc(!0),(0,s.cc)()||this.setState({isIframeError:!0}))},this.isRegCheckUrl=()=>{let{type:e}=this.iframeConfig;return(0,o.c)(this.snapshot,d.i[e])},this.handleFullscreenChange=()=>{this.setState({isFullScreen:document.fullscreenElement===this.iframeRef.current})},this.checkMaskVisible=()=>{s.b7.isAndroid&&setTimeout(()=>{document.fullscreenElement===this.iframeRef.current&&this.callAdditionalActiveNodeOp(!0)},50),this.state.maskVisible||document.activeElement===this.iframeRef.current||this.setMaskVisible(!0)},this.onMaskClick=()=>{this.setMaskVisible(!1),(0,o.d)()},this.setMaskVisible=e=>{this.setState({maskVisible:e}),this.callAdditionalActiveNodeOp(!e)},this.callAdditionalActiveNodeOp=e=>
1{this.blockManager.dispatch(e?s.yD.ADD:s.yD.REMOVE,this.props.blockId)},this.onIframeMouseenter=e=>{this.blockManager.dispatch(s.DQ,this),(0,o.i)(e)},this.notifyRenderFinish=()=>{this.blockManager.layoutManager.notifyRenderFinish(this.id)},this.bindWindowEventForMask=e=>{this.needMask&&(e?(window.addEventListener("focus",this.checkMaskVisible),window.addEventListener("blur",this.checkMaskVisible),window.addEventListener("touchstart",this.checkMaskVisible)):(window.removeEventListener("focus",this.checkMaskVisible),window.removeEventListener("blur",this.checkMaskVisible),window.removeEventListener("touchstart",this.checkMaskVisible)))},this.boundaryResizeObserver=new s.nJ((0,s.a_)(()=>{this.setState(e=>{let{boundaryWidth:i}=e,r=this.boundary.clientWidth;return r&&r!==i?{boundaryWidth:r}:null})},50)),this.debounceUpdateHostWidth=(0,s.a_)(()=>{this.setState(e=>{let{currentHostWidth:i}=e,{clientWidth:r}=this.hostElement;return r&&r!==i?{currentHostWidth:r}:null})},50),this.hostResizeObserver=new s.nJ(()=>{var e;let{clientHeight:i}=this.hostElement;0!==i&&this.hostElementHeight!==i&&(this.hostElementHeight=i,this.notifyRenderFinish(),this.props.recursionProps.isPresentationMode&&(null==(e=this.editorAPI.get
1Service($,{optional:!0}))||e.forceUpdate())),this.debounceUpdateHostWidth()}),this.onViewEditorsMenuChange=e=>{let[i]=e;this.setState({isAuthorOpen:i})},this.handleCommentChange=()=>{let e=(0,s.DE)(s.gO.getState());e!==this.state.sideBarWidth&&this.setState({sideBarWidth:e,temporaryAlign:R(this.cacheIframeWidth||0,this.hostWidth)})},this.getIframeSize=()=>{let{isBlockSSR:e,snapshot:i,iframeConfig:r,hostWidth:n,isIframeResized:o}=this,{isPresentationMode:a}=this.props.recursionProps;return function(e,i){var r;let{resize:n,iframeConfig:o,hostWidth:a,snapshot:l,flags:d}=e;if(n)return null==i||i(n.width),{...n};let c=E(l),[h,f,m]=d,{maxResizeWidth:u,type:g,defaultWidth:p}=o;!h&&(c.width!==p||k.includes(g))&&(c=w(m&&u?Math.min(u,a):a,l,f));let{width:b,height:C}=(r=c,o.type===s.at.tiktok?{width:r.width+2,height:r.height}:r);return null==i||i(b),{height:C,width:b}}({snapshot:i,iframeConfig:r,hostWidth:n,flags:[o,e,!!a],resize:this.state.resize},e=>this.cacheIframeWidth=e)},r=this.model.id,s.mp.reportBlockLoadStage({iframe_block_view_init_start:Date.now()},r)}};function ei(){var e;e=[s.nP,...(0,s.nQ)(),s.nR,[s.DV,{displayMode:s.DW.BLOCK}],...(0,s.nT)(),...(0,s.nU)(),s.nW,s.DX,s.nS],(0,s.gk)([{provide:s.DU,useClass:s.DT,args:[s.B.IFRAME,{isAsync:!0,shouldRetain:!0,defaultHeight:220}]}]),(0,s.nO)(m,{viewCreator:et,extensions:e}),(0,s.$)(()=>(console.info("[iframe-block-react-module] init"),h=new Date().getTime(),o.I.registerIframeErrListenerEvent(),()=>{console.info("[iframe-block-react-module] destroy"),o.I.unRegisterIframeErrListenerEvent(),o.I.unResigterAllIframeUrl()}))}et.type=s.B.IFRAME,ee([(0,s.gZ)(),s.o$],et.prototype,"bearWebSignalService"),ee([(0,s.gZ)(),s.tH],et.prototype,"blockAuthorService")}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.