1(function($){const CTCAIPromptGenerator={init:function(){this._bind();this._generate()},_bind:function(){$(document).on('click','.ctc-ai-generator-button',this.doCopy);$(document).on('input','.ctc-ai-prompt-generator input',this.doChange)},copyToClipboard:async function(text){if(window.CTC&&window.CTC.CopyEngine){try{const copyEngine=new window.CTC.CopyEngine();const result=await copyEngine.execute({value:text});if(result.success){return!0}}catch(err){}} 2if(navigator.clipboard&&navigator.clipboard.writeText){try{await navigator.clipboard.writeText(text);return!0}catch(err){}} 3try{const textArea=document.createElement('textarea');textArea.value=text;textArea.style.cssText='position:fixed;opacity:0;pointer-events:none;';document.body.appendChild(textArea);textArea.select();const success=document.execCommand('copy');document.body.removeChild(textArea);return success}catch(err){return!1}},doChange:function(event){event.preventDefault();CTCAIPromptGenerator._generate()},doCopy:async function(event){event.preventDefault();const self=$(this) 4const parent=self.parents('.ctc-ai-prompt-generator') 5const textarea=parent.find('.ctc-ai-prompt-generator-textarea') 6let text=textarea.val()||'' 7text=text.trim();await CTCAIPromptGenerator.copyToClipboard(text);parent.addClass('copied');setTimeout(function(){parent.removeClass('copied')},1000)},_generate:function(){const blocks=$('.ctc-ai-prompt-generator') 8blocks.each(function(){const fields=$(this).find('.ctc-block-field') 9const textarea=$(this).find('.ctc-ai-prompt-generator-textarea') 10let markup='' 11fields.each(function(){const label=$(this).find('.ctc-block-field-label').text() 12const value=$(this).find('input').val()||'' 13if(!value){return} 14markup+=label+': '+value+'\n'}) 15textarea.val(markup)})}};$(function(){CTCAIPromptGenerator.init()})})(jQuery) 16;
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.